aboutsummaryrefslogtreecommitdiff
path: root/net/trafshow
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-10-29 22:27:34 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-10-29 22:27:34 +0000
commitf59493eb93d706623271a01a23be1651991354ab (patch)
tree25e52eae2eef32a613bb27cb168e07d1150afc61 /net/trafshow
parentbc41cbc985b638ad1c47c7ee196b7a2c98c9283f (diff)
downloadports-f59493eb93d706623271a01a23be1651991354ab.tar.gz
ports-f59493eb93d706623271a01a23be1651991354ab.zip
Notes
Diffstat (limited to 'net/trafshow')
-rw-r--r--net/trafshow/Makefile3
-rw-r--r--net/trafshow/pkg-plist4
2 files changed, 5 insertions, 2 deletions
diff --git a/net/trafshow/Makefile b/net/trafshow/Makefile
index e6fc8b78ad04..367e6dd24d34 100644
--- a/net/trafshow/Makefile
+++ b/net/trafshow/Makefile
@@ -31,6 +31,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
- ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
+ ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow.dist
+ ${CP} ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow
.include <bsd.port.post.mk>
diff --git a/net/trafshow/pkg-plist b/net/trafshow/pkg-plist
index 19aa4ae45565..00f2059110f7 100644
--- a/net/trafshow/pkg-plist
+++ b/net/trafshow/pkg-plist
@@ -1,2 +1,4 @@
bin/trafshow
-etc/trafshow
+@unexec if cmp -s %D/etc/trafshow %D/etc/trafshow.dist; then rm -f %D/etc/trafshow; fi
+etc/trafshow.dist
+@exec if [ ! -f %D/etc/trafshow.dist ]; then cp -p %D/%F %B/trafshow.dist; fi