Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / net / obfs4proxy / Makefile
1 #
2 # Copyright (C) 2018 Jeffery To
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:=obfs4proxy
11 PKG_VERSION:=0.0.9
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=obfs4-$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://gitlab.com/yawning/obfs4/-/archive/$(PKG_NAME)-$(PKG_VERSION)/
16 PKG_HASH:=ab2608014fae15b4e0dad2f8128e81f912ab27277539004b759180c1fb5007dd
17 PKG_BUILD_DIR:=$(BUILD_DIR)/obfs4-$(PKG_NAME)-$(PKG_VERSION)
18
19 PKG_LICENSE:=BSD-2-Clause
20 PKG_LICENSE_FILES:=LICENSE
21 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
22
23 PKG_BUILD_DEPENDS:=golang/host
24 PKG_BUILD_PARALLEL:=1
25 PKG_USE_MIPS16:=0
26
27 GO_PKG:=gitlab.com/yawning/obfs4.git
28
29 include $(INCLUDE_DIR)/package.mk
30 include ../../lang/golang/golang-package.mk
31
32 define Package/obfs4proxy/Default
33 TITLE:=A Tor pluggable transport proxy, implementing obfs4
34 URL:=https://gitlab.com/yawning/obfs4
35 DEPENDS:=$(GO_ARCH_DEPENDS)
36 endef
37
38 define Package/obfs4proxy
39 $(call Package/obfs4proxy/Default)
40 SECTION:=net
41 CATEGORY:=Network
42 endef
43
44 define Package/golang-gitlab-yawning-obfs4-dev
45 $(call Package/obfs4proxy/Default)
46 $(call GoPackage/GoSubMenu)
47 TITLE+= (source files)
48 PKGARCH:=all
49 endef
50
51 define Package/obfs4proxy/Default/description
52 obfs4proxy is a tool that attempts to circumvent censorship by
53 transforming the Tor traffic between the client and the bridge. This way
54 censors, who usually monitor traffic between the client and the bridge,
55 will see innocent-looking transformed traffic instead of the actual Tor
56 traffic.
57
58 obfs4proxy implements the obfsucation protocols obfs2, obfs3, and obfs4.
59
60 It is written in Go and is compliant with the Tor pluggable transports
61 specification, and its modular architecture allows it to support
62 multiple pluggable transports.
63 endef
64
65 define Package/obfs4proxy/description
66 $(call Package/obfs4proxy/Default/description)
67
68 This package contains both the client and the bridge in a single
69 program.
70 endef
71
72 define Package/golang-gitlab-yawning-obfs4-dev/description
73 $(call Package/obfs4proxy/Default/description)
74
75 This package provides the source files for the client/bridge program.
76 endef
77
78 $(eval $(call GoBinPackage,obfs4proxy))
79 $(eval $(call BuildPackage,obfs4proxy))
80 $(eval $(call GoSrcPackage,golang-gitlab-yawning-obfs4-dev))
81 $(eval $(call BuildPackage,golang-gitlab-yawning-obfs4-dev))