Bug#350220: please add a udeb

2006-02-06 Thread Gerfried Fuchs
* Martin Michlmayr [EMAIL PROTECTED] [2006-02-03 13:15]:
 * Gerfried Fuchs [EMAIL PROTECTED] [2006-02-03 13:25]:
 and no seperate debian/files file.
 
 Are you sure that works?

 No, i'm kidding, like always. ;/  I'm one of the people that usually
speaks of things they don't know

 When I didn't use a bogus debian/files~ file

 .. that wasn't used at all but also not cleaned up...

 the build complained about a missing .deb.  (I used the gnupg package
 as an example of how to create udebs without debhelper, fwiw).

 Then dpkg-gencontrol and dpkg --build was definitely called wrong
there. There is no need for the cruft, and no need to edit debian/files
by hand:

#v+
dpkg-gencontrol -ldebian/changelog -isp -Tdebian/substvars -p$(PKG2) \
-P$(TMP2) -n$(PKG2)_$(VERSION)_$(ARCH).udeb
dpkg --build $(TMP2) ../$(PKG2)_$(VERSION)_$(ARCH).udeb
#v-

 So long,
Alfie
-- 
Es gibt in diesem Netz Gute und Böse. Wer die Bösen sind,
entscheiden die Guten. (Michael Ottenbruch in de.admin.news.regeln)


signature.asc
Description: Digital signature


Bug#350220: please add a udeb

2006-02-03 Thread Gerfried Fuchs
tag 350220 + pending
thanks

* Martin Michlmayr [EMAIL PROTECTED] [2006-01-28 00:56]:
 Please add a udeb to beep.

 Done so, though with a slightly different patch, like no double
dpkg-shlibdeps call and no seperate debian/files file.

 Thanks for the hint, though.
Alfie
-- 
WARNING: Do not execute!  This software violates patent EP0850441.
http://www.elug.de/projekte/patent-party/patente/EP0850441
 
IP=192.168.0.1;while ping -c 1 $IP;do sleep 1;done;echo Host $IP gone\!


signature.asc
Description: Digital signature


Bug#350220: please add a udeb

2006-02-03 Thread Martin Michlmayr
* Gerfried Fuchs [EMAIL PROTECTED] [2006-02-03 13:25]:
 and no seperate debian/files file.

Are you sure that works?  When I didn't use a bogus debian/files~ file
the build complained about a missing .deb.  (I used the gnupg package
as an example of how to create udebs without debhelper, fwiw).
-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350220: please add a udeb

2006-01-27 Thread Martin Michlmayr
Package: beep
Severity: wishlist
Version: 1.2.2-16
Tags: patch

Please add a udeb to beep.  I'd like to use this package in
debian-installer to indicate on machines w/o a serial console or
virtual terminal when they can log into the box via SSH to start the
installation.  In particular, I need this for the Linksys NSLU2,
together with the patch in #350214.


diff -urN beep-1.2.2.old/debian/control beep-1.2.2/debian/control
--- beep-1.2.2.old/debian/control   2006-01-28 00:07:30.0 +
+++ beep-1.2.2/debian/control   2006-01-28 00:52:24.0 +
@@ -15,3 +15,15 @@
  controlled completely through command line options. It's not supposed to be
  complex, and it isn't - but it makes system monitoring (or whatever else it
  gets hacked into) much more informative.
+
+Package: beep-udeb
+Architecture: any
+Depends: ${shlibs:Depends}
+Section: debian-installer
+Description: advanced speaker beeper
+ beep does what you'd expect: it beeps. However, it offers various
+ additional features, such as the ability to control pitch, duration,
+ and repetitions.
+ .
+ beep-udeb is a minimal package used by debian-installer.
+
diff -urN beep-1.2.2.old/debian/rules beep-1.2.2/debian/rules
--- beep-1.2.2.old/debian/rules 2006-01-28 00:07:30.0 +
+++ beep-1.2.2/debian/rules 2006-01-28 00:53:42.0 +
@@ -3,6 +3,10 @@
 
 PACKAGE = beep
 TMP = $(CURDIR)/debian/$(PACKAGE)
+TMP_UDEB = $(CURDIR)/debian/$(PACKAGE)-udeb
+
+VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d  -f 2)
+ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
 FLAGS = -g -Wall
 INSTALL = install
@@ -25,7 +29,7 @@
 clean:
$(checkdir)
$(checkroot)
-   -rm -rf $(TMP) debian/substvars debian/files build-stamp
+   -rm -rf $(TMP) $(TMP_UDEB) debian/substvars debian/files build-stamp
-$(MAKE) clean
 
 
@@ -39,7 +43,7 @@
 install: build
$(checkdir)
$(checkroot)
-   -rm -rf $(TMP) debian/substvars
+   -rm -rf $(TMP) $(TMP_UDEB) debian/substvars
$(INSTALL_DIR) $(TMP)
cd $(TMP)  $(INSTALL_DIR) usr/bin usr/share/man/man1 \
usr/share/doc/$(PACKAGE)
@@ -56,6 +60,8 @@
$(INSTALL_FILE) CREDITS README $(TMP)/usr/share/doc/$(PACKAGE)
$(INSTALL_FILE) CHANGELOG $(TMP)/usr/share/doc/$(PACKAGE)/changelog
cd $(TMP)/usr/share/doc/$(PACKAGE)  gzip -9 changelog README
+   $(INSTALL_DIR) $(TMP_UDEB)/usr/bin
+   $(INSTALL_PROGRAM) beep $(TMP_UDEB)/usr/bin
 
 
 # Build architecture-independent files here.
@@ -81,6 +87,12 @@
cd $(TMP)  find * -type f ! -regex '^DEBIAN/.*' -print0 | \
xargs -r0 md5sum  DEBIAN/md5sums
dpkg --build $(TMP) ..
+   $(INSTALL_DIR) $(TMP_UDEB)/DEBIAN
+   dpkg-shlibdeps -Tdebian/substvars -dDepends $(TMP_UDEB)/usr/bin/beep
+   dpkg-gencontrol -ldebian/changelog -isp -Tdebian/substvars 
-p$(PACKAGE)-udeb \
+   -P$(TMP_UDEB) -fdebian/files~
+   dpkg-distaddfile $(PACKAGE)-udeb_$(VERSION)_$(ARCH).udeb 
debian-installer optional
+   dpkg --build $(TMP_UDEB) ../$(PACKAGE)-udeb_$(VERSION)_$(ARCH).udeb
 
 
 binary: binary-arch



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]