Ticket #11196: patch-Portfile.diff

File patch-Portfile.diff, 1.8 KB (added by cssdev, 17 years ago)

The patched Portfile bumps the version and checksums. It also fixes the worksrcdir, removes patch-jcc.h, and orders the Portfile contents to match the phase ordering.

  • Portfile

     
    22
    33PortSystem                      1.0
    44name                            privoxy
    5 version                         3.0.3-2
    6 revision                        3
     5version                         3.0.6
    76categories                      www security net
    87maintainers                     nomaintainer@macports.org
    98description                     Advanced filtering web proxy
     
    1918
    2019homepage                        http://www.privoxy.org/
    2120master_sites            sourceforge:ijbswa
    22 distname                        ${name}-${version}-stable.src
     21distname                        ${name}-${version}-stable-src
    2322
    24 checksums                       md5 d7f6c2fcb926e6110659de6e866b21e4
     23checksums                       md5 c3b34c620e1174f0c0b91aa2a04ceae4 \
     24                                sha1 6369c02ef6e044d23fd1d90f6523b489abe58c0c
    2525
    26 worksrcdir                      ${name}-3.0.3-stable
     26worksrcdir                      ${name}-${version}-stable
    2727
    2828depends_lib                     lib:libpcre:pcre
    2929
     
    3232
    3333patchfiles                      patch-GNUmakefile.in
    3434
    35 use_autoconf            yes
    36 
    37 configure.env           CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
    38 configure.args          --disable-dynamic-pcrs --with-user=${privoxyUser} \
    39                                         --with-group=${privoxyGroup} \
    40                                         --sysconfdir=${prefix}/etc/${name} \
    41                                         --mandir=${prefix}/share/man
    42 
    4335pre-configure {
    4436        addgroup        ${privoxyGroup}
    4537        adduser         ${privoxyUser} gid=[existsgroup ${privoxyGroup}]
     
    4739        system "autoheader"
    4840}
    4941
     42use_autoconf            yes
     43configure.env           CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
     44configure.args          --disable-dynamic-pcrs --with-user=${privoxyUser} \
     45                                        --with-group=${privoxyGroup} \
     46                                        --sysconfdir=${prefix}/etc/${name} \
     47                                        --mandir=${prefix}/share/man
     48
    5049destroot.keepdirs       ${destroot}${prefix}/var/log/privoxy \
    5150                                        ${destroot}${prefix}/var/run
    5251
     
    9998}
    10099
    101100platform darwin {
    102         patchfiles-append       patch-jcc.h
    103 
    104101        startupitem.create                      yes
    105102        startupitem.name                        Privoxy
    106103        startupitem.start                       "\[ -f \"${prefix}/etc/privoxy/config\" \] \\"