summaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-06-17 10:55:03 +0000
committerolgeni <olgeni@FreeBSD.org>2001-06-17 10:55:03 +0000
commit6160d91d2d29d997004991b1686bafe5fbb79fca (patch)
treea4248b7c872e46e4afad726533c98cb032b5f18b /archivers
parenta61cd7d17cce36c2cea36be6593362d3a4adbf13 (diff)
downloadFreeBSD-ports-6160d91d2d29d997004991b1686bafe5fbb79fca.zip
FreeBSD-ports-6160d91d2d29d997004991b1686bafe5fbb79fca.tar.gz
Add management for etc/hpack.cfg.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/hpack.non-usa.only/Makefile3
-rw-r--r--archivers/hpack.non-usa.only/pkg-plist4
2 files changed, 6 insertions, 1 deletions
diff --git a/archivers/hpack.non-usa.only/Makefile b/archivers/hpack.non-usa.only/Makefile
index 4f4909b..39407ff 100644
--- a/archivers/hpack.non-usa.only/Makefile
+++ b/archivers/hpack.non-usa.only/Makefile
@@ -24,4 +24,7 @@ post-patch:
@${PERL} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/${f}
.endfor
+post-install:
+ @${CP} ${WRKSRC}/docs/hpack.cfg ${PREFIX}/etc/hpack.cfg.dist
+
.include <bsd.port.mk>
diff --git a/archivers/hpack.non-usa.only/pkg-plist b/archivers/hpack.non-usa.only/pkg-plist
index 16f5527..23ba605 100644
--- a/archivers/hpack.non-usa.only/pkg-plist
+++ b/archivers/hpack.non-usa.only/pkg-plist
@@ -1,5 +1,7 @@
bin/hpack
bin/keycvt
-etc/hpack.cfg
+@unexec if cmp -s %D/etc/hpack.cfg %D/etc/hpack.cfg.dist; then rm -f %D/etc/hpack.cfg; fi
+etc/hpack.cfg.dist
+@exec [ -f %B/hpack.cfg ] || cp %B/%f %B/hpack.cfg
lib/hpack/language.dat
@dirrm lib/hpack
OpenPOWER on IntegriCloud