misc/139670: New port: net-p2p/uhub uHub is a high performance peer-to-peer hub for the ADC network

Dmitry Yashin yashin.dm at gmail.com
Fri Oct 16 06:20:01 UTC 2009


>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 at 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 <yashin.dm at gmail.com>
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 at 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 <bsd.port.mk>
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:


More information about the freebsd-bugs mailing list