summaryrefslogtreecommitdiff
path: root/security/ipsec-tools
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-11-11 11:49:15 +0000
committergrant <grant@pkgsrc.org>2004-11-11 11:49:15 +0000
commit4a59de253017891c7780057379c0ea2fccfe7382 (patch)
tree3ce56998d9cac572a3b9ece65060fc893185ecde /security/ipsec-tools
parent4f1a3d93e9e836b694121dde294fe76bc0bb0225 (diff)
downloadpkgsrc-4a59de253017891c7780057379c0ea2fccfe7382.tar.gz
allow radius support to be disabled by moving it to PKG_OPTIONS.
no PKGREVISION bump as it is still enabled by default.
Diffstat (limited to 'security/ipsec-tools')
-rw-r--r--security/ipsec-tools/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/security/ipsec-tools/Makefile b/security/ipsec-tools/Makefile
index 9cfece732bf..a07d6a484b0 100644
--- a/security/ipsec-tools/Makefile
+++ b/security/ipsec-tools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2004/11/11 10:53:08 manu Exp $
+# $NetBSD: Makefile,v 1.7 2004/11/11 11:49:15 grant Exp $
#
DISTNAME= ipsec-tools-0.5.pre20041109
@@ -15,7 +15,17 @@ USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-libradius --enable-frag --enable-hybrid
+PKG_OPTIONS_VAR= PKG_OPTIONS.ipsec-tools
+PKG_DEFAULT_OPTIONS+= radius
+PKG_SUPPORTED_OPTIONS+= radius
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mradius)
+CONFIGURE_ARGS+= --with-libradius
+.endif
+
+CONFIGURE_ARGS+= --enable-frag --enable-hybrid
# Require a kernel patch not integrated yet (IPR problem)
#CONFIGURE_ARGS+= --enable-natt