aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2007-10-11 02:07:11 +0800
committerjkim <jkim@FreeBSD.org>2007-10-11 02:07:11 +0800
commiteb03fe2bc2cec6a6ec88f71f7a7d07f4e351624e (patch)
tree02b84f755f8bc0490fe24c018e250e77d4de1dfb
parent7b381b1f90b2b6a78917bf0c15ae7e1f9bd96663 (diff)
downloadfreebsd-ports-gnome-eb03fe2bc2cec6a6ec88f71f7a7d07f4e351624e.tar.gz
freebsd-ports-gnome-eb03fe2bc2cec6a6ec88f71f7a7d07f4e351624e.tar.zst
freebsd-ports-gnome-eb03fe2bc2cec6a6ec88f71f7a7d07f4e351624e.zip
Move userdefs creation from install.sh to post-install.
Reported by: Christophe Cap (christophe dot cap at gmail dot com) Approved by: glewis (mentor)
-rw-r--r--audio/oss/files/patch-setup-FreeBSD-oss-build-install.sh16
-rw-r--r--audio/oss/files/pkg-install.in3
2 files changed, 13 insertions, 6 deletions
diff --git a/audio/oss/files/patch-setup-FreeBSD-oss-build-install.sh b/audio/oss/files/patch-setup-FreeBSD-oss-build-install.sh
index cfb583859afd..8209cd82e239 100644
--- a/audio/oss/files/patch-setup-FreeBSD-oss-build-install.sh
+++ b/audio/oss/files/patch-setup-FreeBSD-oss-build-install.sh
@@ -1,5 +1,5 @@
---- setup/FreeBSD/oss/build/install.sh.orig Thu Jan 11 23:48:14 2007
-+++ setup/FreeBSD/oss/build/install.sh Fri Jun 22 15:15:32 2007
+--- setup/FreeBSD/oss/build/install.sh.orig 2007-07-18 19:21:12.000000000 -0400
++++ setup/FreeBSD/oss/build/install.sh 2007-10-09 19:51:09.000000000 -0400
@@ -1,11 +1,6 @@
#!/bin/sh
@@ -13,11 +13,10 @@
rm -f osscore_mainline.o
ln -s osscore.lib osscore_mainline.o
-@@ -58,13 +53,5 @@
- make clean > /dev/null 2>&1
+@@ -59,17 +54,4 @@
rm -f Makefile
done
--
+
-if ! test -f $OSSLIBDIR/etc/installed_drivers
-then
- echo "-----------------------------"
@@ -25,5 +24,10 @@
- echo "-----------------------------"
- echo ""
-fi
-
+-
+-if test ! -f $OSSLIBDIR/etc/userdefs
+-then
+- echo "autosave_mixer yes" > $OSSLIBDIR/etc/userdefs
+-fi
+-
exit 0
diff --git a/audio/oss/files/pkg-install.in b/audio/oss/files/pkg-install.in
index 0da7a60ba40f..c816e101c77e 100644
--- a/audio/oss/files/pkg-install.in
+++ b/audio/oss/files/pkg-install.in
@@ -5,4 +5,7 @@ POST-INSTALL)
if ! test -f ${PKG_PREFIX}/lib/oss/etc/installed_drivers; then
${PKG_PREFIX}/sbin/ossdetect -v
fi
+ if ! test -f ${PKG_PREFIX}/lib/oss/etc/userdefs; then
+ echo "autosave_mixer yes" > ${PKG_PREFIX}/lib/oss/etc/userdefs
+ fi
esac