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.
 
 
 

65 lines
1.9 KiB

#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/mnemosyne/parse-config
# Copyright (C) 2002 - 2006 Alejandro Mery
#
# 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.
# --- SDE-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