Bug 187758 - net/ldap2dns: Support USE_GITHUB
Summary: net/ldap2dns: Support USE_GITHUB
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-19 18:40 UTC by tkato432
Modified: 2014-05-17 10:54 UTC (History)
0 users

See Also:


Attachments
file.diff (2.67 KB, patch)
2014-03-19 18:40 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2014-03-19 18:40:07 UTC
- Support USE_GITHUB
- Support shebangfix USES macro
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-19 18:41:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-05-17 09:40:51 UTC
Author: miwi
Date: Sat May 17 08:40:47 2014
New Revision: 354298
URL: http://svnweb.freebsd.org/changeset/ports/354298
QAT: https://qat.redports.org/buildarchive/r354298/

Log:
  - Stage support
  - Support USE_GITHUB
  - Support shebangfix USES macro
  
  PR:		187758
  Submitted by:	Ports Fury

Modified:
  head/net/ldap2dns/Makefile

Modified: head/net/ldap2dns/Makefile
==============================================================================
--- head/net/ldap2dns/Makefile	Sat May 17 08:39:51 2014	(r354297)
+++ head/net/ldap2dns/Makefile	Sat May 17 08:40:47 2014	(r354298)
@@ -3,8 +3,9 @@
 
 PORTNAME=	ldap2dns
 PORTVERSION=	0.4.2
+PORTREVISION=	1
 CATEGORIES=	net
-MASTER_SITES=	http://cloud.github.com/downloads/bklang/ldap2dns/
+MASTER_SITES=	GHC
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Maintain DNS zones using an LDAP directory
@@ -14,35 +15,35 @@ 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
+WRKSRC=		${WRKDIR}/${DISTNAME}
 
-USES=		perl5
+USE_GITHUB=	yes
+GH_ACCOUNT=	bklang
+
+USES=		gmake perl5 shebangfix
+SHEBANG_FILES=	scripts/*.pl
 USE_PERL5=	run
-USE_GMAKE=	yes
 USE_OPENLDAP=	yes
 
 CFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-MAN1=		ldap2dns.1
-
 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
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's|^CC=|CC?=| ; \
-		s|^LD=.*|LD=$$(CC)|' ${WRKSRC}/Makefile
+		 s|^LD=.*|LD=$$(CC)|' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e \
 		's|"/etc|"${PREFIX}/etc|' ${WRKSRC}/ldap2dns.c
 	@${REINPLACE_CMD} -e \
@@ -51,18 +52,18 @@ post-patch:
 		's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/ldap2tinydns-conf
 
 do-install:
-	${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}/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
+	(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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2014-05-17 10:54:21 UTC
State Changed
From-To: open->closed

Committed. Thanks!