Rebuild with the updated list of developers
[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 @@ -167,7 +167,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 @@ -371,6 +371,7 @@
25  #      to allow previously forbidden characters.
26  #
27  actionsfile standard.action  # Internal purpose, recommended
28 +actionsfile global.action    # Global default setting for all sites
29  actionsfile default.action   # Main actions file
30  actionsfile user.action      # 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 @@ -550,16 +550,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