Browse Source

[runit] fixed to handle the case where pkg_djb_commanddir is $root$sbindir correctly

early
Alejandro Mery 16 years ago
parent
commit
3b02b41b13
1 changed files with 12 additions and 13 deletions
  1. +12
    -13
      base/runit/runit.conf

+ 12
- 13
base/runit/runit.conf

@ -18,17 +18,18 @@
. $base/package/*/runit/djb-config admin $sbindir
hook_add postmake 6 'pkg_runit_addservices'
if ! pkginstalled daemontools; then
hook_add postmake 7 ' \
[ "$pkg_djb_commanddir" ] && add_flist $pkg_djb_commanddir; \
[ "$pkg_djb_servicedir" ] && add_flist $pkg_djb_servicedir; \
[ "$pkg_djb_packagedir" ] && add_flist $pkg_djb_packagedir; '
fi
hook_add postmake 6 'pkg_runit_quirks'
pkg_runit_addservices() {
pkg_runit_quirks() {
local agettyargs speed
if ! pkginstalled daemontools; then
[ "$pkg_djb_commanddir" -a "$pkg_djb_commanddir" != "$root$sbindir" ] &&
add_flist $pkg_djb_commanddir;
[ "$pkg_djb_servicedir" ] && add_flist $pkg_djb_servicedir;
[ "$pkg_djb_packagedir" ] && add_flist $pkg_djb_packagedir;
fi
# main scripts and virtual consoles
# only if it is INIT
if [ "$SDECFG_INIT" == "runit" ]; then
@ -82,10 +83,10 @@ EOT
ln -snfv /etc/rc.d/init.d/system "$root/$sysconfdir/3.d/99system"
# init at /sbin
if [ ${pkg_djb_commanddir} != $root/$sbindir ]; then
if [ ${pkg_djb_commanddir} != $root$sbindir ]; then
echo "Copying init files to /sbin..."
cp -vf $root$( readlink ${pkg_djb_commanddir}/runit ) $root/$sbindir/
cp -vf $root$( readlink ${pkg_djb_commanddir}/runit-init ) $root/$sbindir/init
cp -vf $root$( readlink ${pkg_djb_commanddir}/runit ) $root$sbindir/
cp -vf $root$( readlink ${pkg_djb_commanddir}/runit-init ) $root$sbindir/init
fi
fi
@ -126,5 +127,3 @@ else
hook_add postinstall 8 'sed -i -e "s,/service,/var/service,g" \
$root/lib/network/runit.sh'
fi

Loading…
Cancel
Save