summaryrefslogtreecommitdiffstats
path: root/abs/extra/oss/oss.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-08-20 22:22:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-08-20 22:22:40 (GMT)
commitcafd0967739599f2d7527dd8fe6af6b3fa797c69 (patch)
tree926ac1f40b9e8ef3c548c65599e8beb83a47c7a6 /abs/extra/oss/oss.install
parent632a366625bd2f3046cf26fdf50f16b166d9ab09 (diff)
downloadlinhes_pkgbuild-cafd0967739599f2d7527dd8fe6af6b3fa797c69.zip
linhes_pkgbuild-cafd0967739599f2d7527dd8fe6af6b3fa797c69.tar.gz
linhes_pkgbuild-cafd0967739599f2d7527dd8fe6af6b3fa797c69.tar.bz2
oss: update oss to 4.2
Diffstat (limited to 'abs/extra/oss/oss.install')
-rw-r--r--abs/extra/oss/oss.install59
1 files changed, 40 insertions, 19 deletions
diff --git a/abs/extra/oss/oss.install b/abs/extra/oss/oss.install
index 8c4bd0a..f665416 100644
--- a/abs/extra/oss/oss.install
+++ b/abs/extra/oss/oss.install
@@ -4,35 +4,56 @@ _MSG_LIBOSSDIR=" Please note that OSS stores some of its configuration files
directory and reinstall this package."
post_install() {
- echo "Creating backup of alsa modules"
- KER=`uname -r`
- cd /lib/modules/$KER/kernel
- tar -cvf /lib/modules/alsa-$KER.tar sound
- rm -rf sound
-# /bin/sh /usr/lib/oss/build/install.sh &> /dev/null
- depmod -a
-
+ echo "Running OSS install script..."
+ /bin/sh /usr/lib/oss/build/install.sh &> /dev/null
+ echo
+ echo "-------------------------------------------------------------"
+ echo " Open Sound System was installed. Now you should add 'oss'"
+ echo " to your DAEMONS variable at /etc/rc.conf, and start the"
+ echo " daemon by running /etc/rc.d/oss start."
+ echo
+ echo " Note that OSS can't currently work together with kernel"
+ echo " ALSA modules, so they were moved out by the OSS install"
+ echo " scripts. If you want the ALSA kernel modules back, you can"
+ echo " just remove this package using pacman."
+ echo
+ echo "${_MSG_LIBOSSDIR}"
+ echo "-------------------------------------------------------------"
+ /bin/true
}
post_upgrade() {
echo "Running OSS update script..."
- KER=`uname -r`
- cd /lib/modules/$KER/kernel
- if [ -f sound/soundcore.ko ]
- then
- tar -cvf /lib/modules/alsa-$KER.tar sound
- rm -rf sound
- /bin/true
- fi
- depmod -a
+ /bin/sh /usr/lib/oss/build/install.sh &> /dev/null
+ echo
+ echo "-------------------------------------------------------------"
+ echo " Open Sound System was updated. Now you should restart the"
+ echo " daemon by running /etc/rc.d/oss restart."
+ echo
+ echo "${_MSG_LIBOSSDIR}"
+ echo "-------------------------------------------------------------"
+ /bin/true
}
pre_remove() {
-
+ # Restore any replaced ALSA drivers.
+ /bin/sh /usr/lib/oss/scripts/restore_drv.sh
+ # Remove symlinks left by the 'install.sh' script.
+ rm -f /usr/lib/hal/scripts/oss_usb-create-devices
+ rm -f /usr/share/hal/fdi/policy/20thirdparty/90-oss_usb-create-device.fdi
+ /bin/true
}
post_remove() {
-
+ echo
+ echo "-------------------------------------------------------------"
+ echo " Open Sound System was now removed, and the ALSA kernel"
+ echo " modules were restored."
+ echo
+ echo " Please note that OSS stores some of its configuration files"
+ echo " at /usr/lib/oss. If you don't plan to use OSS anymore, you"
+ echo " can remove this directory."
+ echo "-------------------------------------------------------------"
/bin/true
}