pkgsrc-wip/sudo/options.mk
Matthias Rampke 025b3869b4 Import sudo-1.8.3p2 as wip/sudo.
This is an update of sudo to the current stable branch (1.8).
I have not tested the various options and I have omitted some
additional Kerberos 5 related configure checks that were being
patched in before, mainly because I didn't understand them
well enough to put them into the new configure.
2012-02-02 23:54:18 +00:00

44 lines
1.1 KiB
Makefile

# $NetBSD: options.mk,v 1.1.1.1 2012/02/02 23:54:18 mrampke Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.sudo
PKG_SUPPORTED_OPTIONS= ldap
PKG_OPTIONS_OPTIONAL_GROUPS= auth
PKG_OPTIONS_GROUP.auth= kerberos pam skey
.if ${OPSYS} == "NetBSD" && exists(/usr/include/skey.h)
PKG_SUGGESTED_OPTIONS= skey
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
DL_AUTO_VARS= yes
CONFIGURE_ARGS+= --with-pam
.else
CONFIGURE_ARGS+= --without-pam
.endif
.if !empty(PKG_OPTIONS:Mkerberos)
. include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+= --without-kerb4
CONFIGURE_ARGS+= --with-kerb5
.else
CONFIGURE_ARGS+= --without-kerb5
.endif
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap-client/buildlink3.mk"
. include "../../security/cyrus-sasl/buildlink3.mk"
DL_AUTO_VARS= yes
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/ldap.conf
PLIST.ldap= yes
.endif
.if !empty(PKG_OPTIONS:Mskey)
CONFIGURE_ARGS+= --with-skey
.else
CONFIGURE_ARGS+= --without-skey
.endif