[csw-devel] SF.net SVN: gar:[4078] csw/mgar/pkg

skayser at users.sourceforge.net skayser at users.sourceforge.net
Mon Mar 30 16:41:31 CEST 2009


Revision: 4078
          http://gar.svn.sourceforge.net/gar/?rev=4078&view=rev
Author:   skayser
Date:     2009-03-30 14:41:31 +0000 (Mon, 30 Mar 2009)

Log Message:
-----------
privoxy: non-maintainer initial GAR commit

Added Paths:
-----------
    csw/mgar/pkg/privoxy/
    csw/mgar/pkg/privoxy/branches/
    csw/mgar/pkg/privoxy/tags/
    csw/mgar/pkg/privoxy/trunk/
    csw/mgar/pkg/privoxy/trunk/Makefile
    csw/mgar/pkg/privoxy/trunk/checksums
    csw/mgar/pkg/privoxy/trunk/files/
    csw/mgar/pkg/privoxy/trunk/files/README.CSW
    csw/mgar/pkg/privoxy/trunk/files/cswprivoxy
    csw/mgar/pkg/privoxy/trunk/files/cswusergroup


Property changes on: csw/mgar/pkg/privoxy/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/privoxy/trunk/Makefile
===================================================================
--- csw/mgar/pkg/privoxy/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/privoxy/trunk/Makefile	2009-03-30 14:41:31 UTC (rev 4078)
@@ -0,0 +1,70 @@
+#
+# WARNING. This is still a (non-maintainer) stub and needs to be checked
+# against the current CSWprivoxy package by someone with regards to (at
+# least) log rotation.
+#
+GARNAME = privoxy
+GARVERSION = 3.0.12
+CATEGORIES = net
+
+DESCRIPTION = A web proxy with advanced filtering capabilities
+define BLURB
+Privoxy is a non-caching web proxy with advanced filtering capabilities
+for enhancing privacy, modifying web page data and HTTP headers,
+controlling access, and removing ads and other obnoxious Internet junk.
+Privoxy has a flexible configuration and can be customized to suit
+individual needs and tastes. It has application for both stand-alone
+systems and multi-user networks.
+endef
+
+MASTER_SITES = $(SF_MIRRORS)
+SF_PROJ = ijbswa
+DISTFILES  = $(GARNAME)-$(GARVERSION)-stable-src.tar.gz
+DISTNAME = $(GARNAME)-$(GARVERSION)-stable
+
+SPKG_SOURCEURL = http://www.privoxy.org/
+SPKG_CLASSES = none cswusergroup cswcpsampleconf cswinitsmf
+
+REQUIRED_PKGS = CSWclassutils CSWpcrert CSWzlib
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*)-stable-src.tar.gz
+
+TEST_SCRIPTS =
+
+sysconfdir = /opt/csw/etc/privoxy
+localstatedir = /var/opt/csw/privoxy
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+# Supress sub directories for logs and pid file
+INSTALL_ARGS = LOGS_DEST=$(localstatedir) PIDS_DEST=$(localstatedir)
+
+PROTOTYPE_FILTER  = awk '\
+        $$$$3 ~ /\/init.d\/cswprivoxy$$$$/ { $$$$2 = "cswinitsmf" } \
+        $$$$3 ~ /cswusergroup$$$$/ { $$$$2 = "cswusergroup" } \
+        $$$$3 ~ /.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } \
+         { print }'
+
+include gar/category.mk
+
+pre-configure-modulated:
+		@perl -pi -e 's|-Wall||' $(WORKSRC)/GNUmakefile.in
+		@cd $(WORKSRC) && autoheader && autoconf
+		@$(MAKECOOKIE)
+
+
+post-install-modulated: CONFFILES := config user.action user.filter
+post-install-modulated:
+		@echo --- Installing cswusergroup file ---
+		@ginstall -d $(DESTDIR)/opt/csw/etc/pkg/CSWprivoxy/
+		@cp $(FILEDIR)/cswusergroup $(DESTDIR)/opt/csw/etc/pkg/CSWprivoxy/
+
+		@echo --- Installing cpsampleconf config files ---
+		$(foreach C,$(CONFFILES), \
+			mv $(DESTDIR)$(sysconfdir)/$(C) $(DESTDIR)$(sysconfdir)/$(C).CSW; )
+
+		@echo --- Installing cswinitsmf file ---
+		@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+		@cp $(FILEDIR)/cswprivoxy $(DESTDIR)/etc/opt/csw/init.d/
+		@$(MAKECOOKIE)

