1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

Use @sample pkg-plist macro.

This commit is contained in:
Emanuel Haupt 2014-04-16 14:50:18 +00:00
parent 28f065c2eb
commit d9e5a4ff8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351390
2 changed files with 3 additions and 4 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= cvsspam
PORTVERSION= 0.2.12
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.badgers-in-foil.co.uk/projects/cvsspam/releases/ \
CRITICAL
@ -34,7 +35,7 @@ do-install:
${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
.endfor
${INSTALL_DATA} ${WRKSRC}/cvsspam.conf \
${STAGEDIR}${PREFIX}/etc/cvsspam.conf.default
${STAGEDIR}${PREFIX}/etc/cvsspam.conf.sample
.if !exists(${STAGEDIR}${PREFIX}/etc/cvsspam.conf)
${INSTALL_DATA} ${WRKSRC}/cvsspam.conf \
${STAGEDIR}${PREFIX}/etc/cvsspam.conf

View File

@ -1,6 +1,4 @@
@unexec if cmp -s %D/etc/cvsspam.conf %D/etc/cvsspam.conf.default; then rm -f %D/etc/cvsspam.conf; fi
etc/cvsspam.conf.default
@exec [ -f %B/cvsspam.conf ] || cp %B/%f %B/cvsspam.conf
@sample etc/cvsspam.conf.sample
libexec/cvsspam/collect_diffs.rb
libexec/cvsspam/cvsspam.rb
libexec/cvsspam/record_lastdir.rb