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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/tinyproxy
28 TITLE
:=Tinyproxy is a lightweight HTTP and HTTPS proxy.
29 URL
:=http
://tinyproxy.sourceforge.net
/
32 define Package
/tinyproxy
/conffiles
33 /etc
/tinyproxy
/tinyproxy.conf
36 define Build
/Configure
37 $(call Build
/Configure
/Default
,\
39 --enable-transparent-proxy \
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
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 $(CP
) .
/files
/tinyproxy.init
$(1)/etc
/init.d
/tinyproxy
60 $(eval
$(call BuildPackage
,tinyproxy
))