summaryrefslogtreecommitdiff
path: root/archivers/hpack
diff options
context:
space:
mode:
authorminskim <minskim>2004-07-27 22:07:19 +0000
committerminskim <minskim>2004-07-27 22:07:19 +0000
commitfaa4b97661678d5ed26213d5745a8478ae3602e9 (patch)
treef2e631e26d463989401fcda842c06be27823687f /archivers/hpack
parentce9acc8979340e8f9c205bc44520fe69b587deca (diff)
downloadpkgsrc-faa4b97661678d5ed26213d5745a8478ae3602e9.tar.gz
Use CONF_FILES to handle a configuration file.
Bump PKGREVISION.
Diffstat (limited to 'archivers/hpack')
-rw-r--r--archivers/hpack/Makefile10
-rw-r--r--archivers/hpack/PLIST4
2 files changed, 7 insertions, 7 deletions
diff --git a/archivers/hpack/Makefile b/archivers/hpack/Makefile
index bc3baf861c1..261361424c3 100644
--- a/archivers/hpack/Makefile
+++ b/archivers/hpack/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2004/06/09 16:17:47 minskim Exp $
+# $NetBSD: Makefile,v 1.20 2004/07/27 22:07:19 minskim Exp $
DISTNAME= hpack79src
PKGNAME= hpack-0.79
+PKGREVISION= 1
CATEGORIES= archivers
MASTER_SITES= ftp://src.doc.ic.ac.uk/packages/hpack/
@@ -10,6 +11,7 @@ COMMENT= Multi-System Archiver with open keys PGP-based security
WRKSRC= ${WRKDIR}
USE_BUILDLINK3= yes
+USE_PKGINSTALL= yes
CRYPTO= yes
@@ -30,6 +32,9 @@ MAKE_FLAGS+= CMDL="${LDFLAGS} -lcurses"
MAKE_FLAGS+= CMDL="${LDFLAGS} -ltermcap"
.endif
+CONF_FILES= ${PREFIX}/share/hpack/hpack.cfg.example \
+ ${PKG_SYSCONFDIR}/hpack.cfg
+
post-build:
@cd ${WRKSRC}/keycvt && ${MAKE} CFLAGS="-c -D__UNIX__ ${CFLAGS}" \
-f ${MAKEFILE} keycvt
@@ -43,8 +48,5 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/language.dat ${PREFIX}/share/hpack/
${INSTALL_DATA} ${WRKSRC}/docs/hpack.cfg ${PREFIX}/share/hpack/hpack.cfg.example
${INSTALL_DATA} ${WRKSRC}/docs/hpackext.doc ${PREFIX}/share/doc/hpack/
- @if [ ! -f ${PREFIX}/etc/hpack.cfg ]; then \
- ${CP} -p ${PREFIX}/share/hpack/hpack.cfg.example ${PREFIX}/etc/hpack.cfg; \
- fi
.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/hpack/PLIST b/archivers/hpack/PLIST
index 6b7b2343af2..5a67482a355 100644
--- a/archivers/hpack/PLIST
+++ b/archivers/hpack/PLIST
@@ -1,11 +1,9 @@
-@comment $NetBSD: PLIST,v 1.4 2004/06/09 16:17:47 minskim Exp $
+@comment $NetBSD: PLIST,v 1.5 2004/07/27 22:07:19 minskim Exp $
bin/hpack
bin/keycvt
man/man1/hpack.1
share/doc/hpack/hpackext.doc
-@unexec cmp -s %D/etc/hpack.cfg %D/share/hpack/hpack.cfg.example && ${RM} -f %D/etc/hpack.cfg || ${TRUE}
share/hpack/hpack.cfg.example
-@exec if [ ! %D/etc/hpack.cfg ]; then cp -p %F %D/etc/hpack.cfg; fi
share/hpack/language.dat
@dirrm share/doc/hpack
@dirrm share/hpack