freebsd-ports/mail/pflogstats/Makefile
Mathieu Arnold 7c47779cb9 Fix usage of ${PERL5}.
${PERL5} points to a specific version of perl, say, perl5.22.1, it is
fine to use it in a ports Makefile to do Perly things, but ports using
it must use ${PERL}, that points to /usr/local/bin/perl so that if the
minor version is updated, the shebang keep working.

While there, make some ports use shebangfix, regen a few patches, and
bump PORTREVISION where a shebang went from PERL5 to PERL.

PR:		205367
With hat:	portmgr
Sponsored by:	Absolight
2015-12-17 17:19:48 +00:00

45 lines
1.3 KiB
Makefile

# Created by: Andrew J. Caines <A.J.Caines@halplant.com>
# $FreeBSD$
PORTNAME= pflogstats
PORTVERSION= 1.1.1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.aerasec.de/pub/linux/postfix/pflogsumm/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Postfix Log Statistics Reporter
BROKEN= unfetchable
LICENSE= GPLv2 # or later
RUN_DEPENDS= p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc \
p5-Net-IP>=0:${PORTSDIR}/net-mgmt/p5-Net-IP \
p5-Proc-ProcessTable>=0:${PORTSDIR}/devel/p5-Proc-ProcessTable \
p5-Number-Format>=0:${PORTSDIR}/textproc/p5-Number-Format \
p5-XML-Dumper>=0:${PORTSDIR}/textproc/p5-XML-Dumper
NO_BUILD= yes
USES= perl5 shebangfix
SHEBANG_FILES= *.pl
SITE_PERL_INST= ${PREFIX}/${SITE_PERL_REL}
post-patch:
@${REINPLACE_CMD} \
-e 's|/usr/local/lib/pflogstats|${SITE_PERL_INST}/Pflogstats|' \
${WRKSRC}/apachelogiostats.pl \
${WRKSRC}/pflogstats.pl \
${WRKSRC}/sqwmstats.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${SITE_PERL_INST}/Pflogstats
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-*.pm ${STAGEDIR}${SITE_PERL_INST}/Pflogstats
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README INSTALL ChangeLog BUGS TODO LICENSE CREDITS
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>