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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name amavisd-new |
---|
7 | version 2.6.1 |
---|
8 | categories mail |
---|
9 | maintainers openmaintainer |
---|
10 | description high-performance interface between mailer (MTA) \ |
---|
11 | and content checkers |
---|
12 | |
---|
13 | long_description amavisd-new is a high-performance and reliable \ |
---|
14 | interface between mailer (MTA) and one or more \ |
---|
15 | content checkers: virus scanners, and/or \ |
---|
16 | Mail::SpamAssassin Perl module. It is written in \ |
---|
17 | Perl, ensuring high reliability, portability and \ |
---|
18 | maintainability. |
---|
19 | |
---|
20 | homepage http://www.ijs.si/software/amavisd/ |
---|
21 | |
---|
22 | master_sites http://www.ijs.si/software/amavisd/ \ |
---|
23 | http://mirrors.catpipe.net/amavisd-new/ \ |
---|
24 | http://mirror.mainloop.se/amavisd/ \ |
---|
25 | http://mirror.cedratnet.com/amavisd-new/ \ |
---|
26 | http://mirror.omroep.nl/amavisd-new/ |
---|
27 | master_sites.mirror_subdir amavisd |
---|
28 | |
---|
29 | checksums md5 2474d4c034f96a58e5b8af91af514689 \ |
---|
30 | sha1 51e3e3d9c2aaa33f6a41a84092c82adb94e2a806 \ |
---|
31 | rmd160 c9e248540bfaf9cc6ab967776bd98e164b636db8 |
---|
32 | platforms darwin |
---|
33 | |
---|
34 | |
---|
35 | depends_run port:perl5.8 \ |
---|
36 | port:p5-archive-zip \ |
---|
37 | port:p5-berkeleydb \ |
---|
38 | port:p5-convert-tnef \ |
---|
39 | port:p5-convert-uulib \ |
---|
40 | port:p5-digest-md5 \ |
---|
41 | port:p5-io-compress \ |
---|
42 | port:p5-io-stringy \ |
---|
43 | port:p5-mail-dkim \ |
---|
44 | port:p5-mailtools \ |
---|
45 | port:p5-mime-tools \ |
---|
46 | port:p5-mime-base64 \ |
---|
47 | port:p5-net-server \ |
---|
48 | port:p5-time-hires \ |
---|
49 | port:p5-unix-syslog |
---|
50 | |
---|
51 | |
---|
52 | variant clamav description {Use ClamAV to scan mail for virii} { |
---|
53 | depends_run-append port:p5-mail-clamav |
---|
54 | } |
---|
55 | |
---|
56 | variant spamassassin description {Use SpamAssassin to scan mail for spam} { |
---|
57 | depends_run-append port:p5-mail-spamassassin |
---|
58 | } |
---|
59 | |
---|
60 | patch { |
---|
61 | reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" \ |
---|
62 | ${worksrcpath}/amavisd |
---|
63 | } |
---|
64 | |
---|
65 | configure { |
---|
66 | |
---|
67 | } |
---|
68 | |
---|
69 | build { |
---|
70 | |
---|
71 | } |
---|
72 | |
---|
73 | pre-destroot { |
---|
74 | if { ! [existsgroup amavis] } then { |
---|
75 | addgroup amavis home=${prefix}/var/amavis |
---|
76 | } |
---|
77 | |
---|
78 | if { ! [existsuser amavis] } then { |
---|
79 | adduser amavis gid=[existsgroup amavis] home=${prefix}/var/amavis |
---|
80 | } |
---|
81 | } |
---|
82 | |
---|
83 | destroot.keepdirs ${prefix}/var/amavis \ |
---|
84 | ${prefix}/var/amavis/tmp \ |
---|
85 | ${prefix}/var/amavis/var \ |
---|
86 | ${prefix}/var/amavis/db \ |
---|
87 | ${prefix}/var/amavis/home \ |
---|
88 | ${prefix}/var/amavis/quarantine \ |
---|
89 | |
---|
90 | destroot { |
---|
91 | xinstall -o [existsuser amavis] -g [existsgroup amavis] \ |
---|
92 | -d -m 750 ${destroot}${prefix}/var/amavis/tmp |
---|
93 | xinstall -o [existsuser amavis] -g [existsgroup amavis] \ |
---|
94 | -d -m 750 ${destroot}${prefix}/var/amavis/var |
---|
95 | xinstall -o [existsuser amavis] -g [existsgroup amavis] \ |
---|
96 | -d -m 750 ${destroot}${prefix}/var/amavis/db |
---|
97 | xinstall -o [existsuser amavis] -g [existsgroup amavis] \ |
---|
98 | -d -m 750 ${destroot}${prefix}/var/amavis/home |
---|
99 | xinstall -o [existsuser amavis] -g [existsgroup amavis] \ |
---|
100 | -d -m 750 ${destroot}${prefix}/var/amavis/quarantine |
---|
101 | |
---|
102 | |
---|
103 | xinstall -d ${destroot}${prefix}/sbin |
---|
104 | xinstall -m 755 ${worksrcpath}/amavisd ${destroot}${prefix}/sbin/amavisd |
---|
105 | |
---|
106 | xinstall -d ${destroot}${prefix}/etc |
---|
107 | xinstall -o [existsuser root] -g [existsgroup amavis] \ |
---|
108 | -m 640 ${worksrcpath}/amavisd.conf \ |
---|
109 | ${destroot}${prefix}/etc/amavisd.conf.example |
---|
110 | } |
---|