blob: e8d4422d687d2aadbecdf78e295fb055be90e0d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=vtun
PKG_VERSION:=3.0.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/vtun
PKG_MD5SUM:=d3d8bc4d58886498a1c338670eab9315
include $(INCLUDE_DIR)/package.mk
define Package/vtun
SECTION:=net
CATEGORY:=Network
DEPENDS:=+kmod-tun +VTUN_LZO:liblzo +VTUN_LZO:zlib +VTUN_SSL:libopenssl
TITLE:=VPN tunneling daemon
URL:=http://vtun.sourceforge.net
SUBMENU:=VPN
MENU:=1
endef
define Package/vtun/config
menu "Configuration"
depends on PACKAGE_vtun
config VTUN_config
bool
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
endef
define Package/vtun/conffiles
/etc/vtund.conf
endef
CONFIGURE_ARGS += \
$(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) \
CONFIGURE_VARS += \
LIBS="$(TARGET_LDFLAGS)" \
$(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") \
define Build/Compile
$(call Build/Compile/Default,vtund)
endef
define Package/vtun/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/vtund.conf $(1)/etc/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/vtund $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,vtun))
|