2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
15 PKG_SOURCE_URL:=@SF/ijbswa
16 PKG_MD5SUM:=c973e608d27b248ef567b47664308da1
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
20 include $(INCLUDE_DIR)/package.mk
22 define Package/privoxy
25 DEPENDS:=+libpcre +libpthread
26 TITLE:=web proxy with advanced filtering capabilities
27 URL:=http://www.privoxy.org/
30 define Package/privoxy/description
31 Privoxy is a web proxy with advanced filtering capabilities for
32 protecting privacy, modifying web page content, managing cookies,
33 controlling access, and removing ads, banners, pop-ups and other
34 obnoxious Internet junk. Privoxy has a very flexible configuration
35 and can be customized to suit individual needs and tastes. Privoxy
36 has application for both stand-alone systems and multi-user networks.
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
41 autoheader && autoconf \
43 $(call Build/Configure/Default, \
44 --sysconfdir=/etc/privoxy \
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 SPECIAL_CFLAGS="-pthread $(TARGET_LDFLAGS)"
51 mkdir -p $(PKG_INSTALL_DIR)
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
57 define Package/privoxy/conffiles
61 define Package/privoxy/install
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/privoxy $(1)/usr/sbin/
64 $(INSTALL_DIR) $(1)/etc/privoxy
65 $(CP) $(PKG_INSTALL_DIR)/etc/privoxy/* $(1)/etc/privoxy/
66 $(INSTALL_CONF) ./files/privoxy.config $(1)/etc/privoxy/config
67 $(INSTALL_DIR) $(1)/etc/init.d
68 $(INSTALL_BIN) ./files/privoxy.init $(1)/etc/init.d/privoxy
71 $(eval $(call BuildPackage,privoxy))