aboutsummaryrefslogtreecommitdiffstats
path: root/mail/pflogstats/Makefile
blob: 767d5f8525dcd2b86d7265df2aa85ec3388942f2 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    pflogstats
# Date created:         30 April 2003
# Whom:             Andrew J. Caines <A.J.Caines@halplant.com>
#
# $FreeBSD$
#

PORTNAME=   pflogstats
PORTVERSION=    1.1.1
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= mail
MASTER_SITES=   ftp://ftp.aerasec.de/pub/linux/postfix/pflogsumm/${PORTNAME}/

MAINTAINER= A.J.Caines@halplant.com
COMMENT=    Postfix Log Statistics Reporter

RUN_DEPENDS=    ${SITE_PERL}/${PERL_ARCH}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc \
        ${SITE_PERL}/Net/IP.pm:${PORTSDIR}/net-mgmt/p5-Net-IP \
        ${SITE_PERL}/${PERL_ARCH}/Proc/ProcessTable.pm:${PORTSDIR}/devel/p5-Proc-ProcessTable \
        ${SITE_PERL}/Number/Format.pm:${PORTSDIR}/textproc/p5-Number-Format \
        ${SITE_PERL}/XML/Dumper.pm:${PORTSDIR}/textproc/p5-XML-Dumper

NO_BUILD=   yes
USE_PERL5=  yes
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  ${PREFIX}/bin/${PORTNAME}
    @${MKDIR} ${SITE_PERL_INST}/Pflogstats
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-*.pm ${SITE_PERL_INST}/Pflogstats
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in README INSTALL ChangeLog BUGS TODO LICENSE CREDITS
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

post-install:
    @${CAT} ${PKGDIR}/pkg-message

.include <bsd.port.mk>