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
2 2 3 3 PortSystem 1.0 4 4 name privoxy 5 version 3.0.1 05 version 3.0.12 6 6 categories www security net 7 7 maintainers nomaintainer 8 8 description Advanced filtering web proxy … … 20 20 master_sites sourceforge:ijbswa 21 21 distname ${name}-${version}-stable-src 22 22 23 checksums md5 01281017f28be2c7133124d1768da364\24 sha1 0ce51a8dc938fe6412daa7f6edf159b98fd66d54\25 rmd160 91c8d56b71a5c606554bf509827197d689d8fc10 23 checksums md5 c973e608d27b248ef567b47664308da1 \ 24 sha1 1118d6a7b4980f26c9ad0902c0e6af5aaaf1a640 \ 25 rmd160 32509b897e073f1cc100b8a4a157d19a219b51cd 26 26 27 27 worksrcdir ${name}-${version}-stable 28 28 … … 64 64 ${destroot}${prefix}/etc/rc.d/privoxy.sh 65 65 } 66 66 # 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}] { 68 69 file rename ${destroot}${prefix}/etc/privoxy/${privoxyConf} \ 69 ${destroot}${prefix}/etc/privoxy/${privoxyConf}-dist \ 70 ${destroot}${prefix}/etc/privoxy/${privoxyConf}-dist 71 } 70 72 } 71 73 # Remove the preinstalled log files as, otherwise, a rotation script 72 74 # will fail when trying to rename and compress due to gzip not liking … … 88 90 } 89 91 foreach privoxyConf {config trust user.action} { 90 92 if ![file exists ${prefix}/etc/privoxy/${privoxyConf}] { 91 file copy ${prefix}/etc/privoxy/${privoxyConf} -dist\93 file copy ${prefix}/etc/privoxy/${privoxyConf}.new \ 92 94 ${prefix}/etc/privoxy/${privoxyConf} 93 95 file attributes ${prefix}/etc/privoxy/${privoxyConf} \ 94 96 -group ${privoxyGroup} -owner ${privoxyUser} \