hidapi: remove now obsolete iconv patch
[feed/packages.git] / net / gsocket / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=gsocket
4 PKG_VERSION:=1.4.37
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://github.com/hackerschoice/gsocket/releases/download/v$(PKG_VERSION)/
9 PKG_HASH:=4f64f71a7d6b8be79754e7bf2109675ffc8a3e37a4a55b08c95a1b1d25e458e5
10
11 PKG_MAINTAINER:=Ralf Kaiser <skyper@thc.org>
12 PKG_LICENSE:=BSD-2-Clause
13 PKG_LICENSE_FILES:=LICENSE
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/gsocket
18 SECTION:=net
19 CATEGORY:=Network
20 DEPENDS:=+libopenssl
21 TITLE:=Connect like there is no firewall
22 URL:=https://gsocket.io
23 endef
24
25 define Package/gsocket/description
26 Global Socket allows two workstations on different private networks to
27 communicate with each other. Through firewalls and through NAT - like
28 there is no firewall.
29
30 The TCP connection is secured with AES-256 and using OpenSSL's SRP
31 protocol (RFC 5054). It does not require a PKI and has forward
32 secrecy and (optional) TOR support.
33
34 The gsocket tools derive temporary session keys and IDs and connect
35 two TCP pipes through the Global Socket Relay Network (GSRN). This is
36 done regardless and independent of the local IP Address or geographical
37 location.
38
39 The session keys (secrets) never leave the workstation. The GSRN sees only
40 the encrypted traffic.
41
42 The workhorse is 'gs-netcat' which opens a ssh-like interactive PTY
43 command shell to a remote workstation (which resides on a private and
44 remote network and/or behind a firewall).
45 endef
46
47 define Build/Configure
48 $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR) --libdir=$(STAGING_DIR)/usr/lib --includedir=$(STAGING_DIR)/usr/include)
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 LD="$(TARGET_CXX)" \
54 all
55 endef
56
57 define Package/gsocket/install
58 $(INSTALL_DIR) $(1)/bin
59 $(INSTALL_DIR) $(1)/share/gsocket
60 $(INSTALL_DIR) $(1)/lib
61 $(INSTALL_DIR) $(1)/etc
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs-sftp $(1)/bin/
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs-mount $(1)/bin/
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/blitz $(1)/bin/
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gsocket $(1)/bin/
66 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs-netcat $(1)/bin/
67 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs_funcs $(1)/share/gsocket/
68 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gsocket_uchroot_dso.so.0 $(1)/lib/
69 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gsocket_dso.so.0 $(1)/lib/
70 $(INSTALL_CONF) $(PKG_BUILD_DIR)/tools/gsocket.conf $(1)/etc/
71 endef
72
73 $(eval $(call BuildPackage,gsocket))