aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spamstats/Makefile
blob: bba8d326e0f49e54ce72aea282621335be5aece1 (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
# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
# $FreeBSD$

PORTNAME=   spamstats
PORTVERSION=    0.6c
PORTREVISION=   2
CATEGORIES= mail
#MASTER_SITES=  http://www.inl.fr/download/
MASTER_SITES=   LOCAL/leeym

MAINTAINER= leeym@FreeBSD.org
COMMENT=    Tool to generate statistics for spamd of Mail::SpamAssassin

RUN_DEPENDS=    p5-Date-Manip>=0:${PORTSDIR}/devel/p5-Date-Manip \
        p5-Compress-Bzip2>=2.08:${PORTSDIR}/archivers/p5-Compress-Bzip2

NO_BUILD=   yes
PORTDOCS=   QUICK README copyright
PLIST_FILES=    bin/spamstats.pl
USES=       shebangfix perl5
SHEBANG_FILES=  ${PORTNAME}${PORTVERSION}.pl

post-patch:
    @${REINPLACE_CMD} -i '' -e 's|mail.log|maillog|g' \
        ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl

OPTIONS_DEFINE= DOCS

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl \
        ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.pl
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>