aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-08-14 08:27:34 +0800
committerleeym <leeym@FreeBSD.org>2003-08-14 08:27:34 +0800
commit8b9559114db82dd8929b2906d121dad4a92d1c8c (patch)
tree4cf0c0c2ca7e659a187343efa1932aa21205bf5f /sysutils
parent8d7a05f1744ef838760f2bd32b250ef9bb56bc9d (diff)
downloadfreebsd-ports-gnome-8b9559114db82dd8929b2906d121dad4a92d1c8c.tar.gz
freebsd-ports-gnome-8b9559114db82dd8929b2906d121dad4a92d1c8c.tar.zst
freebsd-ports-gnome-8b9559114db82dd8929b2906d121dad4a92d1c8c.zip
install configuration file.
bump PORTREVISION. PR: 55396 Reviewed by: Eric Anderson <eric@trinitel.com>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bsdsar/Makefile5
-rw-r--r--sysutils/bsdsar/pkg-plist8
2 files changed, 10 insertions, 3 deletions
diff --git a/sysutils/bsdsar/Makefile b/sysutils/bsdsar/Makefile
index e527853d8068..5d8f5a8b19b6 100644
--- a/sysutils/bsdsar/Makefile
+++ b/sysutils/bsdsar/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bsdsar
PORTVERSION= 1.10
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.googlebit.com/bsdsar/
@@ -19,6 +20,10 @@ do-install:
.for file in bsdsar bsdsar_gather
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/bsdsar.conf ${PREFIX}/etc/bsdsar.conf.sample
+.if !exists(${PREFIX}/etc/bsdsar.conf)
+ ${CP} ${PREFIX}/etc/bsdsar.conf.sample ${PREFIX}/etc/bsdsar.conf
+.endif
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
diff --git a/sysutils/bsdsar/pkg-plist b/sysutils/bsdsar/pkg-plist
index 624ccada7ad6..653d314fd354 100644
--- a/sysutils/bsdsar/pkg-plist
+++ b/sysutils/bsdsar/pkg-plist
@@ -1,5 +1,7 @@
bin/bsdsar
bin/bsdsar_gather
-%%PORTDOCS%%share/doc/bsdsar/CHANGELOG
-%%PORTDOCS%%share/doc/bsdsar/README
-%%PORTDOCS%%@dirrm share/doc/bsdsar
+@unexec if cmp -s %D/etc/bsdsar.conf %D/etc/bsdsar.conf.sample; then rm -f %D/etc/bsdsar.conf; fi
+etc/bsdsar.conf.sample
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%