mirror of https://github.com/ntop/n2n.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
55 lines
1.1 KiB
#
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_BRANCH:=trunk
|
|
PKG_SOURCE_URL:=https://svn.ntop.org/svn/ntop/trunk/n2n
|
|
PKG_REV:=$(shell LC_ALL=C svn info ${PKG_SOURCE_URL} | sed -ne's/^Last Changed Rev: //p')
|
|
|
|
PKG_NAME:=n2n
|
|
PKG_VERSION:=svn$(PKG_REV)
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
|
|
PKG_SOURCE_PROTO:=svn
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
PKG_BUILD_DEPENDS:=
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/n2n
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=VPN tunneling daemon
|
|
URL:=http://www.ntop.org/n2n/
|
|
SUBMENU:=VPN
|
|
DEPENDS:=libpthread
|
|
endef
|
|
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
|
|
define Package/n2n/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/edge $(1)/usr/sbin/
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/supernode $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,n2n))
|
|
|