Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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:=2
  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. define Package/tinc/install
  36. $(INSTALL_DIR) $(1)/usr/sbin
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
  38. $(INSTALL_DIR) $(1)/etc/init.d/
  39. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  42. $(INSTALL_DIR) $(1)/etc/tinc
  43. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  44. $(INSTALL_DATA) files/tinc.upgrade $(1)/lib/upgrade/keep.d/tinc
  45. endef
  46. define Package/tinc/conffiles
  47. /etc/config/tinc
  48. endef
  49. $(eval $(call BuildPackage,tinc))