mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
o) Fix missing installation of sample and initial config files.
This commit is contained in:
parent
a4e6989ec1
commit
7b6254ce1f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120422
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user