[Pkg-sysvinit-devel] Bug#385722: please consider splitting off
sysvutils
Petter Reinholdtsen
pere at hungry.com
Tue Sep 5 08:39:07 UTC 2006
tags 385722 + patch
thanks
I'm positive to splitting these tools off into their own package. I'm
unsure about the effect this will have on debootstrap and the
debian-installer, so I post the patch here first, for review.
It is based on the code in sysvinit version 2.86.ds1-14.1ubuntu7 from
ubuntu.
Index: debian/control
===================================================================
--- debian/control (revisjon 815)
+++ debian/control (arbeidskopi)
@@ -9,9 +9,7 @@
Package: sysvinit
Essential: yes
Architecture: any
-Conflicts: last
-Replaces: last
-Pre-Depends: initscripts, sysv-rc (>= 2.86.ds1-1.2) | file-rc (>> 0.7.0)
+Pre-Depends: initscripts, sysv-rc (>= 2.86.ds1-1.2) | file-rc (>> 0.7.0), sysvutils
Depends: ${shlibs:Depends}
Description: System-V-like init utilities
This package contains programs required for booting
@@ -22,6 +20,18 @@
to run as process number 1 until the system halts. All
other processes are descended from it.
+Package: sysvutils
+Essential: yes
+Architecture: any
+Conflicts: last
+Replaces: last, sysvinit (<< 2.86.ds1-15)
+Depends: ${shlibs:Depends}
+Description: System-V-like utilities
+ This package contains the important System-V-like utilities.
+ .
+ Specifically, this package includes:
+ killall5, last, lastb, mesg, pidof
+
Package: sysv-rc
Architecture: all
Conflicts: file-rc
@@ -34,7 +44,7 @@
Package: initscripts
Architecture: any
-Depends: ${shlibs:Depends}, ${glibc:Depends}, ${mount:Depends}, e2fsprogs (>= 1.32+1.33-WIP-2003.04.14-1), debianutils (>= 2.13.1), lsb-base (>= 3.0-6)
+Depends: ${shlibs:Depends}, ${glibc:Depends}, ${mount:Depends}, e2fsprogs (>= 1.32+1.33-WIP-2003.04.14-1), debianutils (>= 2.13.1), lsb-base (>= 3.0-6), sysvutils
Conflicts: mdutils, sysv-rc (<< 2.86.ds1-1.2), sysvinit (<< 2.86.ds1-12)
Replaces: mdutils, sysvinit (<< 2.85-12), libc6, libc6.1, libc0.1, libc0.3
Description: Scripts for initializing and shutting down the system
Index: debian/changelog
===================================================================
--- debian/changelog (revisjon 820)
+++ debian/changelog (arbeidskopi)
@@ -14,6 +14,9 @@
* Mount /dev/shm, /sys, /proc and /proc/bus/usb using
noexec,nodev,nosuid to make it harder to misuse.
(Closes: #378182, #378280)
+ * Split killall5, last, lastb, mesg and pidof out of the sysvinit
+ package into a new sysvutils package to make it easier to replace
+ init. (Closes: #385722)
-- Petter Reinholdtsen <pere at debian.org> Wed, 26 Jul 2006 11:37:23 +0200
Index: debian/rules
===================================================================
--- debian/rules (revisjon 815)
+++ debian/rules (arbeidskopi)
@@ -96,8 +96,22 @@
rm -f $(tmp)/sbin/halt
rm -f $(tmp)/sbin/reboot
endif
+ rm -f $(tmp)/usr/share/man/man8/killall5.8
+ rm -f $(tmp)/usr/share/man/man1/last.1
+ rm -f $(tmp)/usr/share/man/man1/lastb.1
+ rm -f $(tmp)/usr/share/man/man1/mesg.1
+ rm -f $(tmp)/usr/share/man/man8/pidof.8
rm -f $(tmp)/usr/share/man/man1/mountpoint.1
+ rm -f $(tmp)/sbin/killall5
+ rm -f $(tmp)/usr/bin/last
+ rm -f $(tmp)/usr/bin/lastb
+ rm -f $(tmp)/usr/bin/mesg
+ rm -f $(tmp)/bin/pidof
rm -f $(tmp)/bin/mountpoint
+ rmdir $(tmp)/usr/share/man/man1
+ rmdir $(tmp)/usr/sbin
+ rmdir $(tmp)/usr/bin
+ rmdir $(tmp)/bin
gzip -9f $(tmp)/usr/share/man/man*/*.[0-9]
install -o root -g root -m 644 debian/copyright \
$(tmp)$(doc)/sysvinit/copyright
@@ -108,6 +122,43 @@
dpkg --build $(tmp) ..
rm -rf $(tmp)
#
+ # sysvutils package
+ #
+ -rm -rf $(tmp)
+ install -d -o root -g root -m 755 $(tmp)
+ install -d -o root -g root -m 755 $(tmp)/DEBIAN
+ install -d -o root -g root -m 755 $(tmp)$(doc)/sysvutils
+ install -o root -g root -m 644 doc/Changelog \
+ $(tmp)$(doc)/sysvutils/changelog
+ install -o root -g root -m 644 debian/changelog \
+ $(tmp)$(doc)/sysvutils/changelog.Debian
+ gzip -9f $(tmp)$(doc)/sysvutils/changelog*
+ install -d -o root -g root -m 755 $(tmp)/{bin,sbin,lib,usr}
+ install -d -o root -g root -m 755 $(tmp)/usr/bin
+ install -d -o root -g root -m 755 $(tmp)/usr/share/man
+ install -d -o root -g root -m 755 $(tmp)/usr/share/man/man{1,8}
+ install -o root -g root -m 755 src/killall5 $(tmp)/sbin
+ install -o root -g root -m 755 src/last $(tmp)/usr/bin
+ install -o root -g root -m 755 src/mesg $(tmp)/usr/bin
+ strip -s -R .comment $(tmp)/sbin/killall5
+ strip -s -R .comment $(tmp)/usr/bin/last
+ strip -s -R .comment $(tmp)/usr/bin/mesg
+ ln -sf ../sbin/killall5 $(tmp)/bin/pidof
+ ln -sf last $(tmp)/usr/bin/lastb
+ install -o root -g root -m 644 man/killall5.8 $(tmp)/usr/share/man/man8
+ install -o root -g root -m 644 man/last.1 $(tmp)/usr/share/man/man1
+ install -o root -g root -m 644 man/lastb.1 $(tmp)/usr/share/man/man1
+ install -o root -g root -m 644 man/mesg.1 $(tmp)/usr/share/man/man1
+ install -o root -g root -m 644 man/pidof.8 $(tmp)/usr/share/man/man8
+ gzip -9f $(tmp)/usr/share/man/man*/*.[0-9]
+ install -o root -g root -m 644 debian/copyright \
+ $(tmp)$(doc)/sysvutils/copyright
+ cat COPYRIGHT >> $(tmp)$(doc)/sysvutils/copyright
+ dpkg-shlibdeps src/init
+ dpkg-gencontrol -psysvutils -P$(tmp) -isp
+ dpkg --build $(tmp) ..
+ rm -rf $(tmp)
+ #
# initscripts package
#
-rm -rf $(tmp)
More information about the Pkg-sysvinit-devel
mailing list