aboutsummaryrefslogtreecommitdiff
path: root/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2011-04-28 19:55:29 +0000
committerJuergen Lock <nox@FreeBSD.org>2011-04-28 19:55:29 +0000
commita6a5e1ef70985919fdb698b34b4d53880ab1886e (patch)
treeeab2b18e0f5fa32f1561820a9c7005dfd91ba439 /audio/linux-f10-alsa-plugins-oss/pkg-deinstall
parent4c1882bbe4d69a809a0a1b95cba2cdcde0687144 (diff)
downloadports-a6a5e1ef70985919fdb698b34b4d53880ab1886e.tar.gz
ports-a6a5e1ef70985919fdb698b34b4d53880ab1886e.zip
Notes
Diffstat (limited to 'audio/linux-f10-alsa-plugins-oss/pkg-deinstall')
-rw-r--r--audio/linux-f10-alsa-plugins-oss/pkg-deinstall16
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-deinstall b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
new file mode 100644
index 000000000000..22b3172b23f6
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+case "$2" in
+ POST-DEINSTALL)
+ conf=${PKG_PREFIX}/etc/asound.conf
+ if [ ! -f "$conf" ]; then
+ exit 1
+ fi
+ grep -v '/etc/alsa/pcm/pcm-oss\.conf' <$conf >/tmp/asound.conf.new
+ ;;
+ *)
+ exit 0
+ ;;
+esac
+
+exit 0