Update all patches to CVS version as of 2007-10-14.
[privoxy.git] / debian / patches / 24_global_action.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 24_global_action.dpatch by Roland Rosenfeld <roland@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Move the global default for all pages (/) from default.action
6 ## DP: to global.action to make updates with local configurations easier.
7
8 @DPATCH@
9 diff -urNad privoxy~/GNUmakefile.in privoxy/GNUmakefile.in
10 --- privoxy~/GNUmakefile.in
11 +++ privoxy/GNUmakefile.in
12 @@ -166,7 +166,7 @@
13  #############################################################################
14  # We include these files in our distributions
15  #############################################################################
16 -CONFIGS = config trust default.action standard.action user.action default.filter user.filter
17 +CONFIGS = config trust global.action default.action standard.action user.action default.filter user.filter
18  # take care that no CVS .cvsignore or other crappy files
19  # are included here
20  # and escape every '#' in the find. doh.
21 diff -urNad privoxy~/config privoxy/config
22 --- privoxy~/config
23 +++ privoxy/config
24 @@ -335,6 +335,7 @@
25  #      without at least one actions file.
26  #
27  actionsfile standard  # Internal purpose, recommended
28 +actionsfile global    # Global default setting for all sites
29  actionsfile default   # Main actions file
30  actionsfile user      # User customizations
31  
32 diff -urNad privoxy~/default.action.master privoxy/default.action.master
33 --- privoxy~/default.action.master
34 +++ privoxy/default.action.master
35 @@ -537,16 +537,6 @@
36  allow-ads   = -block -filter{banners-by-size} -filter{banners-by-link}
37  
38  #############################################################################
39 -# Defaults
40 -#############################################################################
41 -{ \
42 -+hide-forwarded-for-headers \
43 -+hide-from-header{block} \
44 -+set-image-blocker{pattern} \
45 -}
46 -/ # Match all URLs
47 -
48 -#############################################################################
49  # These extensions belong to images:
50  #############################################################################
51  {+handle-as-image -filter}
52 diff -urNad privoxy~/global.action privoxy/global.action
53 --- privoxy~/global.action
54 +++ privoxy/global.action
55 @@ -0,0 +1,9 @@
56 +#############################################################################
57 +# Defaults
58 +#############################################################################
59 +{ \
60 ++hide-forwarded-for-headers \
61 ++hide-from-header{block} \
62 ++set-image-blocker{pattern} \
63 +}
64 +/ # Match all URLs