Ticket #19304: privoxy-3.0.12-1.diff

File privoxy-3.0.12-1.diff, 1.9 KB (added by simon@…, 15 years ago)
  • Portfile

     
    22
    33PortSystem                      1.0
    44name                            privoxy
    5 version                         3.0.10
     5version                         3.0.12
    66categories                      www security net
    77maintainers                     nomaintainer
    88description                     Advanced filtering web proxy
     
    2020master_sites            sourceforge:ijbswa
    2121distname                        ${name}-${version}-stable-src
    2222
    23 checksums                       md5     01281017f28be2c7133124d1768da364 \
    24                                         sha1    0ce51a8dc938fe6412daa7f6edf159b98fd66d54 \
    25                                         rmd160  91c8d56b71a5c606554bf509827197d689d8fc10
     23checksums           md5     c973e608d27b248ef567b47664308da1 \
     24                    sha1    1118d6a7b4980f26c9ad0902c0e6af5aaaf1a640 \
     25                    rmd160  32509b897e073f1cc100b8a4a157d19a219b51cd
    2626
    2727worksrcdir                      ${name}-${version}-stable
    2828
     
    6464                        ${destroot}${prefix}/etc/rc.d/privoxy.sh
    6565        }
    6666        # Rename these so local modifications are not removed on uninstall
    67         foreach privoxyConf {config trust user.action} {
     67        foreach privoxyConf {config.new trust.new user.action.new user.filter.new} {
     68            if [file exists ${destroot}${prefix}/etc/privoxy/${privoxyConf}] {
    6869                file rename ${destroot}${prefix}/etc/privoxy/${privoxyConf} \
    69                         ${destroot}${prefix}/etc/privoxy/${privoxyConf}-dist \
     70                        ${destroot}${prefix}/etc/privoxy/${privoxyConf}-dist
     71            }
    7072        }
    7173        # Remove the preinstalled log files as, otherwise, a rotation script
    7274        # will fail when trying to rename and compress due to gzip not liking
     
    8890        }
    8991        foreach privoxyConf {config trust user.action} {
    9092                if ![file exists ${prefix}/etc/privoxy/${privoxyConf}] {
    91                         file copy ${prefix}/etc/privoxy/${privoxyConf}-dist \
     93                        file copy ${prefix}/etc/privoxy/${privoxyConf}.new \
    9294                                ${prefix}/etc/privoxy/${privoxyConf}
    9395                        file attributes ${prefix}/etc/privoxy/${privoxyConf} \
    9496                                -group ${privoxyGroup} -owner ${privoxyUser} \