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.

64 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2007-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:=tinc
  9. PKG_VERSION:=1.0.35
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.tinc-vpn.org/packages
  13. PKG_HASH:=18c83b147cc3e2133a7ac2543eeb014d52070de01c7474287d3ccecc9b16895e
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/tinc
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+liblzo +libopenssl +kmod-tun +zlib
  21. TITLE:=VPN tunneling daemon
  22. URL:=http://www.tinc-vpn.org/
  23. MAINTAINER:=Saverio Proto <zioproto@gmail.com>
  24. SUBMENU:=VPN
  25. endef
  26. define Package/tinc/description
  27. tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
  28. encryption to create a secure private network between hosts on the Internet.
  29. endef
  30. TARGET_CFLAGS += -std=gnu99
  31. CONFIGURE_ARGS += \
  32. --with-kernel="$(LINUX_DIR)" \
  33. --with-zlib="$(STAGING_DIR)/usr" \
  34. --with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
  35. CONFIGURE_VARS += \
  36. ac_cv_have_decl_OpenSSL_add_all_algorithms=yes
  37. define Package/tinc/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  42. $(INSTALL_DIR) $(1)/etc/config
  43. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  44. $(INSTALL_DIR) $(1)/etc/tinc
  45. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  46. $(INSTALL_DATA) files/tinc.upgrade $(1)/lib/upgrade/keep.d/tinc
  47. endef
  48. define Package/tinc/conffiles
  49. /etc/config/tinc
  50. endef
  51. $(eval $(call BuildPackage,tinc))