Merge pull request #2668 from dibdot/mc
[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.10
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/sstp-client/$(PKG_VERSION)
16 PKG_MD5SUM:=5f290355187e5ce0423fb7e388e65b9d
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 DEPENDS=+libevent2 +libopenssl +ppp
27 TITLE:=SSTP is Microsofts Remote Access Solution for PPP over SSL
28 URL:=http://sstp-client.sourceforge.net/
29 MAINTAINER:=Federico Di Marco <fededim@gmail.com>
30 endef
31
32 define Package/sstp-client/description
33 It can be used instead of PPTP or L2TP, and is only available with Windows Vista/7 connecting to a Windows 2008 Server. The advantage of SSTP compared to PPTP and L2TP is that it cannot be easily blocked by firewalls since the traffic is transmitted over HTTPS on port 443.
34 Windows Vista/7 uses SSTP whenever PPTP or L2TP cannot be established. For further information on SSTP check out wikipedia's article on Secure Socket Tunneling Protocol.
35 endef
36
37 define Package/sstp-client/conffiles
38 /etc/ppp/chap-secrets
39 /etc/ppp/peers/peer-sstp-example-nopty.txt
40 /etc/ppp/peers/peer-sstp-example.txt
41 endef
42
43 define Package/sstp-client/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/sstpc $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_BUILD_DIR)/src/libsstp-api/.libs/*.so* $(1)/usr/lib/
48 $(CP) $(PKG_BUILD_DIR)/src/pppd-plugin/.libs/*.so* $(1)/usr/lib/
49 $(INSTALL_DIR) $(1)/etc/ppp
50 $(INSTALL_DIR) $(1)/etc/peers
51 endef
52
53 $(eval $(call BuildPackage,sstp-client))