2 # Copyright (C) 2018 Jeffery To
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
:=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
)
19 PKG_LICENSE
:=BSD-2-Clause
20 PKG_LICENSE_FILES
:=LICENSE
21 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
23 PKG_BUILD_DEPENDS
:=golang
/host
27 GO_PKG
:=gitlab.com
/yawning
/obfs4.git
29 include $(INCLUDE_DIR
)/package.mk
30 include ..
/..
/lang
/golang
/golang-package.mk
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
)
38 define Package
/obfs4proxy
39 $(call Package
/obfs4proxy
/Default
)
44 define Package
/golang-gitlab-yawning-obfs4-dev
45 $(call Package
/obfs4proxy
/Default
)
46 $(call GoPackage
/GoSubMenu
)
47 TITLE
+= (source files
)
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
58 obfs4proxy implements the obfsucation protocols obfs2
, obfs3
, and obfs4.
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.
65 define Package
/obfs4proxy
/description
66 $(call Package
/obfs4proxy
/Default
/description
)
68 This package contains both the client and the bridge in a single
72 define Package
/golang-gitlab-yawning-obfs4-dev
/description
73 $(call Package
/obfs4proxy
/Default
/description
)
75 This package provides the source files for the client
/bridge program.
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
))