From 39a1f62bf226fd5d27797c82c628d170e3ab7c66 Mon Sep 17 00:00:00 2001 From: Rupan Date: Fri, 10 Oct 2014 19:30:34 +0200 Subject: [PATCH] net/sstp-client: new package version 1.0.9 Signed-off-by: Federico Di Marco --- net/sstp-client/Makefile | 51 +++++++++++++++++++ net/sstp-client/files/etc/ppp/chap-secrets | 4 ++ .../etc/ppp/peers/peer-sstp-example-nopty.txt | 14 +++++ .../files/etc/ppp/peers/peer-sstp-example.txt | 15 ++++++ 4 files changed, 84 insertions(+) create mode 100644 net/sstp-client/Makefile create mode 100644 net/sstp-client/files/etc/ppp/chap-secrets create mode 100644 net/sstp-client/files/etc/ppp/peers/peer-sstp-example-nopty.txt create mode 100644 net/sstp-client/files/etc/ppp/peers/peer-sstp-example.txt diff --git a/net/sstp-client/Makefile b/net/sstp-client/Makefile new file mode 100644 index 000000000..185e6c06c --- /dev/null +++ b/net/sstp-client/Makefile @@ -0,0 +1,51 @@ +# +# Copyright (C) 2006-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=sstp-client +PKG_VERSION:=1.0.9 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/sstp-client/$(PKG_VERSION) +PKG_MD5SUM:=40f1d1b1596b4f1817ec903f58b2780c +PKG_LICENSE=GPLv2 + +include $(INCLUDE_DIR)/package.mk + +define Package/sstp-client + SECTION:=net + CATEGORY:=Network + DEPENDS=+libevent2 +libopenssl +ppp + TITLE:=SSTP is Microsofts Remote Access Solution for PPP over SSL + URL:=http://sstp-client.sourceforge.net/ + MAINTAINER:=Federico Di Marco +endef + +define Package/sstp-client/description + 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. + 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. +endef + +define Package/sstp-client/conffiles + /etc/ppp/chap-secrets + /etc/ppp/peers/peer-sstp-example-nopty.txt + /etc/ppp/peers/peer-sstp-example.txt +endef + +define Package/sstp-client/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/sstpc $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/src/libsstp-api/.libs/*.so* $(1)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/src/pppd-plugin/.libs/*.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/etc/ppp + $(INSTALL_DIR) $(1)/etc/peers +endef + +$(eval $(call BuildPackage,sstp-client)) diff --git a/net/sstp-client/files/etc/ppp/chap-secrets b/net/sstp-client/files/etc/ppp/chap-secrets new file mode 100644 index 000000000..3b937685f --- /dev/null +++ b/net/sstp-client/files/etc/ppp/chap-secrets @@ -0,0 +1,4 @@ +# Secrets for authentication using CHAP +# client (domain\\username) server secret (password) acceptable local IP addresses +# SSTP-TEST\\JonDoe sstp-test 'testme1234!' * + diff --git a/net/sstp-client/files/etc/ppp/peers/peer-sstp-example-nopty.txt b/net/sstp-client/files/etc/ppp/peers/peer-sstp-example-nopty.txt new file mode 100644 index 000000000..0149220d2 --- /dev/null +++ b/net/sstp-client/files/etc/ppp/peers/peer-sstp-example-nopty.txt @@ -0,0 +1,14 @@ +remotename sstp-test +linkname sstp-test +ipparam sstp-test +name SSTP-TEST\\jdoe +plugin sstp-pppd-plugin.so +sstp-sock /tmp/sstp-uds-sock +usepeerdns +require-mppe +noauth +refuse-eap +debug + +# adopt defaults from the pptp-linux package +file /etc/ppp/options.pptp diff --git a/net/sstp-client/files/etc/ppp/peers/peer-sstp-example.txt b/net/sstp-client/files/etc/ppp/peers/peer-sstp-example.txt new file mode 100644 index 000000000..e96e18879 --- /dev/null +++ b/net/sstp-client/files/etc/ppp/peers/peer-sstp-example.txt @@ -0,0 +1,15 @@ +remotename sstp-test +linkname sstp-test +ipparam sstp-test +pty "sstpc --server n3zz-dc1.sstp-test.net --nolaunchpppd " +name SSTP-TEST\\jdoe +plugin sstp-pppd-plugin.so +sstp-sock /tmp/sstpc-uds-sock +usepeerdns +require-mppe +refuse-eap +noauth +debug + +# adopt defaults from the pptp-linux package +file /etc/ppp/options.pptp