[packages] coova-chilli: update to 1.2.2 (#6721)
[openwrt/svn-archive/archive.git] / net / tinyproxy / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=tinyproxy
11 PKG_VERSION:=1.8.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.banu.com/pub/tinyproxy/1.8/
16 PKG_MD5SUM:=09843d47828261394d0a30af0b058997
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/tinyproxy
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Proxy Servers
26 TITLE:=Tinyproxy is a lightweight HTTP and HTTPS proxy.
27 URL:=http://tinyproxy.sourceforge.net/
28 endef
29
30 define Package/tinyproxy/conffiles
31 /etc/config/tinyproxy
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --enable-filter \
37 --enable-transparent \
38 --enable-regexcheck=no \
39 )
40 endef
41
42 define Package/tinyproxy/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/usr/share/tinyproxy
46 $(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy/*.html $(1)/usr/share/tinyproxy/
47 $(INSTALL_DIR) $(1)/etc/config
48 $(INSTALL_CONF) ./files/tinyproxy.config $(1)/etc/config/tinyproxy
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/tinyproxy.init $(1)/etc/init.d/tinyproxy
51 endef
52
53 $(eval $(call BuildPackage,tinyproxy))