blob: 87a66157dfd0c49082c7baf9dfad86732dc396bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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
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
SITE_PERL_INST= ${SITE_PERL:S/${LOCALBASE}/${PREFIX}/}
post-patch:
@${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
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>
|