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