2009-05-25 20:11:13 +00:00
|
|
|
#
|
2012-07-30 15:40:13 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2009-05-25 20:11:13 +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:=uhub
|
|
|
|
PKG_VERSION:=0.2.8
|
2012-07-30 15:40:13 +00:00
|
|
|
PKG_RELEASE:=3
|
2009-05-25 20:11:13 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.extatic.org/downloads/uhub/
|
|
|
|
PKG_MD5SUM:=45d35d9757bc0a84297dec51520f725b
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/uhub
|
|
|
|
SUBMENU:=P2P
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2012-09-19 15:35:00 +00:00
|
|
|
DEPENDS:=+libevent
|
2009-05-25 20:11:13 +00:00
|
|
|
TITLE:=High performance ADC hub
|
|
|
|
URL:=http://www.extatic.org/uhub/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/uhub/description
|
|
|
|
uhub is a high performance peer-to-peer hub for the ADC network.
|
|
|
|
Its low memory footprint allows it to handle several thousand users
|
|
|
|
on high-end servers, or a small private hub on embedded hardware.
|
|
|
|
endef
|
|
|
|
|
2012-08-03 09:15:21 +00:00
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libevent
|
2012-08-06 11:10:00 +00:00
|
|
|
TARGET_LDFLAGS = -L$(STAGING_DIR)/usr/lib/libevent -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
|
2012-08-03 09:15:21 +00:00
|
|
|
|
2015-03-12 19:51:51 +00:00
|
|
|
ifdef CONFIG_USE_GLIBC
|
2012-06-29 21:19:52 +00:00
|
|
|
TARGET_LDFLAGS += -lrt
|
|
|
|
endif
|
|
|
|
|
2009-05-25 20:11:13 +00:00
|
|
|
define Package/uhub/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/local/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uhub $(1)/usr/local/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uhub/
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/uhub.conf $(1)/etc/uhub/
|
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/uhub/conffiles
|
|
|
|
/etc/uhub/uhub.conf
|
|
|
|
endef
|
|
|
|
|
2009-05-25 20:11:13 +00:00
|
|
|
$(eval $(call BuildPackage,uhub))
|