2006-08-25 13:24:01 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-08-25 13:24:01 +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:=vtun
|
2009-12-29 18:59:56 +00:00
|
|
|
PKG_VERSION:=3.0.2
|
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
|
2009-12-29 18:59:56 +00:00
|
|
|
PKG_MD5SUM:=d3d8bc4d58886498a1c338670eab9315
|
2006-08-25 13:24:01 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/vtun
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2012-08-13 14:08:43 +00:00
|
|
|
DEPENDS:=+kmod-tun +VTUN_LZO:liblzo +VTUN_LZO:zlib +VTUN_SSL:libopenssl
|
2006-08-25 13:24:01 +00:00
|
|
|
TITLE:=VPN tunneling daemon
|
|
|
|
URL:=http://vtun.sourceforge.net
|
2007-12-28 13:31:04 +00:00
|
|
|
SUBMENU:=VPN
|
2012-08-13 14:08:43 +00:00
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vtun/config
|
|
|
|
menu "Configuration"
|
|
|
|
depends on PACKAGE_vtun
|
|
|
|
|
|
|
|
config VTUN_config
|
2012-08-14 13:05:38 +00:00
|
|
|
bool
|
2012-08-13 14:08:43 +00:00
|
|
|
|
|
|
|
depends on PACKAGE_vtun
|
|
|
|
config VTUN_LZO
|
|
|
|
bool "enable vtun compression"
|
|
|
|
help
|
|
|
|
vtun tunnels will be compressed
|
|
|
|
default y
|
|
|
|
|
|
|
|
config VTUN_SSL
|
|
|
|
bool "enable vtun ssl encryption"
|
|
|
|
help
|
|
|
|
vtun tunnels will be encrypted
|
|
|
|
default y
|
|
|
|
endmenu
|
2006-08-25 13:24:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vtun/conffiles
|
|
|
|
/etc/vtund.conf
|
|
|
|
endef
|
|
|
|
|
2009-12-29 18:59:56 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2012-08-13 14:08:43 +00:00
|
|
|
$(if $(CONFIG_VTUN_LZO),--with-lzo-lib="$(STAGING_DIR)/usr/lib/",--disable-zlib) \
|
|
|
|
$(if $(CONFIG_VTUN_LZO),--with-lzo-headers="$(STAGING_DIR)/usr/include/lzo",--disable-lzo) \
|
|
|
|
$(if $(CONFIG_VTUN_SSL),--with-ssl-headers="$(STAGING_DIR)/usr/lib/",--disable-ssl) \
|
2009-12-29 18:59:56 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
LIBS="$(TARGET_LDFLAGS)" \
|
2012-08-13 14:08:43 +00:00
|
|
|
$(if $(CONFIG_VTUN_LZO),LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo") \
|
|
|
|
$(if $(CONFIG_VTUN_SSL),BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl") \
|
|
|
|
$(if $(CONFIG_VTUN_SSL),SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl") \
|
2006-08-25 13:24:01 +00:00
|
|
|
|
2009-12-29 18:59:56 +00:00
|
|
|
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
|
|
|
|
|
2009-12-29 18:59:56 +00:00
|
|
|
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))
|