1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net/openldap21-server/Makefile

97 lines
2.3 KiB
Makefile
Raw Normal View History

# 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
#
1999-08-30 14:24:37 +00:00
# $FreeBSD$
#
PORTNAME= openldap
2001-01-21 06:21:47 +00:00
PORTVERSION= 2.0.7
PORTREVISION= 1
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
EXTRACT_SUFX= .tgz
MAINTAINER= knu@FreeBSD.org
LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3
USE_AUTOCONF= yes
USE_LIBTOOL= yes
USE_OPENSSL= yes
2000-10-30 19:08:35 +00:00
CONFIGURE_ARGS= --localstatedir=/var/run \
--with-threads \
2000-10-30 19:08:35 +00:00
--enable-shared \
--enable-dnssrv \
--with-tls=openssl
# Include tcp-wrapper support
.if exists(/usr/include/tcpd.h)
2000-10-30 19:08:35 +00:00
CONFIGURE_ARGS+= --enable-wrappers
.endif
# math.h uses _REENTRANT and stdio.h uses _THREAD_SAFE, so define both.
CPPFLAGS+= -D_REENTRANT ${PTHREAD_CFLAGS} \
-I${LOCALBASE}/include \
-I${LOCALBASE}/include/db3
LDFLAGS+= -L${LOCALBASE}/lib
2000-10-30 19:08:35 +00:00
.if defined(WITH_SASL)
LIB_DEPENDS+= sasl.8:${PORTSDIR}/security/cyrus-sasl
CPPFLAGS+= -I${LOCALBASE}/include/sasl
.endif
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
2001-02-23 16:52:37 +00:00
INSTALLS_SHLIB= yes
BINS= bin/ldapadd \
bin/ldapdelete \
2000-10-30 19:08:35 +00:00
bin/ldapmodify \
bin/ldapmodrdn \
2000-10-30 19:08:35 +00:00
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
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>