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]