# # 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) Name: junkbuster Packager: feedback@suse.de Copyright: GPL 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 %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. Authors: -------- junkbuster@junkbusters.com SuSE series: n %prep %setup -n ijb20 %patch %build 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 %{?suse_check} %post sbin/insserv etc/init.d/junkbuster %postun sbin/insserv etc/init.d/ %files %doc README *.html /usr/sbin/junkbuster /usr/share/man/man1/junkbuster.1.gz %config(noreplace) /etc/ijb /etc/init.d/junkbuster /usr/sbin/rcjunkbuster %changelog -n junkbuster * Wed Feb 14 2001 - uli@suse.de - fixed init script * Wed Dec 06 2000 - bjacke@suse.de - renamed package to junkbuster - fixed copyright tag * Thu Nov 30 2000 - uli@suse.de - moved init script to /etc/init.d * Wed Feb 16 2000 - kukuk@suse.de - Move /usr/man -> /usr/share/man - Mark /etc/ijb as "config(noreplace)" * Mon Sep 20 1999 - uli@suse.de - fixed init script * Mon Sep 13 1999 - bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Thu Apr 01 1999 - daniel@suse.de - do not start ijb as root (security) * Tue Mar 30 1999 - daniel@suse.de - donīt use saclfile.ini * Tue Mar 30 1999 - daniel@suse.de - small fix to whitelist-configuration, version is and was 2.0.2 WITHOUT Stefan Waldherr's patches (http://www.waldherr.org/junkbuster/) * Mon Mar 01 1999 - daniel@suse.de - new package: version 2.0