1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name amavisd-new |
---|
7 | version 2.6.5 |
---|
8 | categories mail |
---|
9 | maintainers pixilla openmaintainer |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Interface between mailer (MTA) and one or more content checkers. |
---|
13 | long_description amavisd-new is a high-performance and reliable interface between mailer \ |
---|
14 | (MTA) and one or more content checkers: virus scanners, and/or \ |
---|
15 | Mail::SpamAssassin Perl module. It is written in Perl, ensuring high \ |
---|
16 | reliability, portability and maintainability. It talks to MTA via \ |
---|
17 | (E)SMTP or LMTP protocols, or by using helper programs. No timing gaps \ |
---|
18 | exist in the design, which could cause a mail loss. |
---|
19 | |
---|
20 | homepage http://www.ijs.si/software/amavisd/ |
---|
21 | master_sites ${homepage} |
---|
22 | |
---|
23 | checksums sha1 1f76196653e19886ee8352815c3f4d80f4984876 \ |
---|
24 | rmd160 c28d9c9fc11ac8d942f82874981b6d9889b8c167 |
---|
25 | |
---|
26 | depends_run port:perl5 \ |
---|
27 | port:p5-archive-zip \ |
---|
28 | port:p5-berkeleydb \ |
---|
29 | port:p5-convert-tnef \ |
---|
30 | port:p5-convert-uulib \ |
---|
31 | port:p5-digest-md5 \ |
---|
32 | port:p5-io-compress \ |
---|
33 | port:p5-io-stringy \ |
---|
34 | port:p5-mail-dkim \ |
---|
35 | port:p5-mailtools \ |
---|
36 | port:p5-mime-tools \ |
---|
37 | port:p5-mime-base64 \ |
---|
38 | port:p5-net-server \ |
---|
39 | port:p5-time-hires \ |
---|
40 | port:p5-unix-syslog |
---|
41 | |
---|
42 | set daemon_user _amavisd |
---|
43 | set daemon_group _amavisd |
---|
44 | set amavisd_home ${prefix}/var/amavis |
---|
45 | |
---|
46 | post-patch { |
---|
47 | reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" \ |
---|
48 | ${worksrcpath}/amavisd |
---|
49 | file copy ${worksrcpath}/amavisd.conf ${worksrcpath}/amavisd.conf.example |
---|
50 | reinplace "s|\$daemon_user\ =\ 'vscan'|\$daemon_user\ =\ '${daemon_user}'|" \ |
---|
51 | ${worksrcpath}/amavisd.conf.example |
---|
52 | reinplace "s|\$daemon_group\ =\ 'vscan'|\$daemon_group\ =\ '${daemon_group}'|" \ |
---|
53 | ${worksrcpath}/amavisd.conf.example |
---|
54 | reinplace "s|#\ \$MYHOME\ =\ '/var/amavis'|\$MYHOME\ =\ '${amavisd_home}'|" \ |
---|
55 | ${worksrcpath}/amavisd.conf.example |
---|
56 | reinplace "s|\$QUARANTINEDIR\ =\ '/var/virusmails'|\$QUARANTINEDIR\ =\ '${amavisd_home}/quarantine'|" \ |
---|
57 | ${worksrcpath}/amavisd.conf.example |
---|
58 | } |
---|
59 | |
---|
60 | use_configure no |
---|
61 | |
---|
62 | build {} |
---|
63 | |
---|
64 | destroot { |
---|
65 | if { ![existsgroup ${daemon_group}]} { |
---|
66 | addgroup ${daemon_group} |
---|
67 | } |
---|
68 | if { ![existsuser ${daemon_user}]} { |
---|
69 | set gid ${daemon_group} |
---|
70 | adduser ${daemon_user} gid=${gid} realname="AMaViS Daemon" home=${amavisd_home} |
---|
71 | } |
---|
72 | xinstall -m 750 -o ${daemon_user} -g ${daemon_group} \ |
---|
73 | ${worksrcpath}/amavisd \ |
---|
74 | ${destroot}${prefix}/sbin/amavisd |
---|
75 | xinstall -m 640 -o root -g ${daemon_group} \ |
---|
76 | ${worksrcpath}/amavisd.conf.example \ |
---|
77 | ${destroot}${prefix}/etc/amavisd.conf.example |
---|
78 | xinstall -m 750 -o ${daemon_user} -g ${daemon_group} -d \ |
---|
79 | ${destroot}${amavisd_home} \ |
---|
80 | ${destroot}${amavisd_home}/tmp \ |
---|
81 | ${destroot}${amavisd_home}/var \ |
---|
82 | ${destroot}${amavisd_home}/db \ |
---|
83 | ${destroot}${amavisd_home}/home \ |
---|
84 | ${destroot}${amavisd_home}/quarantine |
---|
85 | xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ |
---|
86 | /dev/null \ |
---|
87 | ${destroot}${amavisd_home}/tmp/.turd_${name} |
---|
88 | xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ |
---|
89 | /dev/null \ |
---|
90 | ${destroot}${amavisd_home}/var/.turd_${name} |
---|
91 | xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ |
---|
92 | /dev/null \ |
---|
93 | ${destroot}${amavisd_home}/db/.turd_${name} |
---|
94 | xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ |
---|
95 | /dev/null \ |
---|
96 | ${destroot}${amavisd_home}/home/.turd_${name} |
---|
97 | xinstall -m 640 -o ${daemon_user} -g ${daemon_group} \ |
---|
98 | /dev/null \ |
---|
99 | ${destroot}${amavisd_home}/quarantine/.turd_${name} |
---|
100 | copy ${worksrcpath} ${destroot}${prefix}/share/${name} |
---|
101 | } |
---|
102 | |
---|
103 | livecheck.url ${master_sites} |
---|
104 | livecheck.type regex |
---|
105 | livecheck.regex "${name}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}" |
---|