2 # Copyright (C) 2007-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages
16 PKG_MD5SUM:=f3ca1fc1154ed1f2cac408ea06a1c1ca
20 include $(INCLUDE_DIR)/package.mk
25 DEPENDS:=+liblzo +libopenssl +kmod-tun +zlib
26 TITLE:=VPN tunneling daemon
27 URL:=http://www.tinc-vpn.org/
28 MAINTAINER:=Saverio Proto <zioproto@gmail.com>
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.
37 TARGET_CFLAGS += -std=gnu99
40 --with-kernel="$(LINUX_DIR)" \
41 --with-zlib="$(STAGING_DIR)/usr" \
42 --with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
44 define Package/tinc/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc/init.d/
48 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
51 $(INSTALL_DIR) $(1)/etc/tinc
52 $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
53 $(INSTALL_DATA) files/tinc.upgrade $(1)/lib/upgrade/keep.d/tinc
56 define Package/tinc/conffiles
60 $(eval $(call BuildPackage,tinc))