init script should be executable by default
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/tinyproxy
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Tinyproxy is a lightweight HTTP and HTTPS proxy.
29 URL:=http://tinyproxy.sourceforge.net/
30 endef
31
32 define Package/tinyproxy/conffiles
33 /etc/tinyproxy/tinyproxy.conf
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,\
38 --enable-filter \
39 --enable-transparent-proxy \
40 )
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/tinyproxy/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(1)/usr/sbin/
52 $(INSTALL_DIR) $(1)/usr/share/tinyproxy
53 $(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy/*.html $(1)/usr/share/tinyproxy/
54 $(INSTALL_DIR) $(1)/etc/tinyproxy
55 $(CP) $(PKG_INSTALL_DIR)/etc/tinyproxy/tinyproxy.conf $(1)/etc/tinyproxy/
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/tinyproxy.init $(1)/etc/init.d/tinyproxy
58 endef
59
60 $(eval $(call BuildPackage,tinyproxy))