2013-09-20 21:59:12 +02:00
|
|
|
# Created by: Andrew J. Caines <A.J.Caines@halplant.com>
|
2003-05-11 17:01:13 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pflogstats
|
2005-10-21 22:25:53 +02:00
|
|
|
PORTVERSION= 1.1.1
|
2014-11-26 14:08:24 +01:00
|
|
|
PORTREVISION= 2
|
2004-05-14 22:42:46 +02:00
|
|
|
PORTEPOCH= 1
|
2003-05-11 17:01:13 +02:00
|
|
|
CATEGORIES= mail
|
2004-05-14 17:30:08 +02:00
|
|
|
MASTER_SITES= ftp://ftp.aerasec.de/pub/linux/postfix/pflogsumm/${PORTNAME}/
|
2003-05-11 17:01:13 +02:00
|
|
|
|
2015-05-30 02:30:57 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-05-11 17:01:13 +02:00
|
|
|
COMMENT= Postfix Log Statistics Reporter
|
|
|
|
|
2015-05-30 02:30:57 +02:00
|
|
|
LICENSE= GPLv2 # or later
|
|
|
|
|
2012-06-30 15:10:09 +02:00
|
|
|
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
|
2003-05-11 17:01:13 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2013-09-04 08:06:59 +02:00
|
|
|
USES= perl5
|
2004-05-14 17:30:08 +02:00
|
|
|
SITE_PERL_INST= ${SITE_PERL:S/${LOCALBASE}/${PREFIX}/}
|
2003-05-11 17:01:13 +02:00
|
|
|
|
|
|
|
post-patch:
|
2005-10-22 19:56:43 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|/usr/bin/perl.*|${PERL}|' \
|
|
|
|
-e 's|/usr/local/lib/pflogstats|${SITE_PERL_INST}/Pflogstats|' \
|
|
|
|
${WRKSRC}/apachelogiostats.pl \
|
|
|
|
${WRKSRC}/pflogstats.pl \
|
|
|
|
${WRKSRC}/sqwmstats.pl
|
2003-05-11 17:01:13 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-08-06 03:33:19 +02:00
|
|
|
${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}
|
2003-05-11 17:01:13 +02:00
|
|
|
.for i in README INSTALL ChangeLog BUGS TODO LICENSE CREDITS
|
2014-08-06 03:33:19 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2003-05-11 17:01:13 +02:00
|
|
|
.endfor
|
2005-10-21 22:25:53 +02:00
|
|
|
|
2003-06-21 11:01:54 +02:00
|
|
|
.include <bsd.port.mk>
|