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