1 # $Id: privoxy-rh.spec,v 1.36 2002/05/30 07:52:34 morcego Exp $
3 # Written by and Copyright (C) 2001 the SourceForge
4 # Privoxy team. http://www.privoxy.org/
6 # Based on the Internet Junkbuster originally written
7 # by and Copyright (C) 1997 Anonymous Coders and
8 # Junkbusters Corporation. http://www.junkbusters.com
10 # This program is free software; you can redistribute it
11 # and/or modify it under the terms of the GNU General
12 # Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at
14 # your option) any later version.
16 # This program is distributed in the hope that it will
17 # be useful, but WITHOUT ANY WARRANTY; without even the
18 # implied warranty of MERCHANTABILITY or FITNESS FOR A
19 # PARTICULAR PURPOSE. See the GNU General Public
20 # License for more details.
22 # The GNU General Public License should be included with
23 # this file. If not, you can view it at
24 # http://www.gnu.org/copyleft/gpl.html
25 # or write to the Free Software Foundation, Inc., 59
26 # Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 # Defines should happen in the begining of the file
30 %define veryoldname junkbust
31 %define oldname junkbuster
32 %define privoxyconf %{_sysconfdir}/%{name}
33 %define privoxy_uid 73
34 %define privoxy_gid 73
38 # Version and release should be updated acordingly on configure.in and
39 # configure. Otherwise, the package can be build with the wrong value
42 Summary: Privoxy - privacy enhancing proxy
45 Source0: http://www.waldherr.org/%{name}/%{name}-%{version}.tar.gz
46 BuildRoot: %{_tmppath}/%{name}-%{version}-root
47 Group: Networking/Utilities
48 URL: http://www.privoxy.org/
49 Obsoletes: junkbuster-raw junkbuster-blank junkbuster
50 # Prereq: /usr/sbin/useradd , /sbin/chkconfig , /sbin/service
51 Prereq: shadow-utils, chkconfig, initscripts, sh-utils
52 BuildRequires: perl gzip sed libtool autoconf
53 Conflicts: junkbuster-raw junkbuster-blank junkbuster
56 Privoxy is a web proxy with advanced filtering capabilities for
57 protecting privacy, filtering web page content, managing cookies,
58 controlling access, and removing ads, banners, pop-ups and other
59 obnoxious Internet junk. Privoxy has a very flexible configuration and
60 can be customized to suit individual needs and tastes. Privoxy has application
61 for both stand-alone systems and multi-user networks.
63 Privoxy is based on the Internet Junkbuster.
70 # We check to see if versions match
75 CONFIG_VERSION=`cat configure.in | sed -n -e 's/^VERSION_MAJOR=\([0-9]*\)/\1./p' -e 's/^VERSION_MINOR=\([0-9]*\)/\1./p' -e 's/^VERSION_POINT=\([0-9]*\)/\1/p' | awk '{printf $1}'`
76 if [ "%{version}" != "${CONFIG_VERSION}" ]; then
77 echo "The version declared on the specfile does not match the version"
78 echo "declared on configure.in. This should not happen. The build will"
79 echo "be interrupted now, so you can fix it."
84 %configure --disable-dynamic-pcre
86 # Docs are in CVS and tarball now.
89 ## Explicitily stripping is not recomended.
90 ## This is handled altomaticaly by RPM, and can couse troubles if
91 ## anyone wants to build an unstriped version - morcego
95 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
96 mkdir -p %{buildroot}%{_sbindir} \
97 %{buildroot}%{_mandir}/man1 \
98 %{buildroot}%{_localstatedir}/log/%{name} \
99 %{buildroot}%{privoxyconf}/templates \
100 %{buildroot}%{_sysconfdir}/logrotate.d \
101 %{buildroot}%{_sysconfdir}/rc.d/init.d
103 ## Manual gziping of manpages should not be done, once it can
104 ## break the building on some distributions. Anyway, rpm does it
105 ## automagicaly these days
106 ## Gziping the documentation files is not recomended - morcego
107 #gzip README AUTHORS ChangeLog %{name}.1 || /bin/true
109 # Using sed to "convert" from DOS format to UNIX
111 install -s -m 744 %{name} %{buildroot}%{_sbindir}/%{name}
113 cp -f %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
114 for i in `ls *.action`
116 cat $i | sed -e 's/\r$//' > %{buildroot}%{privoxyconf}/$i
118 cat default.filter | sed -e 's/\r$//' > %{buildroot}%{privoxyconf}/default.filter
119 cat trust | sed -e 's/\r$//' > %{buildroot}%{privoxyconf}/trust
124 cat $i | sed -e 's/\r$//' > buildroot}%{privoxyconf}/templates/$i
127 cp -f %{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
128 install -m 755 %{name}.init %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
129 install -m 711 -d %{buildroot}%{_localstatedir}/log/%{name}
131 # verify all file locations, etc. in the config file
132 # don't start with ^ or commented lines are not replaced
133 ## Changing the sed paramter delimiter to @, so we don't have to
134 ## escape the slashes
136 sed 's@^confdir.*@confdir %{privoxyconf}@g' | \
137 # sed 's/^permissionsfile.*/permissionsfile \/etc\/%{name}\/permissionsfile/g' | \
138 # sed 's/^filterfile.*/default.filter \/etc\/%{name}\/default.filter/g' | \
139 # sed 's/^logfile.*/logfile \%{_localstatedir}\/log\/%{name}\/logfile/g' | \
140 # sed 's/^jarfile.*/jarfile \%{_localstatedir}\/log\/%{name}\/jarfile/g' | \
141 # sed 's/^forward.*/forward \/etc\/%{name}\/forward/g' | \
142 # sed 's/^aclfile.*/aclfile \/etc\/%{name}\/aclfile/g' > \
143 sed 's@^logdir.*@logdir %{_localstatedir}/log/%{name}@g' | \
145 %{buildroot}%{privoxyconf}/config
146 perl -pe 's/{-no-cookies}/{-no-cookies}\n\.redhat.com/' default.action >\
147 %{buildroot}%{privoxyconf}/default.action
150 # Creating ghost init files
151 mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/rc{0,1,2,3,4,5,6}.d
154 ln -sf ../init.d/%{name} %{buildroot}/%{_sysconfdir}/rc.d/rc${i}.d/K09%{name}
158 ln -sf ../init.d/%{name} %{buildroot}/%{_sysconfdir}/rc.d/rc${i}.d/S84%{name}
161 ## Macros are expanded even on commentaries. So, we have to use %%
166 # This is where we handle old usernames (junkbust and junkbuster)
167 # I'm not sure we should do that, but this is the way we have been
168 # doing it for some time now -- morcego
169 # We should do it for the group as well -- morcego
170 # Doing it by brute force. Much cleaner (no more Mr. Nice Guy) -- morcego
172 # Change the group name. Remove anything left behind.
173 groupmod -g %{privoxy_gid} -n %{name} %{oldname} > /dev/null 2>&1 ||:
174 groupmod -g %{privoxy_gid} -n %{name} %{veryoldname} > /dev/null 2>&1 ||:
175 groupdel %{oldname} > /dev/null 2>&1 ||:
176 groupdel %{veryoldname} > /dev/null 2>&1 ||:
179 usermod -u %{privoxy_uid} -g %{privoxy_gid} -l %{name} -d %{_sysconfdir}/%{name} -s "" %{oldname} > /dev/null 2>&1 || :
180 usermod -u %{privoxy_uid} -g %{privoxy_gid} -l %{name} -d %{_sysconfdir}/%{name} -s "" %{veryoldname} > /dev/null 2>&1 || :
181 userdel %{oldname} > /dev/null 2>&1 ||:
182 userdel %{veryoldname} > /dev/null 2>&1 ||:
184 # Doublecheck to see if the group exist, and that it has the correct gid
185 /bin/grep -E '^%{name}:' %{_sysconfdir}/group > /dev/null 2>&1
186 if [ $? -eq 1 ]; then
187 # Looks like it does not exist. Create it
188 groupadd -g %{privoxy_gid} %{name} > /dev/null 2>&1
190 /bin/grep -E '^%{name}:[^:]*:%{privoxy_gid}:' %{_sysconfdir}/group > /dev/null 2>&1
191 if [ $? -eq 1 ]; then
192 # The group exists, but does not have the correct gid
193 groupmod -g %{privoxy_gid} %{name} > /dev/null 2>&1
197 # Check to see if everything is okey. Create user if it still does not
199 id %{name} > /dev/null 2>&1
200 if [ $? -eq 1 ]; then
201 %{_sbindir}/useradd -u %{privoxy_uid} -g %{privoxy_gid} -d %{_sysconfdir}/%{name} -r -s "" %{name} > /dev/null 2>&1
204 # Double check that the group has the correct uid
205 P_UID=`id -u %{name} 2>/dev/null`
206 if [ $P_UID -ne %{privoxy_uid} ]; then
207 %{_sbindir}/usermod -u %{privoxy_uid} %{name}
210 # The same for the gid
211 P_GID=`id -g %{name} 2>/dev/null`
212 if [ $P_GID -ne %{privoxy_gid} ]; then
213 %{_sbindir}/usermod -g %{privoxy_gid} %{name}
217 # for upgrade from 2.0.x
218 [ -f %{_localstatedir}/log/%{oldname}/logfile ] &&\
219 mv -f %{_localstatedir}/log/%{oldname}/logfile %{_localstatedir}/log/%{name}/logfile || /bin/true
220 [ -f %{_localstatedir}/log/%{name}/%{name} ] &&\
221 mv -f %{_localstatedir}/log/%{name}/%{name} %{_localstatedir}/log/%{name}/logfile || /bin/true
222 chown -R %{name}:%{name} %{_localstatedir}/log/%{name} 2>/dev/null
223 chown -R %{name}:%{name} %{_sysconfdir}/%{name} 2>/dev/null
224 if [ "$1" = "1" ]; then
225 /sbin/service %{name} condrestart > /dev/null 2>&1
229 /sbin/service %{veryoldname} stop > /dev/null 2>&1 ||:
230 /sbin/service %{oldname} stop > /dev/null 2>&1 ||:
232 if [ "$1" = "0" ]; then
233 /sbin/service %{name} stop > /dev/null 2>&1 ||:
234 # No need to use chkconfig. The %%ghost files will handle it
238 #if [ "$1" -ge "1" ]; then
239 # /sbin/service %{name} condrestart > /dev/null 2>&1
241 # We only remove it we this is not an upgrade
242 if [ "$1" = "0" ]; then
243 /bin/grep -E '^%{name}:' %{_sysconfdir}/group > /dev/null && %{_sbindir}/groupdel %{name} || /bin/true
244 id privoxy > /dev/null 2>&1 && %{_sbindir}/userdel privoxy || /bin/true
248 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
251 %defattr(0644,root,root,0755)
252 %doc README AUTHORS ChangeLog LICENSE
253 %doc doc/text/developer-manual.txt doc/text/user-manual.txt doc/text/faq.txt
254 %doc doc/webserver/developer-manual
255 %doc doc/webserver/user-manual
256 %doc doc/webserver/faq
257 %doc doc/webserver/p_doc.css doc/webserver/p_web.css doc/webserver/privoxy-index.html
258 %doc doc/webserver/images
259 %doc doc/webserver/man-page
261 %attr(0755,%{name},%{name}) %dir %{privoxyconf}
262 %attr(0755,%{name},%{name}) %dir %{privoxyconf}/templates
263 %attr(0744,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
265 %attr(0744,%{name},%{name})%{_sbindir}/%{name}
267 # WARNING ! WARNING ! WARNING ! WARNING ! WARNING ! WARNING ! WARNING !
268 # We should not use wildchars here. This could mask missing files problems
270 # WARNING ! WARNING ! WARNING ! WARNING ! WARNING ! WARNING ! WARNING !
271 %attr(0644,%{name},%{name}) %config(noreplace) %{privoxyconf}/config
272 %attr(0644,%{name},%{name}) %config %{privoxyconf}/standard.action
273 %attr(0644,%{name},%{name}) %config(noreplace) %{privoxyconf}/user.action
274 %attr(0644,%{name},%{name}) %config %{privoxyconf}/default.action
275 %attr(0644,%{name},%{name}) %config %{privoxyconf}/default.filter
276 %attr(0644,%{name},%{name}) %config %{privoxyconf}/trust
278 # Please keep these alphabetized so its easier to find one that
280 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/blocked
281 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-error-404
282 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-error-bad-param
283 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-error-disabled
284 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-error-file
285 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-error-file-read-only
286 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-error-modified
287 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-error-parse
288 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/cgi-style.css
289 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/connect-failed
290 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/default
291 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-add-url-form
292 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-for-url
293 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-for-url-filter
294 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-list
295 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-list-button
296 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-list-section
297 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-list-url
298 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-remove-url-form
299 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/edit-actions-url-form
300 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/mod-local-help
301 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/mod-support-and-service
302 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/mod-title
303 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/mod-unstable-warning
304 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/no-such-domain
305 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/show-request
306 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/show-status
307 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/show-status-file
308 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/show-url-info
309 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/show-version
310 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/toggle
311 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/toggle-mini
312 %attr(0644,%{name},%{name}) %config %{privoxyconf}/templates/untrusted
314 %config %{_sysconfdir}/logrotate.d/%{name}
315 %config %attr(0744,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
316 %ghost %attr(-,root,root) %{_sysconfdir}/rc.d/rc0.d/K09%{name}
317 %ghost %attr(-,root,root) %{_sysconfdir}/rc.d/rc1.d/K09%{name}
318 %ghost %attr(-,root,root) %{_sysconfdir}/rc.d/rc2.d/S84%{name}
319 %ghost %attr(-,root,root) %{_sysconfdir}/rc.d/rc3.d/S84%{name}
320 %ghost %attr(-,root,root) %{_sysconfdir}/rc.d/rc4.d/K09%{name}
321 %ghost %attr(-,root,root) %{_sysconfdir}/rc.d/rc5.d/S84%{name}
322 %ghost %attr(-,root,root) %{_sysconfdir}/rc.d/rc6.d/K09%{name}
324 %{_mandir}/man1/%{name}.*
327 * Sat Jun 15 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
329 - Changing remaining absolute paths to rpm macros
330 - Fixing files ownership on the %%files section, so verify can work
332 * Thu May 30 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
334 - Using sed to convert files from DOS to UNIX format (BUG: #562174)
336 * Mon May 27 2002 Hal Burgiss <hal@foobox.net>
338 - Index.html is now privoxy-index.html.
340 * Fri May 24 2002 Hal Burgiss <hal@foobox.net>
342 - Add another template and alphabetize these for easier tracking.
343 - Add doc/images directory.
345 * Wed May 15 2002 Hal Burgiss <hal@foobox.net>
347 - Add templates/edit-actions-list-button
349 * Fri May 03 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
352 - Adding noreplace for %%{privoxyconf}/config
353 - Included a method to verify if the versions declared on the specfile and
354 configure.in match. Interrupt the build if they don't.
356 * Fri Apr 26 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
358 - Changing Vendor to Privoxy.Org
360 * Tue Apr 23 2002 Hal Burgiss <hal@foobox.net>
362 - Adjust for new *actions files.
364 * Mon Apr 22 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
366 - Removed the redhat hack that prevented the user and group from
367 being dealocated. That was a misundestanding of my part regarding
370 * Mon Apr 22 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
372 - Using macros to define uid and gid values
375 * Mon Apr 22 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
377 - Changes to fixate the uid and gid values as (both) 73. This is a
378 value we hope to standarize for all distributions. RedHat already
379 uses it, and Conectiva should start as soon as I find where the heck
380 I left my cluebat :-)
381 - Only remove the user and group on uninstall if this is not redhat, once
382 redhat likes to have the values allocated even if the package is not
385 * Tue Apr 16 2002 Hal Burgiss <hal@foobox.net>
387 - Add --disable-dynamic-pcre to configure.
389 * Wed Apr 10 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
391 - Relisting template files on the %%files section
393 * Tue Apr 09 2002 Hal Burgiss <hal@foobox.net>
395 - Removed 'make dok'. Docs are all maintained in CVS (and tarball) now.
397 * Mon Apr 08 2002 Hal Burgiss <hal@foobox.net>
399 - Add templates/cgi-style.css, faq.txt, p_web.css, LICENSE
400 - Remove templates/blocked-compact.
401 - Add more docbook stuff to Builderquires.
403 * Thu Mar 28 2002 Sarantis Paskalis <sarantis@cnl.di.uoa.gr>
405 - Include correct documentation file.
407 * Tue Mar 26 2002 Hal Burgiss <hal@foobox.net>
409 - Fix typo in Description.
411 * Tue Mar 26 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
413 - Added commentary asking to update the release value on the configure
416 * Tue Mar 25 2002 Hal Burgiss <hal@foobox.net>
418 - Added the missing edit-actions-for-url-filter to templates.
420 * Mon Mar 25 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
422 - Fixing Release number
424 * Sun Mar 24 2002 Hal Burgiss <hal@foobox.net>
428 * Sun Mar 24 2002 Rodrigo Barbosa <rodrigob@suespammers.org>
430 - Fixed the init files entries. Now we use %%ghost
431 - improved username (and groupname) handling on the %%pre section. By improved
432 I mean: we do it by brute force now. Much easier to maintain. Yeah, you
433 got it right. No more Mr. Nice Guy.
434 - Removed the userdel call on %%post. No need, once it's complety handled on
437 * Sun Mar 24 2002 Hal Burgiss <hal@foobox.net>
438 + junkbusterng-2.9.13-1
439 Added autoheader. Added autoconf to buildrequires.
441 * Sun Mar 24 2002 Hal Burgiss <hal@foobox.net>
442 + junkbusterng-2.9.13-1
443 - Fixed build problems re: name conflicts with man page and logrotate.
444 - Commented out rc?d/* configs for time being, which are causing a build
445 - failure. /etc/junkbuster is now /etc/privoxy. Stefan did other name
446 - changes. Fixed typo ';' should be ':' causing 'rpm -e' to fail.
448 * Fri Mar 22 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
449 + junkbusterng-2.9.13-1
450 - References to the expression ijb where changed where possible
451 - New package name: junkbusterng (all in lower case, acording to
452 the LSB recomendation)
453 - Version changed to: 2.9.13
455 - Added: junkbuster to obsoletes and conflicts (Not sure this is
456 right. If it obsoletes, why conflict ? Have to check it later)
457 - Summary changed: Stefan, please check and aprove it
458 - Changes description to use the new name
459 - Sed string was NOT changed. Have to wait to the manpage to
461 - Keeping the user junkbuster for now. It will require some aditional
462 changes on the script (scheduled for the next specfile release)
463 - Added post entry to move the old logfile to the new log directory
464 - Removing "chkconfig --add" entry (not good to have it automaticaly
465 added to the startup list).
466 - Added preun section to stop the service with the old name, as well
467 as remove it from the startup list
468 - Removed the chkconfig --del entry from the conditional block on
469 the preun scriptlet (now handled on the %%files section)
471 * Thu Mar 21 2002 Hal Burgiss <hal@foobox.net>
472 - added ijb_docs.css to docs.
474 * Mon Mar 11 2002 Hal Burgiss <hal@foobox.net>
475 + junkbuster-2.9.11-8
476 - Take out --enable-no-gifs, breaks some browsers.
478 * Sun Mar 10 2002 Hal Burgiss <hal@foobox.net>
479 + junkbuster-2.9.11-8
480 - Add --enable-no-gifs to configure.
482 * Fri Mar 08 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
483 + junkbuster-2.9.11-7
484 - Added BuildRequires to libtool.
486 * Tue Mar 06 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
487 + junkbuster-2.9.11-6
488 - Changed the routined that handle the junkbust and junkbuster users on
489 %%pre and %%post to work in a smoother manner
490 - %%files now uses hardcoded usernames, to avoid problems with package
491 name changes in the future
493 * Tue Mar 05 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
494 + junkbuster-2.9.11-5
495 - Added "make redhat-dok" to the build process
496 - Added docbook-utils to BuildRequires
498 * Tue Mar 05 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
499 + junkbuster-2.9.11-4
500 - Changing man section in the manpage from 1 to 8
501 - We now require packages, not files, to avoid issues with apt
503 * Mon Mar 04 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
504 + junkbuster-2.9.11-3
505 - Fixing permissions of the init script
507 * Mon Mar 04 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
508 + junkbuster-2.9.11-2
509 - General specfile fixup, using the best recomended practices, including:
510 - Adding -q to %%setup
511 - Using macros whereever possible
512 - Not using wildchars on %%files section
513 - Doubling the percentage char on changelog and comments, to
514 avoid rpm expanding them
516 * Sun Mar 03 2002 Hal Burgiss <hal@foobox.net>
517 - /bin/false for shell causes init script to fail. Reverting.
519 * Wed Jan 09 2002 Hal Burgiss <hal@foobox.net>
520 - Removed UID 73. Included user-manual and developer-manual in docs.
521 Include other actions files. Default shell is now /bin/false.
522 Userdel user=junkbust. ChangeLog was not zipped. Removed
523 RPM_OPT_FLAGS kludge.
525 * Fri Dec 28 2001 Thomas Steudten <thomas@steudten.ch>
526 - add paranoia check for 'rm -rf %%{buildroot}'
527 - add gzip to 'BuildRequires'
529 * Sat Dec 1 2001 Hal Burgiss <hal@foobox.net>
530 - actionsfile is now ijb.action.
532 * Tue Nov 6 2001 Thomas Steudten <thomas@steudten.ch>
534 - Add more documents for installation
535 - Add version string to name and source
537 * Wed Oct 24 2001 Hal Burigss <hal@foobox.net>
538 - Back to user 'junkbuster' and fix configure macro.
540 * Wed Oct 10 2001 Hal Burigss <hal@foobox.net>
541 - More changes for user 'junkbust'. Init script had 'junkbuster'.
543 * Sun Sep 23 2001 Hal Burgiss <hal@foobox.net>
544 - Change of $RPM_OPT_FLAGS handling. Added new HTML doc files.
545 - Changed owner of /etc/junkbuster to shut up PAM/xauth log noise.
547 * Thu Sep 13 2001 Hal Burgiss <hal@foobox.net>
548 - Added $RPM_OPT_FLAGS support, renaming of old logfile, and
549 - made sure no default shell exists for user junkbust.
551 * Sun Jun 3 2001 Stefan Waldherr <stefan@waldherr.org>
554 * Mon Sep 25 2000 Stefan Waldherr <stefan@waldherr.org>
555 - CLF Logging patch by davep@cyw.uklinux.net
556 - Hal DeVore <haldevore@earthling.net> fix akamaitech in blocklist
558 * Sun Sep 17 2000 Stefan Waldherr <stefan@waldherr.org>
559 - Steve Kemp skx@tardis.ed.ac.uk's javascript popup patch.
560 - Markus Breitenbach breitenb@rbg.informatik.tu-darmstadt.de supplied
561 numerous fixes and enhancements for Steve's patch.
562 - adamlock@netscape.com (Adam Lock) in the windows version:
563 - Taskbar activity spinner always spins even when logging is
564 turned off (which is the default) - people who don't
565 like the spinner can turn it off from a menu option.
566 - Taskbar popup menu has a options submenu - people can now
567 open the settings files for cookies, blockers etc.
568 without opening the JB window.
569 - Logging functionality works again
570 - Buffer overflow is fixed - new code uses a bigger buffer
571 and snprintf so it shouldn't overflow anymore.
572 - Fixed userid swa, group learning problem while installing.
574 - Added patch by Benjamin Low <ben@snrc.uow.edu.au> that prevents JB to
575 core dump when there is no log file.
576 - Tweaked SuSE startup with the help of mohataj@gmx.net and Doc.B@gmx.de.
577 - Fixed man page to include imagefile and popupfile.
578 - Sanity check for the statistics function added.
579 - "Patrick D'Cruze" <pdcruze@orac.iinet.net.au>: It seems Microsoft
580 are transitioning Hotmail from FreeBSD/Apache to Windows 2000/IIS.
581 With IIS/5, it appears to omit the trailing \r\n from http header
582 only messages. eg, when I visit http://www.hotmail.com, IIS/5
583 responds with a HTTP 302 redirect header. However, this header
584 message is missing the trailing \r\n. IIS/5 then closes the
585 connection. Junkbuster, unfortunately, discards the header becomes
586 it thinks it is incomplete - and it is. MS have transmitted an
588 - Added bug reports and patch submission forms in the docs.
590 * Mon Mar 20 2000 Stefan Waldherr <stefan@waldherr.org>
591 Andrew <anw@tirana.freewire.co.uk> extended the JB:
592 Display of statistics of the total number of requests and the number
593 of requests filtered by junkbuster, also the percentage of requests
594 filtered. Suppression of the listing of files on the proxy-args page.
595 All stuff optional and configurable.
597 * Sun Sep 12 1999 Stefan Waldherr <stefan@waldherr.org>
598 Jan Willamowius (jan@janhh.shnet.org) fixed a bug in the
599 code which prevented the JB from handling URLs of the form
600 user:password@www.foo.com. Fixed.
602 * Mon Aug 2 1999 Stefan Waldherr <stefan@waldherr.org>
603 Blank images are no longer cached, thanks to a hint from Markus
604 Breitenbach <breitenb@rbg.informatik.tu-darmstadt.de>. The user
605 agent is NO longer set by the Junkbuster. Sadly, many sites depend
606 on the correct browser version nowadays. Incorporated many
607 suggestions from Jan "Yenya" Kasprzak <kas@fi.muni.cz> for the
608 spec file. Fixed logging problem and since runlevel 2 does not
609 use networking, I replaced /etc/rc.d/rc2.d/S84junkbuster with
610 /etc/rc.d/rc2.d/K09junkbuster thanks to Shaw Walker
611 <walker@netgate.net>. You should now be able to build this RPM as
612 a non-root user (mathias@weidner.sem.lipsia.de).
614 * Sun Jan 31 1999 Stefan Waldherr <stefan@waldherr.org>
615 %%{_localstatedir}/log/junkbuster set to nobody. Added /etc/junkbuster/imagelist
616 to allow more sophisticated matching of blocked images. Logrotate
617 logfile. Added files for auto-updating the blocklist et al.
619 * Wed Dec 16 1998 Stefan Waldherr <stefan@waldherr.org>
620 Configure blank version via config file. No separate blank
621 version anymore. Added Roland's <roland@spinnaker.rhein.de>
622 patch to show a logo instead of a blank area. Added a suggestion
623 from Alex <alex@cocoa.demon.co.uk>: %%{_localstatedir}/lock/subsys/junkbuster.
624 More regexps in the blocklist. Prepared the forwardfile for
625 squid. Extended image regexp with help from gabriel
626 <somlo@CS.ColoState.EDU>.
628 * Thu Nov 19 1998 Stefan Waldherr <stefan@waldherr.org>
629 All RPMs now identify themselves in the show-proxy-args page.
630 Released Windoze version. Run junkbuster as nobody instead of
633 * Fri Oct 30 1998 Stefan Waldherr <stefan@waldherr.org>
634 Newest version. First release (hence the little version number
635 mixture -- 2.0.2-0 instead of 2.0-7). This version tightens
636 security over 2.0.1; some multi-user sites will need to change
637 the listen-address in the configuration file. The blank version of
638 the Internet Junkbuster has a more sophisticated way of replacing
639 images. All RPMs identify themselves in the show-proxy-args page.
641 * Thu Sep 23 1998 Stefan Waldherr <stefan@waldherr.org>
642 Modified the blocking feature, so that only GIFs and JPEGs are
643 blocked and replaced but not HTML pages. Thanks to
644 "Gerd Flender" <plgerd@informatik.uni-siegen.de> for this nice
645 idea. Added numerous stuff to the blocklist. Keep patches in
646 seperate files and no longer in diffs (easier to maintain).
648 * Tue Jun 16 1998 Stefan Waldherr <swa@cs.cmu.edu>
649 Moved config files to /etc/junkbuster directory, moved man page,
650 added BuildRoot directive (Thanks to Alexey Nogin <ayn2@cornell.edu>)
651 Made new version junkbuster-raw (which is only a stripped version of
652 the junkuster rpm, i.e. without my blocklist, etc.)
654 * Tue Jun 16 1998 (2.0-1)
655 Uhm, not that much. Just a new junkbuster version that
656 fixes a couple of bugs ... and of course a bigger
657 blocklist with the unique Now-less-ads-than-ever(SM)
659 Oh, one thing: I changed the default user agent to Linux -- no
660 need anymore to support Apple.
662 * Tue Jun 16 1998 (2.0-0)
663 Now-less-ads-than-ever (SM)
664 compiled with gcc instead of cc
665 compiled with -O3, thus it should be a little faster
666 show-proxy-args now works
667 /etc/junkbuster.init wasn't necessary
669 * Tue Jun 16 1998 (1.4)
670 some more config files were put into /etc
671 The junkbuster-blank rpm returns a 1x1 pixel image, that gets
672 displayed by Netscape instead of the blocked image.
673 Read http://www.waldherr.org/junkbuster/ for
676 * Tue Jun 16 1998 (1.3)
677 The program has been moved to /usr/sbin (from /usr/local/bin)
678 Init- and stopscripts (/etc/rc.d/rc*) have been added so
679 that the junkbuster starts automatically during bootup.
680 The /etc/blocklist file is much more sophisticated. Theoretically
681 one should e.g. browse all major US and German newspapers without
682 seeing one annoying ad.
683 junkbuster.init was modified. It now starts junkbuster with an
684 additional "-r @" flag.
686 # $Log: privoxy-rh.spec,v $
687 # Revision 1.36 2002/05/30 07:52:34 morcego
688 # Using sed to confert from DOS to UNIX formats (BUG: #562174)
690 # Revision 1.35 2002/05/28 03:56:59 hal9
691 # Index.html re-vamped as privoxy-index.html for docs.
693 # Revision 1.34 2002/05/25 22:09:58 hal9
694 # Add html man page to keep index.html from breaking (untested).
696 # Revision 1.33 2002/05/25 02:08:23 hal9
697 # Add doc/images directory.
698 # Redhat: alphabetized list of templates (and I think added one in the process)
700 # Revision 1.32 2002/05/16 01:37:29 hal9
701 # Add new template file so CGI stuff works :)
703 # Revision 1.31 2002/05/03 17:14:35 morcego
704 # *.spec: Version bump to 2.9.15
705 # -rh.spec: noreplace for %%{privoxyconf}/config
706 # Will interrupt the build if versions from configure.in and
707 # specfile do not match
709 # Revision 1.30 2002/04/26 15:51:05 morcego
710 # Changing Vendor value to Privoxy.Org
712 # Revision 1.29 2002/04/24 03:13:51 hal9
713 # New actions files changes.
715 # Revision 1.28 2002/04/22 18:51:33 morcego
716 # user and group now get removed on rh too.
718 # Revision 1.27 2002/04/22 16:32:31 morcego
719 # configure.in, *.spec: Bumping release to 2 (2.9.14-2)
720 # -rh.spec: uid and gid are now macros
721 # -suse.spec: Changing the header Copyright to License (Copyright is
724 # Revision 1.26 2002/04/22 16:24:36 morcego
725 # - Changes to fixate the uid and gid values as (both) 73. This is a
726 # value we hope to standarize for all distributions. RedHat already
727 # uses it, and Conectiva should start as soon as I find where the heck
728 # I left my cluebat :-)
729 # - Only remove the user and group on uninstall if this is not redhat, once
730 # redhat likes to have the values allocated even if the package is not
733 # Revision 1.25 2002/04/17 01:59:12 hal9
734 # Add --disable-dynamic-pcre.
736 # Revision 1.24 2002/04/11 10:09:20 oes
739 # Revision 1.23 2002/04/10 18:14:45 morcego
740 # - (privoxy-rh.spec only) Relisting template files on the %%files section
741 # - (configure.in, privoxy-rh.spec) Bumped package release to 5
743 # Revision 1.22 2002/04/09 22:06:12 hal9
746 # Revision 1.21 2002/04/09 02:52:26 hal9
747 # - Add templates/cgi-style.css, faq.txt, p_web.css, LICENSE
748 # - Remove templates/blocked-compact.
749 # - Add more docbook stuff to Buildrequires.
751 # Revision 1.20 2002/04/08 20:27:45 swa
754 # Revision 1.19 2002/03/27 22:44:59 sarantis
755 # Include correct documentation file.
757 # Revision 1.18 2002/03/27 22:10:14 sarantis
758 # bumped Hal's last commit 1 day to the future to make rpm build again.
760 # Revision 1.17 2002/03/27 00:48:23 hal9
763 # Revision 1.16 2002/03/26 22:29:55 swa
764 # we have a new homepage!
766 # Revision 1.15 2002/03/26 17:39:54 morcego
767 # Adding comment on the specfile to remember the packager to update
768 # the release number on the configure script
770 # Revision 1.14 2002/03/26 14:25:15 hal9
771 # Added edit-actions-for-url-filter to templates in %%config
773 # Revision 1.13 2002/03/25 13:31:04 morcego
774 # Bumping Release tag.
776 # Revision 1.12 2002/03/25 03:11:40 hal9
777 # Do it right way this time :/
779 # Revision 1.11 2002/03/25 03:09:51 hal9
782 # Revision 1.10 2002/03/24 22:16:14 morcego
783 # Just removing some old commentaries.
785 # Revision 1.9 2002/03/24 22:03:22 morcego
786 # Should be working now. See %changelog for details
788 # Revision 1.8 2002/03/24 21:13:01 morcego
791 # Revision 1.7 2002/03/24 21:07:18 hal9
792 # Add autoheader, etc.
794 # Revision 1.6 2002/03/24 19:56:40 hal9
795 # /etc/junkbuster is now /etc/privoxy. Fixed ';' typo.
797 # Revision 1.4 2002/03/24 13:32:42 swa
798 # name change related issues
800 # Revision 1.3 2002/03/24 12:56:21 swa
801 # name change related issues.
803 # Revision 1.2 2002/03/24 11:40:14 swa
806 # Revision 1.1 2002/03/24 11:23:44 swa
809 # Revision 1.1 2002/03/22 20:53:03 morcego
810 # - Ongoing process to change name to JunkbusterNG
811 # - configure/configure.in: no change needed
813 # - TAR_ARCH = /tmp/JunkbusterNG-$(RPM_VERSION).tar.gz
814 # - PROGRAM = jbng@EXEEXT@
815 # - rh-spec now references as junkbusterng-rh.spec
816 # - redhat-upload: references changed to junkbusterng-* (package names)
817 # - tarball-dist: references changed to JunkbusterNG-distribution-*
818 # - tarball-src: now JunkbusterNG-*
819 # - install: initscript now junkbusterng.init and junkbusterng (when
821 # - junkbuster-rh.spec: renamed to junkbusterng-rh.spec
822 # - junkbusterng.spec:
823 # - References to the expression ijb where changed where possible
824 # - New package name: junkbusterng (all in lower case, acording to
825 # the LSB recomendation)
826 # - Version changed to: 2.9.13
828 # - Added: junkbuster to obsoletes and conflicts (Not sure this is
829 # right. If it obsoletes, why conflict ? Have to check it later)
830 # - Summary changed: Stefan, please check and aprove it
831 # - Changes description to use the new name
832 # - Sed string was NOT changed. Have to wait to the manpage to
834 # - Keeping the user junkbuster for now. It will require some aditional
835 # changes on the script (scheduled for the next specfile release)
836 # - Added post entry to move the old logfile to the new log directory
837 # - Removing "chkconfig --add" entry (not good to have it automaticaly
838 # added to the startup list).
839 # - Added preun section to stop the service with the old name, as well
840 # as remove it from the startup list
841 # - Removed the chkconfig --del entry from the conditional block on
842 # the preun scriptlet (now handled on the %files section)
843 # - junkbuster.init: renamed to junkbusterng.init
844 # - junkbusterng.init:
845 # - Changed JB_BIN to jbng
846 # - Created JB_OBIN with the old value of JB_BIN (junkbuster), to
847 # be used where necessary (config dir)
850 # - The config directory is /etc/junkbuster yet. Have to change it on the
851 # specfile, after it is changes on the code
852 # - The only files that got renamed on the cvs tree were the rh specfile and
853 # the init file. Some file references got changes on the makefile and on the
854 # rh-spec (as listed above)
856 # Revision 1.43 2002/03/21 16:04:10 hal9
857 # added ijb_docs.css to %doc
859 # Revision 1.42 2002/03/12 13:41:18 sarantis
860 # remove hard-coded "ijbswa" string in build phase
862 # Revision 1.41 2002/03/11 22:58:32 hal9
863 # Remove --enable-no-gifs
865 # Revision 1.39 2002/03/08 18:57:29 swa
866 # remove user junkbuster after de-installation.
868 # Revision 1.38 2002/03/08 13:45:27 morcego
869 # Adding libtool to Buildrequires
871 # Revision 1.37 2002/03/07 19:23:49 swa
872 # i hate to scroll. suse: wrong configdir.
874 # Revision 1.36 2002/03/07 05:06:54 morcego
875 # Fixed %pre scriptlet. And, as a bonus, you can even understand it now. :-)
877 # Revision 1.34 2002/03/07 00:11:57 morcego
878 # Few changes on the %pre and %post sections of the rh specfile to handle
879 # usernames more cleanly
881 # Revision 1.33 2002/03/05 13:13:57 morcego
882 # - Added "make redhat-dok" to the build phase
883 # - Added docbook-utils to BuildRequires
885 # Revision 1.32 2002/03/05 12:34:24 morcego
886 # - Changing section internaly on the manpage from 1 to 8
887 # - We now require packages, not files, to avoid issues with apt
889 # Revision 1.31 2002/03/04 18:06:09 morcego
890 # SPECFILE: fixing permissing of the init script (broken by the last change)
892 # Revision 1.30 2002/03/04 16:18:03 morcego
893 # General cleanup of the rh specfile.
896 # * Mon Mar 04 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
897 # + junkbuster-2.9.11-2
898 # - General specfile fixup, using the best recomended practices, including:
899 # - Adding -q to %%setup
900 # - Using macros whereever possible
901 # - Not using wildchars on %%files section
902 # - Doubling the percentage char on changelog and comments, to
903 # avoid rpm expanding them
905 # Revision 1.29 2002/03/03 19:21:22 hal9
906 # Init script fails if shell is /bin/false.
908 # Revision 1.28 2002/01/09 18:34:03 hal9
911 # Revision 1.27 2002/01/09 18:32:02 hal9
912 # Removed RPM_OPT_FLAGS kludge.
914 # Revision 1.26 2002/01/09 18:21:10 hal9
915 # A few minor updates.
917 # Revision 1.25 2001/12/28 01:45:36 steudten
918 # Add paranoia check and BuildReq: gzip
920 # Revision 1.24 2001/12/01 21:43:14 hal9
921 # Allowed for new ijb.action file.
923 # Revision 1.23 2001/11/06 12:09:03 steudten
924 # Compress doc files. Install README and AUTHORS at last as document.
926 # Revision 1.22 2001/11/05 21:37:34 steudten
927 # Fix to include the actual version for name.
928 # Let the 'real' packager be included - sorry stefan.
930 # Revision 1.21 2001/10/31 19:27:27 swa
931 # consistent description. new name for suse since
932 # we had troubles with rpms of identical names
935 # Revision 1.20 2001/10/24 15:45:49 hal9
936 # To keep Thomas happy (aka correcting my mistakes)
938 # Revision 1.19 2001/10/15 03:23:59 hal9
941 # Revision 1.17 2001/10/10 18:59:28 hal9
942 # Minor change for init script.
944 # Revision 1.16 2001/09/24 20:56:23 hal9
947 # Revision 1.13 2001/09/10 17:44:43 swa
948 # integrate three pieces of documentation. needs work.
949 # will not build cleanly under redhat.
951 # Revision 1.12 2001/09/10 16:25:04 swa
952 # copy all templates. version updated.
954 # Revision 1.11 2001/07/03 11:00:25 sarantis
955 # replaced permissionsfile with actionsfile
957 # Revision 1.10 2001/07/03 09:34:44 sarantis
958 # bumped up version number.
960 # Revision 1.9 2001/06/12 18:15:29 swa
961 # the %% in front of configure (see tag below) confused
962 # the rpm build process on 7.1.
964 # Revision 1.8 2001/06/12 17:15:56 swa
965 # fixes, because a clean build on rh6.1 was impossible.
966 # GZIP confuses make, %% configure confuses rpm, etc.
968 # Revision 1.7 2001/06/11 12:17:26 sarantis
971 # Revision 1.6 2001/06/11 11:28:25 sarantis
972 # Further optimizations and adaptations in the spec file.
974 # Revision 1.5 2001/06/09 09:14:11 swa
975 # shamelessly adapted RPM stuff from the newest rpm that
976 # RedHat provided for the JB.
978 # Revision 1.4 2001/06/08 20:54:18 swa
979 # type with status file. remove forward et. al from file list.
981 # Revision 1.3 2001/06/07 17:28:10 swa
984 # Revision 1.2 2001/06/04 18:31:58 swa
985 # files are now prefixed with either `confdir' or `logdir'.
986 # `make redhat-dist' replaces both entries confdir and logdir
989 # Revision 1.1 2001/06/04 10:44:57 swa
990 # `make redhatr-dist' now works. Except for the paths
991 # in the config file.