Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / net / obfsproxy / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=obfsproxy
11 PKG_VERSION:=0.2.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/o/obfsproxy
16 PKG_HASH:=1e26c2faef1cfcf856ddf60e9647058a7c78fb0d47f05b58a0f847ed7cc41a66
17
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
21
22 include $(INCLUDE_DIR)/package.mk
23 $(call include_mk, python-package.mk)
24
25 define Package/obfsproxy
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=A pluggable transport proxy written in Python
29 URL:=https://www.torproject.org/projects/obfsproxy.html.en
30 DEPENDS:=+python-light +python-crypto +python-pyptlib +python-setuptools +python-yaml +twisted
31 endef
32
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
41 define Package/obfsproxy/conffiles
42 /etc/config/obfsproxy
43 endef
44
45 define Build/Compile
46 $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
47 endef
48
49 define PyPackage/obfsproxy/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/obfsproxy $(1)/usr/bin/
52 $(INSTALL_DIR) $(1)/etc/config
53 $(INSTALL_CONF) ./files/obfsproxy.conf $(1)/etc/config/obfsproxy
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/obfsproxy.init $(1)/etc/init.d/obfsproxy
56 endef
57
58 $(eval $(call PyPackage,obfsproxy))
59 $(eval $(call BuildPackage,obfsproxy))