#! /bin/sh /usr/share/dpatch/dpatch-run ## 24_global_action.dpatch by Roland Rosenfeld ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Move the global default for all pages (/) from default.action ## DP: to global.action to make updates with local configurations easier. @DPATCH@ diff -urNad privoxy~/GNUmakefile.in privoxy/GNUmakefile.in --- privoxy~/GNUmakefile.in +++ privoxy/GNUmakefile.in @@ -166,7 +166,7 @@ ############################################################################# # We include these files in our distributions ############################################################################# -CONFIGS = config trust default.action standard.action user.action default.filter user.filter +CONFIGS = config trust global.action default.action standard.action user.action default.filter user.filter # take care that no CVS .cvsignore or other crappy files # are included here # and escape every '#' in the find. doh. diff -urNad privoxy~/config privoxy/config --- privoxy~/config +++ privoxy/config @@ -335,6 +335,7 @@ # without at least one actions file. # actionsfile standard # Internal purpose, recommended +actionsfile global # Global default setting for all sites actionsfile default # Main actions file actionsfile user # User customizations diff -urNad privoxy~/default.action.master privoxy/default.action.master --- privoxy~/default.action.master +++ privoxy/default.action.master @@ -537,16 +537,6 @@ allow-ads = -block -filter{banners-by-size} -filter{banners-by-link} ############################################################################# -# Defaults -############################################################################# -{ \ -+hide-forwarded-for-headers \ -+hide-from-header{block} \ -+set-image-blocker{pattern} \ -} -/ # Match all URLs - -############################################################################# # These extensions belong to images: ############################################################################# {+handle-as-image -filter} diff -urNad privoxy~/global.action privoxy/global.action --- privoxy~/global.action +++ privoxy/global.action @@ -0,0 +1,9 @@ +############################################################################# +# Defaults +############################################################################# +{ \ ++hide-forwarded-for-headers \ ++hide-from-header{block} \ ++set-image-blocker{pattern} \ +} +/ # Match all URLs