pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/hpack Use CONF_FILES to handle a configurati...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/683036a1ee50
branches:  trunk
changeset: 478649:683036a1ee50
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Jul 27 22:07:19 2004 +0000

description:
Use CONF_FILES to handle a configuration file.

Bump PKGREVISION.

diffstat:

 archivers/hpack/Makefile |  10 ++++++----
 archivers/hpack/PLIST    |   4 +---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r b99f74f06e92 -r 683036a1ee50 archivers/hpack/Makefile
--- a/archivers/hpack/Makefile  Tue Jul 27 19:46:54 2004 +0000
+++ b/archivers/hpack/Makefile  Tue Jul 27 22:07:19 2004 +0000
@@ -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 @@
 
 WRKSRC=                ${WRKDIR}
 USE_BUILDLINK3=        yes
+USE_PKGINSTALL=        yes
 
 CRYPTO=                yes
 
@@ -30,6 +32,9 @@
 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 @@
        ${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 -r b99f74f06e92 -r 683036a1ee50 archivers/hpack/PLIST
--- a/archivers/hpack/PLIST     Tue Jul 27 19:46:54 2004 +0000
+++ b/archivers/hpack/PLIST     Tue Jul 27 22:07:19 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index