1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

o) Fix missing installation of sample and initial config files.

This commit is contained in:
Lars Koeller 2004-10-28 20:07:05 +00:00
parent a4e6989ec1
commit 7b6254ce1f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120422
2 changed files with 13 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= rplay
PORTVERSION= 3.3.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://rplay.doit.org/dist/
@ -37,6 +37,12 @@ post-install:
@${ECHO_MSG} "===> Installing ${PREFIX}/etc/rc.d/rplayd.sh"
@${ECHO_MSG} "===> startup file as ${PREFIX}/etc/rc.d/rplayd.sh.sample"
@${INSTALL_SCRIPT} -m 751 ${FILESDIR}/rplayd.sh ${PREFIX}/etc/rc.d/rplayd.sh.sample
for na in rplay.conf rplay.helpers rplay.servers rplay.hosts; do \
${CP} ${WRKSRC}/etc/$$na ${PREFIX}/etc/$$na.sample; \
if [ ! -f ${PREFIX}/etc/$$na ]; then \
${CP} ${WRKSRC}/etc/$$na ${PREFIX}/etc/$$na; \
fi; \
done
.if !exists(${PREFIX}/etc/rplay.hosts)
@${ECHO_CMD} localhost > ${PREFIX}/etc/rplay.hosts
.endif

View File

@ -1,7 +1,12 @@
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
@unexec if cmp %D/etc/rplay.conf.sample %D/etc/rplay.conf 2>/dev/null; then rm -f %D/etc/rplay.conf; fi
etc/rplay.conf.sample
@unexec if cmp %D/etc/rplay.helpers.sample %D/etc/rplay.helpers 2>/dev/null; then rm -f %D/etc/rplay.helpers; fi
etc/rplay.helpers.sample
@unexec if cmp %D/etc/rplay.servers.sample %D/etc/rplay.servers 2>/dev/null; then rm -f %D/etc/rplay.servers; fi
etc/rplay.servers.sample
bin/rplay
bin/rptp
sbin/rplayd