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.

66 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2019 - Lucian Cristian <lucian.cristian@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v3.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=openfortivpn
  9. PKG_VERSION:=1.10.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/adrienverge/openfortivpn/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=d6ea0c84c0cf811530073fa19865334bb42ab10a780157fe95c4efb3476ad58d
  14. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  15. PKG_LICENSE:=GPL-3.0-or-later OpenSSL
  16. PKG_LICENSE_FILES:=LICENSE LICENSE.OpenSSL
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. PKG_FIXUP:=autoreconf
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/openfortivpn
  22. SUBMENU:=VPN
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=Fortinet SSL VPN client
  26. URL:=https://github.com/adrienverge/openfortivpn
  27. DEPENDS:=+ppp +libopenssl
  28. endef
  29. define Package/openfortivpn/description
  30. An open implementation of Fortinet's proprietary PPP+SSL VPN solution
  31. It spawns a pppd process and operates the communication between the gateway and this process.
  32. It is compatible with Fortinet VPNs.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --enable-proc \
  36. --with-rt_dst="yes" \
  37. --with-pppd="/usr/sbin/pppd"
  38. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  39. define Package/openfortivpn/conffiles
  40. /etc/config/openfortivpn
  41. endef
  42. define Package/openfortivpn/install
  43. $(INSTALL_DIR) \
  44. $(1)/usr/sbin \
  45. $(1)/etc/config \
  46. $(1)/etc/init.d
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/openfortivpn $(1)/usr/sbin/
  48. $(INSTALL_DATA) ./files/openfortivpn.config $(1)/etc/config/openfortivpn
  49. $(INSTALL_BIN) ./files/openfortivpn.init $(1)/etc/init.d/openfortivpn
  50. endef
  51. $(eval $(call BuildPackage,openfortivpn))