blob: 9843ef7cc47b3405deda33426b0bd965332a6fb8 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.1.1.1 2001/10/22 06:57:10 martti Exp $
#
DISTNAME= amavisd-snapshot-${VERSION}
PKGNAME= amavis-perl-${VERSION}
CATEGORIES= security mail
MASTER_SITES= http://www.amavis.org/dist/ \
http://aachalon.de/AMaViS/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.amavis.org/
COMMENT= Mail virus scanner
CONFLICTS+= amavis-[0-9]*
DEPENDS+= uvscan-[0-9]*:../../security/uvscan
DEPENDS+= maildrop-[0-9]*:../../mail/maildrop
DEPENDS+= tnef-[0-9]*:../../mail/tnef
DEPENDS+= unzip-[0-9]*:../../archivers/unzip
DEPENDS+= unarj-[0-9]*:../../archivers/unarj
DEPENDS+= unrar-[0-9]*:../../archivers/unrar
DEPENDS+= xbin-[0-9]*:../../archivers/xbin
DEPENDS+= lha-[0-9]*:../../archivers/lha
DEPENDS+= zoo-[0-9]*:../../archivers/zoo
DEPENDS+= freeze-[0-9]*:../../archivers/freeze
DEPENDS+= arc-[0-9]*:../../archivers/arc
DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar
DEPENDS+= p5-Archive-Zip-[0-9]*:../../archivers/p5-Archive-Zip
DEPENDS+= p5-Compress-Zlib-[0-9]*:../../devel/p5-Compress-Zlib
DEPENDS+= p5-Convert-TNEF-[0-9]*:../../converters/p5-Convert-TNEF
DEPENDS+= p5-Convert-UUlib-[0-9]*:../../converters/p5-Convert-UUlib
DEPENDS+= p5-MIME-tools>=5.313:../../mail/p5-MIME-tools
DEPENDS+= p5-Net-[0-9]*:../../net/p5-Net
DEPENDS+= p5-Unix-Syslog-[0-9]*:../../sysutils/p5-Unix-Syslog
VERSION= 20010714
SMTPPORT?= 10025 # target port for scanned mails
VIRUSDIR?= /var/log/virusmails # where to put contaminated mails
VIRUSMAILTO?= security # whom to notify about viruses
GNU_CONFIGURE= YES
CONFIGURE_ENV+= procmail="/usr/libexec/mail.local"
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/amavis
CONFIGURE_ARGS+=--with-virusdir=${VIRUSDIR}
CONFIGURE_ARGS+=--with-mailto=${VIRUSMAILTO}
CONFIGURE_ARGS+=--enable-all
CONFIGURE_ARGS+=--enable-smtp --with-smtp-port=${SMTPPORT}
do-install:
# Program files
${INSTALL_PROGRAM} ${WRKSRC}/amavis/amavis ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/amavis/amavisd ${PREFIX}/sbin
# Documents
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/doc/amavis.html ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/doc/amavis.png ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/doc/amavis.txt ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${FILESDIR}/LICENSE.sendmail ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/README.exim ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/README.milter ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/README.postfix ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/README.qmail ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/README.scanners ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/README.sendmail ${PREFIX}/share/doc/amavis
${INSTALL_DATA} ${WRKSRC}/amavis/amavisd.conf \
${PREFIX}/share/doc/amavis
${SED} "s+@PREFIX@+${PREFIX}+g" < ${FILESDIR}/amavis.m4 \
> ${WRKDIR}/amavis.m4
${INSTALL_DATA} ${WRKDIR}/amavis.m4 ${PREFIX}/share/doc/amavis
.include "../../mk/bsd.pkg.mk"
|