1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=tinyproxy
  9. PKG_VERSION:=1.8.3
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://www.banu.com/pub/tinyproxy/1.8/
  13. PKG_MD5SUM:=292ac51da8ad6ae883d4ebf56908400d
  14. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/tinyproxy
  18. SUBMENU:=Web Servers/Proxies
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=Tinyproxy is a lightweight HTTP and HTTPS proxy
  22. URL:=http://tinyproxy.sourceforge.net/
  23. endef
  24. define Package/tinyproxy/conffiles
  25. /etc/config/tinyproxy
  26. endef
  27. CONFIGURE_ARGS+= \
  28. --enable-filter \
  29. --enable-transparent \
  30. --disable-regexcheck \
  31. define Package/tinyproxy/install
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(1)/usr/sbin/
  34. $(INSTALL_DIR) $(1)/usr/share/tinyproxy
  35. $(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy/*.html $(1)/usr/share/tinyproxy/
  36. $(INSTALL_DIR) $(1)/etc/config
  37. $(INSTALL_CONF) ./files/tinyproxy.config $(1)/etc/config/tinyproxy
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) ./files/tinyproxy.init $(1)/etc/init.d/tinyproxy
  40. endef
  41. $(eval $(call BuildPackage,tinyproxy))