initng: fix /bin/pidof and installation.

--HG--
extra : convert_revision : 32553e4dffb78d3a922dd25790cefcdde1c0651d
This commit is contained in:
Juan RP 2008-12-16 06:13:54 +01:00
parent f036a85acb
commit a127aa48e6
1 changed files with 13 additions and 1 deletions

View File

@ -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
}