aboutsummaryrefslogtreecommitdiffstats
path: root/net/ldapdiff/Makefile
diff options
context:
space:
mode:
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>