From 0b9f02055c915084a41f96a868d760bb6ff071b6 Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 3 Oct 2005 21:18:55 +0000 Subject: Move jwhois to the package options framework. With thanks to Thomas Klausner for clueing me in - all mistakes are mine. --- net/jwhois/Makefile | 12 ++---------- net/jwhois/options.mk | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 net/jwhois/options.mk (limited to 'net') 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 -- cgit v1.2.3