/
Portfile
49 lines (44 loc) · 1.93 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PortSystem 1.0
name postfix
version 1.1.11
categories mail
maintainers eric@opendarwin.org
description Fast and robust mail transfer agent
long_description Postfix attempts to be fast, easy to administer, and secure, while at \
the same time being sendmail-compatible enough to not upset existing \
users. It also offers QMQP and VERP support to let Postfix act as delivery \
daemon for ezmlm-idx.
platforms darwin
master_sites ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
ftp://ftp.tux.org/pub/net/postfix/official/ \
ftp://ftp.utoronto.ca/mirror/packages/postfix/official/
checksums md5 b34bb2b5018327c19456a77814141208
patchfiles patch-mail_params.h patch-main.cf patch-sample-misc.cf \
patch-sys_defs.h
configure { cd ${worksrcpath}
reinplace "s|__PREFIX|${prefix}|g" src/util/sys_defs.h
reinplace "s|__PREFIX|${prefix}|g" conf/main.cf
reinplace "s|__PREFIX|${prefix}|g" src/global/mail_params.h
reinplace "s|__PREFIX|${prefix}|g" conf/sample-misc.cf }
build.target.all
depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
install { adduser postfix realname=Postfix\ Server
addgroup maildrop
cd ${worksrcpath}
system "/bin/sh postfix-install -non-interactive \
config_directory=${prefix}/etc/postfix \
daemon_directory=${prefix}/libexec \
command_directory=${prefix}/sbin \
queue_directory=${prefix}/var/spool/postfix \
manpage_directory=${prefix}/man \
sendmail_path=${prefix}/sbin/sendmail \
newaliases_path=${prefix}/bin/newaliases \
mailq_path=${prefix}/bin/mailq \
sample_directory=${prefix}/share/postfix/sample \
readme_directory=${prefix}/share/postfix/readme"
system "install -o root -m 755 -d ${prefix}/etc/rc.d"
system "install -o root -m 755 -c \
${portpath}/files/postfix.sh ${prefix}/etc/rc.d"
reinplace "s|__PREFIX|${prefix}|g" \
${prefix}/etc/rc.d/postfix.sh }
include contents