diff options
author | James Meyer <james.meyer@operamail.com> | 2014-02-17 00:06:33 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2014-02-19 19:03:05 (GMT) |
commit | 5595bd9f091248a9cc8dcca60776cd7c919d10ef (patch) | |
tree | 5858439728667a81b072b7e14f1d30d30b8f9c44 /abs/extra/oss/oss.install | |
parent | 34aea02a41d9c352742211190131dbd72bb1d04c (diff) | |
download | linhes_pkgbuild-5595bd9f091248a9cc8dcca60776cd7c919d10ef.zip linhes_pkgbuild-5595bd9f091248a9cc8dcca60776cd7c919d10ef.tar.gz linhes_pkgbuild-5595bd9f091248a9cc8dcca60776cd7c919d10ef.tar.bz2 |
oss: 4.2_2008
update binary path to /usr/bin
refs #961
Diffstat (limited to 'abs/extra/oss/oss.install')
-rw-r--r-- | abs/extra/oss/oss.install | 45 |
1 files changed, 8 insertions, 37 deletions
diff --git a/abs/extra/oss/oss.install b/abs/extra/oss/oss.install index f665416..672d636 100644 --- a/abs/extra/oss/oss.install +++ b/abs/extra/oss/oss.install @@ -1,59 +1,30 @@ -_MSG_LIBOSSDIR=" Please note that OSS stores some of its configuration files - at /usr/lib/oss. If you are upgrading from an older OSS - release and it doesn't work properly, try removing that - directory and reinstall this package." - post_install() { 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." + sh /usr/lib/oss/build/install.sh &>/dev/null 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..." - /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 + sh /usr/lib/oss/build/install.sh &>/dev/null + + if [[ $(vercmp $2 4.2_2006) == "-1" ]]; then + echo "libflashsupport.so has been split into a seperate package." + echo "If you want flash to use oss, please install libflashsupport-oss" + fi } 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 + sh /usr/lib/oss/scripts/restore_drv.sh } 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 } |