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

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

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

here comes an exiscan variant. Thanks for your work, Christopher!

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