Add LSB compliance to init.d script (INIT INFO and status).
[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 @@ -505,67 +505,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-client-headers \
76 --filter-server-headers \
77 --force-text-mode \
78 --handle-as-empty-document \
79 --handle-as-image \
80 --hide-accept-language \
81 --hide-content-disposition \
82 --hide-if-modified-since \
83 -+hide-forwarded-for-headers \
84 -+hide-from-header{block} \
85 --hide-referrer \
86 --hide-user-agent \
87 --inspect-jpegs \
88 --kill-popups \
89 --limit-connect \
90 --prevent-compression \
91 --overwrite-last-modified \
92 --redirect \
93 --send-vanilla-wafer \
94 --send-wafer \
95 --session-cookies-only \
96 -+set-image-blocker{pattern} \
97 --treat-forbidden-connects-like-blocks \
98 -}
99 -/ # Match all URLs
100  
101  #############################################################################
102  # These extensions belong to images:
103 diff -urNad privoxy~/global.action privoxy/global.action
104 --- privoxy~/global.action
105 +++ privoxy/global.action
106 @@ -0,0 +1,61 @@
107 +#############################################################################
108 +# Defaults
109 +#############################################################################
110 +{ \
111 +-add-header \
112 +-block \
113 +-content-type-overwrite \
114 +-crunch-client-header \
115 +-crunch-if-none-match \
116 +-crunch-outgoing-cookies \
117 +-crunch-incoming-cookies \
118 +-crunch-server-header \
119 +-deanimate-gifs \
120 +-downgrade-http-version \
121 +-fast-redirects \
122 +-filter{js-annoyances} \
123 +-filter{js-events} \
124 +-filter{html-annoyances} \
125 +-filter{content-cookies} \
126 +-filter{refresh-tags} \
127 +-filter{unsolicited-popups} \
128 +-filter{all-popups} \
129 +-filter{img-reorder} \
130 +-filter{banners-by-size} \
131 +-filter{banners-by-link} \
132 +-filter{webbugs} \
133 +-filter{tiny-textforms} \
134 +-filter{jumping-windows} \
135 +-filter{frameset-borders} \
136 +-filter{demoronizer} \
137 +-filter{shockwave-flash} \
138 +-filter{quicktime-kioskmode} \
139 +-filter{fun} \
140 +-filter{crude-parental} \
141 +-filter{ie-exploits} \
142 +-filter{site-specifics} \
143 +-filter-client-headers \
144 +-filter-server-headers \
145 +-force-text-mode \
146 +-handle-as-empty-document \
147 +-handle-as-image \
148 +-hide-accept-language \
149 +-hide-content-disposition \
150 +-hide-if-modified-since \
151 ++hide-forwarded-for-headers \
152 ++hide-from-header{block} \
153 +-hide-referrer \
154 +-hide-user-agent \
155 +-inspect-jpegs \
156 +-kill-popups \
157 +-limit-connect \
158 +-prevent-compression \
159 +-overwrite-last-modified \
160 +-redirect \
161 +-send-vanilla-wafer \
162 +-send-wafer \
163 +-session-cookies-only \
164 ++set-image-blocker{pattern} \
165 +-treat-forbidden-connects-like-blocks \
166 +}
167 +/ # Match all URLs