From 2ebeff03702220601ba7d6afd5d324fec5249c59 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 29 Nov 2006 13:29:23 +0000 Subject: [PATCH 1/1] Add default configuration file, init script, libpthread dependency (#1001) SVN-Revision: 5677 --- net/privoxy/Makefile | 7 +++++-- net/privoxy/files/privoxy.config | 22 ++++++++++++++++++++++ net/privoxy/files/privoxy.init | 11 +++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 net/privoxy/files/privoxy.config create mode 100644 net/privoxy/files/privoxy.init diff --git a/net/privoxy/Makefile b/net/privoxy/Makefile index b4340b5b5d..659ae9ec70 100644 --- a/net/privoxy/Makefile +++ b/net/privoxy/Makefile @@ -25,7 +25,7 @@ include $(INCLUDE_DIR)/package.mk define Package/privoxy SECTION:=net CATEGORY:=Network - DEPENDS:=+libpcre + DEPENDS:=+libpcre +libpthread TITLE:=web proxy with advanced filtering capabilities DESCRIPTION:=Privoxy is a web proxy with advanced filtering capabilities for\\\ protecting privacy, modifying web page content, managing cookies,\\\ @@ -76,8 +76,11 @@ define Build/Compile endef define Package/privoxy/install - $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/privoxy + $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/privoxy $(1)/etc/init.d $(CP) $(PKG_INSTALL_DIR)/usr/sbin/privoxy $(1)/usr/sbin/ + $(CP) ./files/$(PKG_NAME).config $(1)/etc/privoxy/config + $(CP) $(PKG_BUILD_DIR)/default.filter $(1)/etc/privoxy/ + $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME) endef $(eval $(call BuildPackage,privoxy)) diff --git a/net/privoxy/files/privoxy.config b/net/privoxy/files/privoxy.config new file mode 100644 index 0000000000..9c0be4bff2 --- /dev/null +++ b/net/privoxy/files/privoxy.config @@ -0,0 +1,22 @@ +confdir /etc/privoxy/ +logdir /var/log/ +actionsfile standard # Internal purpose, recommended +actionsfile default # Main actions file +actionsfile user # User customizations +filterfile default.filter +logfile logfile +jarfile jarfile +trust-info-url http://www.example.com/why_we_block.html +trust-info-url http://www.example.com/what_we_allow.html +#admin-address privoxy-admin@example.com +#proxy-info-url http://www.example.com/proxy-service.html +debug 1 # show each GET/POST/CONNECT request +debug 4096 # Startup banner and warnings +debug 8192 # Errors - *we highly recommended enabling this* +listen-address 127.0.0.1:8118 +toggle 1 +enable-remote-toggle 1 +enable-edit-actions 1 +permit-access 192.168.1.0/24 +buffer-limit 4096 +#hide-console diff --git a/net/privoxy/files/privoxy.init b/net/privoxy/files/privoxy.init new file mode 100644 index 0000000000..7c9e018bee --- /dev/null +++ b/net/privoxy/files/privoxy.init @@ -0,0 +1,11 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org +conf=/etc/privoxy/config + +start() { + /usr/sbin/privoxy $conf +} + +stop() { + killall privoxy +} -- 2.30.2