mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
7a7daa00f1
support for SASL. Submitted by: nectar
96 lines
2.2 KiB
Makefile
96 lines
2.2 KiB
Makefile
# New ports collection makefile for: OpenLDAP 2.x
|
|
# Date created: 20 Sep 1998
|
|
# Whom: Lachlan O'Dea
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= openldap
|
|
PORTVERSION= 2.0.6
|
|
PORTREVISION= 2
|
|
CATEGORIES= net databases
|
|
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
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
USE_AUTOCONF= yes
|
|
USE_LIBTOOL= yes
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var/run \
|
|
--with-threads \
|
|
--enable-shared \
|
|
--enable-dnssrv \
|
|
--with-tls=openssl
|
|
|
|
# Include tcp-wrapper support
|
|
.if exists(/usr/include/tcpd.h)
|
|
CONFIGURE_ARGS+= --enable-wrappers
|
|
.endif
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.if defined(WITH_DB2)
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db
|
|
CPPFLAGS+= -I${LOCALBASE}/include/db2 -D_THREAD_SAFE
|
|
CONFIGURE_ARGS+= --enable-ldbm \
|
|
--with-ldbm-api=db2
|
|
.endif
|
|
|
|
.if defined(WITH_SASL)
|
|
LIB_DEPENDS= sasl.8:${PORTSDIR}/security/cyrus-sasl
|
|
CPPFLAGS+= -I${LOCALBASE}/include/sasl
|
|
.endif
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
BINS= bin/ldapadd \
|
|
bin/ldapdelete \
|
|
bin/ldapmodify \
|
|
bin/ldapmodrdn \
|
|
bin/ldappasswd \
|
|
bin/ldapsearch \
|
|
bin/ud \
|
|
libexec/fax500 \
|
|
libexec/go500 \
|
|
libexec/go500gw \
|
|
libexec/in.xfingerd \
|
|
libexec/mail500 \
|
|
libexec/maildap \
|
|
libexec/rcpt500 \
|
|
libexec/rp500 \
|
|
libexec/slapd \
|
|
libexec/slurpd
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${FILESDIR}/manpages"
|
|
|
|
post-configure:
|
|
cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/libtool.diff
|
|
|
|
pre-build:
|
|
cd ${WRKSRC} ; ${MAKE} depend
|
|
|
|
post-build:
|
|
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
|
|
|
post-install:
|
|
.for f in ${BINS}
|
|
strip ${PREFIX}/${f}
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
|
|
|
.include <bsd.port.post.mk>
|