aboutsummaryrefslogtreecommitdiffstats
path: root/mail/p5-Mail-Audit/Makefile
blob: 239cfa371e967d05e9492120c6aa90e929466b3b (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
51
52
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:    Mail-Audit
# Date created:             Wed Jan  3 12:31:10 2001
# Whom:                 will
#
# $FreeBSD$
#

PORTNAME=   Mail-Audit
PORTVERSION=    2.2.16
CATEGORIES= mail perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Mail
PKGNAMEPREFIX=  p5-
DISTNAME=   ${PORTNAME}-${PORTVERSION:C/.([0-9]+)$/\1/}

MAINTAINER= perl@FreeBSD.org
COMMENT=    Perl module for creating easy mail filters

RUN_DEPENDS=    ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
        ${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
        ${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools \
        ${SITE_PERL}/Mail/ListDetector.pm:${PORTSDIR}/mail/p5-Mail-ListDetector \
        ${SITE_PERL}/Mail/Mailer.pm:${PORTSDIR}/mail/p5-Mail-Tools \
        p5-File-HomeDir>=0.61:${PORTSDIR}/devel/p5-File-HomeDir \
        ${SITE_PERL}/File/Tempdir.pm:${PORTSDIR}/devel/p5-File-Tempdir \
        ${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net
BUILD_DEPENDS=  ${RUN_DEPENDS}

PERL_CONFIGURE= yes

MAN3=       Mail::Audit.3 \
        Mail::Audit::KillDups.3 \
        Mail::Audit::List.3 \
        Mail::Audit::MAPS.3 \
        Mail::Audit::MailInternet.3 \
        Mail::Audit::MimeEntity.3 \
        Mail::Audit::PGP.3 \
        Mail::Audit::Razor.3 \
            Mail::Audit::Util::Tempdir.3 \
        Mail::Audit::Vacation.3

DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples//${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS=   Changes FAQ README
PORTEXAMPLES=   popread proc2ma

post-patch:
    @${PERL} -pi -e 's,/var/spool/mail,/var/mail,g' ${WRKSRC}/lib/Mail/Audit.pm

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.endif
    @${MKDIR} ${EXAMPLESDIR}
.for i in ${PORTEXAMPLES}
    @${INSTALL_SCRIPT} ${WRKSRC}/bin/${i}  ${EXAMPLESDIR}/${i}
.endfor

.include <bsd.port.mk>