Ticket #1097: portfile.diff

File portfile.diff, 2.1 KB (added by bchesneau@…, 21 years ago)

minor fix compared to previous patch

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

    a b  
    22
    33PortSystem 1.0
    44name            apache2
    5 version         2.0.47
     5version         2.0.48
    66categories      www
    77platforms       darwin freebsd
    88maintainers     jcorley1@nc.rr.com
     
    2323                http://ftp.epix.net/apache/httpd/
    2424
    2525distname        httpd-${version}
    26 checksums       md5 63f16638c18b140b649fab32b54d7f9c
     26checksums       md5 466c63bb71b710d20a5c353df8c1a19c
    2727depends_lib     lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
    2828patchfiles      patch-httpd-std.conf.in
    29 configure.env   CC=/usr/bin/gcc CPP=/usr/bin/cpp
     29
     30configure.pre_args --prefix=${prefix}/${name}
     31
    3032configure.args  --with-layout=FreeBSD --with-apr=${prefix}/bin/apr-config \
    31                 --with-apr-util=${prefix}/bin --prefix=${prefix}/${name} \
    32                 --enable-mods-shared=all --enable-ssl --with-ssl \
     33                --with-apr-util=${prefix}/bin --enable-mods-shared=all --enable-ssl --with-ssl \
    3334                --enable-deflate --enable-proxy --enable-proxy-connect \
    3435                --enable-proxy-http --enable-proxy-ftp
    3536
    3637destroot.args   root=${destroot}
    37 post-destroot {         system "touch ${destroot}${prefix}/${name}/logs/.turd"
    38                 system "test -L ${destroot}${prefix}/${name}/build/libtool \
    39                         || ln -s /usr/bin/glibtool \
    40                         ${destroot}${prefix}/${name}/build/libtool" }
    4138
    4239variant activate_server {
    4340                depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     
    4542                                        ${filespath}/${name}.sh > \
    4643                                        ${worksrcdir}/${name}.sh" }
    4744
    48                 post-destroot-append {  file mkdir ${destroot}${prefix}/etc/rc.d/
    49                                         system "install -bC ${portpath}/${workdir}/${name}.sh \
    50                                                 ${destroot}${prefix}/etc/rc.d/"} }
     45}
     46
     47post-destroot {
     48
     49        system "touch ${destroot}${prefix}/${name}/logs/.turd"
     50        system "test -L ${destroot}${prefix}/${name}/build/libtool \
     51                || ln -s /usr/bin/glibtool \
     52                ${destroot}${prefix}/${name}/build/libtool"
     53
     54        if { [variant_isset activate_server] } {
     55                file mkdir ${destroot}${prefix}/etc/rc.d/
     56                system "install -bC ${portpath}/${workdir}/${name}.sh \
     57                        ${destroot}${prefix}/etc/rc.d/"
     58        }
     59}