From d87e1deaf6645b926e5ac597ee066751d5ea8fcc Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Tue, 18 Mar 2014 12:42:02 +0000 Subject: [PATCH] - Support staging - Use shebangfix - Define DOCS option --- mail/pflogsumm/Makefile | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/mail/pflogsumm/Makefile b/mail/pflogsumm/Makefile index 4d3bd31dae55..11fb8bb20207 100644 --- a/mail/pflogsumm/Makefile +++ b/mail/pflogsumm/Makefile @@ -13,25 +13,22 @@ COMMENT= Postfix Log Entry Summarizer RUN_DEPENDS= p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc +USES= perl5 shebangfix NO_BUILD= yes -USES= perl5 -PLIST_FILES= bin/pflogsumm -.if !defined(NOPORTDOCS) + +PLIST_FILES= bin/pflogsumm man/man1/pflogsumm.1.gz +SHEBANG_FILES= ${PORTNAME}.pl PORTDOCS= README ToDo pflogsumm-faq.txt -.endif -MAN1= pflogsumm.1 +OPTIONS_DEFINE= DOCS -NO_STAGE= yes do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \ - ${PREFIX}/bin/${PORTNAME} - ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1 -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR} .endfor -.endif .include