2002-06-27 16:13:07 +02:00
|
|
|
# New ports collection makefile for: ldapdiff
|
|
|
|
# Date created: 15 February 2002
|
|
|
|
# Whom: Christian Brueffer <chris@unixpages.org)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-08-14 20:00:01 +02:00
|
|
|
PORTNAME= ldapdiff
|
|
|
|
PORTVERSION= 0.9.0
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://webtomware.rhoen.de/ \
|
2002-07-11 09:05:01 +02:00
|
|
|
http://unixpages.org/distfiles/
|
2002-06-27 16:13:07 +02:00
|
|
|
|
2003-08-14 20:00:01 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:07:50 +01:00
|
|
|
COMMENT= A utility for patching LDAP directories using LDIF files
|
2002-06-27 16:13:07 +02:00
|
|
|
|
2002-07-11 09:05:01 +02:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
2003-08-14 20:00:01 +02:00
|
|
|
.if defined(WITH_OPENLDAP1)
|
|
|
|
LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap12
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/${LDAP_PORT}
|
|
|
|
.endif
|
2002-06-27 16:13:07 +02:00
|
|
|
|
2002-07-11 09:05:01 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
|
|
--with-ldap-dir=${PREFIX} \
|
|
|
|
--with-iconv-dir=${PREFIX}
|
2003-08-14 20:00:01 +02:00
|
|
|
LDAP_PORT?= net/openldap20-client
|
2002-06-27 16:13:07 +02:00
|
|
|
|
2002-07-11 09:05:01 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ldapdiff ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ldapdiff.conf \
|
|
|
|
${PREFIX}/etc/ldapdiff.conf.sample
|
|
|
|
@${MKDIR} ${DATADIR}/samples
|
|
|
|
.for i in addentry webtomware.init.ldif webtomware.user.ldif
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/${i} ${DATADIR}/samples
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DATADIR}/plugins
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/ldapskeleton.c ${DATADIR}/plugins
|
2002-06-27 16:13:07 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-07-11 09:05:01 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in CHANGES README TODO ChangeLog
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
2002-06-27 16:13:07 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|