2ba7ddc30af351167f5ece7f035673ba686fff5f
[openwrt/svn-archive/archive.git] / net / tinyproxy / Makefile
1 #
2 # Copyright (C) 2006-2009 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.6.5
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.6/
16 PKG_MD5SUM:=2b2862ba33d2939e4572688d442ba415
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-proxy \
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
39 all install
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))