View difference between Paste ID: AUKXbuzr and QTL0XjhS
SHOW: | | - or go back to the newest paste.
1
#
2
# Copyright (C) 2007-2011 OpenWrt.org
3
#
4
# This is free software, licensed under the GNU General Public License v2.
5
# See /LICENSE for more information.
6
#
7
8
include $(TOPDIR)/rules.mk
9
10
PKG_BRANCH:=trunk
11
PKG_SOURCE_URL:=https://svn.ntop.org/svn/ntop/trunk/n2n/n2n_v2/
12
PKG_REV:=5055
13
14
PKG_NAME:=n2n
15
PKG_VERSION:=$(PKG_REV)
16
PKG_RELEASE:=4
17
18
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
20
PKG_SOURCE_PROTO:=svn
21
PKG_SOURCE_VERSION:=$(PKG_REV)
22
23
include $(INCLUDE_DIR)/package.mk
24
25
define Package/n2n
26
  SECTION:=net
27
  CATEGORY:=Network
28
  TITLE:=VPN tunneling daemon
29
  URL:=http://www.ntop.org/n2n/
30
  SUBMENU:=VPN
31
  DEPENDS:=+libpthread +kmod-tun 
32
  DEPENDS+=$(if $(CONFIG_N2N_AES_ENCRYPTION), +libopenssl)
33
endef
34
35
define Package/n2n/config
36
	source "$(SOURCE)/Config.in"
37
endef
38
39
40
#ifeq ($(CONFIG_N2N_ENCRYPTION),y)
41
#	echo "compiling with aes encryption"
42
#else
43
#	echo "compiling without aes encryption"
44
#	N2N_OPTION_AES:=no
45
#endif
46
47
48
MAKE_VARS += \
49-
	TARGET_CONFIGURE_OPTS+=N2N_OPTION_AES=no 
49+
  LIBTOOL="$(STAGING_DIR)/host/bin/libtool" \
50
  INSTALL_PROG=":"
51
52-
define Build/Compile
52+
53-
	
53+
  MAKE_VARS += N2N_OPTION_AES=no 
54
endif
55-
	$(MAKE) -C $(PKG_BUILD_DIR) \
55+
56-
		$(TARGET_CONFIGURE_OPTS) \
56+
57-
		CFLAGS="$(TARGET_CFLAGS)" \
57+
58-
		LIBTOOL="$(STAGING_DIR)/host/bin/libtool" \
58+
59-
		INSTALL_PROG=":"
59+
60
	$(INSTALL_DIR) $(1)/etc/config
61
	$(INSTALL_DATA) ./files/n2n.config $(1)/etc/config/n2n
62
	$(INSTALL_DIR) $(1)/etc/init.d
63
	$(INSTALL_BIN) ./files/n2n.init $(1)/etc/init.d/n2n
64
endef
65
66
define Package/n2n/conffiles
67
/etc/config/n2n
68
endef
69
70
$(eval $(call BuildPackage,n2n))
71
72
73