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
:=b0710be8af09409bfb03f52523a17010
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
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.
37 URL
:=http
://www.privoxy.org
/
40 define Build
/Configure
41 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
42 autoheader
&& autoconf
&& \
43 $(TARGET_CONFIGURE_OPTS
) \
44 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
45 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
46 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
48 --target
=$(GNU_TARGET_NAME
) \
49 --host
=$(GNU_TARGET_NAME
) \
50 --build
=$(GNU_HOST_NAME
) \
56 --datadir=/usr
/share \
57 --includedir=/usr
/include \
58 --infodir=/usr
/share
/info \
60 --libexecdir
=/usr
/lib \
61 --localstatedir
=/var \
62 --mandir=/usr
/share
/man \
71 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
72 SPECIAL_CFLAGS
="-pthread -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
73 mkdir
-p
$(PKG_INSTALL_DIR
)
74 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
75 DESTDIR
="$(PKG_INSTALL_DIR)" \
79 define Package
/privoxy
/install
80 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/privoxy
$(1)/etc
/init.d
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/privoxy
$(1)/usr
/sbin
/
82 $(CP
) .
/files
/$(PKG_NAME
).config
$(1)/etc
/privoxy
/config
83 $(CP
) $(PKG_BUILD_DIR
)/default.
filter $(1)/etc
/privoxy
/
84 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
87 $(eval
$(call BuildPackage
,privoxy
))