|
|
#!/bin/sh # --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: target/mnemosyne/parse-config # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END ---
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 ;; alsa-utils) # alsa configuration save/restore ln -svnf /sbin/init.d/alsa "$root/etc/runit/1.d/20alsa" ln -svnf /sbin/init.d/alsa "$root/etc/runit/3.d/80alsa" ;; esac
# tweaks that we need on 2.2 if [[ "$sdever" != "2.1*" ]] ; then case "$pkg" in kbd) # keyboard mappings ln -svnf /sbin/init.d/kbd "$root/etc/runit/1.d/05kbd" ;; rocknet) # network ln -svnf /sbin/init.d/network "$root/etc/runit/1.d/15network" ;; esac fi }
if [ "$SDECFG_TRG_MNEMOSYNE_DEVELOPMENT" != 1 ]; then echo_status "No developent files will be flisted" var_append flistdel '|' '.*\.h|.*\.a|.*\.la|.*\.pc' fi
|