Browse Source

* improved mnemosyne/parse-config to handle patches at pkg_patch, and hardcoded a postinstall wrapper currently used to install socklog and bcron to /service

legacy/multilib
Alejandro Mery 19 years ago
parent
commit
9daa4b3db8
2 changed files with 26 additions and 3 deletions
  1. +26
    -3
      parse-config
  2. +0
    -0
      pkg_patch/mozplugger.patch

+ 26
- 3
parse-config

@ -13,6 +13,29 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
if [ -f $base/target/$SDECFG_TRG_MNEMOSYNE/pkg_conf/$pkg.conf ]; then
. $base/target/$SDECFG_TRG_MNEMOSYNE/pkg_conf/$pkg.conf
fi
mnemosynedir=$base/target/$SDECFG_TRG_MNEMOSYNE
# tweak config
[ ! -f $mnemosynedir/pkg_conf/$pkg.conf ] || . $mnemosynedir/pkg_conf/$pkg.conf
# append patches
[ ! -f $mnemosynedir/pkg_patch/$pkg.patch ] || var_append patchfiles ' ' $mnemosynedir/pkg_patch/$pkg.patch
unset mnemosynedir
# postinstall extra hackery
hook_add postinstall 5 'mnemosyne_postinstall'
mnemosyne_postinstall() {
local x=
case "$pkg" in
socklog)
# socklog services active by default
for x in klog syslog; do
ln -svnf $sysconfdir/$x $root/service/$x
done
;;
bcron)
# bcron services active by default
for x in bcron-scheduler bcron-spooler bcron-updater; do
ln -svnf $sysconfdir/$x $root/service/$x
done
esac
}

pkg_mozplugger.patch → pkg_patch/mozplugger.patch


Loading…
Cancel
Save