Merge pull request #4853 from StevenHessing/noddos
[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.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/sstp-client/$(PKG_VERSION)
16 PKG_HASH:=1b851b504030ed5522ced431217a5c700b35e8bb72d6f5b40b006c7becb8fb20
17 PKG_LICENSE=GPLv2
18
19 include $(INCLUDE_DIR)/package.mk
20
21 TARGET_CPPFLAGS += -I$(PKG_BUILD_DIR)/include
22
23 define Package/sstp-client
24 SECTION:=net
25 CATEGORY:=Network
26 SUBMENU:=VPN
27 DEPENDS=+libevent2 +libopenssl +ppp
28 TITLE:=SSTP-Client is a SSTP client for Linux.
29 URL:=http://sstp-client.sourceforge.net/
30 MAINTAINER:=Federico Di Marco <fededim@gmail.com>
31 endef
32
33 define Package/sstp-client/description
34 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.
35 This software has a similar commandline and configuration to the standard linux pptp-client software.
36
37 Features:
38 - Connect to Microsoft RAS network using SSTP
39 - Use HTTPS with strong encryption over port 443
40 - Asynchronous HDLC frame support
41 - Integration with pon/poff
42
43 endef
44
45 define Package/sstp-client/conffiles
46 /etc/ppp/chap-secrets
47 /etc/ppp/peers/peer-sstp-example-nopty.txt
48 /etc/ppp/peers/peer-sstp-example.txt
49 endef
50
51 define Package/sstp-client/install
52 $(INSTALL_DIR) $(1)/usr/{bin,lib}
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/sstpc $(1)/usr/bin/
54 $(CP) $(PKG_BUILD_DIR)/src/libsstp-api/.libs/*.so* $(1)/usr/lib/
55 $(CP) $(PKG_BUILD_DIR)/src/pppd-plugin/.libs/*.so* $(1)/usr/lib/
56
57 $(INSTALL_DIR) $(1)/etc
58 $(CP) files/etc $(1)
59 endef
60
61 $(eval $(call BuildPackage,sstp-client))