X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=junkbuster-suse.spec;h=9218a2fdeb47b69dac09ab7c2cbf19ff31ec43ee;hp=54ead0566e82fb417cf1ea4fb6bc2640138cbbcd;hb=70871603286407f42d3681ec9695a0ecedf52aad;hpb=a72cebd026be2aed7f8f4dff706a4eebe6b41142 diff --git a/junkbuster-suse.spec b/junkbuster-suse.spec index 54ead056..9218a2fd 100644 --- a/junkbuster-suse.spec +++ b/junkbuster-suse.spec @@ -1,121 +1,154 @@ +# $Id: junkbuster-suse.spec,v 1.4 2001/06/08 20:53:36 swa Exp $ +# +# Written by and Copyright (C) 2001 the SourceForge +# IJBSWA team. http://ijbswa.sourceforge.net +# +# Based on the Internet Junkbuster originally written +# by and Copyright (C) 1997 Anonymous Coders and +# Junkbusters Corporation. http://www.junkbusters.com +# +# This program is free software; you can redistribute it +# and/or modify it under the terms of the GNU General +# Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public +# License for more details. +# +# The GNU General Public License should be included with +# this file. If not, you can view it at +# http://www.gnu.org/copyleft/gpl.html +# or write to the Free Software Foundation, Inc., 59 +# Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# $Log: junkbuster-suse.spec,v $ +# 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 +# +# Revision 1.2 2001/06/07 17:18:44 swa +# header fixed # -# spec file for package junkbuster (Version 2.0) -# -# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. -# -# please send bugfixes or comments to feedback@suse.de. # - # 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 -Vendor: SuSE GmbH, Nuernberg, Germany -Distribution: SuSE Linux 7.1 (i386) +Vendor: http://ijbswa.sourceforge.net +Distribution: defineme Name: junkbuster -Packager: feedback@suse.de +Packager: Stefan Waldherr Copyright: GPL +BuildRoot: /tmp/junkbuster-rpmbuild Group: Networking/Utilities Provides: ijb Obsoletes: ijb Autoreqprov: on -Version: 2.0 -Release: 14 -Summary: The Internet Junkbuster - HTTP Proxy-Server -Source: ijb20.tar.Z -Patch: ijb20.dif +Version: 2.9 +Release: 4 +Summary: The Internet Junkbuster +Source: http://www.waldherr.org/junkbuster/ijbswa.tar.gz +# +# ----------------------------------------------------------------------------- +# %description -The Internet Junkbuster - HTTP Proxy-Server: -A non-cacheing HTTP proxy server that runs between a web browser and a web -server and filters contents as described in the configuration files. +The Internet Junkbuster stops your browser from displaying the +advertisement images that pervade many commercial web pages. Since +your browser has to download fewer images, surfing the web should be +faster. Authors: -------- - junkbuster@junkbusters.com + http://ijbswa.sourceforge.net SuSE series: n +# +# ----------------------------------------------------------------------------- +# %prep -%setup -n ijb20 -%patch +%setup -c -n ijbswa +# +# ----------------------------------------------------------------------------- +# %build +./configure make -cat > /etc/init.d/junkbuster << EOT -#! /bin/sh -# Copyright (c) 1999 SuSE GmbH Nuremberg, Germany. All rights reserved. -# -# Author: Daniel Bischof , 1999 -# -# /sbin/init.d/junkbuster -# -### BEGIN INIT INFO -# Provides: junkbuster ijb -# Required-Start: $network syslog -# Required-Stop: -# Default-Start: 3 5 -# Default-Stop: -# Description: Starts the Internet Junkbuster -### END INIT INFO -. /etc/rc.config -base=\${0##*/} -link=\${base#*[SK][0-9][0-9]} -#test \$link = \$base && START_IJB=yes -#test "\$START_IJB" = "yes" || exit 0 -return=\$rc_done -case "\$1" in - start) - echo -n "Starting The Internet Junkbuster" - su - nobody -c 'nohup /usr/sbin/junkbuster /etc/ijb/junkbstr.ini < /dev/null > /dev/null &' - sleep 1 - echo -e "\$return" - ;; - stop) - echo -n "Shutting down The Internet Junkbuster" - killproc -TERM /usr/sbin/junkbuster || return=\$rc_failed - echo -e "\$return" - ;; - restart|reload) - \$0 stop && \$0 start || return=\$rc_failed - ;; - status) - checkproc /usr/sbin/junkbuster && echo OK || echo No process - ;; - *) - echo "Usage: \$0 {start|restart|status|stop}" - exit 1 -esac -test "\$return" = "\$rc_done" || exit 1 -exit 0 -EOT -chmod 755 /etc/init.d/junkbuster -ln -sf /etc/init.d/junkbuster /usr/sbin/rcjunkbuster +# +# ----------------------------------------------------------------------------- +# %install -install -m 755 junkbuster /usr/sbin -install -d /etc/ijb -install -m 644 *.ini /etc/ijb -install -m 644 junkbuster.1 /usr/share/man/man1 +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/{var/log/junkbuster,usr/{sbin,share/man/man1},etc/{junkbuster,junkbuster/templates,init.d}} + +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 + +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 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/^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' | \ +# sed 's/^forward.*/forward \/etc\/junkbuster\/forward/g' | \ +# sed 's/^aclfile.*/aclfile \/etc\/junkbuster\/aclfile/g' > \ + sed 's/^logdir.*/logdir \/var\/log\/junkbuster/g' > \ + config.tmp +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 %{?suse_check} +# +# ----------------------------------------------------------------------------- +# %post sbin/insserv etc/init.d/junkbuster +# +# ----------------------------------------------------------------------------- +# %postun sbin/insserv etc/init.d/ +# +# ----------------------------------------------------------------------------- +# %files -%doc README *.html +#%doc README *.html /usr/sbin/junkbuster /usr/share/man/man1/junkbuster.1.gz -%config(noreplace) /etc/ijb +%config(noreplace) /etc/junkbuster /etc/init.d/junkbuster /usr/sbin/rcjunkbuster +# +# ----------------------------------------------------------------------------- +# %changelog -n junkbuster +* Sun Jun 3 2001 Stefan Waldherr +- rework of RPM * Wed Feb 14 2001 - uli@suse.de - fixed init script * Wed Dec 06 2000 - bjacke@suse.de