2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/tinyproxy
17 PKG_MD5SUM
:=bd14d029b12621bcfd7ee71b2f4893da
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/tinyproxy
27 TITLE
:=Tinyproxy is a lightweight HTTP and HTTPS proxy.
28 URL
:=http
://tinyproxy.sourceforge.net
/
31 define Package
/tinyproxy
/conffiles
32 /etc
/tinyproxy
/tinyproxy.conf
35 define Build
/Configure
36 $(call Build
/Configure
/Default
,\
38 --enable-transparent-proxy \
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Package
/tinyproxy
/install
49 $(INSTALL_DIR
) $(1)/usr
/sbin
50 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tinyproxy
$(1)/usr
/sbin
/
51 $(INSTALL_DIR
) $(1)/usr
/share
/tinyproxy
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/tinyproxy
/*.html
$(1)/usr
/share
/tinyproxy
/
53 $(INSTALL_DIR
) $(1)/etc
/tinyproxy
54 $(CP
) $(PKG_INSTALL_DIR
)/etc
/tinyproxy
/tinyproxy.conf
$(1)/etc
/tinyproxy
/
55 $(INSTALL_DIR
) $(1)/etc
/init.d
56 $(INSTALL_BIN
) .
/files
/tinyproxy.init
$(1)/etc
/init.d
/tinyproxy
59 $(eval
$(call BuildPackage
,tinyproxy
))