Added: csw/mgar/pkg/privoxy/trunk/checksums
===================================================================
--- csw/mgar/pkg/privoxy/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/privoxy/trunk/checksums	2009-03-30 14:41:31 UTC (rev 4078)
@@ -0,0 +1 @@
+c973e608d27b248ef567b47664308da1  download/privoxy-3.0.12-stable-src.tar.gz

Added: csw/mgar/pkg/privoxy/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/privoxy/trunk/files/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/privoxy/trunk/files/README.CSW	2009-03-30 14:41:31 UTC (rev 4078)
@@ -0,0 +1,41 @@
+Configuration
+-------------
+
+The default configuration path is /opt/csw/etc/privoxy/config. CSWprivoxy
+brings with it a sample configuration (suffixed with .CSW) that will be
+installed when config doesn't exist yet.
+
+When you adjust config, package upgrades will preserve your configuration and
+just install the sample configuration as config.CSW. The same goes for
+the user.action and user.filters files.
+
+Logfiles are located here: /var/opt/csw/privoxy.
+
+
+Hints
+-----
+
+If you want to change listening address and/or port:
+-> listen-address 192.168.220.10:8080 
+
+If anything has to go to your example ISP's caching proxy:
+-> forward   /    caching-proxy.example-isp.net:8000
+
+To disallow editing of rules via "http://config.privoxy.org/show-status":
+-> enable-edit-actions 1
+
+If you want to using Privoxy before a Squid proxy server:
+(browser -> squid -> privoxy -> internet)
+-> add the following lines to squid.conf:
+
+  # Define Privoxy as parent proxy (without ICP) 
+  cache_peer 127.0.0.1 parent 8118 7 no-query 
+
+  # Define ACL for protocol FTP 
+  acl ftp proto FTP 
+
+  # Do not forward FTP requests to Privoxy
+  always_direct allow ftp 
+
+  # Forward all the rest to Privoxy
+  never_direct allow all

