1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/net/ldapdiff/Makefile
Bernhard Froehlich 9a8ee8fd6d
net/ldapdiff: Add CPE information
Approved by:	portmgr (blanket)
2021-08-15 18:09:43 +00:00

54 lines
1.4 KiB
Makefile

# Created by: Christian Brueffer <chris@unixpages.org)
PORTNAME= ldapdiff
PORTVERSION= 1.4.1
PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= http://launchpadlibrarian.net/20391352/
DISTNAME= ${PORTNAME}-${PORTVERSION}_src
MAINTAINER= ports@FreeBSD.org
COMMENT= Utility for patching LDAP directories using LDIF files
LICENSE= GPLv3+
USES= cpe iconv tar:tgz
USE_OPENLDAP= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${LOCALBASE} \
--with-ldap-dir=${LOCALBASE}
SAMPLES= addentry.sh webtomware_without_jpeg.user.ldif \
webtomware.init.ldif webtomware.user.ldif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= CHANGES ChangeLog README TODO
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ! empty(ICONV_LIB)
CONFIGURE_ARGS+=--with-iconv-dir=${LOCALBASE}
.endif
post-extract:
@cd ${WRKSRC} && ${RM} *.o ldapdiff Makefile config.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ldapdiff ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ldapdiff.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/ldapdiff.conf.sample ${STAGEDIR}${PREFIX}/etc/
@${MKDIR} ${STAGEDIR}${DATADIR}/samples
.for sample in ${SAMPLES}
${INSTALL_DATA} ${WRKSRC}/samples/${sample} ${STAGEDIR}${DATADIR}/samples
.endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docs in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.post.mk>