aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-10-21 17:57:46 +0800
committermiwi <miwi@FreeBSD.org>2006-10-21 17:57:46 +0800
commit9e6c7a71f09ccb4037945e305f382d9dc0fdf027 (patch)
tree0d78a4ee685cd9f600e6e74563cae27fd85c1178 /multimedia
parent3c9744d1f798ca5b4cd59b0b3c2c18cfdddccbf4 (diff)
downloadfreebsd-ports-graphics-9e6c7a71f09ccb4037945e305f382d9dc0fdf027.tar.gz
freebsd-ports-graphics-9e6c7a71f09ccb4037945e305f382d9dc0fdf027.tar.zst
freebsd-ports-graphics-9e6c7a71f09ccb4037945e305f382d9dc0fdf027.zip
- Fix pkg-plist
- Bump Portrevision Submitted by: Pointyhat via kris Approved by: portmgr (erwin), maintainer
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/tunapie/Makefile1
-rw-r--r--multimedia/tunapie/files/patch-install.sh12
-rw-r--r--multimedia/tunapie/files/patch-src-tuner.py11
-rw-r--r--multimedia/tunapie/pkg-plist3
4 files changed, 23 insertions, 4 deletions
diff --git a/multimedia/tunapie/Makefile b/multimedia/tunapie/Makefile
index 639c64dbbaa..8925d45db67 100644
--- a/multimedia/tunapie/Makefile
+++ b/multimedia/tunapie/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tunapie
PORTVERSION= 1.1.1
+PORTREVISION= 1
CATEGORIES= multimedia audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/multimedia/tunapie/files/patch-install.sh b/multimedia/tunapie/files/patch-install.sh
index 1c4c4e4ee38..ec9f9df54d0 100644
--- a/multimedia/tunapie/files/patch-install.sh
+++ b/multimedia/tunapie/files/patch-install.sh
@@ -1,7 +1,11 @@
---- install.sh Thu Aug 17 09:17:10 2006
-+++ install.sh.port Sun Sep 3 17:24:54 2006
-@@ -3,9 +3,7 @@
- else cp src/tunersafe.py src/tuner.py
+--- install.sh Sat Sep 30 01:02:29 2006
++++ install.sh.port Wed Oct 18 14:18:49 2006
+@@ -1,11 +1,9 @@
+ #!/bin/sh
+-if [ "$1" = "--adult" ]; then echo '1'>/etc/tunapie.config
+-else echo '0'>/etc/tunapie.config
++if [ "$1" = "--adult" ]; then echo '1'>%%PREFIX%%/etc/tunapie.config.default
++else echo '0'>%%PREFIX%%/etc/tunapie.config.default
fi
python src/compile
-cp tunapie /usr/local/bin
diff --git a/multimedia/tunapie/files/patch-src-tuner.py b/multimedia/tunapie/files/patch-src-tuner.py
new file mode 100644
index 00000000000..21c337f1763
--- /dev/null
+++ b/multimedia/tunapie/files/patch-src-tuner.py
@@ -0,0 +1,11 @@
+--- src/tuner.py Sat Sep 30 01:02:41 2006
++++ src/tuner.py.port Wed Oct 18 14:19:58 2006
+@@ -298,7 +298,7 @@
+ return process
+
+ def adultset():
+- try: adultconfig=open('/etc/tunapie.config')
++ try: adultconfig=open('%%PREFIX%%/etc/tunapie.config')
+ except IOError: return 0
+ setadult=adultconfig.readline()
+ return int(setadult)
diff --git a/multimedia/tunapie/pkg-plist b/multimedia/tunapie/pkg-plist
index fc1c9ad2a90..58b7e3aa1fb 100644
--- a/multimedia/tunapie/pkg-plist
+++ b/multimedia/tunapie/pkg-plist
@@ -1,5 +1,8 @@
@comment $FreeBSD$
bin/tunapie
+@unexec if cmp -s %D/etc/tunapie.config %D/etc/tunapie.config.default; then rm -f %D/etc/tunapie.config; fi
+etc/tunapie.config.default
+@exec [ -f %B/tunapie.config ] || cp %B/%f %B/tunapie.config
%%DATADIR%%/AboutTuner.py
%%DATADIR%%/AboutTuner.pyc
%%DATADIR%%/RecordQueue.py