Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2016 14:19:56 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r405554 - head/net/ldap2dns
Message-ID:  <201601081419.u08EJufK059836@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Jan  8 14:19:55 2016
New Revision: 405554
URL: https://svnweb.freebsd.org/changeset/ports/405554

Log:
  - Remove unneeded WRKSRC
  - Switch to USES=localbase
  - Switch to options helpers
  - Simplify installation

Modified:
  head/net/ldap2dns/Makefile

Modified: head/net/ldap2dns/Makefile
==============================================================================
--- head/net/ldap2dns/Makefile	Fri Jan  8 14:19:24 2016	(r405553)
+++ head/net/ldap2dns/Makefile	Fri Jan  8 14:19:55 2016	(r405554)
@@ -15,18 +15,14 @@ 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
+USES=		gmake localbase 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 \
@@ -37,7 +33,7 @@ PLIST_FILES=	bin/ldap2dns \
 		%%DATADIR%%/ldap2dns.schema \
 		%%DATADIR%%/ldap2tinydns-conf
 
-OPTIONS_DEFINE=		DOCS
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	@${REINPLACE_CMD} 's|?=|=|' ${WRKSRC}/Makefile
@@ -49,16 +45,16 @@ post-patch:
 		's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/ldap2tinydns-conf
 
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ldap2dns \
-		${STAGEDIR}${PREFIX}/bin)
+	${INSTALL_PROGRAM} ${WRKSRC}/ldap2dns ${STAGEDIR}${PREFIX}/bin
 	${LN} -sf ldap2dns ${STAGEDIR}${PREFIX}/bin/ldap2dnsd
-	(cd ${WRKSRC} && ${INSTALL_MAN} ldap2dns.1 \
-		${STAGEDIR}${MANPREFIX}/man/man1)
+	${INSTALL_MAN} ${WRKSRC}/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})
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/doc && ${INSTALL_DATA} README.html example.ldif \
 		${STAGEDIR}${DOCSDIR})



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