X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=junkbuster-suse.spec;h=5609b357149a9c61bf118036fda07a8272874d0d;hp=56cf789f9fe8cc61ed5b9613b37b052a0f69eb7f;hb=c52eabc717dba7a4c84aa2d1edd8194a85daa9cd;hpb=258e78f82afac48a058c4d306786f8d53e93acc4 diff --git a/junkbuster-suse.spec b/junkbuster-suse.spec index 56cf789f..5609b357 100644 --- a/junkbuster-suse.spec +++ b/junkbuster-suse.spec @@ -1,4 +1,4 @@ -# $Id: junkbuster-suse.spec,v 1.3 2001/06/07 17:28:10 swa Exp $ +# $Id: junkbuster-suse.spec,v 1.12 2002/03/02 15:50:04 swa Exp $ # # Written by and Copyright (C) 2001 the SourceForge # IJBSWA team. http://ijbswa.sourceforge.net @@ -26,6 +26,40 @@ # Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # $Log: junkbuster-suse.spec,v $ +# Revision 1.12 2002/03/02 15:50:04 swa +# 2.9.11 version. more input for docs. +# +# Revision 1.11 2001/12/02 10:29:26 swa +# New version made these changes necessary. +# +# Revision 1.10 2001/10/31 19:27:27 swa +# consistent description. new name for suse since +# we had troubles with rpms of identical names +# on the webserver. +# +# Revision 1.9 2001/10/26 18:17:23 swa +# new version string +# +# Revision 1.8 2001/09/13 16:22:42 swa +# man page is legacy. suse rpm now contains html +# documentation. +# +# Revision 1.7 2001/09/10 17:44:22 swa +# integrate three pieces of documentation. +# +# Revision 1.6 2001/09/10 16:29:23 swa +# binary contained debug info. +# buildroot definition fucks up the build process under suse. +# program needs to write in varlogjunkbuster +# install all templates +# create varlogjunkbuster +# +# Revision 1.5 2001/06/09 09:13:29 swa +# description shorter +# +# Revision 1.4 2001/06/08 20:53:36 swa +# use buildroot, export init to separate file (better manageability) +# # Revision 1.3 2001/06/07 17:28:10 swa # cosmetics # @@ -36,33 +70,35 @@ # neededforbuild -ijb # usedforbuild -ijb aaa_base aaa_dir autoconf automake base bash bindutil binutils bison bzip compress cpio cracklib db devs diffutils e2fsprogs file fileutils findutils flex gawk gcc gdbm gdbm-devel gettext glibc glibc-devel gpm gppshare groff gzip kbd less libtool libz lx_suse make mktemp modutils ncurses ncurses-devel net-tools netcfg nkitb pam pam-devel patch perl pgp ps rcs rpm sendmail sh-utils shadow strace syslogd sysvinit texinfo textutils timezone unzip util-linux vim xdevel xf86 xshared +%define ijbconf %{_sysconfdir}/%{name} + Vendor: http://ijbswa.sourceforge.net Distribution: defineme -Name: junkbuster +Name: junkbuster-suse Packager: Stefan Waldherr - Copyright: GPL -BuildRoot: /tmp/junkbuster-rpmbuild +# buildroot does not work under f*cking suse :-( +#BuildRoot: /tmp/junkbuster-rpmbuild Group: Networking/Utilities Provides: ijb Obsoletes: ijb Autoreqprov: on -Version: 2.9 -Release: 4 +Version: 2.9.11 +Release: 1 Summary: The Internet Junkbuster -Source: http://www.waldherr.org/junkbuster/ijbswa.tar.gz +Source: http://www.waldherr.org/%{name}/ijbswa-%{version}.tar.gz # # ----------------------------------------------------------------------------- # %description -The Internet Junkbuster (TM) blocks unwanted banner ads and protects -your privacy from cookies and other threats. It's free under the GPL -(no warranty), runs under *NIX and works with almost any browser. You -need to clear you browser's cache and specify the proxy-server, -described in /usr/doc/junkbuster. This is a modified version which -returns a blank GIF for blocked images by default. But you can -configure this via /etc/junkbuster/config. +Internet Junkbuster 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. Junkbuster has a very +flexible configuration and can be customized to suit individual needs +and tastes. Internet Junkbuster has application for both stand-alone +systems and multi-user networks. Authors: -------- @@ -80,29 +116,35 @@ SuSE series: n # ----------------------------------------------------------------------------- # %build +autoheader +autoconf ./configure -make +gmake +strip junkbuster # # ----------------------------------------------------------------------------- # %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/{var/log/junkbuster,usr/{sbin,share/man/man1},etc/{junkbuster,junkbuster/templates,init.d}} +mkdir -p $RPM_BUILD_ROOT/{var/log/junkbuster,usr/{sbin,share/man/man1,share/doc/packages/junkbuster,share/doc/packages/junkbuster/user-manual,share/doc/packages/junkbuster/developer-manual,share/doc/packages/junkbuster/faq},etc/{junkbuster,junkbuster/templates,init.d}} +# make sure that we can write in the log directory +chown nobody.nogroup $RPM_BUILD_ROOT/var/log/junkbuster install -m 755 junkbuster.init.suse $RPM_BUILD_ROOT/etc/init.d/junkbuster -ln -sf $RPM_BUILD_ROOT/etc/init.d/junkbuster $RPM_BUILD_ROOT/usr/sbin/rcjunkbuster +# next line might require an additional rpm_build_root +ln -sf /etc/init.d/junkbuster $RPM_BUILD_ROOT/usr/sbin/rcjunkbuster install -m 755 junkbuster $RPM_BUILD_ROOT/usr/sbin install -d $RPM_BUILD_ROOT/etc/junkbuster install -d $RPM_BUILD_ROOT/etc/junkbuster/templates -install -m 644 permissionsfile $RPM_BUILD_ROOT/etc/junkbuster +install -m 644 ijb.action $RPM_BUILD_ROOT/etc/junkbuster install -m 644 re_filterfile $RPM_BUILD_ROOT/etc/junkbuster # verify all file locations, etc. in the config file # don't start with ^ or commented lines are not replaced cat config | \ sed 's/^confdir.*/confdir \/etc\/junkbuster/g' | \ -# sed 's/^permissionsfile.*/permissionsfile \/etc\/junkbuster\/permissionsfile/g' | \ + sed 's/^ijb.action.*/ijb.action \/etc\/junkbuster\/ijb.action/g' | \ # sed 's/^re_filterfile.*/re_filterfile \/etc\/junkbuster\/re_filterfile/g' | \ # sed 's/^logfile.*/logfile \/var\/log\/junkbuster\/logfile/g' | \ # sed 's/^jarfile.*/jarfile \/var\/log\/junkbuster\/jarfile/g' | \ @@ -114,10 +156,11 @@ cp -f config.tmp config install -m 644 config $RPM_BUILD_ROOT/etc/junkbuster #install -m 644 forward $RPM_BUILD_ROOT/etc/junkbuster install -m 644 trust $RPM_BUILD_ROOT/etc/junkbuster -install -m 644 templates/default $RPM_BUILD_ROOT/etc/junkbuster/templates -install -m 644 templates/show-status $RPM_BUILD_ROOT/etc/junkbuster/templates -install -m 644 templates/show-status-file $RPM_BUILD_ROOT/etc/junkbuster/templates -install -m 644 junkbuster.1 $RPM_BUILD_ROOT/usr/share/man/man1 +install -m 644 templates/* $RPM_BUILD_ROOT/etc/junkbuster/templates +# install -m 644 junkbuster.1 $RPM_BUILD_ROOT/usr/share/man/man1 +cp -r doc/webserver/user-manual $RPM_BUILD_ROOT/usr/share/doc/packages/junkbuster +cp -r doc/webserver/developer-manual $RPM_BUILD_ROOT/usr/share/doc/packages/junkbuster +cp -r doc/webserver/faq $RPM_BUILD_ROOT/usr/share/doc/packages/junkbuster %{?suse_check} # @@ -136,12 +179,15 @@ sbin/insserv etc/init.d/ # ----------------------------------------------------------------------------- # %files -#%doc README *.html +%doc /usr/share/doc/packages/junkbuster/faq/ +%doc /usr/share/doc/packages/junkbuster/user-manual/ +%doc /usr/share/doc/packages/junkbuster/developer-manual/ /usr/sbin/junkbuster -/usr/share/man/man1/junkbuster.1.gz +#/usr/share/man/man1/junkbuster.1.gz %config(noreplace) /etc/junkbuster /etc/init.d/junkbuster /usr/sbin/rcjunkbuster +/var/log/junkbuster # # -----------------------------------------------------------------------------