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.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2007-2014 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.24
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages
  13. PKG_MD5SUM:=14a91eb2e85bdc0451a815612521b708
  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
  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))