2000-10-31 11:42:22 +00:00
|
|
|
# New ports collection makefile for: OpenLDAP 2.x
|
2000-10-30 19:08:35 +00:00
|
|
|
# Date created: 20 Sep 1998
|
|
|
|
# Whom: Lachlan O'Dea
|
1998-10-10 04:40:45 +00:00
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1998-10-10 04:40:45 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= openldap
|
2001-01-21 06:21:47 +00:00
|
|
|
PORTVERSION= 2.0.7
|
2001-02-23 17:04:43 +00:00
|
|
|
PORTREVISION= 1
|
1999-02-12 23:57:01 +00:00
|
|
|
CATEGORIES= net databases
|
2000-10-30 19:08:35 +00:00
|
|
|
MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/%SUBDIR%/ \
|
|
|
|
ftp://ftp.net.lut.ac.uk/openldap/%SUBDIR%/ \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/%SUBDIR%/ \
|
|
|
|
ftp://mirror.aarnet.edu.au/pub/OpenLDAP/%SUBDIR%/ \
|
|
|
|
ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/%SUBDIR%/ \
|
|
|
|
http://www.unibase.cz/ldapcz/Programy/Free/OpenLDAP/%SUBDIR%/ \
|
|
|
|
ftp://ftp.ntua.gr/mirror/OpenLDAP/%SUBDIR%/ \
|
|
|
|
ftp://ftp.loxinfo.co.th/pub/unix/LDAP/OpenLDAP/%SUBDIR%/ \
|
|
|
|
ftp://ftp.zcu.cz/pub/network/openldap/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= openldap-release
|
1998-10-10 04:40:45 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2000-10-31 11:42:22 +00:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
1998-10-10 04:40:45 +00:00
|
|
|
|
2001-02-23 17:04:43 +00:00
|
|
|
LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3
|
|
|
|
|
2000-10-31 11:42:22 +00:00
|
|
|
USE_AUTOCONF= yes
|
2000-07-07 18:30:21 +00:00
|
|
|
USE_LIBTOOL= yes
|
2000-10-31 11:42:22 +00:00
|
|
|
USE_OPENSSL= yes
|
2000-10-30 19:08:35 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var/run \
|
2000-10-31 15:03:48 +00:00
|
|
|
--with-threads \
|
2000-10-30 19:08:35 +00:00
|
|
|
--enable-shared \
|
2000-10-31 11:42:22 +00:00
|
|
|
--enable-dnssrv \
|
|
|
|
--with-tls=openssl
|
2000-04-02 03:27:54 +00:00
|
|
|
|
|
|
|
# Include tcp-wrapper support
|
|
|
|
.if exists(/usr/include/tcpd.h)
|
2000-10-30 19:08:35 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-wrappers
|
|
|
|
.endif
|
|
|
|
|
2001-02-23 17:04:43 +00:00
|
|
|
# math.h uses _REENTRANT and stdio.h uses _THREAD_SAFE, so define both.
|
2001-03-29 16:35:19 +00:00
|
|
|
CPPFLAGS+= -D_REENTRANT ${PTHREAD_CFLAGS} \
|
2001-02-23 17:04:43 +00:00
|
|
|
-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/db3
|
2000-11-08 07:48:20 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-10-30 19:08:35 +00:00
|
|
|
|
2000-11-08 07:48:20 +00:00
|
|
|
.if defined(WITH_SASL)
|
2001-02-23 17:04:43 +00:00
|
|
|
LIB_DEPENDS+= sasl.8:${PORTSDIR}/security/cyrus-sasl
|
2000-11-08 07:48:20 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/sasl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
|
2001-02-23 16:52:37 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2001-02-23 17:04:43 +00:00
|
|
|
|
2000-10-30 18:53:28 +00:00
|
|
|
BINS= bin/ldapadd \
|
|
|
|
bin/ldapdelete \
|
2000-10-30 19:08:35 +00:00
|
|
|
bin/ldapmodify \
|
2000-10-30 18:53:28 +00:00
|
|
|
bin/ldapmodrdn \
|
2000-10-30 19:08:35 +00:00
|
|
|
bin/ldappasswd \
|
2000-10-30 18:53:28 +00:00
|
|
|
bin/ldapsearch \
|
|
|
|
bin/ud \
|
|
|
|
libexec/fax500 \
|
|
|
|
libexec/go500 \
|
|
|
|
libexec/go500gw \
|
|
|
|
libexec/in.xfingerd \
|
|
|
|
libexec/mail500 \
|
2000-10-31 15:03:48 +00:00
|
|
|
libexec/maildap \
|
2000-10-30 18:53:28 +00:00
|
|
|
libexec/rcpt500 \
|
|
|
|
libexec/rp500 \
|
|
|
|
libexec/slapd \
|
2000-10-31 11:42:22 +00:00
|
|
|
libexec/slurpd
|
2000-10-30 18:53:28 +00:00
|
|
|
|
1999-02-12 23:57:01 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${FILESDIR}/manpages"
|
1998-10-10 04:40:45 +00:00
|
|
|
|
2000-10-31 11:42:22 +00:00
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/libtool.diff
|
|
|
|
|
1999-01-02 19:49:20 +00:00
|
|
|
pre-build:
|
2000-10-30 18:53:28 +00:00
|
|
|
cd ${WRKSRC} ; ${MAKE} depend
|
1998-10-10 04:40:45 +00:00
|
|
|
|
2000-09-25 05:43:46 +00:00
|
|
|
post-build:
|
|
|
|
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
|
|
|
|
1998-10-10 04:40:45 +00:00
|
|
|
post-install:
|
2000-10-30 18:53:28 +00:00
|
|
|
.for f in ${BINS}
|
|
|
|
strip ${PREFIX}/${f}
|
|
|
|
.endfor
|
2000-09-25 05:43:46 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
2001-03-05 22:27:09 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-10-10 04:40:45 +00:00
|
|
|
|
1999-02-12 23:57:01 +00:00
|
|
|
.include <bsd.port.post.mk>
|