Mnemosyne is a abstract distribution originally designed for ROCKLinux, but currently only support the trunk of OpenSDE.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.8 KiB

  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 ---
  14. mnemosynedir=$base/target/$SDECFG_TRG_MNEMOSYNE
  15. # tweak config
  16. [ ! -f $mnemosynedir/pkg_conf/$pkg.conf ] || . $mnemosynedir/pkg_conf/$pkg.conf
  17. # append patches
  18. [ ! -f $mnemosynedir/pkg_patch/$pkg.patch ] || var_append patchfiles ' ' $mnemosynedir/pkg_patch/$pkg.patch
  19. unset mnemosynedir
  20. # postinstall extra hackery
  21. hook_add postinstall 5 'mnemosyne_postinstall'
  22. mnemosyne_postinstall() {
  23. local x=
  24. case "$pkg" in
  25. socklog)
  26. # socklog services active by default
  27. for x in klog syslog; do
  28. ln -svnf $sysconfdir/$x $root/service/$x
  29. done
  30. ;;
  31. bcron)
  32. # bcron services active by default
  33. for x in bcron-scheduler bcron-spooler bcron-updater; do
  34. ln -svnf $sysconfdir/$x $root/service/$x
  35. done
  36. ;;
  37. alsa-utils)
  38. # alsa configuration save/restore
  39. ln -svnf /sbin/init.d/alsa "$root/etc/runit/1.d/20alsa"
  40. ln -svnf /sbin/init.d/alsa "$root/etc/runit/3.d/80alsa"
  41. ;;
  42. kbd)
  43. # keyboard mappings
  44. ln -svnf /sbin/init.d/kbd "$root/etc/runit/1.d/05kbd"
  45. ;;
  46. rocknet)
  47. # network
  48. ln -svnf /sbin/init.d/network "$root/etc/runit/1.d/15network"
  49. ;;
  50. esac
  51. }
  52. if [ "$SDECFG_TRG_MNEMOSYNE_DEVELOPMENT" != 1 ]; then
  53. echo_status "No developent files will be flisted"
  54. var_append flistdel '|' '.*\.h|.*\.a|.*\.la|.*\.pc'
  55. fi