? files/patch-src-dns-dns.h
RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/mail/postfix/Portfile,v
retrieving revision 1.16
diff -u -r1.16 Portfile
|
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | name postfix |
5 | | version 2.0.14 |
| 5 | version 2.0.17 |
6 | 6 | categories mail |
7 | 7 | maintainers charlie@rubberduck.com |
8 | 8 | description Fast and robust mail transfer agent |
… |
… |
|
13 | 13 | Postfix act as delivery daemon for ezmlm-idx. |
14 | 14 | homepage http://www.postfix.org/ |
15 | 15 | platforms darwin |
16 | | checksums md5 d0f1d1382958f3ce918d4d690be22229 |
| 16 | checksums md5 482e3912e4e910bd62f1a2d74bfa3b77 |
17 | 17 | master_sites ftp://ftp.tau.ac.il/pub/unix/mail/postfix/official/ \ |
18 | 18 | http://postfix.problemlos.ch/release/official/ \ |
19 | 19 | ftp://ftp.matrix.com.br/pub/postfix/official/ \ |
… |
… |
|
21 | 21 | ftp://ftp.club-internet.fr/pub/mirrors/ftp.porcupine.org/postfix-release/official/ \ |
22 | 22 | ftp://ftp.doc.cs.univ-paris8.fr/mirrors/ftp.porcupine.org/postfix-release/official/ |
23 | 23 | patchfiles patch-access.5 patch-flush.8 patch-master.8 \ |
24 | | patch-regexp_table.5 patch-sys_defs.h patch-canonical.5 \ |
| 24 | patch-regexp_table.5 patch-sys_defs.h patch-canonical.5 \ |
25 | 25 | patch-mail_params.h patch-pcre_table.5 patch-postdrop.1 \ |
26 | 26 | patch-postqueue.1 patch-relocated.5 patch-transport.5 \ |
27 | 27 | patch-cleanup.8 patch-main.cf patch-postfix-install \ |
… |
… |
|
35 | 35 | build.env-delete CCARGS=-DNO_PCRE |
36 | 36 | } |
37 | 37 | |
| 38 | platform darwin 7 { |
| 39 | patchfiles-append patch-src-dns-dns.h |
| 40 | } |
| 41 | |
38 | 42 | configure { |
39 | 43 | cd ${worksrcpath} |
40 | 44 | reinplace "s|__PREFIX|${prefix}|g" src/util/sys_defs.h |
… |
… |
|
72 | 76 | file mkdir ${destroot}${prefix}/sbin |
73 | 77 | file mkdir ${destroot}${prefix}/man |
74 | 78 | file mkdir ${destroot}${prefix}/share/postfix |
75 | | system "install -d -g postdrop ${destroot}${prefix}/var/spool/postfix/public" |
76 | | system "install -d -g postdrop ${destroot}${prefix}/var/spool/postfix/maildrop" |
| 79 | xinstall -d -o postfix -g postdrop ${destroot}${prefix}/var/spool/postfix/public |
| 80 | xinstall -d -o postfix -g postdrop ${destroot}${prefix}/var/spool/postfix/maildrop |
| 81 | # Add turd files to avoid these directories to be deleted. |
| 82 | system "touch ${destroot}${prefix}/var/spool/postfix/public/.turd" |
| 83 | system "chown postfix:postdrop ${destroot}${prefix}/var/spool/postfix/public/.turd" |
| 84 | system "touch ${destroot}${prefix}/var/spool/postfix/maildrop/.turd" |
| 85 | system "chown postfix:postdrop ${destroot}${prefix}/var/spool/postfix/maildrop/.turd" |
77 | 86 | system "/bin/sh postfix-install -non-interactive \ |
78 | 87 | install_root=${destroot} \ |
79 | 88 | config_directory=${prefix}/etc/postfix \ |
… |
… |
|
86 | 95 | mailq_path=${prefix}/bin/mailq \ |
87 | 96 | sample_directory=${prefix}/share/postfix/sample \ |
88 | 97 | readme_directory=${prefix}/share/postfix/readme" |
89 | | system "install -o root -m 755 -d ${destroot}${prefix}/etc/rc.d" |
90 | | system "install -o root -m 755 -c \ |
91 | | ${portpath}/files/postfix.sh ${destroot}${prefix}/etc/rc.d" |
| 98 | xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d |
| 99 | xinstall -m 755 -c ${portpath}/files/postfix.sh ${destroot}${prefix}/etc/rc.d |
92 | 100 | reinplace "s|__PREFIX|${prefix}|g" \ |
93 | 101 | ${destroot}${prefix}/etc/rc.d/postfix.sh |
94 | 102 | } |
… |
… |
|
102 | 110 | ${destroot}${prefix}/etc/postfix/master.cf.sample |
103 | 111 | file rename ${destroot}${prefix}/etc/postfix/aliases \ |
104 | 112 | ${destroot}${prefix}/etc/postfix/aliases.sample |
| 113 | } |
| 114 | |
| 115 | post-install { |
| 116 | # Tell the user about the renaming of the configuration files. |
| 117 | ui_msg "To get postfix working, you need to copy sample configuration " |
| 118 | ui_msg "files and to edit them (${prefix}/etc/postfix/*.sample)." |
| 119 | ui_msg "You may also want to turn your system's MTA off." |
105 | 120 | } |
RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/mail/postfix/files/patch-main.cf,v
retrieving revision 1.2
diff -u -r1.2 patch-main.cf
|
|
|
1 | | --- conf/main.cf Sat Jun 21 13:20:30 2003 |
2 | | +++ conf/main.cf.new Sat Jun 21 13:22:23 2003 |
| 1 | --- conf/main.cf.old Sat Jan 31 22:49:08 2004 |
| 2 | +++ conf/main.cf Sat Jan 31 22:50:21 2004 |
3 | 3 | @@ -26,18 +26,23 @@ |
4 | 4 | # See the files in examples/chroot-setup for setting up Postfix chroot |
5 | 5 | # environments on different UNIX systems. |
… |
… |
|
36 | 36 | |
37 | 37 | # INTERNET HOST AND DOMAIN NAMES |
38 | 38 | # |
39 | | @@ -252,7 +257,7 @@ |
| 39 | @@ -255,7 +260,7 @@ |
40 | 40 | # |
41 | 41 | #mynetworks = 168.100.189.0/28, 127.0.0.0/8 |
42 | 42 | #mynetworks = $config_directory/mynetworks |
… |
… |
|
45 | 45 | |
46 | 46 | # The relay_domains parameter restricts what destinations this system will |
47 | 47 | # relay mail to. See the smtpd_recipient_restrictions restriction in the |
48 | | @@ -316,7 +321,7 @@ |
| 48 | @@ -319,7 +324,7 @@ |
49 | 49 | # In the left-hand side, specify an @domain.tld wild-card, or specify |
50 | 50 | # a user@domain.tld address. |
51 | 51 | # |
… |
… |
|
54 | 54 | |
55 | 55 | # INPUT RATE CONTROL |
56 | 56 | # |
57 | | @@ -511,7 +516,7 @@ |
| 57 | @@ -376,6 +381,8 @@ |
| 58 | # It will take a minute or so before changes become visible. Use |
| 59 | # "postfix reload" to eliminate the delay. |
| 60 | # |
| 61 | +# netinfo only works on Darwin < 7 and MacOS X < Panther. |
| 62 | +# |
| 63 | #alias_maps = dbm:/etc/aliases |
| 64 | #alias_maps = hash:/etc/aliases |
| 65 | #alias_maps = hash:/etc/aliases, nis:mail.aliases |
| 66 | @@ -514,7 +521,7 @@ |
58 | 67 | # |
59 | 68 | # For details, see the sample-filter.cf file. |
60 | 69 | # |
… |
… |
|
63 | 72 | |
64 | 73 | # FAST ETRN SERVICE |
65 | 74 | # |
66 | | @@ -602,27 +607,27 @@ |
| 75 | @@ -605,27 +612,27 @@ |
67 | 76 | # sendmail_path: The full pathname of the Postfix sendmail command. |
68 | 77 | # This is the Sendmail-compatible mail posting interface. |
69 | 78 | # |
RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/mail/postfix/files/patch-sys_defs.h,v
retrieving revision 1.2
diff -u -r1.2 patch-sys_defs.h
|
|
|
1 | | --- src/util/sys_defs.h Tue Jun 10 02:11:56 2003 |
2 | | +++ src/util/sys_defs.h.new Sat Jun 21 13:16:27 2003 |
3 | | @@ -88,10 +88,10 @@ |
| 1 | --- src/util/sys_defs.h.old Sat Jan 31 22:45:53 2004 |
| 2 | +++ src/util/sys_defs.h Sat Jan 31 22:46:56 2004 |
| 3 | @@ -88,10 +88,8 @@ |
4 | 4 | #define HAS_FSYNC |
5 | 5 | #define HAS_DB |
6 | 6 | #define HAS_SA_LEN |
7 | 7 | -#define DEF_DB_TYPE "hash" |
8 | 8 | -#define ALIAS_DB_MAP "hash:/etc/aliases" |
9 | | +#define DEF_DB_TYPE "netinfo" |
10 | | +#define ALIAS_DB_MAP "netinfo:/aliases" |
11 | 9 | #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0) |
12 | 10 | -#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin" |
13 | 11 | +#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin:__PREFIX/bin:__PREFIX/sbin" |
14 | 12 | #define USE_STATFS |
15 | 13 | #define STATFS_IN_SYS_MOUNT_H |
16 | 14 | #define HAS_POSIX_REGEXP |
17 | | @@ -99,11 +99,11 @@ |
18 | | #define PRINTFLIKE(x,y) |
| 15 | @@ -100,12 +98,17 @@ |
19 | 16 | #define SCANFLIKE(x,y) |
| 17 | #ifndef NO_NETINFO |
20 | 18 | #define HAS_NETINFO |
| 19 | +#define DEF_DB_TYPE "netinfo" |
| 20 | +#define ALIAS_DB_MAP "netinfo:/aliases" |
| 21 | +#else |
| 22 | +#define DEF_DB_TYPE "hash" |
| 23 | +#define ALIAS_DB_MAP "hash:/etc/aliases" |
| 24 | #endif |
21 | 25 | -#define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail" |
22 | 26 | -#define NATIVE_MAILQ_PATH "/usr/bin/mailq" |
23 | 27 | -#define NATIVE_NEWALIAS_PATH "/usr/bin/newaliases" |