Merge in Debian changes from Debian packages 3.0.5-beta-3 and 3.0.6-1.
[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 @@ -530,75 +530,6 @@
36  #
37  allow-ads   = -block -filter{banners-by-size} -filter{banners-by-link}
38  
39 -#############################################################################
40 -# Defaults
41 -#############################################################################
42 -{ \
43 --add-header \
44 --block \
45 --content-type-overwrite \
46 --crunch-client-header \
47 --crunch-if-none-match \
48 --crunch-outgoing-cookies \
49 --crunch-incoming-cookies \
50 --crunch-server-header \
51 --deanimate-gifs \
52 --downgrade-http-version \
53 --fast-redirects \
54 --filter{js-annoyances} \
55 --filter{js-events} \
56 --filter{html-annoyances} \
57 --filter{content-cookies} \
58 --filter{refresh-tags} \
59 --filter{unsolicited-popups} \
60 --filter{all-popups} \
61 --filter{img-reorder} \
62 --filter{banners-by-size} \
63 --filter{banners-by-link} \
64 --filter{webbugs} \
65 --filter{tiny-textforms} \
66 --filter{jumping-windows} \
67 --filter{frameset-borders} \
68 --filter{demoronizer} \
69 --filter{shockwave-flash} \
70 --filter{quicktime-kioskmode} \
71 --filter{fun} \
72 --filter{crude-parental} \
73 --filter{ie-exploits} \
74 --filter{site-specifics} \
75 --filter{google} \
76 --filter{yahoo} \
77 --filter{msn} \
78 --filter{blogspot} \
79 --filter{xml-to-html} \
80 --filter{html-to-xml} \
81 --filter{no-ping} \
82 --filter{hide-tor-exit-notation} \
83 --filter-client-headers \
84 --filter-server-headers \
85 --force-text-mode \
86 --handle-as-empty-document \
87 --handle-as-image \
88 --hide-accept-language \
89 --hide-content-disposition \
90 --hide-if-modified-since \
91 -+hide-forwarded-for-headers \
92 -+hide-from-header{block} \
93 --hide-referrer \
94 --hide-user-agent \
95 --inspect-jpegs \
96 --kill-popups \
97 --limit-connect \
98 --prevent-compression \
99 --overwrite-last-modified \
100 --redirect \
101 --send-vanilla-wafer \
102 --send-wafer \
103 --session-cookies-only \
104 -+set-image-blocker{pattern} \
105 --treat-forbidden-connects-like-blocks \
106 -}
107 -/ # Match all URLs
108  
109  #############################################################################
110  # These extensions belong to images:
111 diff -urNad privoxy~/global.action privoxy/global.action
112 --- privoxy~/global.action
113 +++ privoxy/global.action
114 @@ -0,0 +1,69 @@
115 +#############################################################################
116 +# Defaults
117 +#############################################################################
118 +{ \
119 +-add-header \
120 +-block \
121 +-content-type-overwrite \
122 +-crunch-client-header \
123 +-crunch-if-none-match \
124 +-crunch-outgoing-cookies \
125 +-crunch-incoming-cookies \
126 +-crunch-server-header \
127 +-deanimate-gifs \
128 +-downgrade-http-version \
129 +-fast-redirects \
130 +-filter{js-annoyances} \
131 +-filter{js-events} \
132 +-filter{html-annoyances} \
133 +-filter{content-cookies} \
134 +-filter{refresh-tags} \
135 +-filter{unsolicited-popups} \
136 +-filter{all-popups} \
137 +-filter{img-reorder} \
138 +-filter{banners-by-size} \
139 +-filter{banners-by-link} \
140 +-filter{webbugs} \
141 +-filter{tiny-textforms} \
142 +-filter{jumping-windows} \
143 +-filter{frameset-borders} \
144 +-filter{demoronizer} \
145 +-filter{shockwave-flash} \
146 +-filter{quicktime-kioskmode} \
147 +-filter{fun} \
148 +-filter{crude-parental} \
149 +-filter{ie-exploits} \
150 +-filter{site-specifics} \
151 +-filter{google} \
152 +-filter{yahoo} \
153 +-filter{msn} \
154 +-filter{blogspot} \
155 +-filter{xml-to-html} \
156 +-filter{html-to-xml} \
157 +-filter{no-ping} \
158 +-filter{hide-tor-exit-notation} \
159 +-filter-client-headers \
160 +-filter-server-headers \
161 +-force-text-mode \
162 +-handle-as-empty-document \
163 +-handle-as-image \
164 +-hide-accept-language \
165 +-hide-content-disposition \
166 +-hide-if-modified-since \
167 ++hide-forwarded-for-headers \
168 ++hide-from-header{block} \
169 +-hide-referrer \
170 +-hide-user-agent \
171 +-inspect-jpegs \
172 +-kill-popups \
173 +-limit-connect \
174 +-prevent-compression \
175 +-overwrite-last-modified \
176 +-redirect \
177 +-send-vanilla-wafer \
178 +-send-wafer \
179 +-session-cookies-only \
180 ++set-image-blocker{pattern} \
181 +-treat-forbidden-connects-like-blocks \
182 +}
183 +/ # Match all URLs