[packages] tinyproxy: update to v1.8.0 (#6563)
[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 include $(INCLUDE_DIR)/package.mk
19
20 define Package/tinyproxy
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=Proxy Servers
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 CONFIGURE_ARGS+= \
33 --enable-filter \
34 --enable-transparent \
35 --enable-regexcheck=no \
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/tinyproxy/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(1)/usr/sbin/
46 $(INSTALL_DIR) $(1)/usr/share/tinyproxy
47 $(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy/*.html $(1)/usr/share/tinyproxy/
48 $(INSTALL_DIR) $(1)/etc/config
49 $(INSTALL_CONF) ./files/tinyproxy.config $(1)/etc/config/tinyproxy
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_BIN) ./files/tinyproxy.init $(1)/etc/init.d/tinyproxy
52 endef
53
54 $(eval $(call BuildPackage,tinyproxy))