remove PKG_CAT from packages
[packages.git] / net / tinyproxy / 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:=tinyproxy
12 PKG_VERSION:=1.6.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/tinyproxy
17 PKG_MD5SUM:=bd14d029b12621bcfd7ee71b2f4893da
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/tinyproxy
25   SECTION:=net
26   CATEGORY:=Network
27   TITLE:=Tinyproxy is a lightweight HTTP and HTTPS proxy.
28   URL:=http://tinyproxy.sourceforge.net/
29 endef
30
31 define Package/tinyproxy/conffiles
32 /etc/tinyproxy/tinyproxy.conf
33 endef
34
35 define Build/Configure
36         $(call Build/Configure/Default,\
37                 --enable-filter \
38                 --enable-transparent-proxy \
39         )
40 endef
41
42 define Build/Compile
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 DESTDIR="$(PKG_INSTALL_DIR)" \
45                 all install
46 endef
47
48 define Package/tinyproxy/install
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(1)/usr/sbin/
51         $(INSTALL_DIR) $(1)/usr/share/tinyproxy
52         $(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy/*.html $(1)/usr/share/tinyproxy/
53         $(INSTALL_DIR) $(1)/etc/tinyproxy
54         $(CP) $(PKG_INSTALL_DIR)/etc/tinyproxy/tinyproxy.conf $(1)/etc/tinyproxy/
55         $(INSTALL_DIR) $(1)/etc/init.d
56         $(INSTALL_BIN) ./files/tinyproxy.init $(1)/etc/init.d/tinyproxy
57 endef
58
59 $(eval $(call BuildPackage,tinyproxy))