aboutsummaryrefslogtreecommitdiff
path: root/net/ldapdiff/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-11 07:05:01 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-11 07:05:01 +0000
commitd01455e9a016c2968c0b25fc3fdc18654b25bc44 (patch)
tree65734e277eea228caef726ec5afb6bd779a51334 /net/ldapdiff/Makefile
parent6b950a1acd9c6397372008b444671501648a0cf5 (diff)
downloadports-d01455e9a016c2968c0b25fc3fdc18654b25bc44.tar.gz
ports-d01455e9a016c2968c0b25fc3fdc18654b25bc44.zip
Notes
Diffstat (limited to 'net/ldapdiff/Makefile')
-rw-r--r--net/ldapdiff/Makefile49
1 files changed, 28 insertions, 21 deletions
diff --git a/net/ldapdiff/Makefile b/net/ldapdiff/Makefile
index 2e01807057fc..7e2b27d8859d 100644
--- a/net/ldapdiff/Makefile
+++ b/net/ldapdiff/Makefile
@@ -6,35 +6,42 @@
#
PORTNAME= ldapdiff
-PORTVERSION= 0.7.0
+PORTVERSION= 0.8.2
CATEGORIES= net
-MASTER_SITES= http://webtomware.rhoen.de/
+MASTER_SITES= http://webtomware.rhoen.de/ \
+ http://unixpages.org/distfiles/
MAINTAINER= chris@unixpages.org
-LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap2
+LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= \
- --prefix=${PREFIX} \
- --with-ldap-dir=${PREFIX}
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} \
+ --with-ldap-dir=${PREFIX} \
+ --with-iconv-dir=${PREFIX}
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ldapdiff ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/ldapdiff.conf \
- ${PREFIX}/etc/ldapdiff.conf.sample
- ${MKDIR} ${DATADIR}/plugins
- ${INSTALL_DATA} ${WRKSRC}/plugins/ldapskeleton.c ${DATADIR}/plugins
+.if defined(WITH_OPENLDAP1)
+LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap
+.else
+LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
+.endif
+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
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
+.for i in CHANGES README TODO ChangeLog
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
.endif
-
-post-install:
- ${CAT} ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>