2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_SOURCE_URL:=https://svn.ntop.org/svn/ntop/trunk/n2n
15 PKG_VERSION:=$(PKG_REV)
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
21 PKG_SOURCE_VERSION:=$(PKG_REV)
23 include $(INCLUDE_DIR)/package.mk
28 TITLE:=VPN tunneling daemon
29 URL:=http://www.ntop.org/n2n/
31 DEPENDS:=+libpthread +kmod-tun
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS)" \
41 define Package/n2n/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/edge $(1)/usr/sbin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/supernode $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_DATA) ./files/n2n.config $(1)/etc/config/n2n
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/n2n.init $(1)/etc/init.d/n2n
51 define Package/n2n/conffiles
55 $(eval $(call BuildPackage,n2n))