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

Last change on this file since 2125 was 2125, checked in by mij, 16 years ago

Add CVS Id tags.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.7 2003/03/03 06:59:13 mij Exp $
2
3PortSystem 1.0
4name            exim
5version         4.12
6revision        2       
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/
20depends_lib     path:/usr/include/netinet/ip_var.h:netinet-headers
21checksums       md5 a69c8ebeec91559dea8fc4364ecb89a2
22
23set exim_user   exim
24
25configure   {   cd ${worksrcpath}
26                system "cp src/EDITME Local/Makefile"
27                reinplace "s|/usr/exim/bin|${prefix}/sbin|g" Local/Makefile
28                reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" Local/Makefile
29                reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" Local/Makefile
30                reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
31                reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
32
33#Should be in pre-deployment/user addition phase
34
35                adduser ${exim_user} gid=[existsgroup mail] }
36install.destroot ROOT=${destroot}
37
38post-install {  system "install -o root -m 755 -d ${prefix}/share/exim"
39                cd ${worksrcpath}
40                system "cp -R doc/ ${prefix}/share/exim"
41                system "install -o ${exim_user} -g mail -m 750 -d ${prefix}/var/spool/exim"
42                system "install -o root -m 755 -d ${prefix}/etc/rc.d"
43                system "install -o root -m 755 -c \
44                    ${portpath}/files/exim.sh ${prefix}/etc/rc.d"
45                reinplace "s|__PREFIX|${prefix}|g" ${prefix}/etc/rc.d/exim.sh }
46
Note: See TracBrowser for help on using the repository browser.