debian/0000755000000000000000000000000012143746410007170 5ustar debian/uhub.dirs0000644000000000000000000000010512143746406011017 0ustar etc/default etc/init.d etc/logrotate.d etc/uhub usr/bin var/log/uhub debian/uhub.docs0000644000000000000000000000007012143746406011007 0ustar debian/doc/config_example.txt debian/doc/getstarted.txt debian/changelog0000644000000000000000000000604112143746406011050 0ustar uhub (0.4.1-3) unstable; urgency=low * Move package to unstable: no changes required. -- Boris Pek Sun, 12 May 2013 20:09:49 +0300 uhub (0.4.1-2) experimental; urgency=low * Add file debian/patches/fix-build-on-hurd-i386: fix build in Debian GNU/Hurd. -- Boris Pek Tue, 20 Nov 2012 22:44:22 +0200 uhub (0.4.1-1) experimental; urgency=low * Update to stable release 0.4.1. * Delete debian/patches/*: accepted in upstream. * Update debian/rules and debian/watch: fix after recent changes in GitHub. -- Boris Pek Wed, 07 Nov 2012 23:42:52 +0200 uhub (0.4.0+git20121013-55-g7fae42a-2) experimental; urgency=low * Add debian/patches/fix-build-on-kfreebsd: fix build in Debian GNU/kFreeBSD. -- Boris Pek Sun, 14 Oct 2012 02:20:16 +0300 uhub (0.4.0+git20121013-55-g7fae42a-1) experimental; urgency=low * Update to Git snapshot. * Update debian/control: add build dependency from cmake. * Update debian/rules: upstream uses CMake now instead of manually written Makefile. * Update debian/uhub.lintian-overrides: false positives for lintian tag hardening-no-fortify-functions. * Bump debhelper version to 8 (was 7.0.50~); update debian/compat. -- Boris Pek Sat, 13 Oct 2012 23:14:27 +0300 uhub (0.4.0-1) experimental; urgency=low * Update to stable release 0.4.0. * Delete debian/doc/uhub-passwd.1: now available in upstream. * Update debian/uhub.manpages: see above. * Update debian/rules: - simplify rules - enable verbose output during build - fix get-orig-source section in according with Debian Policy ยง4.9 -- Boris Pek Wed, 30 May 2012 23:42:48 +0300 uhub (0.4.0~git20120423-9efe4bc-1) experimental; urgency=low * Update to GIT snapshot. * Bumped Standards-Version to 3.9.3. * Changed tarball compression format: LZMA2 is used now. * debian/rules was updated: - now dh is used instead of direct dh_* commands - now uscan is used for checking current upstream version (dpkg-parsechangelog was used earlier) - USE_SSL configuration option is enabled - used hardening flags in compiler options * debian/doc/uhub.1, debian/doc/uhub.conf and debian/doc/users.conf were removed: now they are available in upstream. * debian/doc/uhub-passwd.1 was created: there is no such man page in upstream yet. * debian/uhub.manpages was updated (see above). * debian/control was updated: added dependence from packages fakeroot, libsqlite3-dev and libssl-dev * debian/copyright was updated: - URL in Format field was updated - years were updated - OpenSSL exception was officially received (see file COPYING.OpenSSL in sources) * Upstream possibly fixed build for hurd-i386, kfreebsd-i386, kfreebsd-amd64, s390 and s390x. -- Boris Pek Mon, 23 Apr 2012 23:53:57 +0300 uhub (0.3.2-1) unstable; urgency=low * Initial release (closes: #643290). -- Boris Pek Sat, 08 Oct 2011 18:03:02 +0300 debian/doc/0000755000000000000000000000000012143746406007742 5ustar debian/doc/getstarted.txt0000644000000000000000000000303712143746406012654 0ustar Getting started guide --------------------- (This document is maintained at http://www.uhub.org/getstarted.php) Start the hub in the foreground for the first time. Shut it down, by pressing CTRL+C. % uhub Thu, 05 Feb 2009 00:48:04 +0000 INFO: Starting server, listening on :::1511... Connect to the hub using an ADC client, use the address adc://localhost:1511, or replace localhost with the correct hostname or IP address. NOTE: It is important to use the "adc://" prefix, and the port number when using DC++ and other ADC clients. If you modify the configuration files in /etc/uhub you will have to notify uhub by sending a HUP signal. % kill -HUP Or, for the lazy people % killall -HUP uhub In order to run uhub as a daemon, start it with the -f switch which will make it fork into the background. In addition, use the -l to specify a log file instead of stdout. One can also specify a specific user and/or group, if one wishes to run uhub as a specific user using the -u and -g switches. Example: % uhub -f -l mylog.txt -u nobody -g nogroup If you are planning to more than 1024 users on hub, you must increase the max number of file descriptors allowed. This limit needs to be higher than the configured max_users in uhub.conf. In linux can add the following lines to /etc/security/limits.conf (allows for ~4000 users) * soft nofile 4096 * hard nofile 4096 Or, you can use (as root): % ulimit -n 4096 Other documentation can be found here: http://www.uhub.org/documentation.php debian/doc/config_example.txt0000644000000000000000000000171212143746406013464 0ustar Example configuration --------------------- (This document is maintained at http://www.uhub.org/config_example.php) Configuration files are normaly placed in /etc/uhub/ on most systems, and consist of 3 files: uhub.conf The main configuration file users.conf The user registration and access control file motd.txt A text file containing a "message of the day", which is a welcome message sent to all users connecting to the hub. Example: uhub.conf hub_name=My Public Hub hub_description=Yet another ADC hub server_port=12345 server_bind_addr=any max_users=150 file_acl=/etc/uhub/users.conf file_motd=/etc/uhub/motd.txt Example: users.conf # Deny users from certain IP-addresses deny_ip 10.21.44.7/24 deny_ip 10.22.43.15-10.22.43.19 # Administrator user_admin Administrator:password # Operators user_op Dj_Offset:password user_op TrustedUser:password # Registered users user_reg Friend:password # Banned users ban_nick Enemy ban_nick Spammer debian/copyright0000644000000000000000000000434412143746406011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Debianized-By: Boris Pek Debianized-Date: Tue, 27 Sep 2011 02:02:40 +0300 Upstream-Name: uHub Upstream-Contact: Jan Vidar Krey Source: https://github.com/janvidar/uhub/tags The orig.tar.xz is generated from upstream gzipped tarball, except it uses LZMA2 compression. See section get-orig-source in debian/rules file for details. . There is no constant tarball in GitHub: it is generated each time when it is asked. So we do not need to keep original tarball in Debian. Files: * debian/uhub.init Copyright: 2010-2012 Jan Vidar Krey License: GPL-3+ with OpenSSL exception This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. . In addition, as a special exception, author of this program gives permission to link the code of its release with the OpenSSL project's "OpenSSL" library (or with modified versions of it that use the same license as the "OpenSSL" library), and distribute the linked executables. You must obey the GNU General Public License in all respects for all of the code used other than "OpenSSL". If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. Files: debian/* Copyright: 2011-2012 Boris Pek License: GPL-2+ On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000172112143746406010601 0ustar Source: uhub Section: net Priority: optional Maintainer: Boris Pek Build-Depends: debhelper (>= 8), cmake (>= 2.8.3), fakeroot, libsqlite3-dev, libssl-dev Homepage: http://www.uhub.org/ Vcs-Git: git://github.com/tehnick/uhub-debian.git Vcs-Browser: https://github.com/tehnick/uhub-debian Standards-Version: 3.9.3 Package: uhub Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: High performance Advanced Direct Connect p2p hub 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. . uhub uses the Advanced Direct Connect protocol, and is compatible with DC++, LinuxDC++, EiskaltDC++ and other ADC clients. . Key features: - High performance and low memory usage - IPv4 and IPv6 support - Experimental SSL support - Advanced access control support - Easy configuration debian/uhub.manpages0000644000000000000000000000003512143746406011653 0ustar doc/uhub-passwd.1 doc/uhub.1 debian/source/0000755000000000000000000000000012143746406010475 5ustar debian/source/format0000644000000000000000000000001412143746406011703 0ustar 3.0 (quilt) debian/uhub.lintian-overrides0000644000000000000000000000042012143746406013514 0ustar # This is important security issue. These logs shouldn't be available # for reading by others. uhub: non-standard-dir-perm var/log/uhub/ 0750 != 0755 # False positives for lintian tag hardening-no-fortify-functions. uhub: hardening-no-fortify-functions usr/lib/uhub/*.so debian/uhub.default0000644000000000000000000000006312143746406011505 0ustar # uhub - high performance adc hub. UHUB_ENABLE=0 debian/watch0000644000000000000000000000015012143746406010222 0ustar version=3 https://github.com/janvidar/uhub/tags .*/janvidar/uhub/archive/(\d.+)\.tar\.gz debian uupdate debian/uhub.init0000644000000000000000000000357212143746406011034 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: uhub # Required-Start: $remote_fs $network # Required-Stop: $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin NAME=uhub DESC="ADC hub" DAEMON=/usr/bin/uhub PIDFILE=/var/run/uhub/uhub.pid LOGFILE=/var/log/uhub/uhub.log SCRIPTNAME=/etc/init.d/uhub DEFAULTFILE=/etc/default/uhub [ -r $DEFAULTFILE ] && . $DEFAULTFILE DAEMON_ENABLE="${UHUB_ENABLE}" DAEMON_OPTS="-l ${LOGFILE} -f -p ${PIDFILE}" test -x $DAEMON || exit 0 . /lib/lsb/init-functions ulimit -n 65536 mkdir -p /var/run/uhub/ set -e case "$1" in start) if [ "$DAEMON_ENABLE" != "true" ]; then log_daemon_msg "Disabled $DESC" $NAME log_end_msg 0 exit 0 fi log_daemon_msg "Starting $DESC" $NAME if ! start-stop-daemon --start --quiet --oknodo \ --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS then log_end_msg 1 else log_end_msg 0 fi ;; stop) log_daemon_msg "Stopping $DESC" $NAME if start-stop-daemon --quiet --stop --oknodo --retry 30 --oknodo \ --pidfile $PIDFILE --exec $DAEMON then rm -f $PIDFILE log_end_msg 0 else log_end_msg 1 fi ;; reload) log_daemon_msg "Reloading $DESC configuration" $NAME if start-stop-daemon --stop --signal 2 --oknodo --retry 30 --oknodo \ --quiet --pidfile $PIDFILE --exec $DAEMON then if start-stop-daemon --start --quiet \ --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS ; then log_end_msg 0 else log_end_msg 1 fi else log_end_msg 1 fi ;; restart|force-reload) $0 stop $0 start ;; status) status_of_proc $DAEMON $NAME && exit 0 || exit $? ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/rules0000755000000000000000000000167712143746406010270 0ustar #!/usr/bin/make -f PACKAGE = uhub DEVELOPER = janvidar PROJECT = uhub CUR_VER = $(shell uscan --dehs | sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p') CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed export CPPFLAGS CFLAGS LDFLAGS %: dh $@ --parallel override_dh_auto_clean: dh_auto_clean rm -f $(CURDIR)/src/version.h override_dh_auto_install: dh_auto_install chmod 0750 $(CURDIR)/debian/$(PACKAGE)/var/log/uhub # Do nothing: .PHONY: override_dh_fixperms get-orig-source: # preparation rm -rf "$(PACKAGE)-$(CUR_VER)" "$(CUR_VER)" # sources wget -4 "http://nodeload.github.com/$(DEVELOPER)/$(PROJECT)/tar.gz/$(CUR_VER)" rm -rf $(PROJECT)-* tar xzf "$(CUR_VER)" # tarball tar -cJf "$(PACKAGE)_$(CUR_VER).orig.tar.xz" "$(PACKAGE)-$(CUR_VER)" # cleaning rm -rf "$(PACKAGE)-$(CUR_VER)" "$(CUR_VER)" debian/patches/0000755000000000000000000000000012143746406010624 5ustar debian/patches/fix-build-on-hurd-i3860000644000000000000000000000045012143746406014472 0ustar Description: Fix build in Debian GNU/Hurd Author: Boris Pek Last-Update: 2012-11-20 --- a/src/system.h +++ b/src/system.h @@ -127,6 +127,10 @@ */ #endif +#ifdef __GNU__ +#define POSIX_THREAD_SUPPORT +#endif + #define USE_SELECT #ifndef WINSOCK #include debian/patches/series0000644000000000000000000000002712143746406012040 0ustar fix-build-on-hurd-i386 debian/compat0000644000000000000000000000000212143746406010373 0ustar 8 debian/uhub.logrotate0000644000000000000000000000016212143746406012061 0ustar /var/log/uhub/*.log { compress size 10M rotate 10 missingok notifempty }