packages/privoxy: use new service functions
[packages.git] / net / privoxy / Makefile
1 #
2 # Copyright (C) 2006-2011 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.17
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
15 PKG_SOURCE_URL:=@SF/ijbswa
16 PKG_MD5SUM:=9d363d738a3f3d73e774d6dfeafdb15f
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
19 PKG_FIXUP:=autoreconf
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/privoxy
25   SECTION:=net
26   CATEGORY:=Network
27   SUBMENU:=Web Servers/Proxies
28   DEPENDS:=+libpcre +libpthread +zlib
29   TITLE:=web proxy with advanced filtering capabilities
30   URL:=http://www.privoxy.org/
31 endef
32
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.
40 endef
41
42 CONFIGURE_ARGS += \
43         --sysconfdir=/etc/privoxy \
44
45 MAKE_FLAGS :=
46
47 define Package/privoxy/conffiles
48 /etc/privoxy/config
49 endef
50
51 define Package/privoxy/install
52         $(INSTALL_DIR) $(1)/usr/sbin
53         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/privoxy $(1)/usr/sbin/
54         $(INSTALL_DIR) $(1)/etc/privoxy
55         $(CP) $(PKG_INSTALL_DIR)/etc/privoxy/* $(1)/etc/privoxy/
56         $(INSTALL_CONF) ./files/privoxy.config $(1)/etc/privoxy/config
57         $(INSTALL_DIR) $(1)/etc/init.d
58         $(INSTALL_BIN) ./files/privoxy.init $(1)/etc/init.d/privoxy
59 endef
60
61 $(eval $(call BuildPackage,privoxy))