2006-08-08 14:58:34 +00:00
|
|
|
#
|
2011-05-15 08:29:45 +00:00
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
2006-08-08 14:58:34 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tinc
|
2012-07-01 10:27:50 +00:00
|
|
|
PKG_VERSION:=1.0.19
|
|
|
|
PKG_RELEASE:=1
|
2006-08-08 14:58:34 +00:00
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-11-14 21:41:03 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages
|
2012-07-01 10:27:50 +00:00
|
|
|
PKG_MD5SUM:=5d97ee0f1ccf8fea5b492f6b54d5ac32
|
2006-08-08 14:58:34 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-08 14:58:34 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/tinc
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-08-09 10:49:00 +00:00
|
|
|
DEPENDS:=+liblzo +libopenssl +kmod-tun
|
2006-08-08 14:58:34 +00:00
|
|
|
TITLE:=VPN tunneling daemon
|
|
|
|
URL:=http://www.tinc-vpn.org/
|
2007-12-28 13:31:04 +00:00
|
|
|
SUBMENU:=VPN
|
2006-08-08 14:58:34 +00:00
|
|
|
endef
|
|
|
|
|
2009-08-09 10:49:00 +00:00
|
|
|
define Package/tinc/description
|
|
|
|
tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
|
|
|
|
encryption to create a secure private network between hosts on the Internet.
|
|
|
|
endef
|
|
|
|
|
2010-07-15 17:13:42 +00:00
|
|
|
TARGET_CFLAGS += -std=gnu99
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-kernel="$(LINUX_DIR)" \
|
|
|
|
--with-zlib="$(STAGING_DIR)/usr" \
|
2011-05-15 08:29:45 +00:00
|
|
|
--with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
|
2006-08-08 14:58:34 +00:00
|
|
|
|
2009-08-09 10:49:00 +00:00
|
|
|
define Package/tinc/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
|
2011-11-14 21:41:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
|
|
|
|
$(INSTALL_DIR) $(1)/etc/openvpn
|
|
|
|
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
|
|
|
|
$(INSTALL_DATA) files/tinc.upgrade $(1)/lib/upgrade/keep.d/tinc
|
2006-08-08 14:58:34 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/tinc/conffiles
|
|
|
|
/etc/config/tinc
|
|
|
|
endef
|
|
|
|
|
2006-08-08 14:58:34 +00:00
|
|
|
$(eval $(call BuildPackage,tinc))
|