[net] Web Servers/Proxies: Moved privoxy to new Web Servers/Proxies submenu.
[openwrt/svn-archive/archive.git] / net / privoxy / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=privoxy
11 PKG_VERSION:=3.0.16
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
15 PKG_SOURCE_URL:=@SF/ijbswa
16 PKG_MD5SUM:=64d3ffcdf8307e04a375773bb4eb255e
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/privoxy
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Web Servers/Proxies
26 DEPENDS:=+libpcre +libpthread
27 TITLE:=web proxy with advanced filtering capabilities
28 URL:=http://www.privoxy.org/
29 endef
30
31 define Package/privoxy/description
32 Privoxy is a web proxy with advanced filtering capabilities for
33 protecting privacy, modifying web page content, managing cookies,
34 controlling access, and removing ads, banners, pop-ups and other
35 obnoxious Internet junk. Privoxy has a very flexible configuration
36 and can be customized to suit individual needs and tastes. Privoxy
37 has application for both stand-alone systems and multi-user networks.
38 endef
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
42 autoheader && autoconf \
43 );
44 $(call Build/Configure/Default, \
45 --sysconfdir=/etc/privoxy \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 SPECIAL_CFLAGS="-pthread $(TARGET_LDFLAGS)"
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 install
55 endef
56
57 define Package/privoxy/conffiles
58 /etc/privoxy/config
59 endef
60
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
69 endef
70
71 $(eval $(call BuildPackage,privoxy))