Allow building sudo without S/Key support on NetBSD. Patch from

PR pkg/28743 by Jukka Salmi with minor changes by me.
This commit is contained in:
jlam 2004-12-22 04:36:32 +00:00
parent c341e2b8fe
commit 02e7a05425
2 changed files with 13 additions and 9 deletions

View file

@ -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

View file

@ -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