? postfix.diff
? 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-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 @@ |
4 | | #define HAS_FSYNC |
5 | | #define HAS_DB |
6 | | #define HAS_SA_LEN |
7 | | -#define DEF_DB_TYPE "hash" |
8 | | -#define ALIAS_DB_MAP "hash:/etc/aliases" |
9 | | +#define DEF_DB_TYPE "netinfo" |
10 | | +#define ALIAS_DB_MAP "netinfo:/aliases" |
11 | | #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0) |
12 | | -#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin" |
13 | | +#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin:__PREFIX/bin:__PREFIX/sbin" |
14 | | #define USE_STATFS |
| 1 | --- src/util/sys_defs.h.orig Wed Nov 5 21:17:37 2003 |
| 2 | +++ src/util/sys_defs.h Wed Jan 21 20:31:50 2004 |
| 3 | @@ -52,11 +52,11 @@ |
15 | 4 | #define STATFS_IN_SYS_MOUNT_H |
16 | 5 | #define HAS_POSIX_REGEXP |
17 | | @@ -99,11 +99,11 @@ |
18 | | #define PRINTFLIKE(x,y) |
19 | | #define SCANFLIKE(x,y) |
20 | | #define HAS_NETINFO |
| 6 | #define HAS_ST_GEN /* struct stat contains inode generation number */ |
21 | 7 | -#define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail" |
22 | 8 | -#define NATIVE_MAILQ_PATH "/usr/bin/mailq" |
23 | 9 | -#define NATIVE_NEWALIAS_PATH "/usr/bin/newaliases" |
… |
… |
|
30 | 16 | +#define NATIVE_DAEMON_DIR "__PREFIX/libexec/postfix" |
31 | 17 | #endif |
32 | 18 | |
33 | | /* |
| 19 | #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) |
| 20 | @@ -88,10 +88,10 @@ |
| 21 | #define HAS_FSYNC |
| 22 | #define HAS_DB |
| 23 | #define HAS_SA_LEN |
| 24 | -#define DEF_DB_TYPE "hash" |
| 25 | -#define ALIAS_DB_MAP "hash:/etc/aliases" |
| 26 | +#define DEF_DB_TYPE "netinfo" |
| 27 | +#define ALIAS_DB_MAP "netinfo:/aliases" |
| 28 | #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0) |
| 29 | -#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin" |
| 30 | +#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin:__PREFIX/bin:__PREFIX/sbin" |
| 31 | #define USE_STATFS |
| 32 | #define STATFS_IN_SYS_MOUNT_H |
| 33 | #define HAS_POSIX_REGEXP |