summaryrefslogtreecommitdiff
path: root/net/jwhois
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-05-02 18:01:15 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-05-02 18:01:15 +0000
commit893f711e4b9435ed1dc94d0623344789316e5327 (patch)
tree562fa4ae557a00138af48cd0bdf4aa7395daebcf /net/jwhois
parenta450e21f4760a33acdf1cc3b06f31a2483414c1c (diff)
downloadpkgsrc-893f711e4b9435ed1dc94d0623344789316e5327.tar.gz
Only enable --with-cache if ENABLE_CACHE is defined, so by default
this option is disabled which could be causing troubles in some cases as reported Bill Squier in PR pkg/25413.
Diffstat (limited to 'net/jwhois')
-rw-r--r--net/jwhois/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile
index a7bdea36fed..bc7b61d6d43 100644
--- a/net/jwhois/Makefile
+++ b/net/jwhois/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/04/25 08:28:09 snj Exp $
+# $NetBSD: Makefile,v 1.36 2004/05/02 18:01:15 xtraeme Exp $
#
DISTNAME= jwhois-3.2.2
@@ -16,12 +16,17 @@ USE_PKGLOCALEDIR= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=/var/db
-CONFIGURE_ARGS+= --with-cache
LIBS.SunOS+= -lnsl -lsocket
INFO_FILES= jwhois.info
+BUILD_DEFS+= ENABLE_CACHE
+
+.if defined(ENABLE_CACHE)
+CONFIGURE_ARGS+= --with-cache
+.endif
+
EGDIR= ${PREFIX}/share/examples/jwhois
CONF_FILES= ${EGDIR}/jwhois.conf.default \
${PKG_SYSCONFDIR}/jwhois.conf