head	1.7;
access;
symbols
	pkgsrc-2013Q2:1.7.0.48
	pkgsrc-2013Q2-base:1.7
	pkgsrc-2012Q4:1.7.0.46
	pkgsrc-2012Q4-base:1.7
	pkgsrc-2011Q4:1.7.0.44
	pkgsrc-2011Q4-base:1.7
	pkgsrc-2011Q2:1.7.0.42
	pkgsrc-2011Q2-base:1.7
	pkgsrc-2009Q4:1.7.0.40
	pkgsrc-2009Q4-base:1.7
	pkgsrc-2008Q4:1.7.0.38
	pkgsrc-2008Q4-base:1.7
	pkgsrc-2008Q3:1.7.0.36
	pkgsrc-2008Q3-base:1.7
	cube-native-xorg:1.7.0.34
	cube-native-xorg-base:1.7
	pkgsrc-2008Q2:1.7.0.32
	pkgsrc-2008Q2-base:1.7
	pkgsrc-2008Q1:1.7.0.30
	pkgsrc-2008Q1-base:1.7
	pkgsrc-2007Q4:1.7.0.28
	pkgsrc-2007Q4-base:1.7
	pkgsrc-2007Q3:1.7.0.26
	pkgsrc-2007Q3-base:1.7
	pkgsrc-2007Q2:1.7.0.24
	pkgsrc-2007Q2-base:1.7
	pkgsrc-2007Q1:1.7.0.22
	pkgsrc-2007Q1-base:1.7
	pkgsrc-2006Q4:1.7.0.20
	pkgsrc-2006Q4-base:1.7
	pkgsrc-2006Q3:1.7.0.18
	pkgsrc-2006Q3-base:1.7
	pkgsrc-2006Q2:1.7.0.16
	pkgsrc-2006Q2-base:1.7
	pkgsrc-2006Q1:1.7.0.14
	pkgsrc-2006Q1-base:1.7
	pkgsrc-2005Q4:1.7.0.12
	pkgsrc-2005Q4-base:1.7
	pkgsrc-2005Q3:1.7.0.10
	pkgsrc-2005Q3-base:1.7
	pkgsrc-2005Q2:1.7.0.8
	pkgsrc-2005Q2-base:1.7
	pkgsrc-2005Q1:1.7.0.6
	pkgsrc-2005Q1-base:1.7
	pkgsrc-2004Q4:1.7.0.4
	pkgsrc-2004Q4-base:1.7
	pkgsrc-2004Q3:1.7.0.2
	pkgsrc-2004Q3-base:1.7;
locks; strict;
comment	@# @;


1.7
date	2004.08.05.03.04.33;	author jlam;	state dead;
branches;
next	1.6;

1.6
date	2004.08.04.19.45.02;	author jlam;	state Exp;
branches;
next	1.5;

1.5
date	2004.07.30.21.05.41;	author jlam;	state Exp;
branches;
next	1.4;

1.4
date	2004.07.24.18.37.10;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2004.07.24.14.21.44;	author jlam;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.7
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.6 2004/08/04 19:45:02 jlam Exp $

# Global and legacy options
.if defined(KERBEROS) || defined(USE_SASL) || defined(USE_SASL2)
.  if !defined(PKG_OPTIONS.openldap)
.    if defined(KERBEROS)
PKG_OPTIONS.openldap+=	kerberos
.    endif
.    if defined(USE_SASL) && !empty(USE_SASL:M[yY][eE][sS])
PKG_OPTIONS.openldap+=	sasl
.    endif
.    if defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])
PKG_OPTIONS.openldap+=	sasl
.    endif
.  endif
.endif

PKG_OPTIONS_VAR=	PKG_OPTIONS.openldap
PKG_SUPPORTED_OPTIONS=	dynamic kerberos sasl slp
.include "../../mk/bsd.options.mk"

###
### Whether to build with dynamically-loadable backend modules.  If not
### specified, then link the backend modules statically into slapd.
###
.if !empty(PKG_OPTIONS:Mdynamic)
.  include "../../devel/libtool/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-modules
PLIST_SUBST+=		DYNAMIC_MOD=
.else
PLIST_SUBST+=		DYNAMIC_MOD="@@comment "
.endif

###
### Kerberos authentication is via SASL.
###
.if !empty(PKG_OPTIONS:Mkerberos)
.  if empty(PKG_OPTIONS:Msasl)
PKG_OPTIONS+=		sasl
.  endif
.endif

