Ticket #504: patch-exim-20030428

File patch-exim-20030428, 4.1 KB (added by bchesneau@…, 21 years ago)

portfile patch

Line 
1--- Portfile-old        Mon Apr 28 02:44:31 2003
2+++ Portfile    Mon Apr 28 02:53:52 2003
3@@ -2,34 +2,34 @@
4 
5 PortSystem 1.0
6 name            exim
7-version         4.14
8-revision        1
9-categories      mail
10+version                4.14
11+revision       1
12+categories     mail
13 description     complete replacement for sendmail
14-long_description        Exim is a mail transfer agent (MTA) developed \
15-                        at the University of Cambridge for use on Unix \
16-                        systems connected to the Internet. It is freely \
17-                        available under the terms of the GNU General \
18-                        Public Licence. In overall style it is similar \
19-                        to Smail 3, but its facilities are more extensive.
20-homepage        http://www.exim.org/
21-platforms       darwin
22+long_description       Exim is a mail transfer agent (MTA) developed \
23+                       at the University of Cambridge for use on Unix \
24+                       systems connected to the Internet. It is freely \
25+                       available under the terms of the GNU General \
26+                       Public Licence. In overall style it is similar \
27+                       to Smail 3, but its facilities are more extensive.
28+homepage       http://www.exim.org/
29+platforms      darwin
30 maintainers     fkr@opendarwin.org
31 master_sites    ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
32                 ftp://ftp.exim.org/pub/exim/exim4/
33-checksums       exim-4.14.tar.gz md5 bebd65023b117e2fa7dcea46f1129556
34+checksums      exim-4.14.tar.gz md5 bebd65023b117e2fa7dcea46f1129556
35 depends_lib     path:/usr/include/netinet/ip_var.h:netinet-headers
36-depends_build   bin:perl:perl5.8=09
37+depends_build  bin:perl:perl5.8=09
38 
39-set exim_user   exim
40+set exim_user  exim
41 
42-configure   {   cd ${worksrcpath}
43-                system "cp src/EDITME Local/Makefile"
44-                reinplace "s|/usr/exim/bin|${prefix}/sbin|g" Local/Makefile
45-                reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" Local/Makefile
46-                reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" Local/Makefile
47-                reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
48-                reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
49+configure   {  cd ${worksrcpath}
50+                       system "cp src/EDITME Local/Makefile"
51+                       reinplace "s|/usr/exim/bin|${prefix}/sbin|g" Local/Makefile
52+                       reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" Local/Makefile
53+                       reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" Local/Makefile
54+                       reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
55+                       reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
56 
57 #Should be in pre-deployment/user addition phase
58 
59@@ -46,13 +46,21 @@
60                  reinplace "s|__PREFIX|${prefix}|g" ${prefix}/etc/rc.d/exim.sh }
61 
62 variant smtp-auth {
63-                post-configure { reinplace "s|#AUTH_CRAM_MD5=yes|AUTH_CRAM_MD5=yes|g" Local/Makefile
64-                                 reinplace "s|#AUTH_PLAINTEXT=yes|AUTH_PLAINTEXT=yes|g" Local/Makefile
65-                                 reinplace "s|#AUTH_SPA=yes|AUTH_SPA=yes|g" Local/Makefile } }
66+               post-configure { reinplace "s|#AUTH_CRAM_MD5=yes|AUTH_CRAM_MD5=yes|g" Local/Makefile
67+                                reinplace "s|#AUTH_PLAINTEXT=yes|AUTH_PLAINTEXT=yes|g" Local/Makefile
68+                                reinplace "s|#AUTH_SPA=yes|AUTH_SPA=yes|g" Local/Makefile } }
69 
70 variant exiscan {
71-                patch_sites             http://duncanthrax.net/exiscan/
72-                patchfiles              exiscan-4.14-26.tar.gz
73-                checksums-append        exiscan-4.14-26.tar.gz md5 3bd9b18f55c079bcd9af2eb07fec469b
74-                patch.pre_args          -p1 }
75-
76+               patch_sites             http://duncanthrax.net/exiscan/
77+               patchfiles              exiscan-4.14-26.tar.gz
78+               checksums-append        exiscan-4.14-26.tar.gz md5 3bd9b18f55c079bcd9af2eb07fec469b
79+               patch.pre_args          -p1 }
80+
81+variant mysql {
82+       depends_lib-append      lib:libmysqlclient:mysql
83+       configure.env-append    LDFLAGS=-L${prefix}/lib/mysql CPPFLAGS=-I${prefix}/include/mysql
84+       configure-append {
85+               cd ${workpath}
86+               reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" Local/Makefile
87+       }
88+}