Ticket #770: Portfile-apache2-20030813.diff

File Portfile-apache2-20030813.diff, 5.9 KB (added by bchesneau@…, 21 years ago)

Patch Portfile in cvs

  • (a) Portfile-orig vs. (b) Portfile

    a b  
     1# $Id: Portfile,v 1.3 2003/08/05 09:29:40 jkh Exp $
     2
    13PortSystem 1.0
    2 name            apache2
    3 version         2.0.47
    4 categories      www
    5 platforms       darwin freebsd
    6 maintainers     jcorley1@nc.rr.com
    7 description     The extremely popular second version of the Apache http server
    8 long_description        Apache is an HTTP server designed as a plug-in replacement for \
    9                         the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \
    10                         the NCSA server and includes many frequently requested new \
    11                         features, and has an API which allows it to be extended to meet \
    12                         users' needs more easily. This is version 2.0.47 of Apache.
    13 
    14 master_sites    http://www.tux.org/pub/net/apache/dist/httpd/ \
    15                 http://apache.mirror.digitalspace.net/httpd/ \
    16                 http://www.apache.inetcosmos.org/dist/httpd/ \
    17                 http://www.rge.com/pub/infosystems/apache/httpd/ \
    18                 http://www.tux.org/pub/net/apache/dist/httpd/ \
    19                 http://apache.mirror.digitalspace.net/httpd/ \
    20                 http://www.rge.com/pub/infosystems/apache/httpd/ \
    21                 http://ftp.epix.net/apache/httpd/
    22 
    23 distname        httpd-${version}
    24 checksums       md5 63f16638c18b140b649fab32b54d7f9c
    25 depends_lib     lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
    26 patchfiles      patch-httpd-std.conf.in
    27 configure.env   CC=/usr/bin/gcc CPP=/usr/bin/cpp
    28 configure.args  --with-layout=FreeBSD --with-apr=${prefix}/bin/apr-config \
    29                 --with-apr-util=${prefix}/bin --prefix=${prefix}/${name} \
    30                 --enable-mods-shared=all --enable-ssl --with-ssl \
    31                 --enable-deflate --enable-proxy --enable-proxy-connect \
    32                 --enable-proxy-http --enable-proxy-ftp
    33 
    34 destroot.args   root=${destroot}
    35 post-destroot {         system "touch ${destroot}${prefix}/${name}/logs/.turd"
    36                 system "test -L ${destroot}${prefix}/${name}/build/libtool \
    37                         || ln -s /usr/bin/glibtool \
    38                         ${destroot}${prefix}/${name}/build/libtool" }
     4name            apache2
     5version         2.0.47
     6categories      www
     7platforms       darwin freebsd
     8maintainers     jcorley1@nc.rr.com
     9description     The extremely popular second version of the Apache http server
     10long_description        Apache is an HTTP server designed as a plug-in replacement for \
     11                        the NCSA server version 1.3 (or 1.4). It fixes numerous bugs in \
     12                        the NCSA server and includes many frequently requested new \
     13                        features, and has an API which allows it to be extended to meet \
     14                        users' needs more easily. This is version 2.0.47 of Apache.
     15
     16master_sites    http://www.tux.org/pub/net/apache/dist/httpd/ \
     17                http://apache.mirror.digitalspace.net/httpd/ \
     18                http://www.apache.inetcosmos.org/dist/httpd/ \
     19                http://www.rge.com/pub/infosystems/apache/httpd/ \
     20                http://www.tux.org/pub/net/apache/dist/httpd/ \
     21                http://apache.mirror.digitalspace.net/httpd/ \
     22                http://www.rge.com/pub/infosystems/apache/httpd/ \
     23                http://ftp.epix.net/apache/httpd/
     24
     25distname        httpd-${version}
     26checksums       md5 63f16638c18b140b649fab32b54d7f9c
     27depends_lib     lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
     28depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     29patchfiles      patch-httpd-std.conf.in
     30configure.env   CC=/usr/bin/gcc CPP=/usr/bin/cpp
     31
     32pre-configure {
     33        patchfiles                      patch-config.layout     
     34        patch.pre_args          -p1
     35         reinplace "s|__PREFIX|${prefix}|g" ${workpath}/${name}_${version}/config.layout
     36}
    3937
    40 variant activate_server {
    41                 depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    42                 post-patch {    system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \
    43                                         ${filespath}/${name}.sh > \
    44                                         ${worksrcdir}/${name}.sh" }
    45 
    46                 post-destroot-append {  file mkdir ${destroot}${prefix}/etc/rc.d/
    47                                         system "install -bC ${portpath}/${workdir}/${name}.sh \
    48                                                 ${destroot}${prefix}/etc/rc.d/"} }
     38configure.args  --with-layout=FreeBSD --with-apr=${prefix}/bin/apr-config \
     39                --with-apr-util=${prefix}/bin \
     40                --enable-mods-shared=all --enable-ssl --with-ssl \
     41                --enable-deflate --enable-proxy --enable-proxy-connect \
     42                --enable-proxy-http --enable-proxy-ftp \
     43                --libdir=${prefix}/lib/apache2 \
     44                --includedir=${prefix}/include/apache2
     45
     46
     47        post-patch {    system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \
     48                                        ${filespath}/${name}.sh > \
     49                                        ${worksrcdir}/${name}.sh" }
     50
     51destroot.args   root=${destroot}
     52post-destroot {         
     53                                        file mkdir  ${destroot}${prefix}/${name}/logs
     54                                file mkdir  ${destroot}${prefix}/${name}/run
     55                               
     56                                system "touch ${destroot}${prefix}/${name}/log/.turd"
     57                                system "touch ${destroot}${prefix}/${name}/run/.turd"
     58                system "test -L ${destroot}${prefix}/${name}/build/libtool \
     59                        || ln -s /usr/bin/glibtool \
     60                        ${destroot}${prefix}/${name}/build/libtool"
     61         file mkdir ${destroot}${prefix}/etc/rc.d/
     62                                        system "install -bC ${portpath}/${workdir}/${name}.sh \
     63                                                ${destroot}${prefix}/etc/rc.d/" 
     64         
     65         
     66          #copy update-apachemodules.pl
     67    file mkdir ${destroot}${prefix}/etc/apache/modules.d
     68    file mkdir ${destroot}${prefix}/etc/apache/extras-conf
     69    file mkdir ${destroot}${prefix}/bin
     70    system "install -o root -m 755 -c ${portpath}/files/update-apachemodules.pl ${destroot}${prefix}/bin/"
     71    reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/bin/update-apachemodules.pl
     72        reinplace "s|__NAME|${name}|g" ${destroot}${prefix}/bin/update-apachemodules.pl
     73         
     74         
     75         
     76                       }