summaryrefslogtreecommitdiff
path: root/net/jwhois
diff options
context:
space:
mode:
authorkim <kim>2005-01-29 18:10:05 +0000
committerkim <kim>2005-01-29 18:10:05 +0000
commitd8732e328e14f30b805e687c86e500a1cc97a3e2 (patch)
treef3478412b2f219d9737244e60a96cdc6e7eac2cf /net/jwhois
parent75d313cdb4479215daf4b4b966053e05c566f473 (diff)
downloadpkgsrc-d8732e328e14f30b805e687c86e500a1cc97a3e2.tar.gz
Make JWHOIS_ENABLE_CACHE work: cache is enabled by default by the
configure script, so it must be explicitly disabled when not wanted. Using both "with" and "without" explicitly is good practise for any "--with-foo" option in general. Bump revision so this is easier to track in case of PR's.
Diffstat (limited to 'net/jwhois')
-rw-r--r--net/jwhois/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile
index 51ad2c62eb1..b5ebb4e2199 100644
--- a/net/jwhois/Makefile
+++ b/net/jwhois/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.48 2005/01/29 17:45:35 kim Exp $
+# $NetBSD: Makefile,v 1.49 2005/01/29 18:10:05 kim Exp $
#
DISTNAME= jwhois-3.2.2
-PKGREVISION= 13
+PKGREVISION= 14
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GNU:=jwhois/}
@@ -25,13 +25,16 @@ BUILD_DEFS+= JWHOIS_ENABLE_CACHE
.if defined(JWHOIS_ENABLE_CACHE)
CONFIGURE_ARGS+= --with-cache
+CONF_FILES_PERMS= /dev/null /${VARBASE}/db/jwhois.db \
+ ${ROOT_USER} nogroup 0666
+.else
+CONFIGURE_ARGS+= --without-cache
.endif
EGDIR= ${PREFIX}/share/examples/jwhois
CONF_FILES= ${EGDIR}/jwhois.conf.default \
${PKG_SYSCONFDIR}/jwhois.conf
-CONF_FILES_PERMS= /dev/null /var/db/jwhois.db \
- ${ROOT_USER} nogroup 0664
+
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/example/jwhois.conf \