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.

89 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2006-2015 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:=vpnc
  9. PKG_SOURCE_DATE:=2021-01-31
  10. PKG_SOURCE_VERSION:=43780cecd7a61668002f73b6f8b9f9ba61af74ad
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/streambinder/vpnc
  14. PKG_MIRROR_HASH:=df833bbe369bb96cb915da9b63e4dded0f676f06bcdada4ef94e56b8d87b187e
  15. PKG_MAINTAINER:=Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
  16. PKG_LICENSE:=GPL-3.0-or-later
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_CONFIG_DEPENDS:= \
  19. CONFIG_VPNC_GNUTLS \
  20. CONFIG_VPNC_OPENSSL \
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/vpnc/config
  23. source "$(SOURCE)/Config.in"
  24. endef
  25. define Package/vpnc
  26. SECTION:=net
  27. CATEGORY:=Network
  28. DEPENDS:=\
  29. +libgpg-error \
  30. +libgcrypt \
  31. +kmod-tun \
  32. +VPNC_OPENSSL:libopenssl \
  33. +VPNC_GNUTLS:libgnutls \
  34. +vpnc-scripts \
  35. +resolveip \
  36. TITLE:=VPN client for Cisco EasyVPN
  37. URL:=https://davidepucci.it/doc/vpnc/
  38. SUBMENU:=VPN
  39. endef
  40. define Package/vpnc/description
  41. A VPN client compatible with Cisco's EasyVPN equipment.
  42. Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
  43. shared-secret IPSec authentication with Xauth, AES (256, 192, 128),
  44. 3DES, 1DES, MD5, SHA1, DH1/2/5 and IP tunneling.
  45. endef
  46. define Package/vpnc/conffiles
  47. /etc/vpnc/default.conf
  48. endef
  49. OPENSSL-y:=OPENSSL_GPL_VIOLATION=yes
  50. define Build/Compile
  51. mkdir $(PKG_BUILD_DIR)/bin
  52. $(call Build/Compile/Default, \
  53. OFLAGS="$(TARGET_CFLAGS)" \
  54. OS="Linux" \
  55. VERSION="$(PKG_VERSION)" \
  56. $(OPENSSL-$(CONFIG_VPNC_OPENSSL)) \
  57. vpnc \
  58. )
  59. endef
  60. define Package/vpnc/install
  61. $(INSTALL_DIR) $(1)/lib/netifd/proto
  62. $(INSTALL_BIN) ./files/vpnc.sh $(1)/lib/netifd/proto/
  63. $(INSTALL_DIR) $(1)/usr/sbin
  64. $(CP) $(PKG_BUILD_DIR)/bin/vpnc \
  65. $(PKG_BUILD_DIR)/src/vpnc-disconnect \
  66. $(1)/usr/sbin/
  67. $(INSTALL_DIR) $(1)/etc/vpnc
  68. $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/vpnc.conf $(1)/etc/vpnc/default.conf
  69. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  70. $(INSTALL_DATA) ./files/vpnc.upgrade $(1)/lib/upgrade/keep.d/vpnc
  71. endef
  72. $(eval $(call BuildPackage,vpnc))