3773cea77028266fc9b2fdf8d0a54a802e0b5a21
[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.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/tinyproxy
17 PKG_MD5SUM:=bd14d029b12621bcfd7ee71b2f4893da
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/tinyproxy/tinyproxy.conf
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/tinyproxy
51 $(CP) $(PKG_INSTALL_DIR)/etc/tinyproxy/tinyproxy.conf $(1)/etc/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))