summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorgrant <grant>2004-11-11 11:49:15 +0000
committergrant <grant>2004-11-11 11:49:15 +0000
commit93f24db9a97e862a1dc71c7f62e6c8af71d26a36 (patch)
tree3ce56998d9cac572a3b9ece65060fc893185ecde /security
parentb2c56a7ecb45f34c0689e2006851804a954bc3a8 (diff)
downloadpkgsrc-93f24db9a97e862a1dc71c7f62e6c8af71d26a36.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')
-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