RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/mail/postfix/Portfile,v
retrieving revision 1.21
diff -u -r1.21 Portfile
|
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | name postfix |
5 | | version 2.0.17 |
6 | | revision 2 |
| 5 | version 2.2.3 |
7 | 6 | categories mail |
8 | 7 | maintainers yeled@opendarwin.org |
9 | 8 | description Fast and robust mail transfer agent |
… |
… |
|
14 | 13 | Postfix act as delivery daemon for ezmlm-idx. |
15 | 14 | homepage http://www.postfix.org/ |
16 | 15 | platforms darwin |
17 | | checksums md5 482e3912e4e910bd62f1a2d74bfa3b77 |
| 16 | checksums md5 f164b701c3e97b950d4cc64aff4de3c0 |
18 | 17 | master_sites ftp://ftp.tau.ac.il/pub/unix/mail/postfix/official/ \ |
19 | 18 | http://postfix.problemlos.ch/release/official/ \ |
20 | 19 | ftp://ftp.matrix.com.br/pub/postfix/official/ \ |
21 | 20 | ftp://ftp.its.cz/MIRRORS/ftp.porcupine.org/mirrors/postfix-release/official/ \ |
22 | 21 | ftp://ftp.club-internet.fr/pub/mirrors/ftp.porcupine.org/postfix-release/official/ \ |
23 | 22 | ftp://ftp.doc.cs.univ-paris8.fr/mirrors/ftp.porcupine.org/postfix-release/official/ |
| 23 | |
| 24 | depends_run port:DarwinPortsStartup |
| 25 | |
24 | 26 | patchfiles patch-access.5 patch-flush.8 patch-master.8 \ |
25 | | patch-regexp_table.5 patch-sys_defs.h patch-canonical.5 \ |
| 27 | patch-regexp_table.5 patch-sys_defs.h patch-canonical.5 \ |
26 | 28 | patch-mail_params.h patch-pcre_table.5 patch-postdrop.1 \ |
27 | 29 | patch-postqueue.1 patch-relocated.5 patch-transport.5 \ |
28 | 30 | patch-cleanup.8 patch-main.cf patch-postfix-install \ |
… |
… |
|
30 | 32 | patch-virtual.5 |
31 | 33 | |
32 | 34 | build.env CCARGS=-DNO_PCRE |
33 | | default_variants +pcre |
34 | | variant pcre { |
35 | | depends_lib-append lib:libpcre:pcre |
36 | | build.env-delete CCARGS=-DNO_PCRE |
37 | | } |
38 | | |
39 | | platform darwin 7 { |
40 | | build.env-append CCARGS=-DBIND_8_COMPAT |
41 | | } |
42 | 35 | |
43 | 36 | configure { |
44 | 37 | cd ${worksrcpath} |
… |
… |
|
64 | 57 | |
65 | 58 | build.target |
66 | 59 | |
67 | | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
68 | | |
69 | 60 | destroot { |
70 | 61 | adduser postfix realname=Postfix\ Server |
71 | 62 | addgroup postdrop |
72 | 63 | cd ${worksrcpath} |
73 | | file mkdir ${destroot}${prefix}/bin |
| 64 | # file mkdir ${destroot}${prefix}/bin |
74 | 65 | file mkdir ${destroot}${prefix}/etc/postfix |
75 | | file mkdir ${destroot}${prefix}/etc/rc.d |
76 | | file mkdir ${destroot}${prefix}/libexec |
77 | | file mkdir ${destroot}${prefix}/sbin |
78 | | file mkdir ${destroot}${prefix}/share/man |
| 66 | # file mkdir ${destroot}${prefix}/libexec |
| 67 | # file mkdir ${destroot}${prefix}/sbin |
| 68 | # file mkdir ${destroot}${prefix}/share/man |
79 | 69 | file mkdir ${destroot}${prefix}/share/postfix |
80 | | xinstall -d -o postfix -g postdrop ${destroot}${prefix}/var/spool/postfix/public |
81 | | xinstall -d -o postfix -g postdrop ${destroot}${prefix}/var/spool/postfix/maildrop |
| 70 | xinstall -d -m 755 ${destroot}${prefix}/etc/rc.d |
| 71 | xinstall -d -o postfix -g postdrop -m 710 ${destroot}${prefix}/var/spool/postfix/public |
| 72 | xinstall -d -o postfix -g postdrop -m 730 ${destroot}${prefix}/var/spool/postfix/maildrop |
82 | 73 | destroot.keepdirs ${destroot}${prefix}/var/spool/postfix/public ${destroot}${prefix}/var/spool/postfix/maildrop |
83 | 74 | system "/bin/sh postfix-install -non-interactive \ |
84 | 75 | install_root=${destroot} \ |
… |
… |
|
92 | 83 | mailq_path=${prefix}/bin/mailq \ |
93 | 84 | sample_directory=${prefix}/share/postfix/sample \ |
94 | 85 | readme_directory=${prefix}/share/postfix/readme" |
95 | | xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d |
96 | 86 | xinstall -m 755 -c ${portpath}/files/postfix.sh ${destroot}${prefix}/etc/rc.d |
97 | | reinplace "s|__PREFIX|${prefix}|g" \ |
98 | | ${destroot}${prefix}/etc/rc.d/postfix.sh |
| 87 | reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/postfix.sh |
99 | 88 | } |
100 | 89 | # This makes sure we don't overwrite user /etc files. This now breaks postfix |
101 | 90 | # "just working" on fresh installs. |
… |
… |
|
114 | 103 | ui_msg "To get postfix working, you need to copy sample configuration " |
115 | 104 | ui_msg "files and to edit them (${prefix}/etc/postfix/*.sample)." |
116 | 105 | ui_msg "You may also want to turn your system's MTA off." |
| 106 | } |
| 107 | |
| 108 | |
| 109 | platform darwin 7 { |
| 110 | build.env-append CCARGS=-DBIND_8_COMPAT |
| 111 | } |
| 112 | |
| 113 | variant pcre { |
| 114 | depends_lib-append lib:libpcre:pcre |
| 115 | build.env-delete CCARGS=-DNO_PCRE |
117 | 116 | } |