nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tinyproxy
11 PKG_VERSION:=1.6.4
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:=3157b9159a8d005f4248cf4d4d6c65e2
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/tinyproxy
21   SECTION:=net
22   CATEGORY:=Network
23   TITLE:=Tinyproxy is a lightweight HTTP and HTTPS proxy.
24   URL:=http://tinyproxy.sourceforge.net/
25 endef
26
27 define Package/tinyproxy/conffiles
28 /etc/config/tinyproxy
29 endef
30
31 define Build/Configure
32         $(call Build/Configure/Default,\
33                 --enable-filter \
34                 --enable-transparent-proxy \
35         )
36 endef
37
38 define Build/Compile
39         $(MAKE) -C $(PKG_BUILD_DIR) \
40                 DESTDIR="$(PKG_INSTALL_DIR)" \
41                 all install
42 endef
43
44 define Package/tinyproxy/install
45         $(INSTALL_DIR) $(1)/usr/sbin
46         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(1)/usr/sbin/
47         $(INSTALL_DIR) $(1)/usr/share/tinyproxy
48         $(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy/*.html $(1)/usr/share/tinyproxy/
49         $(INSTALL_DIR) $(1)/etc/config
50         $(CP) ./files/tinyproxy.config $(1)/etc/config/tinyproxy
51         $(INSTALL_DIR) $(1)/etc/init.d
52         $(INSTALL_BIN) ./files/tinyproxy.init $(1)/etc/init.d/tinyproxy
53 endef
54
55 $(eval $(call BuildPackage,tinyproxy))