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.

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