From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 16 06:20:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 205301065692 for ; Fri, 16 Oct 2009 06:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D6E6A8FC31 for ; Fri, 16 Oct 2009 06:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9G6K04d074347 for ; Fri, 16 Oct 2009 06:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9G6K0jV074346; Fri, 16 Oct 2009 06:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 16 Oct 2009 06:20:00 GMT Resent-Message-Id: <200910160620.n9G6K0jV074346@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Yashin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCCA41065672 for ; Fri, 16 Oct 2009 06:15:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AAB3F8FC12 for ; Fri, 16 Oct 2009 06:15:49 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9G6FnFs003462 for ; Fri, 16 Oct 2009 06:15:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n9G6Fnli003461; Fri, 16 Oct 2009 06:15:49 GMT (envelope-from nobody) Message-Id: <200910160615.n9G6Fnli003461@www.freebsd.org> Date: Fri, 16 Oct 2009 06:15:49 GMT From: Dmitry Yashin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/139670: New port: net-p2p/uhub uHub is a high performance peer-to-peer hub for the ADC network X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2009 06:20:01 -0000 >Number: 139670 >Category: misc >Synopsis: New port: net-p2p/uhub uHub is a high performance peer-to-peer hub for the ADC network >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 06:20:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry Yashin >Release: 7.0-RELEASE-p11 >Organization: >Environment: 7.0-RELEASE-p11 FreeBSD 7.0-RELEASE-p11 #0: Sun Mar 22 07:08:52 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/net-p2p/uhub/ # /usr/ports/net-p2p/uhub/Makefile # /usr/ports/net-p2p/uhub/files # /usr/ports/net-p2p/uhub/files/patch-GNUmakefile # /usr/ports/net-p2p/uhub/files/uhub.sh.in # /usr/ports/net-p2p/uhub/files/patch-uhub.conf # /usr/ports/net-p2p/uhub/pkg-descr # /usr/ports/net-p2p/uhub/distinfo # echo c - /usr/ports/net-p2p/uhub/ mkdir -p /usr/ports/net-p2p/uhub/ > /dev/null 2>&1 echo x - /usr/ports/net-p2p/uhub/Makefile sed 's/^X//' >/usr/ports/net-p2p/uhub/Makefile << 'END-of-/usr/ports/net-p2p/uhub/Makefile' X# New ports collection makefile for: uhub X# Date created: 16 Oct 2009 X# Whom: Yashin Dmitry X# X# $FreeBSD$ X# X XPORTNAME= uhub XPORTVERSION= 0.2.8 XCATEGORIES= net-p2p XMASTER_SITES= http://www.extatic.org/downloads/uhub/ XDISTNAME= ${PORTNAME}-${PORTVERSION}-src X XMAINTAINER= yashin.dm@gmail.com XCOMMENT= uHub is a high performance peer-to-peer hub for the ADC network X XLIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent X XUSE_PERL5= yes XUSE_GMAKE= yes X XUSE_RC_SUBR= uhub.sh X XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} XMAKEFILE= ${WRKSRC}/GNUmakefile X XPLIST_FILES= bin/uhub X X.include END-of-/usr/ports/net-p2p/uhub/Makefile echo c - /usr/ports/net-p2p/uhub/files mkdir -p /usr/ports/net-p2p/uhub/files > /dev/null 2>&1 echo x - /usr/ports/net-p2p/uhub/files/patch-GNUmakefile sed 's/^X//' >/usr/ports/net-p2p/uhub/files/patch-GNUmakefile << 'END-of-/usr/ports/net-p2p/uhub/files/patch-GNUmakefile' X--- GNUmakefile.orig 2009-03-24 02:21:38.000000000 +0300 X+++ GNUmakefile 2009-10-15 16:10:11.000000000 +0400 X@@ -31,8 +31,8 @@ X BIN_EXT ?= .exe X else X DESTDIR ?= / X-UHUB_CONF_DIR ?= $(DESTDIR)/etc/uhub X-UHUB_PREFIX ?= $(DESTDIR)/usr/local X+UHUB_PREFIX ?= /usr/local X+UHUB_CONF_DIR ?= $(UHUB_PREFIX)/etc/uhub X CFLAGS += -I/usr/local/include X LDFLAGS += -L/usr/local/lib X BIN_EXT ?= END-of-/usr/ports/net-p2p/uhub/files/patch-GNUmakefile echo x - /usr/ports/net-p2p/uhub/files/uhub.sh.in sed 's/^X//' >/usr/ports/net-p2p/uhub/files/uhub.sh.in << 'END-of-/usr/ports/net-p2p/uhub/files/uhub.sh.in' X#!/bin/sh X# X# $FreeBSD: $ X# X# PROVIDE: uhub X# REQUIRE: DAEMON X# BEFORE: LOGIN X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf to enable uhub: X# X# uhub_enable (bool): Set it to "YES" to enable uhub X# Default is "NO". X# uhub_conf (path): Set full path to config file. X# Default is "%%PREFIX%%/etc/uhub/uhub.conf". X# X X. %%RC_SUBR%% X Xname="uhub" Xrcvar=`set_rcvar` X Xload_rc_config $name X X: ${uhub_enable="NO"} X: ${uhub_conf="%%PREFIX%%/etc/uhub/uhub.conf"} X Xcommand=%%PREFIX%%/bin/uhub Xcommand_conf="-fq -c ${uhub_conf}" Xcommand_flags=${uhub_flags} Xstart_cmd="${name}_start" Xstop_cmd="${name}_stop" X Xuhub_start() X{ X eval "${command} ${command_conf} ${command_flags}" X echo "Started ${name}." X} X Xuhub_stop() { X killall -9 ${name} X echo "Stopped ${name}." X} X Xrun_rc_command "$1" END-of-/usr/ports/net-p2p/uhub/files/uhub.sh.in echo x - /usr/ports/net-p2p/uhub/files/patch-uhub.conf sed 's/^X//' >/usr/ports/net-p2p/uhub/files/patch-uhub.conf << 'END-of-/usr/ports/net-p2p/uhub/files/patch-uhub.conf' X--- doc/uhub.conf.org 2009-10-15 17:23:48.000000000 +0400 X+++ doc/uhub.conf 2009-10-15 17:24:17.000000000 +0400 X@@ -29,14 +29,14 @@ X hub_enabled=1 X X # Access control list (user database) X-file_acl=/etc/uhub/users.conf X+file_acl=/usr/local/etc/uhub/users.conf X X # This file can contain a message of the day. A welcome X # message send to any client when connecting. X # If the file does not exist, is empty, or cannot be opened X # the motd will not be sent to the clients. X # Normally this message is sent to clients when connecting. X-file_motd=/etc/uhub/motd.txt X+file_motd=/usr/local/etc/uhub/motd.txt X X # Configure status message as sent to clients in different circumstances. X msg_hub_full = Hub is full END-of-/usr/ports/net-p2p/uhub/files/patch-uhub.conf echo x - /usr/ports/net-p2p/uhub/pkg-descr sed 's/^X//' >/usr/ports/net-p2p/uhub/pkg-descr << 'END-of-/usr/ports/net-p2p/uhub/pkg-descr' XuHub 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. X XWWW: http://www.extatic.org/uhub/ END-of-/usr/ports/net-p2p/uhub/pkg-descr echo x - /usr/ports/net-p2p/uhub/distinfo sed 's/^X//' >/usr/ports/net-p2p/uhub/distinfo << 'END-of-/usr/ports/net-p2p/uhub/distinfo' XMD5 (uhub-0.2.8-src.tar.gz) = 45d35d9757bc0a84297dec51520f725b XSHA256 (uhub-0.2.8-src.tar.gz) = 4f205653a2c08b1a3e8dbd5ccee512c42d4b86825f2ee7cd21c53b5283256d2d XSIZE (uhub-0.2.8-src.tar.gz) = 121873 END-of-/usr/ports/net-p2p/uhub/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: