updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / oss-hg / oss.install
blobf665416db5e9e115f5a7099156b7fb32ba1961bc
1 _MSG_LIBOSSDIR=" Please note that OSS stores some of its configuration files
2  at /usr/lib/oss. If you are upgrading from an older OSS
3  release and it doesn't work properly, try removing that
4  directory and reinstall this package."
6 post_install() {
7         echo "Running OSS install script..."
8         /bin/sh /usr/lib/oss/build/install.sh &> /dev/null
9         echo
10         echo "-------------------------------------------------------------"
11         echo " Open Sound System was installed. Now you should add 'oss'"
12         echo " to your DAEMONS variable at /etc/rc.conf, and start the"
13         echo " daemon by running /etc/rc.d/oss start."
14         echo
15         echo " Note that OSS can't currently work together with kernel"
16         echo " ALSA modules, so they were moved out by the OSS install"
17         echo " scripts. If you want the ALSA kernel modules back, you can"
18         echo " just remove this package using pacman."
19         echo
20         echo "${_MSG_LIBOSSDIR}"
21         echo "-------------------------------------------------------------"
22         /bin/true
25 post_upgrade() {
26         echo "Running OSS update script..."
27         /bin/sh /usr/lib/oss/build/install.sh &> /dev/null
28         echo
29         echo "-------------------------------------------------------------"
30         echo " Open Sound System was updated. Now you should restart the"
31         echo " daemon by running /etc/rc.d/oss restart."
32         echo
33         echo "${_MSG_LIBOSSDIR}"
34         echo "-------------------------------------------------------------"
35         /bin/true
38 pre_remove() {
39         # Restore any replaced ALSA drivers.
40         /bin/sh /usr/lib/oss/scripts/restore_drv.sh
41         # Remove symlinks left by the 'install.sh' script.
42         rm -f /usr/lib/hal/scripts/oss_usb-create-devices
43         rm -f /usr/share/hal/fdi/policy/20thirdparty/90-oss_usb-create-device.fdi
44         /bin/true
47 post_remove() {
48         echo
49         echo "-------------------------------------------------------------"
50         echo " Open Sound System was now removed, and the ALSA kernel"
51         echo " modules were restored."
52         echo
53         echo " Please note that OSS stores some of its configuration files"
54         echo " at /usr/lib/oss. If you don't plan to use OSS anymore, you"
55         echo " can remove this directory."
56         echo "-------------------------------------------------------------"
57         /bin/true