source: trunk/dports/mail/postfix/Portfile @ 1202

Last change on this file since 1202 was 1202, checked in by eric, 18 years ago

Explicitly list darwin as the one and only platform when no platforms were
previously specified.

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1PortSystem 1.0
2name            postfix
3version         1.1.11
4categories      mail
5maintainers     eric@opendarwin.org
6description     Fast and robust mail transfer agent
7platforms       darwin
8master_sites    ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
9                ftp://ftp.tux.org/pub/net/postfix/official/ \
10                ftp://ftp.utoronto.ca/mirror/packages/postfix/official/
11checksums       md5 b34bb2b5018327c19456a77814141208
12patchfiles      patch-mail_params.h patch-main.cf patch-sample-misc.cf \
13                patch-sys_defs.h
14
15configure       { cd ${worksrcpath}
16                  reinplace "s|__PREFIX|${prefix}|g" src/util/sys_defs.h
17                  reinplace "s|__PREFIX|${prefix}|g" conf/main.cf
18                  reinplace "s|__PREFIX|${prefix}|g" src/global/mail_params.h
19                  reinplace "s|__PREFIX|${prefix}|g" conf/sample-misc.cf }
20
21build.target.all
22
23depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
24
25install         { adduser postfix realname=Postfix\ Server
26                  addgroup maildrop
27                  cd ${worksrcpath}
28                  system "/bin/sh postfix-install -non-interactive \
29                    config_directory=${prefix}/etc/postfix \
30                    daemon_directory=${prefix}/libexec \
31                    command_directory=${prefix}/sbin \
32                    queue_directory=${prefix}/var/spool/postfix \
33                    manpage_directory=${prefix}/man \
34                    sendmail_path=${prefix}/sbin/sendmail \
35                    newaliases_path=${prefix}/bin/newaliases \
36                    mailq_path=${prefix}/bin/mailq \
37                    sample_directory=${prefix}/share/postfix/sample \
38                    readme_directory=${prefix}/share/postfix/readme"
39                  system "install -o root -m 755 -d ${prefix}/etc/rc.d"
40                  system "install -o root -m 755 -c \
41                    ${portpath}/files/postfix.sh ${prefix}/etc/rc.d"
42                  reinplace "s|__PREFIX|${prefix}|g" \
43                    ${prefix}/etc/rc.d/postfix.sh }
44
45include         contents
Note: See TracBrowser for help on using the repository browser.