2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
18 PKG_LICENSE
:=BSD-3-Clause
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
22 include $(INCLUDE_DIR
)/package.mk
23 $(call include_mk
, python-package.mk
)
25 define Package
/obfsproxy
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
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
41 define Package
/obfsproxy
/conffiles
46 $(call Build
/Compile
/PyMod
,,install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)")
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
58 $(eval
$(call PyPackage
,obfsproxy
))
59 $(eval
$(call BuildPackage
,obfsproxy
))