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

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

Update dependancies on the startup item.

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