%define privoxyconf %{_sysconfdir}/%{name} Summary: Privacy enhancing HTTP proxy Name: privoxy Version: 3.0.10 Release: %mkrel 1 License: GPL Group: Networking/Other URL: http://www.privoxy.org/ Source0: http://prdownloads.sf.net/ijbswa/%{name}-%{version}-stable-src.tar.gz Source1: http://prdownloads.sf.net/ijbswa/%{name}-%{version}-stable-src.tar.gz.asc # use daemon user to run privoxy Patch1: privoxy-2.9.13-daemon.patch # (fc) 3.0.3-7mdk add support for parallel initscript Patch4: privoxy-3.0.3-parallel.patch # (fc) 3.0.6-2mdv fix Google Reader filter Patch7: privoxy-3.0.6-fixreader.patch Requires(post): rpm-helper Requires(preun): rpm-helper Obsoletes: junkbuster Provides: junkbuster = %{version}-%{release} Provides: webproxy BuildRequires: docbook-style-dsssl BuildRequires: docbook-dtd31-sgml BuildRequires: lynx BuildRequires: man BuildRequires: pcre-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Privoxy is a web proxy with advanced filtering capabilities for protecting privacy, filtering web page content, managing cookies, controlling access, and removing ads, banners, pop-ups and other obnoxious Internet Junk. Privoxy has a very flexible configuration and can be customized to suit individual needs and tastes. Privoxy has application for both stand-alone systems and multi-user networks. Privoxy was previously called Internet Junkbuster. To configure privoxy, go to http://config.privoxy.org/ Privoxy proxy is running on port 8118 %prep %setup -n %{name}-%{version}-stable -q %patch1 -p1 -b .daemon %patch4 -p1 -b .parallel %patch7 -p1 -b .fixreader # manpage should be in section 8 sed -i -e 's/^\(\.TH "PRIVOXY" \)"1"/\1"8"/g' privoxy.1 #needed for build autoreconf %build %serverbuild %configure2_5x --with-user=daemon --with-group=daemon %make make redhat-dok %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sbindir} \ %{buildroot}%{_mandir}/man8 \ %{buildroot}/var/log/privoxy \ %{buildroot}%{privoxyconf}/templates \ %{buildroot}%{_sysconfdir}/logrotate.d \ %{buildroot}%{_initrddir} install -m 755 privoxy %{buildroot}%{_sbindir}/privoxy install -m 644 privoxy.1 %{buildroot}%{_mandir}/man8/privoxy.8 perl -pi -e "s|/etc/junkbuster/|/etc/privoxy/|g" privoxy.{monthly,weekly} # Install various config files for i in *.action default.filter trust; do install -m 644 $i %{buildroot}%{privoxyconf}/ done for i in templates/*; do install -m 644 $i %{buildroot}%{privoxyconf}/templates/ done install -m 644 privoxy.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -m 755 privoxy.init %{buildroot}%{_initrddir}/%{name} # verify all file locations, etc. in the config file # don't start with ^ or commented lines are not replaced sed -e 's!^confdir.*!confdir /etc/privoxy!g' \ -e 's!^logdir.*!logdir /var/log/privoxy!g' \ < config > %{buildroot}%{privoxyconf}/config %triggerin -- msec < 0.17 for i in 0 1 2 3 4 5; do permfile="%{_sysconfdir}/security/msec/perm.$i" if grep -q '^/var/log/privoxy' $permfile; then perl -pi -e 's|^/var/log/privoxy\s.*|/var/log/prixovy\t\t\t\tdaemon.daemon\t700|' $permfile else echo -e "/var/log/prixovy\t\t\t\tdaemon.daemon\t700" >> $permfile fi done %post %_post_service privoxy %preun %_preun_service privoxy %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS ChangeLog README %doc doc/webserver %attr (0700,daemon,daemon) /var/log/privoxy %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_sbindir}/* %{_mandir}/man8/* %config %{_initrddir}/%{name} %defattr(664,daemon,daemon,755) %dir %{privoxyconf} %config(noreplace) %{privoxyconf}/config %config %{privoxyconf}/default.action %config(noreplace) %{privoxyconf}/default.filter %config %{privoxyconf}/standard.action %config(noreplace) %{privoxyconf}/templates %config(noreplace) %{privoxyconf}/trust %config(noreplace) %{privoxyconf}/user.action %config(noreplace) %{privoxyconf}/regression-tests.action %changelog * Thu Aug 21 2008 Frederic Crozat <fcrozat@mandriva.com> 3.0.10-1mdv2009.0 + Revision: 274675 - add missing signature file - Release 3.0.10 - Remove patch5 (obsolete) * Fri Aug 01 2008 Thierry Vignaud <tvignaud@mandriva.com> 3.0.8-5mdv2009.0 + Revision: 259295 - rebuild * Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 3.0.8-4mdv2009.0 + Revision: 247222 - rebuild * Mon Feb 18 2008 Oden Eriksson <oeriksson@mandriva.com> 3.0.8-2mdv2008.1 + Revision: 171431 - add a virtal provides of webproxy * Mon Jan 21 2008 Frederic Crozat <fcrozat@mandriva.com> 3.0.8-1mdv2008.1 + Revision: 155687 - Release 3.0.8 - Remove patches 0 (replace by sed magic), 6 (merged upstream) + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue Sep 18 2007 Frederic Crozat <fcrozat@mandriva.com> 3.0.6-2mdv2008.0 + Revision: 89689 - Patch6 (CVS): many filter fixes from CVS - Patch7: fix Google Reader filter * Wed Mar 07 2007 Frederic Crozat <fcrozat@mandriva.com> 3.0.6-1mdv2007.1 + Revision: 134608 - Release 3.0.6 - Bunzip patches - Remove patches 2, 3 (merged upstream) - Patch5: fix documentation generation - Regenerate patch1 - Import privoxy * Thu May 04 2006 Frederic Crozat <fcrozat@mandriva.com> 3.0.3-11mdk - Update patch2 to not break Google Finance either * Thu Feb 09 2006 Frederic Crozat <fcrozat@mandriva.com> 3.0.3-10mdk - Update patch2 to not break gmail by default * Mon Jan 09 2006 Olivier Blin <oblin@mandriva.com> 3.0.3-9mdk - don't forget the LSB patch * Mon Jan 09 2006 Olivier Blin <oblin@mandriva.com> 3.0.3-8mdk - convert parallel init to LSB * Tue Jan 03 2006 Frederic Crozat <fcrozat@mandriva.com> 3.0.3-7mdk - Fix prereq - use mkrel - Patch4: add support for parallel initscript * Mon Jan 10 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 3.0.3-6mdk - Patch3 : fix ie-exploit filter to not be triggered by Amazon * Sat Jul 24 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 3.0.3-5mdk - Fix perms on privoxy config directory * Thu Jul 22 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 3.0.3-4mdk - Fix default perms/owner of configuration file, otherwise privoxy won't be able to modify its config files from web interface.