synced redhat and suse build process
[privoxy.git] / junkbuster-suse.spec
index fa6ae52..5609b35 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: junkbuster-suse.spec,v 1.7 2001/09/10 17:44:22 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
 # 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.
 #
 # 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 <stefan@waldherr.org>
-
 Copyright:    GPL
 # buildroot does not work under f*cking suse :-(
 #BuildRoot: /tmp/junkbuster-rpmbuild
@@ -64,19 +83,22 @@ Group:        Networking/Utilities
 Provides:     ijb
 Obsoletes:    ijb
 Autoreqprov:  on
-Version: 2.9.8
+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 is an application that provides privacy and
-security to the user of the world wide web. It controls cookies,
-removes advertisements or pop-up windows. You can actually modify the
-content of web pages on-the-fly.
+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:
 --------
@@ -94,8 +116,10 @@ SuSE series: n
 # -----------------------------------------------------------------------------
 #
 %build
+autoheader
+autoconf
 ./configure
-make
+gmake
 strip junkbuster
 
 #
@@ -114,13 +138,13 @@ 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 actionsfile $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/^actionsfile.*/actionsfile \/etc\/junkbuster\/actionsfile/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' | \