aboutsummaryrefslogtreecommitdiffstats
path: root/mail/pflogsumm/Makefile
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-03-18 20:42:02 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-03-18 20:42:02 +0800
commit989f7aa765c5581424e9aae423501cf2ccb117bb (patch)
treed2e7f171b03bfb879daffd78c026ea99076ac10c /mail/pflogsumm/Makefile
parent7a55c78e2e728dff977f87ffa631c851dab044dc (diff)
downloadfreebsd-ports-gnome-989f7aa765c5581424e9aae423501cf2ccb117bb.tar.gz
freebsd-ports-gnome-989f7aa765c5581424e9aae423501cf2ccb117bb.tar.zst
freebsd-ports-gnome-989f7aa765c5581424e9aae423501cf2ccb117bb.zip
- Support staging
- Use shebangfix - Define DOCS option
Diffstat (limited to 'mail/pflogsumm/Makefile')
-rw-r--r--mail/pflogsumm/Makefile21
1 files 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 <bsd.port.mk>