2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 PKG_MD5SUM:=b0710be8af09409bfb03f52523a17010
16 PKG_SOURCE_URL:=@SF/ijbswa
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/privoxy
29 TITLE:=web proxy with advanced filtering capabilities
30 DESCRIPTION:=Privoxy is a web proxy with advanced filtering capabilities for\\\
31 protecting privacy, modifying web page content, managing cookies,\\\
32 controlling access, and removing ads, banners, pop-ups and other\\\
33 obnoxious Internet junk. Privoxy has a very flexible configuration\\\
34 and can be customized to suit individual needs and tastes. Privoxy\\\
35 has application for both stand-alone systems and multi-user networks.\\\
36 URL:=http://www.privoxy.org/
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
41 autoheader && autoconf && \
42 $(TARGET_CONFIGURE_OPTS) \
43 CFLAGS="$(strip $(TARGET_CFLAGS))" \
44 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
45 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
47 --target=$(GNU_TARGET_NAME) \
48 --host=$(GNU_TARGET_NAME) \
49 --build=$(GNU_HOST_NAME) \
55 --datadir=/usr/share \
56 --includedir=/usr/include \
57 --infodir=/usr/share/info \
59 --libexecdir=/usr/lib \
60 --localstatedir=/var \
61 --mandir=/usr/share/man \
70 $(MAKE) -C $(PKG_BUILD_DIR) \
71 SPECIAL_CFLAGS="-pthread -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
72 mkdir -p $(PKG_INSTALL_DIR)
73 $(MAKE) -C $(PKG_BUILD_DIR) \
74 DESTDIR="$(PKG_INSTALL_DIR)" \
78 define Package/privoxy/install
79 install -d -m0755 $(1)/usr/sbin $(1)/etc/privoxy
80 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/privoxy $(1)/usr/sbin/
83 $(eval $(call BuildPackage,privoxy))