freebsd-ports/net/openldap/Makefile

88 lines
2.0 KiB
Makefile
Raw Normal View History

2000-10-30 14:08:35 -05:00
# New ports collection makefile for: OpenLDAP 1.x
# Date created: 20 Sep 1998
# Whom: Lachlan O'Dea
#
1999-08-30 10:24:37 -04:00
# $FreeBSD$
#
PORTNAME= openldap
PORTVERSION= 1.2.13
CATEGORIES= net databases
2000-10-30 14:08:35 -05: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= lodea@vet.com.au
USE_LIBTOOL= yes
2000-10-30 14:08:35 -05:00
CONFIGURE_ARGS= --localstatedir=/var/db \
2000-10-30 14:08:35 -05:00
--enable-shared \
--enable-dns
# Include tcp-wrapper support
.if exists(/usr/include/tcpd.h)
2000-10-30 14:08:35 -05:00
CONFIGURE_ARGS+= --enable-wrappers
.endif
.if defined(WITH_DB2)
BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db2
2000-10-30 14:08:35 -05:00
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/db2 ${PTHREAD_CFLAGS}" \
2000-10-30 14:08:35 -05:00
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --enable-ldbm \
--with-ldbm-api=db2
.endif
2001-02-23 11:52:37 -05:00
INSTALLS_SHLIB= yes
BINS= bin/ldapadd \
bin/ldapdelete \
2000-10-30 14:08:35 -05:00
bin/ldapmodify \
bin/ldapmodrdn \
2000-10-30 14:08:35 -05:00
bin/ldappasswd \
bin/ldapsearch \
bin/ud \
libexec/fax500 \
libexec/go500 \
libexec/go500gw \
libexec/in.xfingerd \
libexec/mail500 \
libexec/rcpt500 \
libexec/rp500 \
libexec/slapd \
libexec/slurpd \
sbin/centipede \
sbin/ldbmcat \
sbin/ldbmtest \
sbin/ldif \
sbin/ldif2id2children \
sbin/ldif2id2entry \
sbin/ldif2index \
2000-10-30 14:08:35 -05:00
sbin/ldif2ldbm
.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:
.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>