Ticket #19304: privoxity-configs.diff
File privoxity-configs.diff, 1.5 KB (added by cssdev, 15 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 name privoxy 5 5 version 3.0.10 6 revision 1 6 7 categories www security net 7 8 maintainers nomaintainer 8 9 description Advanced filtering web proxy … … 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}