blob: b0c3cd19ac8e3b9791dee9f9ef2c6e9d08201722 (
plain) (
blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: openldap
# Date created: 20 Sep 1998
# Whom: Lachlan O'Dea
#
# $FreeBSD$
#
PORTNAME= openldap
PORTVERSION= 1.2.11
PORTREVISION= 1
CATEGORIES= net databases
MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/ \
ftp://ftp.net.lut.ac.uk/openldap/openldap-release/ \
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/ \
ftp://mirror.aarnet.edu.au/pub/OpenLDAP/openldap-release/ \
ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/ \
http://www.unibase.cz/ldapcz/Programy/Free/OpenLDAP/openldap-release/ \
ftp://ftp.ntua.gr/mirror/OpenLDAP/openldap-release/ \
ftp://ftp.loxinfo.co.th/pub/unix/LDAP/OpenLDAP/openldap-release/\
ftp://ftp.zcu.cz/pub/network/openldap/openldap-release/
EXTRACT_SUFX= .tgz
MAINTAINER= lodea@vet.com.au
.if defined(WITH_DB2)
BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db/
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/db2 -D_THREAD_SAFE" \
LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS+= --enable-ldbm --with-ldbm-api=db2
.endif
USE_LIBTOOL= yes
CONFIGURE_ARGS+= --localstatedir=/var/run --enable-shared --enable-dns
# Include tcp-wrapper support
.if exists(/usr/include/tcpd.h)
CONFIGURE_ARGS+= --enable-wrappers
.endif
.include <bsd.port.pre.mk>
.include "${FILESDIR}/manpages"
pre-build:
cd ${WRKSRC} ; make depend
post-build:
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
post-install:
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
${PREFIX}/libexec/fax500 ${PREFIX}/libexec/go500 \
${PREFIX}/libexec/go500gw ${PREFIX}/libexec/in.xfingerd \
${PREFIX}/libexec/mail500 ${PREFIX}/libexec/rcpt500 \
${PREFIX}/libexec/rp500 ${PREFIX}/libexec/slapd \
${PREFIX}/libexec/slurpd ${PREFIX}/sbin/centipede \
${PREFIX}/sbin/ldbmcat ${PREFIX}/sbin/ldbmtest ${PREFIX}/sbin/ldif \
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
.include <bsd.port.post.mk>
|