Ticket #15463: Portfile.diff
File Portfile.diff, 5.6 KB (added by markd@…, 16 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name postfix 6 version 2. 4.66 version 2.5.2 7 7 categories mail 8 8 maintainers wms 9 9 description Fast and robust mail transfer agent … … 14 14 Postfix act as delivery daemon for ezmlm-idx. 15 15 homepage http://www.postfix.org/ 16 16 platforms darwin 17 checksums md5 303327f66c13ff9631734651ee184a88\18 sha1 226222707fd8d963d3173070cac96370c453ffa717 checksums md5 b0965aea4d548d9bd231af7143aa6942 \ 18 sha1 6589c590b2e2a955bce5615bde1a86c37c572ce0 19 19 master_sites http://www.swissrave.ch/mirror/postfix-source/official/ \ 20 20 ftp://ftp.its.cz/MIRRORS/ftp.porcupine.org/mirrors/postfix-release/official/ \ 21 21 ftp://ftp.club-internet.fr/pub/mirrors/ftp.porcupine.org/postfix-release/official/ 22 22 23 patchfiles patch-sys_defs.h patch-mai n.cf patch-mail_params.h patch-postfix-install23 patchfiles patch-sys_defs.h patch-mail_params.h patch-postfix-install 24 24 25 25 post-patch { 26 26 eval reinplace "s|/etc/|${prefix}/etc/|g" \ … … 29 29 [glob ${worksrcpath}/man/man8/*] 30 30 31 31 reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/util/sys_defs.h 32 reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/conf/main.cf33 32 reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/global/mail_params.h 33 34 reinplace "s|#default_privs|default_privs|g" \ 35 ${worksrcpath}/conf/main.cf 36 reinplace "s|/etc/postfix/network_table|${prefix}/etc/postfix/network_table|g" \ 37 ${worksrcpath}/conf/main.cf 38 reinplace "s|/etc/postfix/relay_recipients|${prefix}/etc/postfix_relay_recipients|g" \ 39 ${worksrcpath}/conf/main.cf 40 reinplace "s|/etc/postfix/header_checks|${prefix}/etc/postfix/header_checks|g" \ 41 ${worksrcpath}/conf/main.cf 42 reinplace "s|/bin:/usr/bin|${prefix}/bin:/bin:/usr/bin|g" \ 43 ${worksrcpath}/conf/main.cf 34 44 } 35 45 36 46 set CCARGS -DNO_PCRE 37 47 set AUXLIBS "-L${prefix}/lib -R${prefix}/lib -L${prefix}/lib" 48 set pf_mail_owner "postfix" 49 set pf_setgid_group "postdrop" 50 51 # Beginning with Mac OS X 10.5, the user 'postfix' changed to '_postfix' 52 platform darwin 9 { 53 global pf_mail_owner 54 global pf_setgid_group 55 set pf_mail_owner "_postfix" 56 set pf_setgid_group "_postdrop" 57 } 38 58 39 59 configure { 40 60 system "make makefiles CCARGS=\"${CCARGS}\" AUXLIBS=\"${AUXLIBS}\"" … … 47 67 startupitem.stop "${prefix}/sbin/${name} stop" 48 68 49 69 destroot { 50 adduser postfix realname=Postfix\ Server51 addgroup postdrop52 file mkdir ${destroot}${prefix}/etc/postfix53 file mkdir ${destroot}${prefix}/share/postfix54 xinstall -d -o postfix -g postdrop -m \55 710 ${destroot}${prefix}/var/spool/postfix/public56 xinstall -d -o postfix -g postdrop -m 730 \57 ${destroot}${prefix}/var/spool/postfix/maildrop70 # adduser postfix realname=Postfix\ Server 71 # addgroup postdrop 72 # file mkdir ${destroot}${prefix}/etc/postfix 73 # file mkdir ${destroot}${prefix}/share/postfix 74 # xinstall -d -o postfix -g postdrop -m \ 75 # 710 ${destroot}${prefix}/var/spool/postfix/public 76 # xinstall -d -o postfix -g postdrop -m 730 \ 77 # ${destroot}${prefix}/var/spool/postfix/maildrop 58 78 destroot.keepdirs ${destroot}${prefix}/var/spool/postfix/public \ 59 ${destroot}${prefix}/var/spool/postfix/maildrop 79 ${destroot}${prefix}/var/spool/postfix/maildrop \ 80 ${destroot}${prefix}/var/lib/postfix 60 81 system "cd ${worksrcpath} && /bin/sh postfix-install -non-interactive \ 61 82 install_root=${destroot} \ 62 83 config_directory=${prefix}/etc/postfix \ 63 daemon_directory=${prefix}/libexec/postfix \64 command_directory=${prefix}/sbin \65 manpage_directory=${prefix}/share/man \66 84 queue_directory=${prefix}/var/spool/postfix \ 85 command_directory=${prefix}/sbin \ 86 daemon_directory=${prefix}/libexec/postfix \ 87 data_directory=${prefix}/var/lib/postfix \ 67 88 sendmail_path=${prefix}/sbin/sendmail \ 68 89 newaliases_path=${prefix}/bin/newaliases \ 69 90 mailq_path=${prefix}/bin/mailq \ 91 etc_directory=${prefix}/etc/postfix \ 92 share_directory=${prefix}/share/postfix \ 93 manpage_directory=${prefix}/share/man \ 70 94 sample_directory=${prefix}/share/postfix/sample \ 71 readme_directory=${prefix}/share/postfix/readme" 72 } 95 readme_directory=${prefix}/share/postfix/readme \ 96 mail_owner=${pf_mail_owner} \ 97 setgid_group=${pf_setgid_group}" 98 73 99 # This makes sure we don't overwrite user /etc files. This now breaks postfix 74 100 # "just working" on fresh installs. 75 101 # YOU MUST MOVE THE SAMPLE FILES TO THE CORRECT NAMESPACE. 76 # XXX unsure if this still lan issue 07/07/05 yeled@77 post-destroot { 78 file rename ${destroot}${prefix}/etc/postfix/main.cf \79 ${destroot}${prefix}/etc/postfix/main.cf.sample80 file rename ${destroot}${prefix}/etc/postfix/master.cf \81 ${destroot}${prefix}/etc/postfix/master.cf.sample82 file rename ${destroot}${prefix}/etc/postfix/aliases \83 ${destroot}${prefix}/etc/postfix/aliases.sample102 # XXX unsure if this still an issue 07/07/05 yeled@ 103 104 file rename ${destroot}${prefix}/etc/postfix/main.cf \ 105 ${destroot}${prefix}/etc/postfix/main.cf.sample 106 file rename ${destroot}${prefix}/etc/postfix/master.cf \ 107 ${destroot}${prefix}/etc/postfix/master.cf.sample 108 file rename ${destroot}${prefix}/etc/postfix/aliases \ 109 ${destroot}${prefix}/etc/postfix/aliases.sample 84 110 } 85 111 86 112 post-install {