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 include $(INCLUDE_DIR
)/package.mk
21 define Package
/tinyproxy
24 TITLE
:=Tinyproxy is a lightweight HTTP and HTTPS proxy.
25 URL
:=http
://tinyproxy.sourceforge.net
/
28 define Package
/tinyproxy
/conffiles
29 /etc
/tinyproxy
/tinyproxy.conf
32 define Build
/Configure
33 $(call Build
/Configure
/Default
,\
35 --enable-transparent-proxy \
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
56 $(eval
$(call BuildPackage
,tinyproxy
))