* changed PYTHON to not depend on DEVELOPMENT, we may want python files even if...
[mnemosyne.git] / parse-config
blob42d9583c06dddcc894cdb0ab484cfc7aeff398be
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3
4 # Filename: target/mnemosyne/parse-config
5 # Copyright (C) 2002 - 2006 Alejandro Mery
6
7 # More information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- SDE-COPYRIGHT-NOTE-END ---
15 mnemosynedir=$base/target/$SDECFG_TRG_MNEMOSYNE
16 # tweak config
17 [ ! -f $mnemosynedir/pkg_conf/$pkg.conf ] || . $mnemosynedir/pkg_conf/$pkg.conf
18 # append patches
19 [ ! -f $mnemosynedir/pkg_patch/$pkg.patch ] || var_append patchfiles ' ' $mnemosynedir/pkg_patch/$pkg.patch
20 unset mnemosynedir
22 # postinstall extra hackery
23 hook_add postinstall 5 'mnemosyne_postinstall'
24 mnemosyne_postinstall() {
25         local x=
26         case "$pkg" in
27                 socklog)        
28                         # socklog services active by default
29                         for x in klog syslog; do                
30                                 ln -svnf $sysconfdir/$x $root/service/$x
31                         done
32                         ;;
33                 bcron)
34                         # bcron services active by default
35                         for x in bcron-scheduler bcron-spooler bcron-updater; do
36                                 ln -svnf $sysconfdir/$x $root/service/$x
37                         done
38                         ;;
39                 alsa-utils)
40                         # alsa configuration save/restore
41                         ln -svnf /sbin/init.d/alsa "$root/etc/runit/1.d/20alsa"
42                         ln -svnf /sbin/init.d/alsa "$root/etc/runit/3.d/80alsa"
43                         ;;
44                 kbd)
45                         # keyboard mappings
46                         ln -svnf /sbin/init.d/kbd "$root/etc/runit/1.d/05kbd"
47                         ;;
48                 rocknet)
49                         # network
50                         ln -svnf /sbin/init.d/network "$root/etc/runit/1.d/15network"
51                         ;;
52         esac
55 if [ "$SDECFG_TRG_MNEMOSYNE_DEVELOPMENT" != 1 ]; then
56         echo_status "No developent files will be flisted"
57         var_append flistdel '|' '.*\.h|.*\.a|.*\.la|.*\.pc'