aboutsummaryrefslogtreecommitdiff
path: root/audio/rplay
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2002-05-19 21:41:21 +0000
committerPete Fritchman <petef@FreeBSD.org>2002-05-19 21:41:21 +0000
commit1cfe1a79d14e2b3c4c293e99b6f70cf5a9566d77 (patch)
tree314db709719916111d734a8ed83e66e538de1486 /audio/rplay
parent295782276ee9ef6cc5235c9169743d0136a5e662 (diff)
downloadports-1cfe1a79d14e2b3c4c293e99b6f70cf5a9566d77.tar.gz
ports-1cfe1a79d14e2b3c4c293e99b6f70cf5a9566d77.zip
Notes
Diffstat (limited to 'audio/rplay')
-rw-r--r--audio/rplay/Makefile8
-rw-r--r--audio/rplay/pkg-plist6
2 files changed, 8 insertions, 6 deletions
diff --git a/audio/rplay/Makefile b/audio/rplay/Makefile
index 7783cced6190..5a69a2331140 100644
--- a/audio/rplay/Makefile
+++ b/audio/rplay/Makefile
@@ -32,12 +32,12 @@ post-install:
.for info in ${INFO_FILES}
@install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
.endfor
-.if !exists(${PREFIX}/etc/rc.d/rplayd.sh)
- @${ECHO} "===> Installing ${PREFIX}/etc/rc.d/rplayd.sh startup file"
- @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/rplayd.sh ${PREFIX}/etc/rc.d/rplayd.sh
-.endif
+ @${ECHO} "===> Installing ${PREFIX}/etc/rc.d/rplayd.sh"
+ @${ECHO} "===> startup file as ${PREFIX}/etc/rc.d/rplayd.sh.sample"
+ @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/rplayd.sh ${PREFIX}/etc/rc.d/rplayd.sh.sample
.if !exists(${PREFIX}/etc/rplay.hosts)
@${ECHO_CMD} localhost > ${PREFIX}/etc/rplay.hosts
.endif
+ @${ECHO_CMD} localhost > ${PREFIX}/etc/rplay.hosts.sample
.include <bsd.port.mk>
diff --git a/audio/rplay/pkg-plist b/audio/rplay/pkg-plist
index 814e2b244e60..425fb5cf3950 100644
--- a/audio/rplay/pkg-plist
+++ b/audio/rplay/pkg-plist
@@ -1,5 +1,7 @@
-etc/rc.d/rplayd.sh
-etc/rplay.hosts
+etc/rc.d/rplayd.sh.sample
+@unexec if cmp %D/etc/rplay.hosts.sample %D/etc/rplay.hosts 2>/dev/null; then rm -f %D/etc/rplay.hosts; fi
+etc/rplay.hosts.sample
+@exec if test ! -f %D/etc/rplay.hosts; then cp -p %D/etc/rplay.hosts.sample %D/etc/rplay.hosts; fi
bin/rplay
bin/rptp
sbin/rplayd