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.

70 lines
1.9 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.1pre18
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://tinc-vpn.org/packages
  13. PKG_HASH:=2757ddc62cf64b411f569db2fa85c25ec846c0db110023f6befb33691f078986
  14. PKG_MAINTAINER:=Erwan Mas <erwan@mas.nom.fr>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:tinc:tinc
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_CONFIG_DEPENDS:=zlib lzo openssl
  22. PKG_BUILD_DEPENDS:=zlib lzo openssl
  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. SUBMENU:=VPN
  31. endef
  32. define Package/tinc/description
  33. tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
  34. encryption to create a secure private network between hosts on the Internet.
  35. endef
  36. CONFIGURE_ARGS += \
  37. --with-kernel="$(LINUX_DIR)" \
  38. --disable-curses \
  39. --disable-readline \
  40. --with-lzo-include="$(STAGING_DIR)/usr/include/lzo" \
  41. --with-zlib="$(STAGING_DIR)/usr"
  42. define Package/tinc/install
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tinc $(1)/usr/sbin/
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
  46. $(INSTALL_DIR) $(1)/etc/init.d/
  47. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  48. $(INSTALL_DIR) $(1)/etc/config
  49. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  50. $(INSTALL_DIR) $(1)/etc/tinc
  51. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  52. $(INSTALL_DATA) files/tinc.upgrade $(1)/lib/upgrade/keep.d/tinc
  53. endef
  54. define Package/tinc/conffiles
  55. /etc/config/tinc
  56. endef
  57. $(eval $(call BuildPackage,tinc))