aboutsummaryrefslogtreecommitdiffstats
path: root/audio/rplay
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-05-20 05:41:21 +0800
committerpetef <petef@FreeBSD.org>2002-05-20 05:41:21 +0800
commit6016aec59020fd1e0a55b5f5dd5a372135e262a7 (patch)
tree0fe9b96b57a2e0a7258950b001985a3b1644725d /audio/rplay
parentfb79f464971aa93166afa8aaa0ee6ed91ffe6353 (diff)
downloadfreebsd-ports-gnome-6016aec59020fd1e0a55b5f5dd5a372135e262a7.tar.gz
freebsd-ports-gnome-6016aec59020fd1e0a55b5f5dd5a372135e262a7.tar.zst
freebsd-ports-gnome-6016aec59020fd1e0a55b5f5dd5a372135e262a7.zip
- install rplayd.sh as rplayd.sh.sample
- better config file management PR: 35634 Submitted by: Alan Eldridge <ports@geeksrus.net>
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