From c7a56d9897b2ec3176361e9677ffe6debe120c75 Mon Sep 17 00:00:00 2001 From: avl Date: Sun, 29 Jan 2012 10:56:06 +0000 Subject: - Fix broken binary caused by using INSTALL_SCRIPT on some architectures - Use INSTALL_MAN for the man files and respect NO_INSTALL_MANPAGES knob - Use INSTALL_DATA for PORTDOCS file - Hide post-extract and post-patch procedure - Bump PORTREVISION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: ports/163942 [1] Submitted by: Garrett Cooper [1] Approved by: maintainer via private mail --- dns/inadyn/Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'dns/inadyn') diff --git a/dns/inadyn/Makefile b/dns/inadyn/Makefile index c31cd2b6bcd7..b13c2314e0ad 100644 --- a/dns/inadyn/Makefile +++ b/dns/inadyn/Makefile @@ -7,7 +7,7 @@ PORTNAME= inadyn PORTVERSION= 1.96.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= dns MASTER_SITES= http://www.inatech.eu/inadyn/ \ ${MASTER_SITE_LOCAL} @@ -24,31 +24,32 @@ USE_DOS2UNIX= yes USE_GMAKE= yes MAKEFILE= makefile +.if !defined(NO_INSTALL_MANPAGES) MAN8= inadyn.8 MAN5= inadyn.conf.5 -MANCOMPRESSED= no +.endif PORTDOCS= readme.html PLIST_FILES= bin/inadyn -NO_INSTALL_MANPAGES=yes - post-extract: - ${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${PORTVERSION} + @${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${PORTVERSION} post-patch: @${REINPLACE_CMD} -e 's|gcc|$$\(CC\)|g' ${WRKSRC}/makefile - ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \ + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \ ${WRKSRC}/man/inadyn.8 ${WRKSRC}/readme.html \ ${WRKSRC}/src/dyndns.h do-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} + ${INSTALL_DATA} -p ${WRKSRC}/${PORTDOCS} ${DOCSDIR} +.endif + ${INSTALL_PROGRAM} ${WRKSRC}/bin/linux/inadyn ${PREFIX}/bin +.if !defined(NO_INSTALL_MANPAGES) + ${INSTALL_MAN} ${WRKSRC}/man/inadyn.8 ${MANPREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/man/inadyn.conf.5 ${MANPREFIX}/man/man5 .endif - ${INSTALL_SCRIPT} ${WRKSRC}/bin/linux/inadyn ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/man/inadyn.8 ${MANPREFIX}/man/man8 - ${INSTALL_SCRIPT} ${WRKSRC}/man/inadyn.conf.5 ${MANPREFIX}/man/man5 .include -- cgit