summaryrefslogtreecommitdiff
path: root/net-proxy/privoxy/files
diff options
context:
space:
mode:
authorsss <sss@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-25 21:57:30 +0000
committersss <sss@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-25 21:57:30 +0000
commite406e6bc0cfb611f72d3b0e2cc6e2b7ff1b9c8b9 (patch)
tree3954de68703f436a4ec5883a95954d72f2e0059f /net-proxy/privoxy/files
parent32163112b9374d79de9eaff2992d088e5aa4d371 (diff)
git-svn-id: http://172.18.13.13/svn/sss_overlay@5 4d9a9b59-111c-4e0b-8f7a-7640551abb98
Diffstat (limited to 'net-proxy/privoxy/files')
-rw-r--r--net-proxy/privoxy/files/privoxy-9999-gentoo.patch86
-rw-r--r--net-proxy/privoxy/files/privoxy.initd29
-rw-r--r--net-proxy/privoxy/files/privoxy.logrotate9
3 files changed, 124 insertions, 0 deletions
diff --git a/net-proxy/privoxy/files/privoxy-9999-gentoo.patch b/net-proxy/privoxy/files/privoxy-9999-gentoo.patch
new file mode 100644
index 0000000..0e48571
--- /dev/null
+++ b/net-proxy/privoxy/files/privoxy-9999-gentoo.patch
@@ -0,0 +1,86 @@
+diff -Nru privoxy-9999-stable.orig/GNUmakefile.in current/GNUmakefile.in
+--- privoxy-9999-stable.orig/GNUmakefile.in 2009-02-08 18:35:48.000000000 +0000
++++ privoxy-9999-stable/GNUmakefile.in 2009-03-13 19:56:45.000000000 +0000
+@@ -1140,22 +1140,8 @@
+ fi ;\
+ $(ECHO) Installing configuration files to $(DESTDIR)$(CONF_DEST);\
+ for i in $(CONFIGS); do \
+- if [ "$$i" = "default.action" ] || [ "$$i" = "default.filter" ] ; then \
+- $(RM) $(DESTDIR)$(CONF_DEST)/$$i ;\
+- $(ECHO) Installing fresh $$i;\
+ $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\
+- elif [ -s "$(CONF_DEST)/$$i" ]; then \
+- $(ECHO) Installing $$i as $$i.new ;\
+- $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST)/$$i.new || exit 1;\
+- NEW=1;\
+- else \
+- $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\
+- fi ;\
+ done ;\
+- if [ -n "$$NEW" ]; then \
+- $(CHMOD) $(RWD_MODE) $(DESTDIR)$(CONF_DEST)/*.new || exit 1 ;\
+- $(ECHO) "Warning: Older config files are preserved. Check new versions for changes!" ;\
+- fi ;\
+ [ ! -f $(DESTDIR)$(LOG_DEST)/logfile ] && $(ECHO) Creating logfiles in $(DESTDIR)$(LOG_DEST) || \
+ $(ECHO) Checking logfiles in $(DESTDIR)$(LOG_DEST) ;\
+ $(TOUCH) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\
+diff -Nru privoxy-9999-stable.orig/config current/config
+--- privoxy-9999-stable.orig/config 2009-02-19 17:26:26.000000000 +0000
++++ current/config 2009-03-13 19:21:49.000000000 +0000
+@@ -267,7 +267,7 @@
+ #
+ # No trailing "/", please.
+ #
+-confdir .
++confdir /etc/privoxy
+ #
+ #
+ # 2.2. templdir
+@@ -324,7 +324,7 @@
+ #
+ # No trailing "/", please.
+ #
+-logdir .
++logdir /var/log/privoxy
+ #
+ #
+ # 2.4. actionsfile
+@@ -464,7 +464,7 @@
+ # Any log files must be writable by whatever user Privoxy is
+ # being run as (on Unix, default user id is "privoxy").
+ #
+-logfile logfile
++logfile privoxy.log
+ #
+ #
+ # 2.7. trustfile
+diff -Nru privoxy-9999-stable.orig/default.action.master current/default.action.master
+--- privoxy-9999-stable.orig/default.action.master 2009-02-12 19:08:32.000000000 +0000
++++ current/default.action.master 2009-03-13 19:22:01.000000000 +0000
+@@ -564,7 +564,7 @@
+ { \
+ +change-x-forwarded-for{block} \
+ +hide-from-header{block} \
+-+set-image-blocker{pattern} \
+++set-image-blocker{blank} \
+ }
+ standard.Cautious
+
+@@ -584,7 +584,7 @@
+ +hide-from-header{block} \
+ +hide-referrer{conditional-block} \
+ +session-cookies-only \
+-+set-image-blocker{pattern} \
+++set-image-blocker{blank} \
+ }
+ standard.Medium
+
+@@ -623,7 +623,7 @@
+ +hide-referrer{conditional-block} \
+ +limit-connect{,} \
+ +overwrite-last-modified{randomize} \
+-+set-image-blocker{pattern} \
+++set-image-blocker{blank} \
+ }
+ standard.Advanced
+
diff --git a/net-proxy/privoxy/files/privoxy.initd b/net-proxy/privoxy/files/privoxy.initd
new file mode 100644
index 0000000..84d6186
--- /dev/null
+++ b/net-proxy/privoxy/files/privoxy.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/files/privoxy.initd,v 1.2 2007/11/14 05:14:56 mrness Exp $
+
+CONFFILE=/etc/${SVCNAME}/config
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ need net
+}
+
+start() {
+ if [ ! -f "${CONFFILE}" ]; then
+ eerror "Configuration file ${CONFFILE} not found!"
+ return 1
+ fi
+
+ ebegin "Starting privoxy"
+ start-stop-daemon --start --quiet --exec /usr/sbin/privoxy --pidfile "${PIDFILE}" \
+ -- --pidfile "${PIDFILE}" --user privoxy.privoxy "${CONFFILE}" #2>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping privoxy"
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/net-proxy/privoxy/files/privoxy.logrotate b/net-proxy/privoxy/files/privoxy.logrotate
new file mode 100644
index 0000000..aa7463b
--- /dev/null
+++ b/net-proxy/privoxy/files/privoxy.logrotate
@@ -0,0 +1,9 @@
+/var/log/privoxy/privoxy.log /var/log/privoxy/jarfile {
+ missingok
+ notifempty
+ create 0640 privoxy privoxy
+ sharedscripts
+ postrotate
+ killall -HUP privoxy 2>/dev/null || true
+ endscript
+}