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
commit0ab33cb37ebaa799172df0f5632b5520dbd1a381 (patch)
tree3ce56998d9cac572a3b9ece65060fc893185ecde /security/ipsec-tools
parente41b6bc56480278d2f735be78ea1f7a27a0a607d (diff)
downloadpkgsrc-0ab33cb37ebaa799172df0f5632b5520dbd1a381.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