blob: 688918268c656df2f48010a38618655475932f8c (
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
|
# Created by: will
# $FreeBSD$
PORTNAME= Mail-Audit
PORTVERSION= 2.228
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl module for creating easy mail filters
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= p5-File-HomeDir>=0.61:devel/p5-File-HomeDir \
p5-File-Tempdir>=0:devel/p5-File-Tempdir \
p5-MIME-Tools>=0:mail/p5-MIME-Tools \
p5-Mail-Tools>=0:mail/p5-Mail-Tools
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Mail-POP3Client>=0:mail/p5-Mail-POP3Client \
p5-Parse-RecDescent>=0:devel/p5-Parse-RecDescent
USES= perl5 shebangfix
SHEBANG_FILES= bin/*
USE_PERL5= configure
NO_ARCH= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= Changes FAQ README
PORTEXAMPLES= popread proc2ma
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -i '' -e 's|/var/spool/mail|/var/mail|g' \
${WRKSRC}/lib/Mail/Audit.pm
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
.endfor
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${PORTEXAMPLES}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${STAGEDIR}${EXAMPLESDIR}/${i}
.endfor
.include <bsd.port.mk>
|