diff options
author | agc <agc@pkgsrc.org> | 2005-10-03 21:18:55 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2005-10-03 21:18:55 +0000 |
commit | 0b9f02055c915084a41f96a868d760bb6ff071b6 (patch) | |
tree | bcac4103d18db2664a7d30bf91ecb0bb5e311b22 /net | |
parent | aad4c50ea73dda4ba1d9a3869b76d9c118077363 (diff) | |
download | pkgsrc-0b9f02055c915084a41f96a868d760bb6ff071b6.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')
-rw-r--r-- | net/jwhois/Makefile | 12 | ||||
-rw-r--r-- | net/jwhois/options.mk | 15 |
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 |