Added: csw/mgar/pkg/privoxy/trunk/files/cswprivoxy
===================================================================
--- csw/mgar/pkg/privoxy/trunk/files/cswprivoxy	                        (rev 0)
+++ csw/mgar/pkg/privoxy/trunk/files/cswprivoxy	2009-03-30 14:41:31 UTC (rev 4078)
@@ -0,0 +1,182 @@
+#!/bin/sh 
+# 
+#  ********************************************************************
+# 
+#  File        :  $Source: /cvsroot/ijbswa/current/privoxy-generic.init,v $
+# 
+#  Purpose     :  This shell script takes care of starting and stopping
+#                 privoxy.
+# 
+#  Copyright   :  Written by and Copyright (C) 2001,2002 the SourceForge
+#                 Privoxy team. http://www.privoxy.org/
+# 
+#                 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.
+#
+# Developer's NOTE: This script should be tested against a true /bin/sh, which
+# has notable differences from bash. By design, this script does not try to do
+# too much, so as to be as cross-platform as possible.
+#
+# 
+#  Revisions   :
+#     $Log: privoxy-generic.init,v $
+#     Revision 1.8  2007/06/09 12:35:54  fabiankeil
+#     Add /usr/xpg4/bin to the PATH to make sure the POSIX
+#     version of id is used on Solaris. Closes BR#1733788.
+#     Thanks to Brent Chivers for report and fix.
+#
+#     Revision 1.7  2006/10/14 14:12:22  fabiankeil
+#     Print warnings if the user tries to run Privoxy as root
+#     or if the script is run without root privileges;
+#     only use "--user" if run with root privileges and
+#     don't depend on $USER being set to root. Fixes BR 779781.
+#
+#     Apparently $USER isn't set on all systems,
+#     but it also didn't work if the user only
+#     increased her privileges with su or sudo,
+#     but still had her real uid in $USER.
+#
+#     Thanks to Florian Effenberger for reporting.
+#
+#     Revision 1.6  2006/07/18 14:48:47  david__schmidt
+#     Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
+#     with what was really the latest development (the v_3_0_branch branch)
+#
+#     Revision 1.5.2.1  2002/10/17 17:04:22  hal9
+#     Add from main trunk. Will be needed for make install.
+#
+#     Revision 1.5  2002/10/17 17:01:29  hal9
+#     Set paths to match the defaults for a root install. Force remove PIDFILE on
+#     stop.
+#
+#     Revision 1.4  2002/09/11 01:15:02  hal9
+#     Fix typo in variable. Now tested on Solaris and Linux, with defaults.
+#
+#     Revision 1.3  2002/09/11 01:09:14  hal9
+#     Better handling of pidfile, and process owner.
+#
+#     Revision 1.2  2002/09/08 20:27:58  hal9
+#     -Rewrote script config section.
+#     -Added comments to script.
+#     -Tried to add logic to use a --user privoxy, if available.
+#     -Minor script changes due to 'echo -n' does not work on a true
+#      /bin/sh system.
+#
+#     Revision 1.1  2002/09/06 00:20:26  hal9
+#     Creating a generic init script, meant to be used on platforms where don't have
+#     a custom init script.
+#
+#     Revision 1.0  2002/09/05 17:14:32  hal9
+#
+#######################################################################
+
+# Is this needed by Solaris?
+#ident  "@(#)privoxy  1.0     02/09/05"
+
+# NOTE: This script may require editing to ensure proper location of 
+# config file, and the privoxy executable. Care should be taken to ensure 
+# logfile is writable by $P_USER (logfile is defined in config), and that 
+# there is suitable write access for $P_PIDFILE.
+
+PATH=/opt/csw/bin:/opt/csw/sbin:/usr/sbin:/usr/xpg4/bin:/usr/bin:/sbin:/bin
+P_NAME=Privoxy
+# Path to executable.
+P_DAEMON=privoxy
+# Full path to location of Privoxy config file. 
+P_CONF_FILE=/opt/csw/etc/privoxy/config
+# Full path to PID file location. Location must be writable by 
+# whoever runs this script and by Privoxy itself.
+P_PIDFILE=/var/opt/csw/privoxy/privoxy.pid
+# If uncommented, this script will try to run as USER=privoxy, which
+# may require special handling of config, *.action, trust, logfile, 
+# jarfile, and pidfile.
+P_USER=privoxy
+
+# If a privoxy user is specified, lets try that. /bin/sh does not seem to 
+# know about $UID.
+if [ 0 = `id -u` ]; then
+  if [ -n "$P_USER" ]; then
+    id $P_USER 2>/dev/null >/dev/null
+    if [ $? -eq 0 ]; then
+      P_USER_SETTINGS="--user $P_USER"
+    else
+      echo "User $P_USER doesn't exist, exiting."
+      exit 1
+    fi 
+  else
+    # The user has sufficient rights, but $P_USER isn't set
+    echo "Running Privoxy as root is not recommended!" 
+    P_USER_SETTINGS=""
+  fi
+else
+  # The user has insufficient rights to run Privoxy as $P_USER
+  # and may not be able to write or delete the PID file.
+  echo "You aren't root, expect trouble!"
+  P_USER_SETTINGS=""
+fi
+
+if [ ! -f $P_CONF_FILE ]; then
+  echo "Can't find $P_CONF_FILE, exiting."
+  exit 1
+fi
+
+case "$1" in
+ 
+ start)
+     if [ -f $P_PIDFILE ]; then
+       if kill -0 `cat $P_PIDFILE`; then
+         echo "Error: $P_NAME is already running, exiting."
+         exit 1
+       else
+         rm -f $P_PIDFILE
+       fi
+     fi
+
+	$P_DAEMON --pidfile $P_PIDFILE $P_USER_SETTINGS $P_CONF_FILE 2>/dev/null
+     
+     if [ $? -eq 0 ]; then
+       echo "Starting $P_NAME, OK." 
+     else
+       echo "Starting $P_NAME, Failed."
+       rm -f $P_PIDFILE
+     fi
+     ;;
+ 
+ restart)
+     $0 stop
+     $0 start
+     ;;
+ 
+ stop)
+     test ! -f $P_PIDFILE && echo "No $P_PIDFILE file found, exiting." && exit 1
+     kill `cat $P_PIDFILE` && rm -f $P_PIDFILE && \
+     echo "Stopping $P_NAME, OK." || echo "Stopping $P_NAME, failed."
+     ;;
+ 
+ *)
+     echo "Usage: $0 {start|stop|restart}"
+     exit 1
+     ;;
+
+esac
+
+exit 0


Property changes on: csw/mgar/pkg/privoxy/trunk/files/cswprivoxy
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/privoxy/trunk/files/cswusergroup
===================================================================
--- csw/mgar/pkg/privoxy/trunk/files/cswusergroup	                        (rev 0)
+++ csw/mgar/pkg/privoxy/trunk/files/cswusergroup	2009-03-30 14:41:31 UTC (rev 4078)
@@ -0,0 +1 @@
+privoxy:privoxy:privoxy daemon:/:/bin/false


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list