source: trunk/dports/mail/amavisd-new/Portfile @ 113560

Last change on this file since 113560 was 113560, checked in by pixilla@…, 6 years ago

mail/amavisd-new:

  • Update to version 2.8.1.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 113560 2013-11-19 20:32:50Z pixilla@macports.org $
3
4PortSystem          1.0
5
6name                amavisd-new
7version             2.8.1
8categories          mail
9license             GPL-2
10maintainers         pixilla openmaintainer
11platforms           darwin
12supported_archs     noarch
13
14description         amavisd-new is a high-performance interface between mailer (MTA) and content \
15                    checkers: virus scanners, and/or SpamAssassin.
16long_description    ${description} It is written in Perl for maintainability, without paying a \
17                    significant price for speed. It talks to MTA via (E)SMTP or LMTP, or by using \
18                    helper programs. Best with Postfix, fine with dual-sendmail setup and Exim v4, \
19                    works with sendmail/milter, or with any MTA as a SMTP relay. For Courier and \
20                    qmail MTA integration there is a patch in the distributed package.
21homepage            http://www.ijs.si/software/amavisd/
22master_sites        ${homepage}
23
24checksums           rmd160  7d6f4628ba74743bf7637fd5052cf3925e670ad8 \
25                    sha256  f4391d1395bdb5ca05fb34178f3f08459ec95c914409f0f83d987acd37a0ba2d
26
27set perl_version    5.12
28set daemon_user     _amavisd
29set daemon_group    _amavisd
30set amavisd_home    ${prefix}/var/amavis
31add_users ${daemon_user} group=${daemon_group} realname=AMaViS\ Daemon home=${amavisd_home}
32
33depends_run         port:p${perl_version}-archive-zip \
34                    port:p${perl_version}-berkeleydb \
35                    port:p${perl_version}-convert-tnef \
36                    port:p${perl_version}-convert-uulib \
37                    port:p${perl_version}-digest-md5 \
38                    port:p${perl_version}-io-compress \
39                    port:p${perl_version}-io-stringy \
40                    port:p${perl_version}-mail-dkim \
41                    port:p${perl_version}-mailtools \
42                    port:p${perl_version}-mime-tools \
43                    port:p${perl_version}-mime-base64 \
44                    port:p${perl_version}-net-server \
45                    port:p${perl_version}-time-hires \
46                    port:p${perl_version}-unix-syslog \
47                    port:p${perl_version}-mail-spamassassin \
48                    port:p${perl_version}-dbd-mysql \
49                    port:p${perl_version}-mail-clamav \
50                    port:clamav \
51                    port:clamav-server
52
53post-patch {
54    reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl${perl_version}|" \
55              ${worksrcpath}/amavisd
56    file copy ${worksrcpath}/amavisd.conf ${worksrcpath}/amavisd.conf.example
57    reinplace "s|\$daemon_user\  =\ 'vscan'|\$daemon_user\  =\ '${daemon_user}'|" \
58              ${worksrcpath}/amavisd.conf.example
59    reinplace "s|\$daemon_group\ =\ 'vscan'|\$daemon_group\  =\ '${daemon_group}'|" \
60              ${worksrcpath}/amavisd.conf.example
61    reinplace "s|#\ \$MYHOME\ =\ '/var/amavis'|\$MYHOME\ =\ '${amavisd_home}'|" \
62              ${worksrcpath}/amavisd.conf.example
63    reinplace "s|\$QUARANTINEDIR\ =\ '/var/virusmails'|\$QUARANTINEDIR\ =\ '${amavisd_home}/quarantine'|" \
64              ${worksrcpath}/amavisd.conf.example
65}
66
67use_configure       no
68
69build               {}
70
71destroot {
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
103livecheck.url       ${master_sites}
104livecheck.type      regex
105livecheck.regex     "${name}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.