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.

75 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2007-2021 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.1-git
  10. PKG_RELEASE:=3
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=http://tinc-vpn.org/git/tinc
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=3ee0d5dd
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MIRROR_HASH:=fe57dcce5c17ec2cea96fefc69c5af977df7d457f1ae7c4775e00a21878a2c19
  17. PKG_CPE_ID:=cpe:/a:tinc:tinc
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_CONFIG_DEPENDS:=zlib lzo openssl
  20. PKG_BUILD_DEPENDS:=zlib lzo openssl
  21. PKG_FIXUP:=autoreconf
  22. PKG_INSTALL:=1
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/tinc
  25. SECTION:=net
  26. CATEGORY:=Network
  27. DEPENDS:=+kmod-tun +liblzo +libopenssl +librt +zlib
  28. TITLE:=VPN tunneling daemon
  29. URL:=http://www.tinc-vpn.org/
  30. MAINTAINER:=Erwan Mas <erwan@mas.nom.fr>
  31. SUBMENU:=VPN
  32. endef
  33. define Package/tinc/description
  34. tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
  35. encryption to create a secure private network between hosts on the Internet.
  36. endef
  37. TARGET_CFLAGS += -std=gnu99
  38. CONFIGURE_ARGS += \
  39. --with-kernel="$(LINUX_DIR)" \
  40. --disable-curses \
  41. --disable-readline \
  42. --with-lzo-include="$(STAGING_DIR)/usr/include/lzo" \
  43. --with-zlib="$(STAGING_DIR)/usr"
  44. CONFIGURE_VARS += \
  45. ac_cv_have_decl_OpenSSL_add_all_algorithms=yes
  46. define Package/tinc/install
  47. $(INSTALL_DIR) $(1)/usr/sbin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tinc $(1)/usr/sbin/
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
  50. $(INSTALL_DIR) $(1)/etc/init.d/
  51. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  54. $(INSTALL_DIR) $(1)/etc/tinc
  55. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  56. $(INSTALL_DATA) files/tinc.upgrade $(1)/lib/upgrade/keep.d/tinc
  57. endef
  58. define Package/tinc/conffiles
  59. /etc/config/tinc
  60. endef
  61. $(eval $(call BuildPackage,tinc))