Changeset 40553


Ignore:
Timestamp:
Oct 6, 2008, 8:57:26 PM (12 years ago)
Author:
jmr@…
Message:

exim: remove use of cd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/exim/Portfile

    r30236 r40553  
    3232patch.pre_args  -p1
    3333
    34 configure   {   cd ${worksrcpath}
    35                 system "cp src/EDITME Local/Makefile"
    36                 reinplace "s|/usr/exim/bin|${prefix}/sbin|g" Local/Makefile
    37                 reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" Local/Makefile
    38                 reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" Local/Makefile
    39                 reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
    40                 reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
    41                 reinplace "s|# WITH_CONTENT_SCAN=yes|WITH_CONTENT_SCAN=yes|g" Local/Makefile       
    42                 reinplace "s|# LOOKUP_PASSWD=yes|LOOKUP_PASSWD=yes|g" Local/Makefile
    43                 reinplace "s|# LOOKUP_CDB=yes|LOOKUP_CDB=yes|g" Local/Makefile
    44                 reinplace "s|# LOOKUP_DSEARCH=yes|LOOKUP_DSEARCH=yes|g" Local/Makefile
    45                 reinplace "s|# SUPPORT_MAILDIR=yes|SUPPORT_MAILDIR=yes|g" Local/Makefile       
    46                 reinplace "s|# TLS_LIBS=-L/usr/local/openssl/lib|TLS_LIBS=-L${prefix}/lib|g" Local/Makefile       
    47                 reinplace "s|# TLS_INCLUDE=-I/usr/local/openssl/include|TLS_INCLUDE=-I${prefix}/include/openssl|g" Local/Makefile       
    48                 reinplace "s|# Exim: OS-specific make file for Darwin (Mac OS X).|INCLUDE=-I${prefix}/include/db44|g" OS/Makefile-Darwin               
    49                 reinplace "s|DBMLIB =|DBMLIB=${prefix}/lib/db44/libdb-4.dylib|g" OS/Makefile-Darwin               
    50                 reinplace "s|/etc/aliases|${destroot}${prefix}/etc/aliases|g" scripts/exim_install
     34configure   {
     35                copy ${worksrcpath}/src/EDITME ${worksrcpath}/Local/Makefile
     36                reinplace "s|/usr/exim/bin|${prefix}/sbin|g" ${worksrcpath}/Local/Makefile
     37                reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" ${worksrcpath}/Local/Makefile
     38                reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" ${worksrcpath}/Local/Makefile
     39                reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" ${worksrcpath}/Local/Makefile
     40                reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" ${worksrcpath}/Local/Makefile
     41                reinplace "s|# WITH_CONTENT_SCAN=yes|WITH_CONTENT_SCAN=yes|g" ${worksrcpath}/Local/Makefile       
     42                reinplace "s|# LOOKUP_PASSWD=yes|LOOKUP_PASSWD=yes|g" ${worksrcpath}/Local/Makefile
     43                reinplace "s|# LOOKUP_CDB=yes|LOOKUP_CDB=yes|g" ${worksrcpath}/Local/Makefile
     44                reinplace "s|# LOOKUP_DSEARCH=yes|LOOKUP_DSEARCH=yes|g" ${worksrcpath}/Local/Makefile
     45                reinplace "s|# SUPPORT_MAILDIR=yes|SUPPORT_MAILDIR=yes|g" ${worksrcpath}/Local/Makefile       
     46                reinplace "s|# TLS_LIBS=-L/usr/local/openssl/lib|TLS_LIBS=-L${prefix}/lib|g" ${worksrcpath}/Local/Makefile       
     47                reinplace "s|# TLS_INCLUDE=-I/usr/local/openssl/include|TLS_INCLUDE=-I${prefix}/include/openssl|g" ${worksrcpath}/Local/Makefile       
     48                reinplace "s|# Exim: OS-specific make file for Darwin (Mac OS X).|INCLUDE=-I${prefix}/include/db44|g" ${worksrcpath}/OS/Makefile-Darwin               
     49                reinplace "s|DBMLIB =|DBMLIB=${prefix}/lib/db44/libdb-4.dylib|g" ${worksrcpath}/OS/Makefile-Darwin               
     50                reinplace "s|/etc/aliases|${destroot}${prefix}/etc/aliases|g" ${worksrcpath}/scripts/exim_install
    5151                adduser ${exim_user} gid=[existsgroup mail] }
    5252
     
    5656post-destroot { system "mv ${destroot}${prefix}/etc/exim/exim.conf ${destroot}${prefix}/etc/exim/exim.conf.sample"
    5757                xinstall -o root -m 755 -d ${destroot}${prefix}/share/exim
    58                 cd ${worksrcpath}
    59                 system "cp -R doc/ ${destroot}${prefix}/share/exim"
     58                system "cp -R ${worksrcpath}/doc/ ${destroot}${prefix}/share/exim"
    6059                xinstall -o ${exim_user} -g mail -m 750 -d ${destroot}${prefix}/var/spool/exim
    6160                xinstall -o root -m 755 -d ${destroot}${prefix}/etc/rc.d
Note: See TracChangeset for help on using the changeset viewer.