head	1.3;
access;
symbols
	pkgsrc-2013Q2:1.3.0.48
	pkgsrc-2013Q2-base:1.3
	pkgsrc-2012Q4:1.3.0.46
	pkgsrc-2012Q4-base:1.3
	pkgsrc-2011Q4:1.3.0.44
	pkgsrc-2011Q4-base:1.3
	pkgsrc-2011Q2:1.3.0.42
	pkgsrc-2011Q2-base:1.3
	pkgsrc-2009Q4:1.3.0.40
	pkgsrc-2009Q4-base:1.3
	pkgsrc-2008Q4:1.3.0.38
	pkgsrc-2008Q4-base:1.3
	pkgsrc-2008Q3:1.3.0.36
	pkgsrc-2008Q3-base:1.3
	cube-native-xorg:1.3.0.34
	cube-native-xorg-base:1.3
	pkgsrc-2008Q2:1.3.0.32
	pkgsrc-2008Q2-base:1.3
	pkgsrc-2008Q1:1.3.0.30
	pkgsrc-2008Q1-base:1.3
	pkgsrc-2007Q4:1.3.0.28
	pkgsrc-2007Q4-base:1.3
	pkgsrc-2007Q3:1.3.0.26
	pkgsrc-2007Q3-base:1.3
	pkgsrc-2007Q2:1.3.0.24
	pkgsrc-2007Q2-base:1.3
	pkgsrc-2007Q1:1.3.0.22
	pkgsrc-2007Q1-base:1.3
	pkgsrc-2006Q4:1.3.0.20
	pkgsrc-2006Q4-base:1.3
	pkgsrc-2006Q3:1.3.0.18
	pkgsrc-2006Q3-base:1.3
	pkgsrc-2006Q2:1.3.0.16
	pkgsrc-2006Q2-base:1.3
	pkgsrc-2006Q1:1.3.0.14
	pkgsrc-2006Q1-base:1.3
	pkgsrc-2005Q4:1.3.0.12
	pkgsrc-2005Q4-base:1.3
	pkgsrc-2005Q3:1.3.0.10
	pkgsrc-2005Q3-base:1.3
	pkgsrc-2005Q2:1.3.0.8
	pkgsrc-2005Q2-base:1.3
	pkgsrc-2005Q1:1.3.0.6
	pkgsrc-2005Q1-base:1.3
	pkgsrc-2004Q4:1.3.0.4
	pkgsrc-2004Q4-base:1.3
	pkgsrc-2004Q3:1.3.0.2
	pkgsrc-2004Q3-base:1.3;
locks; strict;
comment	@# @;


1.3
date	2004.08.05.03.04.34;	author jlam;	state dead;
branches;
next	1.2;

1.2
date	2004.08.01.19.43.45;	author jlam;	state Exp;
branches;
next	1.1;

1.1
date	2004.07.30.21.05.42;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Rename Makefile.options to options.mk in the packages that I maintain.
This follows the example of the mail/dovecot package, as suggested by
<schmonz>.
@
text
@# $NetBSD: Makefile.options,v 1.2 2004/08/01 19:43:45 jlam Exp $

# Global and legacy options
.if defined(KERBEROS) || defined(USE_PAM) || defined(USE_OPENLDAP) || \
    defined(SASL_USE_GSSAPI)
.  if !defined(PKG_OPTIONS.cyrus-saslauthd)
.    if defined(KERBEROS)
PKG_OPTIONS.cyrus-saslauthd+=	kerberos
.    endif
.    if defined(USE_PAM) && !empty(USE_PAM:M[yY][eE][sS])
PKG_OPTIONS.cyrus-saslauthd+=	PAM
.    endif
.    if defined(USE_OPENLDAP) && !empty(USE_OPENLDAP:M[yY][eE][sS])
PKG_OPTIONS.cyrus-saslauthd+=	ldap
.    endif
.    if defined(SASL_USE_GSSAPI) && !empty(SASL_USE_GSSAPI:M[yY][eE][sS])
PKG_OPTIONS.cyrus-saslauthd+=	gssapi
.    endif
.  endif
.endif

PKG_OPTIONS_VAR=	PKG_OPTIONS.cyrus-saslauthd
PKG_SUPPORTED_OPTIONS=	PAM kerberos ldap gssapi
.include "../../mk/bsd.options.mk"

###
### PAM (Pluggable Authentication Mechanism)
###
.if !empty(PKG_OPTIONS:MPAM)
.  include "../../security/PAM/buildlink3.mk"
CONFIGURE_ARGS+=	--with-pam=${BUILDLINK_PREFIX.pam}
.endif

###
### Authentication against information stored in an LDAP directory
###
.if !empty(PKG_OPTIONS:Mldap)
.  include "../../databases/openldap/buildlink3.mk"
.  include "../../security/cyrus-sasl2/buildlink3.mk"
BUILDLINK_INCDIRS.cyrus-sasl=	include/sasl
CONFIGURE_ARGS+=	--with-ldap=${BUILDLINK_PREFIX.openldap}
PLIST_SUBST+=		LDAP=
.else
PLIST_SUBST+=		LDAP="@@comment "
.endif

###
### Kerberos authentication is via GSSAPI.
###
.if !empty(PKG_OPTIONS:Mkerberos)
.  if empty(PKG_OPTIONS:Mgssapi)
PKG_OPTIONS+=		gssapi
.  endif
.endif

###
### Authentication via GSSAPI (which supports primarily Kerberos 5)
###
.if !empty(PKG_OPTIONS:Mgssapi)
.  include "../../mk/krb5.buildlink3.mk"
CONFIGURE_ARGS+=	--enable-gssapi=${KRB5BASE}
CONFIGURE_ARGS+=	--with-gss_impl=${GSSIMPL.${KRB5_TYPE}}
GSSIMPL.heimdal=	heimdal
GSSIMPL.mit-krb5=	mit
.endif
@


1.2
log
@Restore (and correct) the fix in revision 1.15 of Makefile.  This causes
openssl/buildlink3.mk to be included unconditionally to provide the des.h
header and des* routines.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.options,v 1.1 2004/07/30 21:05:42 jlam Exp $
@


1.1
log
@Convert to use bsd.options.mk.  The relevant options variable to set
for each package can be determined by invoking:

	make show-var VARNAME=PKG_OPTIONS_VAR

The old options are still supported unless the variable named in
PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
@
text
@d1 1
a1 1
# $NetBSD$
a39 1
.  include "../../security/openssl/buildlink3.mk"
a41 1
CONFIGURE_ARGS+=	--with-openssl=${SSLBASE}
a43 1
CONFIGURE_ARGS+=	--without-openssl
@

