blob: 2f35a0356d52a69c666e56979c5134d38bea36a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.17 2000/07/17 09:19:43 veego Exp $
#
DISTNAME= openldap-1.2.11
CATEGORIES= databases
MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
EXTRACT_SUFX= .tgz
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.OpenLDAP.org/
# for the moment without threads and thus without slurpd and ldapd
#DEPENDS+= ../../devel/mit-pthreads
CONFLICTS+= ldapsdk*
USE_PKGLIBTOOL= yes
.include "../../mk/bsd.prefs.mk"
# unfortunately, --enable-phonetic cannot be disabled by runtime configuration
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-dns --enable-cldap --enable-passwd --enable-shell
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --enable-wrappers
.endif
.if ${OPSYS} == "SunOS"
DEPENDS+= db-2.7.7:../../databases/db
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/db2"
CONFIGURE_ENV+= LIBS="-ldb2 -lpthread -lrt"
.endif
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
post-build:
${CAT} ${PKGDIR}/PLIST.common ${PKGDIR}/PLIST.${LOWER_OPSYS} > ${PLIST_SRC}
post-configure:
${ECHO} "SLAPD_LIBS = " >> ${WRKSRC}/servers/slapd/tools/Makefile
.if defined(KERBEROS) && ${KERBEROS} == 4
USE_KERBEROS= yes
CONFIGURE_ARGS+=--with-kerberos
.else
CONFIGURE_ARGS+=--without-kerberos
.endif
.include "../../mk/bsd.pkg.mk"
|