source: trunk/dports/mail/clamsmtp/Portfile

Last change on this file was 144510, checked in by khindenburg@…, 19 months ago

clamsmtp: update to 1.10 #39253

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 144510 2016-01-10 23:18:06Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    clamsmtp
6version                 1.10
7categories              mail security
8platforms               darwin
9license                 BSD
10maintainers             nomaintainer
11description             SMTP filter checking for viruses using the ClamAV anti-virus
12long_description        ClamSMTP is an SMTP filter that allows you to check for \
13                                        viruses using the ClamAV anti-virus software. It accepts \
14                                        SMTP connections and forwards the SMTP commands and \
15                                        responses to another SMTP server. The 'DATA' email body is \
16                                        intercepted and scanned before forwarding.
17
18homepage                http://thewalter.net/stef/software/${name}/
19master_sites    ${homepage}
20checksums               rmd160 464047852f91d46af79340f10179106c2fb22bbc \
21                        sha256 a52fdb4b26e11ece30c478a806c95b1eda16f4e73937bd560ece7017fb0df92a
22
23depends_run             bin:clamd:clamav
24
25configure.args  --mandir=${prefix}/share/man
26
27build.args              CFLAGS=-I${prefix}/include \
28                                LDFLAGS=-L${prefix}/lib
29
30post-destroot {
31        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/ \
32                ${destroot}${prefix}/var/run/
33        xinstall -m 644 ${worksrcpath}/doc/clamsmtpd.conf \
34                ${destroot}${prefix}/etc/clamsmtpd.conf.sample
35        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
36                ${destroot}${prefix}/share/doc/${name}
37}
38destroot.keepdirs       ${destroot}${prefix}/var/run
39
40set pidfile                     ${prefix}/var/run/clamsmtpd.pid
41startupitem.create      yes
42startupitem.name        ClamSMTP
43startupitem.start       \
44        "if \[ -r ${prefix}/etc/clamsmtpd.conf \]; then
45                ${prefix}/sbin/clamsmtpd -p ${pidfile}
46        fi"
47startupitem.stop        \
48        "if \[ -r ${pidfile} \]; then
49                kill \$(cat ${pidfile})
50        fi"
51
Note: See TracBrowser for help on using the repository browser.