summaryrefslogtreecommitdiff
path: root/net/jwhois
diff options
context:
space:
mode:
authoragc <agc>2005-10-03 21:18:55 +0000
committeragc <agc>2005-10-03 21:18:55 +0000
commitdf9ab3d315a2a46971f49a319e00959f3eb6945c (patch)
treebcac4103d18db2664a7d30bf91ecb0bb5e311b22 /net/jwhois
parentbd97d0f12a98320d0c201edb2468401d88daf74a (diff)
downloadpkgsrc-df9ab3d315a2a46971f49a319e00959f3eb6945c.tar.gz
Move jwhois to the package options framework.
With thanks to Thomas Klausner for clueing me in - all mistakes are mine.
Diffstat (limited to 'net/jwhois')
-rw-r--r--net/jwhois/Makefile12
-rw-r--r--net/jwhois/options.mk15
2 files changed, 17 insertions, 10 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile
index 34e6402a6e2..6293067067d 100644
--- a/net/jwhois/Makefile
+++ b/net/jwhois/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2005/05/24 07:43:07 kleink Exp $
+# $NetBSD: Makefile,v 1.55 2005/10/03 21:18:55 agc Exp $
#
DISTNAME= jwhois-3.2.2
@@ -20,15 +20,7 @@ LIBS.SunOS+= -lnsl -lsocket
INFO_FILES= jwhois.info
-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
+.include "options.mk"
EGDIR= ${PREFIX}/share/examples/jwhois
CONF_FILES= ${EGDIR}/jwhois.conf.default \
diff --git a/net/jwhois/options.mk b/net/jwhois/options.mk
new file mode 100644
index 00000000000..8ef16aa3839
--- /dev/null
+++ b/net/jwhois/options.mk
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2005/10/03 21:18:55 agc Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.jwhois
+PKG_SUPPORTED_OPTIONS= jwhois-enable-cache
+PKG_OPTIONS_LEGACY_VARS=JWHOIS_ENABLE_CACHE:jwhois-enable-cache
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mjwhois-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