37f54e0f66
- Convert to USES=libtool and bump dependent ports - Avoid USE_AUTOTOOLS - Don't use PTHREAD_LIBS - Use MAKE_CMD databases/glom: - Drop :keepla - Add INSTALL_TARGET=install-strip databases/libgda4* databases/libgda5*: - Convert to USES=libtool and bump dependent ports - USES=tar:xz - Use INSTALL_TARGET=install-strip - Use @sample databases/libgdamm: - Drop :keepla - USES=tar:bzip2 - Use INSTALL_TARGET=install-strip databases/libgdamm5: - Add INSTALL_TARGET=install-strip - Drop --enable-static (inherited from old repocopy) devel/anjuta x11-toolkits/py-gnome-extras: - Drop :keepla dns/powerdns dns/powerdns-devel: - Convert to USES=libtool - Add INSTALL_TARGET=install-strip - Disable static modules - Stop creating library symlinks with .0 suffix, not needed for dynamically opened modules mail/dovecot2: - Add USES=libtool mail/dovecot2-pigeonhole: - Drop CONFIGURE_TARGET (incorrect for Dragonfly) - Add USES=libtool and INSTALL_TARGET=install-strip math/gnumeric: - USES=libtool tar:xz Approved by: portmgr (implicit, bump unstaged ports)
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# Created by: Bruce M Simpson <bms@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ldap2dns
|
|
PORTVERSION= 0.4.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= GHC
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Maintain DNS zones using an LDAP directory
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
|
|
p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= bklang
|
|
|
|
USES= gmake perl5 shebangfix
|
|
SHEBANG_FILES= scripts/*.pl
|
|
USE_PERL5= run
|
|
USE_OPENLDAP= yes
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}"
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= *
|
|
PLIST_FILES= bin/ldap2dns \
|
|
bin/ldap2dnsd \
|
|
man/man1/ldap2dns.1.gz \
|
|
%%DATADIR%%/axfr2ldap.pl \
|
|
%%DATADIR%%/data2ldif.pl \
|
|
%%DATADIR%%/ldap2dns.schema \
|
|
%%DATADIR%%/ldap2tinydns-conf
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|?=|=|' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|"/etc|"${PREFIX}/etc|' ${WRKSRC}/ldap2dns.c
|
|
@${REINPLACE_CMD} -e \
|
|
's|^/etc|${PREFIX}/etc|' ${WRKSRC}/ldap2dns.1
|
|
@${REINPLACE_CMD} -e \
|
|
's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/ldap2tinydns-conf
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ldap2dns \
|
|
${STAGEDIR}${PREFIX}/bin)
|
|
${LN} -sf ldap2dns ${STAGEDIR}${PREFIX}/bin/ldap2dnsd
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} ldap2dns.1 \
|
|
${STAGEDIR}${MANPREFIX}/man/man1)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ldap2dns.schema ldap2tinydns-conf \
|
|
${STAGEDIR}${DATADIR})
|
|
(cd ${WRKSRC}/scripts && ${INSTALL_SCRIPT} axfr2ldap.pl data2ldif.pl \
|
|
${STAGEDIR}${DATADIR})
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} README.html example.ldif \
|
|
${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|