Ticket #47671: exim-portfile.patch
File exim-portfile.patch, 4.7 KB (added by pokui@…, 10 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name exim 7 version 4.8 2.18 revision 19 checksums rmd160 2caa80ed8b5fef07fd0449dc5ac7958681466a2d\10 sha256 51798cead70b9ca03df88afb63f7a0cabedee8ef82c02bd18d67591c08b145007 version 4.85 8 revision 0 9 checksums rmd160 334e5eeb9242b3fff49bd581b8cb22c12c0e8215 \ 10 sha256 13211f2bbc5400d095a9b4be075eb1347e0d98676fdfe4be8a3b4d56281daaa4 11 11 12 12 categories mail 13 13 license GPL-2 … … 42 42 43 43 set exim_user exim 44 44 45 add_users ${exim_user} group=mail realname=Exim 46 45 47 use_parallel_build no 46 48 47 49 universal_variant no … … 69 71 reinplace "s|# Exim: OS-specific make file for Darwin (Mac OS X).|INCLUDE=-I${prefix}/include/db44|g" ${worksrcpath}/OS/Makefile-Darwin 70 72 reinplace "s|DBMLIB =|DBMLIB=${prefix}/lib/db44/libdb-4.dylib|g" ${worksrcpath}/OS/Makefile-Darwin 71 73 reinplace "s|/etc/aliases|${destroot}${prefix}/etc/aliases|g" ${worksrcpath}/scripts/exim_install 72 adduser ${exim_user} gid=[existsgroup mail]73 74 } 74 75 75 76 build.args FULLECHO= … … 90 91 reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/share/exim/exim.sh 91 92 } 92 93 93 variant mysql4 conflicts mysql5 description {build exim with support for mysql4 lookups} {94 variant mysql4 conflicts mysql5 mysql51 mysql56 mariadb description {build exim with support for mysql4 lookups} { 94 95 depends_lib-append port:mysql4 95 96 } 96 97 97 variant mysql5 conflicts mysql4 description {build exim with support for mysql5 lookups} { 98 depends_lib-append path:bin/mysql_config5:mysql5 98 variant mysql5 conflicts mysql4 mysql56 mariadb requires mysql51 description {Legacy compatibility variant} { 99 # stub do nothing 100 } 101 102 variant mysql51 conflicts mysql4 description {build exim with support for mysql51 lookups} { 103 depends_lib-append port:mysql51 104 } 105 106 variant mysql56 conflicts mysql4 mysql5 mysql51 mariadb description {build with with support for mysql56 lookups} { 107 depends_lib-append port:mysql56 108 } 109 110 variant mariadb conflicts mysql4 mysql5 mysql51 mysql56 description {build with mariadb port for mysql lookups} { 111 depends_lib-append port:mariadb 99 112 } 100 113 101 114 variant ldap conflicts macports_ldap description {build exim with support for ldap lookups using the shipped ldap} { … … 117 130 # settings common to any lookup 118 131 if {[variant_isset mysql4] 119 132 || [variant_isset mysql5] 133 || [variant_isset mysql51] 134 || [variant_isset mysql56] 135 || [variant_isset mariadb] 120 136 || [variant_isset ldap] 121 137 || [variant_isset macports_ldap] 122 138 } then { … … 128 144 reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib/mysql -lmysqlclient|g" ${worksrcpath}/Local/Makefile 129 145 reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include/mysql -I ${prefix}/include|g" ${worksrcpath}/Local/Makefile 130 146 } 131 if {[variant_isset mysql5]} { 147 if {[variant_isset mysql5] || [variant_isset mysql51]} { 148 reinplace "s|^# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" ${worksrcpath}/Local/Makefile 149 reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib/mysql51/mysql -lmysqlclient |g" ${worksrcpath}/Local/Makefile 150 reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include/mysql51/mysql |g" ${worksrcpath}/Local/Makefile 151 } 152 if {[variant_isset mysql56]} { 153 reinplace "s|^# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" ${worksrcpath}/Local/Makefile 154 reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib/mysql56/mysql -lmysqlclient |g" ${worksrcpath}/Local/Makefile 155 reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include/mysql56/mysql |g" ${worksrcpath}/Local/Makefile 156 } 157 if {[variant_isset mariadb]} { 132 158 reinplace "s|^# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" ${worksrcpath}/Local/Makefile 133 reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib/m ysql5/mysql -lmysqlclient |g" ${worksrcpath}/Local/Makefile134 reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include/m ysql5/mysql |g" ${worksrcpath}/Local/Makefile159 reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib/mariadb/mysql -lmysqlclient |g" ${worksrcpath}/Local/Makefile 160 reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include/mariadb/mysql |g" ${worksrcpath}/Local/Makefile 135 161 } 136 162 if {[variant_isset ldap]} { 137 163 reinplace "s|^# LOOKUP_LDAP=yes|LOOKUP_LDAP=yes|g" ${worksrcpath}/Local/Makefile