Ticket #1208: portfile.2.diff
File portfile.2.diff, 4.4 KB (added by bchesneau@…, 21 years ago) |
---|
-
(a) Portfile-orig vs. (b) Portfile
a b 1 1 PortSystem 1.0 2 2 name courier-imap 3 version 2. 0.03 version 2.2.0 4 4 categories mail 5 5 maintainers bchesneau@mac.com 6 6 description IMAP server … … 13 13 platforms darwin 14 14 master_sites sourceforge:courier 15 15 use_bzip2 yes 16 checksums courier-imap-2.0.0.tar.bz2 md5 636816de2338eac4ad66d9d406020cba 16 checksums courier-imap-2.2.0.tar.bz2 md5 95e1f563a0c27330991820046d4d65d1 17 18 19 17 20 depends_lib lib:libssl.0.9:openssl 18 21 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup 19 22 20 23 set authdaemondir ${prefix}/var/run/authdaemon.courier-imap 24 21 25 22 configure.env CFLAGS=-no-cpp-precomp \23 LANG=C24 26 25 27 configure.args --bindir=${prefix}/bin --mandir=${prefix}/share/man \ 26 --sysconfdir=${prefix}/etc/courier \28 --sysconfdir=${prefix}/etc/courier-imap \ 27 29 --localstatedir=${prefix}/var/run \ 28 30 --datadir=${prefix}/share/courier \ 29 31 --with-piddir=${prefix}/var/run \ 30 32 --with-authdaemonvar=${authdaemondir} \ 31 --enable- workarounds-for-imap-client-bugs \32 --enable-unicode=iso-8859-1,utf-8 --disable-root-check 33 --enable-unicode --disable-root-check 34 33 35 34 variant darwin{36 platform darwin 6 { 35 37 depends_lib-append lib:libdl.1:dlcompat 36 38 patchfiles patch-rfc1035_res.h 37 configure.args-append --with-waitfunc=wait3 39 configure.args-append --with-waitfunc=wait3 --with-authpam 40 configure.env LDFLAGS="-L${prefix}/lib -L${prefix}/lib/mysql -L${prefix}/lib/pgsql" \ 41 CPPFLAGS="-I${prefix}/include -I${prefix}/include/mysql -I${prefix}/include/pgsql -no-cpp-precomp" \ 42 LANG=C 43 44 } 45 46 47 platform darwin 7 { 48 patchfiles patch-rfc1035_res.h 49 configure.args-append --with-waitfunc=wait3 --with-authshadow --with-authpam 50 51 configure.env LDFLAGS="-L${prefix}/lib -L${prefix}/lib/mysql -L${prefix}/lib/pgsql"\ 52 CPPFLAGS="-I${prefix}/include -I${workpath}/paminclude -I${prefix}/include/mysql -I${prefix}/include/pgsql -no-cpp-precomp" \ 53 CFLAGS="-I${prefix}/include -I${workpath}/paminclude -I${prefix}/include/mysql -I${prefix}/include/pgsql -no-cpp-precomp" \ 54 LANG=C 55 56 post-extract { 57 system "rm '${worksrcpath}/INSTALL'" 58 system "mkdir -p ${workpath}/paminclude" 59 system "ln -s /usr/include/pam ${workpath}/paminclude/security" 60 } 38 61 } 39 62 63 40 64 variant mysql { 41 65 depends_lib-append lib:libmysqlclient:mysql 42 configure.env-append LDFLAGS=-L${prefix}/lib/mysql \43 CPPFLAGS=-I${prefix}/include/mysql44 66 } 45 67 68 variant mysql4 { 69 depends_lib-append lib:libmysqlclient:mysql4 70 } 71 72 46 73 variant postgres { 47 configure.env-append LDFLAGS=-L${prefix}/lib -L${prefix}/pgsql/lib \ 48 CPPFLAGS=-I${prefix}/include/ -I${prefix}/pgsql/include 49 depends_lib-append lib:plpgsql:postgresql 74 depends_lib-append lib:plpgsql:postgresql 75 50 76 } 51 77 52 variant berkdb { 53 depends_lib-append lib:libdb-4.1:db4 54 configure.env-append CPPFLAGS=-I${prefix}/include/db4 78 variant ldap { 79 configure.args-append --with-authldap 55 80 } 56 81 57 82 pre-configure { 58 83 59 if { ![variant_isset mysql] } {84 if { ![variant_isset mysql] && ![variant_isset mysql4] } { 60 85 configure.args-append --without-authmysql 61 86 } 62 87 if { ![variant_isset ldap]} { 63 88 configure.args-append --without-authldap 64 } 65 if { ![variant_isset pam]} { 66 configure.args-append --without-authpam 67 } 89 } 90 68 91 if { ![variant_isset postgres]} { 69 configure.args-append --without-authpostgresql 70 } 71 if { [variant_isset berkdb]} { 72 configure.args-append --with-db=db 92 configure.args-append --without-authpostgresql 73 93 } 94 74 95 } 75 96 76 77 destroot { 78 system "cd ${workpath}/${worksrcdir}" 79 system "make install DESTDIR=${destroot}" 80 system "make install-configure DESTDIR=${destroot}" 81 } 97 destroot.target install install-configure 82 98 83 99 post-destroot { 84 100 file mkdir ${destroot}${prefix}/var/run … … 86 102 file mkdir ${destroot}${authdaemondir} 87 103 system "touch ${destroot}${authdaemondir}/.turd" 88 104 89 system "install -o root -m 755 -c \ 90 ${portpath}/files/*.sh ${destroot}${prefix}/etc/rc.d" 105 system "install -o root -m 755 -c ${portpath}/files/*.sh ${destroot}${prefix}/etc/rc.d" 91 106 reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/imapd.sh 107 reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/imapd-ssl.sh 92 108 reinplace "s|ulimit|#ulimit|g" ${destroot}${prefix}/libexec/imapd.rc 93 109 reinplace "s|ulimit|#ulimit|g" ${destroot}${prefix}/libexec/imapd-ssl.rc 94 110 }