2006-08-25 13:24:01 +00:00
|
|
|
#
|
|
|
|
# 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
|
2008-03-27 18:11:37 +00:00
|
|
|
PKG_VERSION:=3.0.1
|
2006-08-25 13:24:01 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/vtun
|
2008-03-27 18:11:37 +00:00
|
|
|
PKG_MD5SUM:=c342ffe77055d4248a38f0b380f28c1b
|
2006-08-25 13:24:01 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/vtun
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+kmod-tun +liblzo +libopenssl +zlib
|
|
|
|
TITLE:=VPN tunneling daemon
|
|
|
|
URL:=http://vtun.sourceforge.net
|
2007-12-28 13:31:04 +00:00
|
|
|
SUBMENU:=VPN
|
2006-08-25 13:24:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vtun/conffiles
|
|
|
|
/etc/vtund.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2008-03-27 18:11:37 +00:00
|
|
|
--with-lzo-headers="$(STAGING_DIR)/usr/include/lzo" \
|
|
|
|
--with-lzo-lib="$(STAGING_DIR)/usr/lib/" \
|
|
|
|
--with-ssl-headers="$(STAGING_DIR)/usr/include/openssl" \
|
2006-10-30 13:51:50 +00:00
|
|
|
, \
|
|
|
|
LIBS="-L$(STAGING_DIR)/usr/lib" \
|
2006-08-25 13:24:01 +00:00
|
|
|
BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
|
2006-09-29 19:11:03 +00:00
|
|
|
LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo" \
|
2006-10-30 13:51:50 +00:00
|
|
|
SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
|
|
|
|
)
|
2006-08-25 13:24:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Compile/Default,vtund)
|
2006-08-25 13:24:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vtun/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2007-01-05 15:24:20 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/vtund.conf $(1)/etc/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/vtund $(1)/usr/sbin/
|
2006-08-25 13:24:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,vtun))
|