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.

61 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.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/sstp-client/$(PKG_VERSION)
  13. PKG_HASH:=1b851b504030ed5522ced431217a5c700b35e8bb72d6f5b40b006c7becb8fb20
  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. SUBMENU:=VPN
  21. DEPENDS=+libevent2 +libopenssl +ppp
  22. TITLE:=SSTP-Client is a SSTP client for Linux.
  23. URL:=http://sstp-client.sourceforge.net/
  24. MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  25. endef
  26. define Package/sstp-client/description
  27. 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.
  28. This software has a similar commandline and configuration to the standard linux pptp-client software.
  29. Features:
  30. - Connect to Microsoft RAS network using SSTP
  31. - Use HTTPS with strong encryption over port 443
  32. - Asynchronous HDLC frame support
  33. - Integration with pon/poff
  34. endef
  35. define Package/sstp-client/conffiles
  36. /etc/ppp/chap-secrets
  37. /etc/ppp/peers/peer-sstp-example-nopty.txt
  38. /etc/ppp/peers/peer-sstp-example.txt
  39. endef
  40. define Package/sstp-client/install
  41. $(INSTALL_DIR) $(1)/usr/{bin,lib}
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/sstpc $(1)/usr/bin/
  43. $(CP) $(PKG_BUILD_DIR)/src/libsstp-api/.libs/*.so* $(1)/usr/lib/
  44. $(CP) $(PKG_BUILD_DIR)/src/pppd-plugin/.libs/*.so* $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/etc
  46. $(CP) files/etc $(1)
  47. endef
  48. $(eval $(call BuildPackage,sstp-client))