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
28 TITLE
:=web proxy with advanced filtering capabilities
29 DESCRIPTION
:=Privoxy is a web proxy with advanced filtering capabilities for
\\\
30 protecting privacy
, modifying web page content
, managing cookies
,\\\
31 controlling access
, and removing ads
, banners
, pop-ups and other
\\\
32 obnoxious Internet junk. Privoxy has a very flexible configuration
\\\
33 and can be customized to suit individual needs and tastes. Privoxy
\\\
34 has application for both stand-alone systems and multi-user networks.
\\\
35 URL
:=http
://www.privoxy.org
/
38 define Build
/Configure
39 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
40 autoheader
&& autoconf
&& \
41 $(TARGET_CONFIGURE_OPTS
) \
42 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
43 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
44 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
46 --target
=$(GNU_TARGET_NAME
) \
47 --host
=$(GNU_TARGET_NAME
) \
48 --build
=$(GNU_HOST_NAME
) \
54 --datadir=/usr
/share \
55 --includedir=/usr
/include \
56 --infodir=/usr
/share
/info \
58 --libexecdir
=/usr
/lib \
59 --localstatedir
=/var \
60 --mandir=/usr
/share
/man \
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
70 SPECIAL_CFLAGS
="-pthread -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
71 mkdir
-p
$(PKG_INSTALL_DIR
)
72 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
73 DESTDIR
="$(PKG_INSTALL_DIR)" \
77 define Package
/privoxy
/install
78 install -d
-m0755
$(1)/usr
/sbin
$(1)/etc
/privoxy
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/privoxy
$(1)/usr
/sbin
/
82 $(eval
$(call BuildPackage
,privoxy
))