[Lunar-commits] <moonbase> privoxy: use Lunar initscript
Paul Bredbury
brebs at lunar-linux.org
Wed Jan 12 13:05:26 CET 2011
commit 156d83ef4088b9b9cf272542a7d21934681c521f
Author: Paul Bredbury <brebs at lunar-linux.org>
Date: Wed Jan 12 19:05:26 2011 +0700
privoxy: use Lunar initscript
---
net/privoxy/BUILD | 7 +++++--
net/privoxy/init.d/privoxy | 16 ++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/net/privoxy/BUILD b/net/privoxy/BUILD
index bbca5f5..d557ea2 100644
--- a/net/privoxy/BUILD
+++ b/net/privoxy/BUILD
@@ -1,12 +1,15 @@
(
-#The two autotools jokers NEED to be run first. Closes BR278.
+ # Use Lunar's initscript instead
+ sedit "s:\[ -w \$(DESTDIR)/etc/init\.d \]:\[ 0 = 1 \]:1" GNUmakefile.in &&
+
+ # The two autotools jokers NEED to be run first. Closes BR278.
autoheader &&
autoconf &&
add_priv_user privoxy:privoxy &&
- OPTS="--with-user=privoxy --with-group=privoxy --sysconfdir=/etc/privoxy "$OPTS
+ OPTS+=" --with-user=privoxy --with-group=privoxy --sysconfdir=/etc/privoxy" &&
default_build
diff --git a/net/privoxy/init.d/privoxy b/net/privoxy/init.d/privoxy
new file mode 100644
index 0000000..daf581c
--- /dev/null
+++ b/net/privoxy/init.d/privoxy
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# privoxy Privoxy Proxy Server
+#
+# chkconfig: 2345 91 09
+#
+# description: Web proxy with advanced filtering capabilities \
+# such as filtering web page content, managing \
+# cookies and removing ads
+#
+# processname: privoxy
+# config: /etc/privoxy/config
+
+ARGS="--pidfile /var/run/privoxy.pid --user privoxy /etc/privoxy/config"
+
+. /lib/lsb/init-functions
More information about the Lunar-commits
mailing list