sstp-client: add support for custom port
[feed/packages.git] / net / sstp-client / 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:=sstp-client
11 PKG_VERSION:=1.0.19
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://gitlab.com/sstp-project/sstp-client/-/archive/1.0.19/
16 PKG_HASH:=e2652365f69f5037102e78f4e115ff764a390b27bb3fd513a8a50b10a61bb613
17
18 PKG_MAINTAINER:=Federico Di Marco <fededim@gmail.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/sstp-client
27 SECTION:=net
28 CATEGORY:=Network
29 SUBMENU:=VPN
30 DEPENDS=+libevent2 +libopenssl +ppp +resolveip
31 TITLE:=SSTP-Client is a SSTP client for Linux.
32 URL:=http://sstp-client.sourceforge.net/
33 endef
34
35 define Package/sstp-client/description
36 The advantage of SSTP compared to other vpn protocols like PPTP and L2TP is that it cannot be easily blocked by firewalls since the traffic is transmitted over HTTPS on port 443.
37 This software has a similar commandline and configuration to the standard linux pptp-client software.
38
39 Features:
40 - Connect to Microsoft RAS network using SSTP
41 - Use HTTPS with strong encryption over port 443
42 - Asynchronous HDLC frame support
43 - Integration with pon/poff
44
45 endef
46
47 define Package/sstp-client/conffiles
48 /etc/ppp/chap-secrets
49 /etc/ppp/peers/peer-sstp-example-nopty.txt
50 /etc/ppp/peers/peer-sstp-example.txt
51 endef
52
53 TARGET_CPPFLAGS += -I$(PKG_BUILD_DIR)/include
54
55 define Package/sstp-client/install
56 $(INSTALL_DIR) $(1)/usr/{bin,lib}
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/sstpc $(1)/usr/bin/
58 $(CP) $(PKG_BUILD_DIR)/src/libsstp-api/.libs/*.so* $(1)/usr/lib/
59 $(CP) $(PKG_BUILD_DIR)/src/pppd-plugin/.libs/*.so* $(1)/usr/lib/
60
61 $(INSTALL_DIR) $(1)/etc
62 $(CP) files/etc $(1)
63 $(INSTALL_DIR) $(1)/lib/netifd/proto
64 $(INSTALL_BIN) ./files/lib/netifd/proto/sstp.sh $(1)/lib/netifd/proto
65 endef
66
67 $(eval $(call BuildPackage,sstp-client))