summaryrefslogtreecommitdiff
path: root/sysutils/bsdsar
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-08-14 00:27:34 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-08-14 00:27:34 +0000
commitf348c4980294aa086df90bd1adec89088311949e (patch)
tree5dc9ec7ca101efd081a0a6eb331588f1f75f11b8 /sysutils/bsdsar
parentUpdate to 2.0.3. (diff)
install configuration file.
bump PORTREVISION. PR: 55396 Reviewed by: Eric Anderson <eric@trinitel.com>
Diffstat (limited to 'sysutils/bsdsar')
-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%%