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.

95 lines
2.5 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_REV:=550
  10. PKG_VERSION:=0.5.3.r$(PKG_REV)
  11. PKG_RELEASE:=5
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=$(PKG_REV)
  16. PKG_SOURCE_PROTO:=svn
  17. PKG_MIRROR_HASH:=f95e2ac4e7e55c06553e0fed016a908b0f2695cee988bc70c9994c03e2f588c4
  18. PKG_MAINTAINER:=Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
  19. PKG_LICENSE:=VARIOUS
  20. PKG_LICENSE_FILES:=COPYING
  21. PKG_CONFIG_DEPENDS:= \
  22. CONFIG_VPNC_GNUTLS \
  23. CONFIG_VPNC_OPENSSL \
  24. include $(INCLUDE_DIR)/package.mk
  25. define Package/vpnc/config
  26. source "$(SOURCE)/Config.in"
  27. endef
  28. define Package/vpnc
  29. SECTION:=net
  30. CATEGORY:=Network
  31. DEPENDS:=+libgpg-error +libgcrypt +kmod-tun +VPNC_OPENSSL:libopenssl +VPNC_GNUTLS:libgnutls +vpnc-scripts +resolveip
  32. TITLE:=VPN client for Cisco EasyVPN
  33. URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
  34. SUBMENU:=VPN
  35. endef
  36. define Package/vpnc/description
  37. A VPN client compatible with Cisco's EasyVPN equipment.
  38. Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
  39. shared-secret IPSec authentication with Xauth, AES (256, 192, 128),
  40. 3DES, 1DES, MD5, SHA1, DH1/2/5 and IP tunneling.
  41. endef
  42. define Package/vpnc/conffiles
  43. /etc/vpnc/default.conf
  44. endef
  45. ifeq ($(CONFIG_VPNC_OPENSSL),y)
  46. define Build/Compile
  47. $(call Build/Compile/Default, \
  48. OFLAGS="$(TARGET_CFLAGS)" \
  49. OS="Linux" VERSION="$(PKG_VERSION)" \
  50. STAGING_DIR="$(STAGING_DIR)" \
  51. DESTDIR="$(PKG_INSTALL_DIR)" \
  52. OPENSSL_GPL_VIOLATION=yes PREFIX=/usr \
  53. all install \
  54. )
  55. endef
  56. else
  57. define Build/Compile
  58. $(call Build/Compile/Default, \
  59. OFLAGS="$(TARGET_CFLAGS)" \
  60. OS="Linux" VERSION="$(PKG_VERSION)" \
  61. STAGING_DIR="$(STAGING_DIR)" \
  62. DESTDIR="$(PKG_INSTALL_DIR)" \
  63. PREFIX=/usr \
  64. all install \
  65. )
  66. endef
  67. endif
  68. define Package/vpnc/install
  69. $(INSTALL_DIR) $(1)/lib/netifd/proto
  70. $(INSTALL_BIN) ./files/vpnc.sh $(1)/lib/netifd/proto/
  71. $(INSTALL_DIR) $(1)/usr/sbin
  72. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/vpnc \
  73. $(PKG_INSTALL_DIR)/usr/sbin/vpnc-disconnect \
  74. $(1)/usr/sbin/
  75. $(INSTALL_DIR) $(1)/etc/vpnc
  76. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/vpnc/default.conf $(1)/etc/vpnc/
  77. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  78. $(INSTALL_DATA) ./files/vpnc.upgrade $(1)/lib/upgrade/keep.d/vpnc
  79. endef
  80. $(eval $(call BuildPackage,vpnc))