summaryrefslogtreecommitdiffstats
path: root/multimedia/tunapie
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-10-21 09:57:46 +0000
committermiwi <miwi@FreeBSD.org>2006-10-21 09:57:46 +0000
commit9e6c7a71f09ccb4037945e305f382d9dc0fdf027 (patch)
tree0d78a4ee685cd9f600e6e74563cae27fd85c1178 /multimedia/tunapie
parent3c9744d1f798ca5b4cd59b0b3c2c18cfdddccbf4 (diff)
downloadFreeBSD-ports-9e6c7a71f09ccb4037945e305f382d9dc0fdf027.zip
FreeBSD-ports-9e6c7a71f09ccb4037945e305f382d9dc0fdf027.tar.gz
- Fix pkg-plist
- Bump Portrevision Submitted by: Pointyhat via kris Approved by: portmgr (erwin), maintainer
Diffstat (limited to 'multimedia/tunapie')
-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 639c64d..8925d45 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 1c4c4e4..ec9f9df 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 0000000..21c337f
--- /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 fc1c9ad..58b7e3a 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
OpenPOWER on IntegriCloud