summaryrefslogtreecommitdiff
path: root/net/jwhois/Makefile
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2005-01-29 18:10:05 +0000
committerkim <kim@pkgsrc.org>2005-01-29 18:10:05 +0000
commitb0578ebd1874e670f351119deeb758d5dfbc4d1e (patch)
treef3478412b2f219d9737244e60a96cdc6e7eac2cf /net/jwhois/Makefile
parentfed50cf0a8c713e6a54d9493eeb6d5bf473fcd26 (diff)
downloadpkgsrc-b0578ebd1874e670f351119deeb758d5dfbc4d1e.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/Makefile')
-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 \