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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-stable-src.
tar.gz
16 PKG_SOURCE_URL
:=@SF
/ijbswa
17 PKG_MD5SUM
:=c3b34c620e1174f0c0b91aa2a04ceae4
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
28 DEPENDS
:=+libpcre
+libpthread
29 TITLE
:=web proxy with advanced filtering capabilities
30 URL
:=http
://www.privoxy.org
/
33 define Package
/privoxy
/description
34 Privoxy is a web proxy with advanced filtering capabilities for
35 protecting privacy
, modifying web page content
, managing cookies
,
36 controlling access
, and removing ads
, banners
, pop-ups and other
37 obnoxious Internet junk. Privoxy has a very flexible configuration
38 and can be customized to suit individual needs and tastes. Privoxy
39 has application for both stand-alone systems and multi-user networks.
42 define Build
/Configure
43 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
44 autoheader
&& autoconf \
46 $(call Build
/Configure
/Default
, \
47 --sysconfdir
=/etc
/privoxy \
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 SPECIAL_CFLAGS
="-pthread -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 define Package
/privoxy
/conffiles
62 /etc
/privoxy
/user.action
65 define Package
/privoxy
/install
66 $(INSTALL_DIR
) $(1)/usr
/sbin
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/privoxy
$(1)/usr
/sbin
/
68 $(INSTALL_DIR
) $(1)/etc
/privoxy
69 $(CP
) $(PKG_INSTALL_DIR
)/etc
/privoxy
/* $(1)/etc
/privoxy
/
70 $(INSTALL_CONF
) .
/files
/privoxy.config
$(1)/etc
/privoxy
/config
71 $(INSTALL_DIR
) $(1)/etc
/init.d
72 $(INSTALL_BIN
) .
/files
/privoxy.init
$(1)/etc
/init.d
/privoxy
75 $(eval
$(call BuildPackage
,privoxy
))