summaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-12-22 04:36:32 +0000
committerjlam <jlam@pkgsrc.org>2004-12-22 04:36:32 +0000
commit02e7a05425bea55caa102458003ca3fab994548b (patch)
tree4eecd59f6c041714e814c678b4da5d5127f8d633 /security/sudo
parentc341e2b8fe2eacd45fed8af3b08d8a70390c4ab3 (diff)
downloadpkgsrc-02e7a05425bea55caa102458003ca3fab994548b.tar.gz
Allow building sudo without S/Key support on NetBSD. Patch from
PR pkg/28743 by Jukka Salmi with minor changes by me.
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile8
-rw-r--r--security/sudo/options.mk14
2 files changed, 13 insertions, 9 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 0bbcb1eb719..4df8ffa9546 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2004/11/30 00:27:10 xtraeme Exp $
+# $NetBSD: Makefile,v 1.76 2004/12/22 04:36:32 jlam Exp $
#
DISTNAME= sudo-1.6.8p5
@@ -28,12 +28,6 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-root-mailer --disable-setreuid
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
-.if ${OPSYS} == "NetBSD"
-CONFIGURE_ARGS+= --with-skey
-.elif ${OPSYS} == "SunOS"
-CONFIGURE_ARGS+= --without-skey
-.endif
-
.include "options.mk"
CONFIGURE_ARGS+= --with-nbsdops --disable-path-info
diff --git a/security/sudo/options.mk b/security/sudo/options.mk
index d42630b118c..b211b6d5ff0 100644
--- a/security/sudo/options.mk
+++ b/security/sudo/options.mk
@@ -1,8 +1,12 @@
-# $NetBSD: options.mk,v 1.5 2004/12/22 03:59:10 jlam Exp $
+# $NetBSD: options.mk,v 1.6 2004/12/22 04:36:33 jlam Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.sudo
-PKG_SUPPORTED_OPTIONS= PAM kerberos ldap
+PKG_SUPPORTED_OPTIONS= PAM kerberos ldap skey
+.if ${OPSYS} == "NetBSD"
+PKG_DEFAULT_OPTIONS+= skey
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:MPAM)
@@ -25,3 +29,9 @@ DL_AUTO_VARS= yes
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap}
CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/ldap.conf
.endif
+
+.if !empty(PKG_OPTIONS:Mskey)
+CONFIGURE_ARGS+= --with-skey
+.else
+CONFIGURE_ARGS+= --without-skey
+.endif