- Update to 0.3.6
- Take maintainership PR: ports/91790 Submitted by: Gerrit Beine <gerrit.beine@gmx.de>
This commit is contained in:
parent
cafeb27148
commit
eac7e79a90
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153478
6 changed files with 49 additions and 22 deletions
|
@ -6,34 +6,36 @@
|
|||
#
|
||||
|
||||
PORTNAME= ldap2dns
|
||||
PORTVERSION= 0.3.1
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.3.6
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://ldap2dns.tiscover.com/
|
||||
MASTER_SITES= http://projects.alkaloid.net/dist/ldap2dns/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= gerrit.beine@gmx.de
|
||||
COMMENT= Maintain DNS zones using an LDAP directory
|
||||
|
||||
USE_OPENLDAP= yes
|
||||
|
||||
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
|
||||
${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_OPENLDAP= yes
|
||||
USE_PERL5= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
MAKE_ENV+= PREFIX=$(PREFIX)
|
||||
MAKE_ENV+= INC=-I$(PREFIX)/include
|
||||
MAKE_ENV+= LIB=-L$(PREFIX)/lib
|
||||
MAKE_ENV= PREFIX=${PREFIX} INC=-I${PREFIX}/include LIB=-L${PREFIX}/lib
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/ldap2dns.c
|
||||
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/ldap2tinydns-conf
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/ldap2dns ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/ldap2dnsd ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/dns.schema ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example.ldif ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.html ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ldap2dns.schema ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/example.ldif ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/README.html ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/ldap2tinydns-conf ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/import.pl ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/scripts/axfr2ldap.pl ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/scripts/data2ldap.pl ${DATADIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
MD5 (ldap2dns-0.3.1.tar.gz) = 3f661468159633a8fdd843db2af97721
|
||||
SIZE (ldap2dns-0.3.1.tar.gz) = 40760
|
||||
MD5 (ldap2dns-0.3.6.tar.gz) = 471158c024c199a07bcba4ec3559da7e
|
||||
SHA256 (ldap2dns-0.3.6.tar.gz) = 026100e852f5fd97739e9c31a03f93bcf696957016fcf214314fd5b98037fc64
|
||||
SIZE (ldap2dns-0.3.6.tar.gz) = 47953
|
||||
|
|
11
net/ldap2dns/files/patch-ldap2dns.c
Normal file
11
net/ldap2dns/files/patch-ldap2dns.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ldap2dns.c.orig Fri Dec 16 20:49:47 2005
|
||||
+++ ldap2dns.c Thu Jan 12 18:36:43 2006
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#define UPDATE_INTERVALL 59
|
||||
-#define LDAP_CONF "/etc/ldap/ldap.conf"
|
||||
+#define LDAP_CONF "%%PREFIX%%/etc/openldap/ldap.conf"
|
||||
#define OUTPUT_DATA 1
|
||||
#define OUTPUT_DB 2
|
||||
#define MAXHOSTS 10
|
12
net/ldap2dns/files/patch-ldap2tinydns-conf
Normal file
12
net/ldap2dns/files/patch-ldap2tinydns-conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- ldap2tinydns-conf.orig Fri Dec 16 20:49:47 2005
|
||||
+++ ldap2tinydns-conf Sat Jan 14 12:19:18 2006
|
||||
@@ -22,7 +22,8 @@
|
||||
cat << EOF_run > $LDAP2DNSDIR/run
|
||||
#!/bin/sh
|
||||
exec 2>&1
|
||||
-exec setuidgid $LDAP2DNSUSER envdir ./env softlimit -d250000 /usr/bin/ldap2dns -e "cd \$TINYDNSDIR && tinydns-data"
|
||||
+exec envdir ./env sh -c '
|
||||
+ setuidgid $LDAP2DNSUSER softlimit -d250000 %%PREFIX%%/bin/ldap2dns -e "cd \$TINYDNSDIR && tinydns-data"'
|
||||
EOF_run
|
||||
|
||||
chmod +t $LDAP2DNSDIR
|
|
@ -5,7 +5,7 @@ from a LDAP directory. ldap2dns is designed to write ASCII data files used
|
|||
by tinydns from the djbdns package, but also may be used to write .db-files
|
||||
used by named as found in the BIND package.
|
||||
|
||||
WWW: http://ldap2dns.tiscover.com/
|
||||
WWW: http://projects.alkaloid.net/
|
||||
|
||||
Bruce
|
||||
bms@spc.org
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
bin/ldap2dns
|
||||
bin/ldap2dnsd
|
||||
share/ldap2dns/README.html
|
||||
share/ldap2dns/dns.schema
|
||||
share/ldap2dns/example.ldif
|
||||
share/ldap2dns/import.pl
|
||||
share/ldap2dns/ldap2tinydns-conf
|
||||
@dirrm share/ldap2dns
|
||||
%%DATADIR%%/README.html
|
||||
%%DATADIR%%/ldap2dns.schema
|
||||
%%DATADIR%%/example.ldif
|
||||
%%DATADIR%%/axfr2ldap.pl
|
||||
%%DATADIR%%/data2ldap.pl
|
||||
%%DATADIR%%/ldap2tinydns-conf
|
||||
@dirrm %%DATADIR%%
|
||||
|
|
Loading…
Reference in a new issue