diff --git a/archivers/hpack.non-usa.only/Makefile b/archivers/hpack.non-usa.only/Makefile index 4f4909bd8060..39407ff2ca57 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 diff --git a/archivers/hpack.non-usa.only/pkg-plist b/archivers/hpack.non-usa.only/pkg-plist index 16f55279bc8a..23ba60597027 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