Ticket #19304: privoxy-3.0.14-beta.diff
File privoxy-3.0.14-beta.diff, 2.2 KB (added by cssdev, 15 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name privoxy 5 version 3.0.1 05 version 3.0.14 6 6 categories www security net 7 7 maintainers nomaintainer 8 8 description Advanced filtering web proxy … … 18 18 19 19 homepage http://www.privoxy.org/ 20 20 master_sites sourceforge:ijbswa 21 distname ${name}-${version}- stable-src21 distname ${name}-${version}-beta-src 22 22 23 checksums md5 01281017f28be2c7133124d1768da364\24 sha1 0ce51a8dc938fe6412daa7f6edf159b98fd66d54\25 rmd160 91c8d56b71a5c606554bf509827197d689d8fc10 23 checksums md5 10d68175f12ca354bb099b09b682c768 \ 24 sha1 ea2fdf98a5dbad368158187aa19f525997166529 \ 25 rmd160 1d4188b8549b09a1c09544ad0036c98784897fbd 26 26 27 worksrcdir ${name}-${version}-stable28 27 28 worksrcdir ${name}-${version}-beta 29 29 30 depends_lib port:pcre port:zlib 30 31 31 32 set privoxyGroup privoxy … … 64 65 ${destroot}${prefix}/etc/rc.d/privoxy.sh 65 66 } 66 67 # Rename these so local modifications are not removed on uninstall 67 foreach privoxyConf {config trust user.action} { 68 file rename ${destroot}${prefix}/etc/privoxy/${privoxyConf} \ 69 ${destroot}${prefix}/etc/privoxy/${privoxyConf}-dist \ 70 } 68 foreach privoxyConf {config trust user.action user.filter match-all.action} { 69 if [file exists ${destroot}${prefix}/etc/privoxy/${privoxyConf}] { 70 file rename ${destroot}${prefix}/etc/privoxy/${privoxyConf} \ 71 ${destroot}${prefix}/etc/privoxy/${privoxyConf}-dist 72 } 73 } 71 74 # Remove the preinstalled log files as, otherwise, a rotation script 72 75 # will fail when trying to rename and compress due to gzip not liking 73 76 # multi-linked files (the one in ${prefix} and the one in … … 86 89 -group ${privoxyGroup} -owner ${privoxyUser} \ 87 90 -permissions 0660 88 91 } 89 foreach privoxyConf {config trust user.action } {92 foreach privoxyConf {config trust user.action user.filter match-all.action} { 90 93 if ![file exists ${prefix}/etc/privoxy/${privoxyConf}] { 91 94 file copy ${prefix}/etc/privoxy/${privoxyConf}-dist \ 92 95 ${prefix}/etc/privoxy/${privoxyConf}