source: trunk/dports/mail/exim/Portfile @ 2735

Last change on this file since 2735 was 2735, checked in by fkr, 16 years ago

Bug:
Submitted by: Christopher Smith <cms@…>
Reviewed by:
Approved by:
Obtained from:

update to version 4.20

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1B
2B
3# $Id: Portfile,v 1.13 2003/06/03 08:19:36 fkr Exp $
4
5PortSystem 1.0
6name            exim
7version         4.20
8categories      mail
9description     complete replacement for sendmail
10long_description        Exim is a mail transfer agent (MTA) developed \
11                        at the University of Cambridge for use on Unix \
12                        systems connected to the Internet. It is freely \
13                        available under the terms of the GNU General \
14                        Public Licence. In overall style it is similar \
15                        to Smail 3, but its facilities are more extensive.
16homepage        http://www.exim.org/
17platforms       darwin
18maintainers     fkr@opendarwin.org
19master_sites    ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
20                ftp://ftp.exim.org/pub/exim/exim4/
21checksums       exim-4.20.tar.gz md5 a1f06f1de1ab602a25d78ad2a20819f2
22depends_lib     path:/usr/include/netinet/ip_var.h:netinet-headers
23depends_build   bin:perl:perl5.8
24depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
25
26set exim_user   exim
27
28configure   {   cd ${worksrcpath}
29                system "cp src/EDITME Local/Makefile"
30                reinplace "s|/usr/exim/bin|${prefix}/sbin|g" Local/Makefile
31                reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" Local/Makefile
32                reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" Local/Makefile
33                reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
34                reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
35
36#Should be in pre-deployment/user addition phase
37
38adduser ${exim_user} gid=[existsgroup mail] }
39install.destroot ROOT=${destroot}
40
41post-install {  system "install -o root -m 755 -d ${prefix}/share/exim"
42                 cd ${worksrcpath}
43                 system "cp -R doc/ ${prefix}/share/exim"
44                 system "install -o ${exim_user} -g mail -m 750 -d ${prefix}/var/spool/exim"
45                 system "install -o root -m 755 -d ${prefix}/etc/rc.d"
46                 system "install -o root -m 755 -c \
47                     ${portpath}/files/exim.sh ${prefix}/etc/rc.d"
48                 reinplace "s|__PREFIX|${prefix}|g" ${prefix}/etc/rc.d/exim.sh }
49
50variant smtp-auth { }
51
52variant exiscan {
53                patch_sites             http://duncanthrax.net/exiscan-acl/
54                patchfiles              exiscan-acl-4.20-08.patch       
55                checksums-append        exiscan-acl-4.20-08.patch md5 40ce678d91bdef2672acba889d87f11c 
56                patch.pre_args          -p1 }
57
58variant mysql { depends_lib-append      lib:libmysqlclient:mysql }
59
60variant maildir { }
61
62post-configure {
63       
64        if {[variant_isset mysql]} {
65                reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" Local/Makefile
66                reinplace "s|# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=-I ${prefix}/include/mysql -I ${prefix}/include -I /usr/include|g" Local/Makefile
67                reinplace "s|# LOOKUP_LIBS=.*|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lmysqlclient|g" Local/Makefile
68        }
69
70        if {[variant_isset maildir ]} {
71                reinplace "s|# SUPPORT_MAILDIR=yes|SUPPORT_MAILDIR=yes|g" Local/Makefile       
72        }
73
74        if {[variant_isset smtp_auth ]} {
75                reinplace "s|#AUTH_CRAM_MD5=yes|AUTH_CRAM_MD5=yes|g" Local/Makefile
76                reinplace "s|#AUTH_PLAINTEXT=yes|AUTH_PLAINTEXT=yes|g" Local/Makefile
77                reinplace "s|#AUTH_SPA=yes|AUTH_SPA=yes|g" Local/Makefile       
78        }
79}
Note: See TracBrowser for help on using the repository browser.