###
### SASL authentication
###
.if !empty(PKG_OPTIONS:Msasl)
.  if !defined(USE_SASL2) && !defined(USE_SASL)
.    include "../../security/cyrus-sasl2/buildlink3.mk"
CONFIGURE_ARGS+=	--with-cyrus-sasl
.  elif defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])
.    include "../../security/cyrus-sasl2/buildlink3.mk"
CONFIGURE_ARGS+=	--with-cyrus-sasl
.  elif defined(USE_SASL) && !empty(USE_SASL:M[yY][eE][sS])
.    include "../../security/cyrus-sasl/buildlink3.mk"
CONFIGURE_ARGS+=	--with-cyrus-sasl
.  endif
.endif

###
### SLP (Service Locator Protocol)
###
.if !empty(PKG_OPTIONS:Mslp)
.  include "../../net/openslp/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-slp
.endif
@


1.6
log
@We only need the full dependency on libtool if we build the dynamic
modules.  Bump the PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.options,v 1.5 2004/07/30 21:05:41 jlam Exp $
@


1.5
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$
d27 1
@


1.4
log
@cyrus-sasl configure option takes no argument.
@
text
@d1 1
a1 8
# $NetBSD: Makefile.options,v 1.3 2004/07/24 14:21:44 jlam Exp $
#
# OPENLDAP_ALL_OPTIONS lists all of the currently-supported optional modules
# that *may* be built.
#
# OPENLDAP_OPTIONS is a list of the modules that *will* be built.
#
OPENLDAP_ALL_OPTIONS=	dynamic sasl slp
d3 5
a7 4
.if defined(USE_SASL) || defined(USE_SASL2) || defined(KERBEROS)
.  if !defined(OPENLDAP_OPTIONS)
.    if defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])
OPENLDAP_OPTIONS+=	sasl
d10 1
a10 1
OPENLDAP_OPTIONS+=	sasl
d12 2
a13 2
.    if defined(KERBEROS)
OPENLDAP_OPTIONS+=	sasl
d18 3
a20 13
OPENLDAP_OPTIONS?=	# empty
BUILD_DEFS+=		OPENLDAP_OPTIONS

_OPENLDAP_OPTIONS=		# empty
.for _opt_ in ${OPENLDAP_OPTIONS}
.  if empty(_OPENLDAP_OPTIONS:M${_opt_})
.    if !empty(OPENLDAP_ALL_OPTIONS:M${_opt_})
_OPENLDAP_OPTIONS+=		${_opt_}
.    else
PKG_FAIL_REASON+=	"\"${_opt_}\" is not a supported Mutt build option."
.    endif
.  endif
.endfor
d26 1
a26 1
.if !empty(_OPENLDAP_OPTIONS:Mdynamic)
d34 9
d45 1
a45 1
.if !empty(_OPENLDAP_OPTIONS:Msasl)
d61 1
a61 1
.if !empty(_OPENLDAP_OPTIONS:Mslp)
@


1.3
log
@If neither USE_SASL nor USE_SASL2 are defined, then use cyrus-sasl2 by
default.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.options,v 1.2 2004/07/24 14:20:07 jlam Exp $
d55 1
a55 1
CONFIGURE_ARGS+=	--with-cyrus-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
d58 1
a58 1
CONFIGURE_ARGS+=	--with-cyrus-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
d61 1
a61 1
CONFIGURE_ARGS+=	--with-cyrus-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
@


1.2
log
@Use the correct configure option for cyrus-sasl, and correct the path to
the cyrus-sasl2/buildlink3.mk file.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.options,v 1.1 2004/07/24 03:32:24 jlam Exp $
d54 1
a54 1
.    include "../../security/cyrus-sasl/buildlink3.mk"
@


1.1
log
@Update databases/openldap to version 2.2.13, the latest stable release.
Major changes from version 2.1.30 include:

  * "LDAP Sync"-based lightweight replication
  * Proxy Cache Support
  * Hierarchical Backend
  * NS-SLAPI Support
  * Backend Layering
  * Access Control extensions including dynamic group support
  * LDAPv3 extensions:
    - ACID extensions
    - Cancel Operation
    - Content Synchronization Operation
    - DIT Content Rules
    - Duplicate Entry Extension
    - Simple Paged Results Extension
    - Proxy Authorization Extension
@
text
@d1 1
a1 1
# $NetBSD$
d55 1
a55 1
CONFIGURE_ARGS+=	--with-sasl2=${BUILDLINK_PREFIX.cyrus-sasl}
d57 2
a58 2
.    include "../../security/cyrus-sasl/buildlink3.mk"
CONFIGURE_ARGS+=	--with-sasl2=${BUILDLINK_PREFIX.cyrus-sasl}
d61 1
a61 1
CONFIGURE_ARGS+=	--with-sasl2=${BUILDLINK_PREFIX.cyrus-sasl}
@

