From a127aa48e654b5020a21ac5db5fccca60c508d12 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 16 Dec 2008 06:13:54 +0100 Subject: [PATCH] initng: fix /bin/pidof and installation. --HG-- extra : convert_revision : 32553e4dffb78d3a922dd25790cefcdde1c0651d --- templates/initng.tmpl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/initng.tmpl b/templates/initng.tmpl index b516cb1f592..3822531f7aa 100644 --- a/templates/initng.tmpl +++ b/templates/initng.tmpl @@ -4,7 +4,7 @@ version=0.6.10.2 distfiles="http://download.initng.org/initng/v0.6/initng-0.6.10.2.tar.bz2" build_style=configure configure_script="cmake" -configure_args="-DINSTALL_AS_INIT=ON +configure_args="-DINSTALL_AS_INIT=1 -DSERVICE_CACHE=1 -DSYSCONF_INSTALL_DIR=$XBPS_DESTDIR/$pkgname-$version/etc -DSBIN_INSTALL_DIR=$XBPS_DESTDIR/$pkgname-$version/sbin -DLIB_INSTALL_DIR=$XBPS_DESTDIR/$pkgname-$version/lib @@ -20,5 +20,17 @@ long_desc=" speed of a unix-like operating system by starting processes asynchronously." +conf_files="/etc/initng/killall5-ignore" build_depends="cmake-2.6.2" run_depends="glibc-2.8" + +post_install() +{ + local destdir=$XBPS_DESTDIR/$pkgname-$version + + # Make /sbin/initng -> /sbin/init link. + ln -sv $destdir/sbin/initng $destdir/sbin/init + # Fix /bin/pidof link. + rm -v $destdir/bin/pidof + cd $destdir/bin && ln -sf ../sbin/killalli5 pidof +}