diff options
Diffstat (limited to 'packages/sysvinit')
-rw-r--r-- | packages/sysvinit/sysvinit_2.86.bb | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/packages/sysvinit/sysvinit_2.86.bb b/packages/sysvinit/sysvinit_2.86.bb index c69167b611..7d996d81f1 100644 --- a/packages/sysvinit/sysvinit_2.86.bb +++ b/packages/sysvinit/sysvinit_2.86.bb @@ -4,8 +4,7 @@ LICENSE = "GPL" MAINTAINER = "Chris Larson <kergoth@handhelds.org>" HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" -FILES_${PN} += "/sbin /bin" -PR = "r3" +PR = "r4" # USE_VT and SERIAL_CONSLE are generally defined by the MACHINE .conf. # Set PACKAGE_ARCH appropriately. @@ -26,6 +25,18 @@ SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.85.tar.gz S = "${WORKDIR}/sysvinit-2.85" B = "${S}/src" +inherit update-alternatives + +ALTERNATIVE_NAME = "init" +ALTERNATIVE_LINK = "/sbin/init" +ALTERNATIVE_PATH = "/sbin/init.sysvinit" +ALTERNATIVE_PRIORITY = "50" + +PACKAGES =+ "sysvinit-pidof sysvinit-sulogin" +FILES_${PN} += "/sbin /bin" +FILES_sysvinit-pidof = "/bin/pidof" +FILES_sysvinit-sulogin = "/sbin/sulogin" + CFLAGS_prepend = "-D_GNU_SOURCE " export LCRYPT = "-lcrypt" EXTRA_OEMAKE += "'INSTALL=install' \ @@ -86,15 +97,3 @@ do_install_append_ramses () { v1:2345:respawn:/sbin/getty -L 115200 vc/1 EOF } - -pkg_postinstall_sysvinit () { - update-alternatives --install /sbin/init init /sbin/init.sysvinit 50 -} - -pkg_postrm_sysvinit () { - update-alternatives --remove init /sbin/init.sysvinit -} - -PACKAGES =+ "sysvinit-pidof sysvinit-sulogin" -FILES_sysvinit-pidof = "/bin/pidof" -FILES_sysvinit-sulogin = "/sbin/sulogin" |