From 934191be8b06c670e558999ab987b5132fc3e216 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 25 Aug 2006 13:24:01 +0000 Subject: [PATCH] Port vtun to -ng SVN-Revision: 4665 --- net/vtun/Config.in | 12 ++++++++++ net/vtun/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 net/vtun/Config.in create mode 100644 net/vtun/Makefile diff --git a/net/vtun/Config.in b/net/vtun/Config.in new file mode 100644 index 0000000000..c2fa9f50b0 --- /dev/null +++ b/net/vtun/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_VTUN + prompt "vtun.............................. VPN tunneling daemon" + tristate + default m if CONFIG_DEVEL + select BR2_PACKAGE_LIBLZO + select BR2_PACKAGE_LIBOPENSSL + select BR2_PACKAGE_ZLIB + help + A VPN tunneling daemon + + http://vtun.sourceforge.net + diff --git a/net/vtun/Makefile b/net/vtun/Makefile new file mode 100644 index 0000000000..270e56cbdd --- /dev/null +++ b/net/vtun/Makefile @@ -0,0 +1,55 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=vtun +PKG_VERSION:=2.6 +PKG_RELEASE:=1 +PKG_MD5SUM:=309534fd03c5d13a19c43916f61f4bbf + +PKG_SOURCE_URL:=@SF/vtun +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/vtun + SECTION:=net + CATEGORY:=Network + DEPENDS:=+kmod-tun +liblzo +libopenssl +zlib + TITLE:=VPN tunneling daemon + DESCRIPTION:=VPN tunneling daemon + URL:=http://vtun.sourceforge.net +endef + +define Package/vtun/conffiles +/etc/vtund.conf +endef + +define Build/Configure +$(call Build/Configure/Default,,LIBS="-L$(STAGING_DIR)/usr/lib" \ + BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \ + LZO_HDR_DIR="$(STAGING_DIR)/usr/include" \ + SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl") +endef + +define Build/Compile +$(call Build/Compile/Default,vtund) +endef + +define Package/vtun/install + install -m0755 -d $(1)/etc + install -m0600 $(PKG_BUILD_DIR)/vtund.conf $(1)/etc/ + install -m0755 -d $(1)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/vtund $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,vtun)) -- 2.30.2