Add default configuration file, init script, libpthread dependency (#1001)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5677 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d9c1ab9269
commit
c332b906b1
@ -25,7 +25,7 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/privoxy
|
define Package/privoxy
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+libpcre
|
DEPENDS:=+libpcre +libpthread
|
||||||
TITLE:=web proxy with advanced filtering capabilities
|
TITLE:=web proxy with advanced filtering capabilities
|
||||||
DESCRIPTION:=Privoxy is a web proxy with advanced filtering capabilities for\\\
|
DESCRIPTION:=Privoxy is a web proxy with advanced filtering capabilities for\\\
|
||||||
protecting privacy, modifying web page content, managing cookies,\\\
|
protecting privacy, modifying web page content, managing cookies,\\\
|
||||||
@ -76,8 +76,11 @@ define Build/Compile
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/privoxy/install
|
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) $(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
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,privoxy))
|
$(eval $(call BuildPackage,privoxy))
|
||||||
|
22
net/privoxy/files/privoxy.config
Normal file
22
net/privoxy/files/privoxy.config
Normal file
@ -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
|
11
net/privoxy/files/privoxy.init
Normal file
11
net/privoxy/files/privoxy.init
Normal file
@ -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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user