summaryrefslogtreecommitdiff
path: root/recipes/sysvinit/sysvinit_2.86.bb
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2009-06-14 10:31:34 +0100
committerPhil Blundell <philb@gnu.org>2009-06-14 10:31:34 +0100
commit74aea7deec0229d81502354732c559670a2882ec (patch)
tree28dbda9483966cae8ca4c27a11b625c0b400a034 /recipes/sysvinit/sysvinit_2.86.bb
parent61fac2a35a5d4fd36705d2fa53e974e99b403d0a (diff)
sysvinit: banish seldom-used utils into sysinit-utils package, recommend it for everything except micro
Diffstat (limited to 'recipes/sysvinit/sysvinit_2.86.bb')
-rw-r--r--recipes/sysvinit/sysvinit_2.86.bb19
1 files changed, 15 insertions, 4 deletions
diff --git a/recipes/sysvinit/sysvinit_2.86.bb b/recipes/sysvinit/sysvinit_2.86.bb
index cc7b91317f..769a9ad060 100644
--- a/recipes/sysvinit/sysvinit_2.86.bb
+++ b/recipes/sysvinit/sysvinit_2.86.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
SECTION = "base"
LICENSE = "GPL"
HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r54"
+PR = "r55"
# USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
# Set PACKAGE_ARCH appropriately.
@@ -38,10 +38,13 @@ ALTERNATIVE_LINK = "${base_sbindir}/init"
ALTERNATIVE_PATH = "${base_sbindir}/init.sysvinit"
ALTERNATIVE_PRIORITY = "60"
-PACKAGES =+ "sysvinit-pidof sysvinit-sulogin"
+PACKAGES =+ "sysvinit-utils sysvinit-pidof sysvinit-sulogin"
FILES_${PN} += "${base_sbindir}/* ${base_bindir}/*"
FILES_sysvinit-pidof = "${base_bindir}/pidof.sysvinit"
FILES_sysvinit-sulogin = "${base_sbindir}/sulogin"
+FILES_sysvinit-utils = "${bindir}/last.${PN} ${bindir}/mesg.${PN} ${bindir}/wall.${PN} ${base_sbindir}/shutdown.${PN}"
+RRECOMMENDS_${PN} = "sysvinit-utils"
+RRECOMMENDS_${PN}_micro = ""
CFLAGS_prepend = "-D_GNU_SOURCE "
export LCRYPT = "-lcrypt"
@@ -108,21 +111,29 @@ pkg_postinst_${PN} () {
#!/bin/sh
update-alternatives --install ${base_sbindir}/halt halt halt.${PN} 200
update-alternatives --install ${base_sbindir}/reboot reboot reboot.${PN} 200
-update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
update-alternatives --install ${base_sbindir}/poweroff poweroff poweroff.${PN} 200
+}
+
+pkg_postinst_sysvinit-utils () {
+#!/bin/sh
update-alternatives --install ${bindir}/last last last.${PN} 200
update-alternatives --install ${bindir}/mesg mesg mesg.${PN} 200
update-alternatives --install ${bindir}/wall wall wall.${PN} 200
+update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
}
pkg_prerm_${PN} () {
#!/bin/sh
update-alternatives --remove halt halt.${PN}
update-alternatives --remove reboot reboot.${PN}
-update-alternatives --remove shutdown shutdown.${PN}
+}
+
+pkg_prerm_sysvinit-utils () {
+#!/bin/sh
update-alternatives --remove last last.${PN}
update-alternatives --remove mesg mesg.${PN}
update-alternatives --remove wall wall.${PN}
+update-alternatives --remove shutdown shutdown.${PN}
}
pkg_postinst_sysvinit-pidof () {