You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=sstp-client
  9. PKG_VERSION:=1.0.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/sstp-client/$(PKG_VERSION)
  13. PKG_MD5SUM:=40f1d1b1596b4f1817ec903f58b2780c
  14. PKG_LICENSE=GPLv2
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/sstp-client
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS=+libevent2 +libopenssl +ppp
  20. TITLE:=SSTP is Microsofts Remote Access Solution for PPP over SSL
  21. URL:=http://sstp-client.sourceforge.net/
  22. MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  23. endef
  24. define Package/sstp-client/description
  25. 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.
  26. 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.
  27. endef
  28. define Package/sstp-client/conffiles
  29. /etc/ppp/chap-secrets
  30. /etc/ppp/peers/peer-sstp-example-nopty.txt
  31. /etc/ppp/peers/peer-sstp-example.txt
  32. endef
  33. define Package/sstp-client/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/sstpc $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_BUILD_DIR)/src/libsstp-api/.libs/*.so* $(1)/usr/lib/
  38. $(CP) $(PKG_BUILD_DIR)/src/pppd-plugin/.libs/*.so* $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/etc/ppp
  40. $(INSTALL_DIR) $(1)/etc/peers
  41. endef
  42. $(eval $(call BuildPackage,sstp-client))