aboutsummaryrefslogtreecommitdiffstats
path: root/net/trafshow3
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-10-30 06:27:34 +0800
committerjeh <jeh@FreeBSD.org>2000-10-30 06:27:34 +0800
commitf5695b0c87ad4db9f1a59e449d70c649e7953f90 (patch)
tree9896ddcf2bc0c7a823dc1bd7baa8b4856b9eccf9 /net/trafshow3
parentdff74080d79fa397259a3ab0ab59db2b17b1b910 (diff)
downloadfreebsd-ports-gnome-f5695b0c87ad4db9f1a59e449d70c649e7953f90.tar.gz
freebsd-ports-gnome-f5695b0c87ad4db9f1a59e449d70c649e7953f90.tar.zst
freebsd-ports-gnome-f5695b0c87ad4db9f1a59e449d70c649e7953f90.zip
Keep seperate ${PREFIX}/etc/trafshow and ${PREFIX}/etc/trafshow.dist files.
No response from the MAINTAINER in a month. PR: 21288 Submitted by: James E. Housley <jim@thehousleys.net> (me)
Diffstat (limited to 'net/trafshow3')
-rw-r--r--net/trafshow3/Makefile3
-rw-r--r--net/trafshow3/pkg-plist4
2 files changed, 5 insertions, 2 deletions
diff --git a/net/trafshow3/Makefile b/net/trafshow3/Makefile
index e6fc8b78ad04..367e6dd24d34 100644
--- a/net/trafshow3/Makefile
+++ b/net/trafshow3/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/trafshow3/pkg-plist b/net/trafshow3/pkg-plist
index 19aa4ae45565..00f2059110f7 100644
--- a/net/trafshow3/pkg-plist
+++ b/net/trafshow3/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