# $Id$ PNAME="sysvinit" PVER="2.88" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="System initialization stuff." HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}" DEPEND="" SRCFILE="${PNAME}-${PVER}dsf.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}dsf" sminclude mtools SRC_URI=( http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-makefile.patch ) UP2SUBSTITUTE="dsf" UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | grep ${PNAME}- | grep -v -- '.*-latest' | lasttarball" # info: installs no inittab -> this file is in the magellan-initscripts src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes a sysvinit bug # see: http://savannah.nongnu.org/bugs/index.php?29758 mpatch ${PNAME}-${PVER}-makefile.patch || die sed -i 's@Sending processes@& started by init@g' src/init.c || die } src_compile() { cd ${SRCDIR} mmake -C src || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /{s,}bin || die minstalldir /usr/{bin,include} || die minstalldir /usr/share/man/man{1,5,8} || die # makefile wants ${ROOT} as ${DESTDIR} mmake -C src ROOT=${BINDIR} install || die minstalldocs COPYRIGHT README doc/* } postinstall() { # reloading init echo " Reloading init ..." [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && /sbin/init U &> /dev/null }