Makefile 1.6 KB

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