diff options
author | James E. Housley <jeh@FreeBSD.org> | 2000-10-29 22:27:34 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2000-10-29 22:27:34 +0000 |
commit | f59493eb93d706623271a01a23be1651991354ab (patch) | |
tree | 25e52eae2eef32a613bb27cb168e07d1150afc61 /net/trafshow4 | |
parent | It's a perl module to access gtkxmhtml library. (diff) |
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)
Notes
Notes:
svn path=/head/; revision=34421
Diffstat (limited to 'net/trafshow4')
-rw-r--r-- | net/trafshow4/Makefile | 3 | ||||
-rw-r--r-- | net/trafshow4/pkg-plist | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/net/trafshow4/Makefile b/net/trafshow4/Makefile index e6fc8b78ad04..367e6dd24d34 100644 --- a/net/trafshow4/Makefile +++ b/net/trafshow4/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/trafshow4/pkg-plist b/net/trafshow4/pkg-plist index 19aa4ae45565..00f2059110f7 100644 --- a/net/trafshow4/pkg-plist +++ b/net/trafshow4/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 |