You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=obfsproxy
  9. PKG_VERSION:=0.2.13
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/o/obfsproxy
  13. PKG_HASH:=1e26c2faef1cfcf856ddf60e9647058a7c78fb0d47f05b58a0f847ed7cc41a66
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../lang/python/python-package.mk
  19. define Package/obfsproxy
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=A pluggable transport proxy written in Python
  23. URL:=https://gitweb.torproject.org/pluggable-transports/obfsproxy.git/
  24. DEPENDS:= \
  25. +python-light \
  26. +python-crypto \
  27. +python-pyptlib \
  28. +python-setuptools \
  29. +python-twisted \
  30. +python-yaml
  31. VARIANT:=python
  32. endef
  33. define Package/obfsproxy/description
  34. obfsproxy is a tool that attempts to circumvent censorship, by
  35. transforming the Tor traffic between the client and the bridge. This
  36. way, censors, who usually monitor traffic between the client and the
  37. bridge, will see innocent-looking transformed traffic instead of the
  38. actual Tor traffic.
  39. endef
  40. define Package/obfsproxy/conffiles
  41. /etc/config/obfsproxy
  42. endef
  43. define PyPackage/obfsproxy/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/obfsproxy $(1)/usr/bin/
  46. $(INSTALL_DIR) $(1)/etc/config
  47. $(INSTALL_CONF) ./files/obfsproxy.conf $(1)/etc/config/obfsproxy
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/obfsproxy.init $(1)/etc/init.d/obfsproxy
  50. endef
  51. $(eval $(call PyPackage,obfsproxy))
  52. $(eval $(call BuildPackage,obfsproxy))
  53. $(eval $(call BuildPackage,obfsproxy-src))