Makefile (1581B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=tinc 11 PKG_VERSION:=1.0.31 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages 16 PKG_MD5SUM:=7a96f7eb12dfd43b21852b4207d860f2 17 18 PKG_INSTALL:=1 19 20 include $(INCLUDE_DIR)/package.mk 21 22 define Package/tinc 23 SECTION:=net 24 CATEGORY:=Network 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> 29 SUBMENU:=VPN 30 endef 31 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 37 TARGET_CFLAGS += -std=gnu99 38 39 CONFIGURE_ARGS += \ 40 --with-kernel="$(LINUX_DIR)" \ 41 --with-zlib="$(STAGING_DIR)/usr" \ 42 --with-lzo-include="$(STAGING_DIR)/usr/include/lzo" 43 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 54 endef 55 56 define Package/tinc/conffiles 57 /etc/config/tinc 58 endef 59 60 $(eval $(call BuildPackage,tinc))