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