Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/source/o/obfsproxy
  13. PKG_MD5SUM:=f596aeeda7bf03cdf0e78e68e6e7ac9f
  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. $(call include_mk, 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://www.torproject.org/projects/obfsproxy.html.en
  24. DEPENDS:=+python-light +python-crypto +python-pyptlib +python-setuptools +python-yaml +twisted
  25. endef
  26. define Package/obfsproxy/description
  27. obfsproxy is a tool that attempts to circumvent censorship, by
  28. transforming the Tor traffic between the client and the bridge. This
  29. way, censors, who usually monitor traffic between the client and the
  30. bridge, will see innocent-looking transformed traffic instead of the
  31. actual Tor traffic.
  32. endef
  33. define Package/obfsproxy/conffiles
  34. /etc/config/obfsproxy
  35. endef
  36. define Build/Compile
  37. $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
  38. endef
  39. define PyPackage/obfsproxy/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/obfsproxy $(1)/usr/bin/
  42. $(INSTALL_DIR) $(1)/etc/config
  43. $(INSTALL_CONF) ./files/obfsproxy.conf $(1)/etc/config/obfsproxy
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) ./files/obfsproxy.init $(1)/etc/init.d/obfsproxy
  46. endef
  47. $(eval $(call PyPackage,obfsproxy))
  48. $(eval $(call BuildPackage,obfsproxy))