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.

65 lines
1.9 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.15
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/sstp-client/$(PKG_VERSION)
  13. PKG_HASH:=8484aa51fbfbe418a0ebad58ad20a8ee1c46ed71f800be18bcd23b42e6baad64
  14. PKG_MAINTAINER:=Federico Di Marco <fededim@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/sstp-client
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=VPN
  22. DEPENDS=+libevent2 +libopenssl +ppp +resolveip
  23. TITLE:=SSTP-Client is a SSTP client for Linux.
  24. URL:=http://sstp-client.sourceforge.net/
  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. TARGET_CPPFLAGS += -I$(PKG_BUILD_DIR)/include
  41. define Package/sstp-client/install
  42. $(INSTALL_DIR) $(1)/usr/{bin,lib}
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/sstpc $(1)/usr/bin/
  44. $(CP) $(PKG_BUILD_DIR)/src/libsstp-api/.libs/*.so* $(1)/usr/lib/
  45. $(CP) $(PKG_BUILD_DIR)/src/pppd-plugin/.libs/*.so* $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/etc
  47. $(CP) files/etc $(1)
  48. $(INSTALL_DIR) $(1)/lib/netifd/proto
  49. $(INSTALL_BIN) ./files/lib/netifd/proto/sstp.sh $(1)/lib/netifd/proto
  50. endef
  51. $(eval $(call BuildPackage,sstp-client))