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.

53 lines
1.7 KiB

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