Ticket #57801: Portfile

File Portfile, 1.6 KB (added by ianlund (Ian Timothy), 5 years ago)
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
3PortSystem                      1.0
4
5name                            opensmtpd
6version                         6.4.1p2
7license                                 bsd
8categories                      net
9platforms                       darwin
10description                     OpenSMTPD mailserver
11long_description            OpenSMTPD is a FREE implementation of the server-side SMTP protocol as defined by RFC 5321, with some additional standard extensions. It allows ordinary machines to exchange emails with other systems speaking the SMTP protocol.
12homepage                                https://www.opensmtpd.org
13
14maintainers                     openmaintainer \
15                                        thrivedata.it:ian
16
17master_sites                    https://www.opensmtpd.org/archives/
18
19checksums                       rmd160  6d41efd3f2fbbd1068a6c025bec4dd84370791a2\
20                                        sha256  b69b84934bcc4893ca334504411cd47f86ea04ac5e971a5746d44c473ac5f732 \
21                        size    718862
22                                       
23depends_build           port:autoconf \
24                                        port:automake \
25                                        port:bison \
26                                        port:libtool
27
28depends_lib                         port:libasr \
29                                        port:libevent \
30                                        port:libressl
31
32patchfiles              patch-config-fixes.diff
33       
34set sysconfdir          ${prefix}/etc/${name}
35
36configure.args          --with-libevent=${prefix} \
37                        --with-libasr=${prefix} \
38                        --sysconfdir=${sysconfdir} \
39                        --with-user-smtpd=nobody \
40                        --with-user-queue=nobody \
41                        --with-group-queue=daemon
42
43post-destroot {
44        file mkdir ${sysconfdir}
45    touch ${sysconfdir}/aliases
46}
47
48startupitem.create          yes
49startupitem.name            opensmtpd
50startupitem.executable  ${prefix}/sbin/smtpd -d