Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 22:19:48 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306402 - in head/net/ldap2dns: . files
Message-ID:  <201210252219.q9PMJmAI058388@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Oct 25 22:19:47 2012
New Revision: 306402
URL: http://svn.freebsd.org/changeset/ports/306402

Log:
  Update 0.4.2
  Add license
  Respect DOCS
  Trim heade
  Undeprecate
  point to new home
  
  PR:		ports/172040
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Deleted:
  head/net/ldap2dns/files/patch-Makefile
  head/net/ldap2dns/files/patch-ldap2dns.c
  head/net/ldap2dns/pkg-plist
Modified:
  head/net/ldap2dns/Makefile
  head/net/ldap2dns/distinfo
  head/net/ldap2dns/pkg-descr

Modified: head/net/ldap2dns/Makefile
==============================================================================
--- head/net/ldap2dns/Makefile	Thu Oct 25 22:07:58 2012	(r306401)
+++ head/net/ldap2dns/Makefile	Thu Oct 25 22:19:47 2012	(r306402)
@@ -1,44 +1,66 @@
-# New ports collection makefile for:	ldap2dns
-# Date created:				29 September 2003
-# Whom:					Bruce M Simpson <bms@FreeBSD.org>
-#
+# Created by: Bruce M Simpson <bms@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	ldap2dns
-PORTVERSION=	0.4.1
-PORTREVISION=	2
+PORTVERSION=	0.4.2
 CATEGORIES=	net
-MASTER_SITES=	http://projects.alkaloid.net/e107_files/downloads/
+MASTER_SITES=	http://cloud.github.com/downloads/bklang/ldap2dns/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Maintain DNS zones using an LDAP directory
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-10-20
+LICENSE=	GPLv2
 
 RUN_DEPENDS=	p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
 		p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap
 
+OPTIONS_DEFINE=	DOCS
+
+USE_PERL5_RUN=	yes
 USE_GMAKE=	yes
 USE_OPENLDAP=	yes
-USE_PERL5=	yes
 
-MAKE_ENV=	INC=-I${PREFIX}/include LIB=-L${PREFIX}/lib
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+MAN1=		ldap2dns.1
+
+PORTDOCS=	*
+
+PLIST_FILES=	bin/ldap2dns \
+		bin/ldap2dnsd \
+		%%DATADIR%%/axfr2ldap.pl \
+		%%DATADIR%%/data2ldif.pl \
+		%%DATADIR%%/ldap2dns.schema \
+		%%DATADIR%%/ldap2tinydns-conf
+PLIST_DIRS=	%%DATADIR%%
+
 
+.include <bsd.port.options.mk>
 post-patch:
-	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/ldap2dns.c
-	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/ldap2tinydns-conf
+	@${REINPLACE_CMD} -e \
+		's|^CC=|CC?=| ; \
+		s|^LD=.*|LD=$$(CC)|' ${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:
-	${MKDIR} ${DATADIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/ldap2dns ${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/ldap2dnsd ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/ldap2dns ${PREFIX}/bin
+	${LN} -sf ldap2dns ${PREFIX}/bin/ldap2dnsd
+	${INSTALL_MAN} ${WRKSRC}/ldap2dns.1 ${MANPREFIX}/man/man1
+	@${MKDIR} ${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_DATA} ${WRKSRC}/ldap2tinydns-conf ${DATADIR}
 	${INSTALL_SCRIPT} ${WRKSRC}/scripts/axfr2ldap.pl ${DATADIR}
 	${INSTALL_SCRIPT} ${WRKSRC}/scripts/data2ldif.pl ${DATADIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/README.html ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/example.ldif ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>

Modified: head/net/ldap2dns/distinfo
==============================================================================
--- head/net/ldap2dns/distinfo	Thu Oct 25 22:07:58 2012	(r306401)
+++ head/net/ldap2dns/distinfo	Thu Oct 25 22:19:47 2012	(r306402)
@@ -1,2 +1,2 @@
-SHA256 (ldap2dns-0.4.1.tar.gz) = 870614b685a54dedc17c108c201b8aa30146865c03887358c06fad58cb6e2f60
-SIZE (ldap2dns-0.4.1.tar.gz) = 54857
+SHA256 (ldap2dns-0.4.2.tar.gz) = 23a24bd2233dafeb40cc2d755fa24cc4bd1207e92fdee614e642ea1064711b98
+SIZE (ldap2dns-0.4.2.tar.gz) = 61325

Modified: head/net/ldap2dns/pkg-descr
==============================================================================
--- head/net/ldap2dns/pkg-descr	Thu Oct 25 22:07:58 2012	(r306401)
+++ head/net/ldap2dns/pkg-descr	Thu Oct 25 22:19:47 2012	(r306402)
@@ -5,7 +5,4 @@ from a LDAP directory. ldap2dns is desig
 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://projects.alkaloid.net/
-
-Bruce
-bms@spc.org
+WWW: https://github.com/bklang/ldap2dns



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210252219.q9PMJmAI058388>