freebsd-ports/audio/oss/files/patch-setup-FreeBSD-sbin-soundon
2011-01-06 19:52:07 +00:00

66 lines
1.6 KiB
Text

--- setup/FreeBSD/sbin/soundon.orig 2011-01-04 20:33:08.000000000 -0500
+++ setup/FreeBSD/sbin/soundon 2011-01-06 14:48:55.000000000 -0500
@@ -1,10 +1,10 @@
#!/bin/sh
-if test -f /etc/oss.conf
+if test -f %%PREFIX%%/etc/oss.conf
then
- . /etc/oss.conf
+ . %%PREFIX%%/etc/oss.conf
else
- OSSLIBDIR=/usr/lib/oss
+ OSSLIBDIR=%%PREFIX%%/lib/oss
fi
LOG=/var/log/soundon.log
@@ -29,7 +29,7 @@
if test -f $OSSLIBDIR/etc/license.asc
then
- /usr/sbin/ossdetect -l >> $LOG
+ %%PREFIX%%/sbin/ossdetect -l >> $LOG
fi
OPTIONS=
@@ -70,7 +70,7 @@
done
echo "+++ ossinfo -v3 +++" >> $LOG
-/usr/bin/ossinfo -v3 >> $LOG 2>&1
+%%PREFIX%%/bin/ossinfo -v3 >> $LOG 2>&1
echo "+++ /dev/sndstat +++" >> $LOG
cat /dev/sndstat >> $LOG 2>&1
echo "+++ dmesg +++" >> $LOG
@@ -85,11 +85,11 @@
sh $OSSLIBDIR/etc/legacy_devices >> $LOG 2>&1
fi
-/usr/sbin/ossdevlinks -v >> $LOG 2>&1
+%%PREFIX%%/sbin/ossdevlinks -v >> $LOG 2>&1
ls -l /dev/dsp* /dev/sndstat /dev/mixer* /dev/oss/*/* >> $LOG 2>&1
-/usr/sbin/savemixer -L -v >> $LOG 2>&1
+%%PREFIX%%/sbin/savemixer -L -v >> $LOG 2>&1
if test -x $OSSLIBDIR/soundon.user
then
@@ -97,7 +97,7 @@
$OSSLIBDIR/soundon.user >> $LOG 2>&1
fi
-if test "`ossinfo -g|grep TRIAL` " != " "
+if test "`%%PREFIX%%/bin/ossinfo -g|grep TRIAL` " != " "
then
echo
echo "************************************************************"
@@ -108,7 +108,7 @@
sleep 1
fi
-if test "`ossinfo -g|grep EXPIRED` " != " "
+if test "`%%PREFIX%%/bin/ossinfo -g|grep EXPIRED` " != " "
then
echo
echo "****************************************************************"