--- btpd-0.15.orig/debian/btpd.postrm +++ btpd-0.15/debian/btpd.postrm @@ -0,0 +1,48 @@ +#!/bin/sh +# +# Postrm script for btpd +# (c) Copyright 2007 Cesare Falco +# +# Licensed under the BSD license. +# See the file /usr/share/common-licenses/BSD +# + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + # Delete btpd user and all related files + echo "Purging btpd user and files, this may take a while..." + deluser --quiet --remove-all-files --system btpd + echo "Done!" + + # FIXME: deluser does *not* delete the home directory + # maybe because the /var/lib/btpd/sock is a non-regular file? + rm -rf /var/lib/btpd + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|remove|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- btpd-0.15.orig/debian/watch +++ btpd-0.15/debian/watch @@ -0,0 +1,5 @@ +# +# IMPORTANT WARNING: be sure to invoke uscan with option --user-agent "Debian uscan" +# +version=3 +http://www.murmeldjur.se/btpd/btpd-(\d+?)\.(\d+?)\.tar\.gz --- btpd-0.15.orig/debian/btpd.init +++ btpd-0.15/debian/btpd.init @@ -0,0 +1,65 @@ +#!/bin/sh +# +# start/stop the btpd daemon. +# (c) Copyright 2007 Cesare Falco +# +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . +# + +set -e + +### BEGIN INIT INFO +# Provides: btpd +# Required-Start: $time $syslog +# Required-Stop: $time $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Bittorrent Protocol Daemon +# Description: btpd is a bittorrent client consisting of a daemon +# capable of running several torrents simultaneously +# using one single tcp port. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/btpd +USER=btpd +NAME=btpd +DAEMON_OPTS= + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +# include btpd defaults +if [ -f /etc/default/btpd ] ; then + . /etc/default/btpd +fi + +case "$1" in + start) + log_begin_msg "Starting the Bittorrent Protocol Daemon..." + start-stop-daemon --start --quiet --oknodo --name $NAME --user $USER \ + --chuid $USER --exec $DAEMON -- $DAEMON_OPTS + log_end_msg $? + ;; + + stop) + log_begin_msg "Stopping the Bittorrent Protocol Daemon..." + start-stop-daemon --stop --quiet --oknodo --name $NAME --user $USER --retry 5 + log_end_msg $? + ;; + + # btpd has no configuration files, however force-reload is mandatory + restart|force-reload) + $0 stop + $0 start + ;; + + *) + log_success_msg "Usage: /etc/init.d/btpd {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 --- btpd-0.15.orig/debian/changelog +++ btpd-0.15/debian/changelog @@ -0,0 +1,21 @@ +btpd (0.15-0ubuntu1) karmic; urgency=low + + [ Cesare Falco ] + * New upstream release - Closes (LP: #335440) + * Added debian/watch + * Added debian/bptd.logrotate + * debian/rules: added call to dh_installlogrotate + * patch 01_directory_names_fix.dpatch refreshed + + [ Fabrice Coutadeur ] + * debian/README.source: added as this package uses dpatch as patch system + * debian/control: bump standard version to 3.8.3 + + -- Cesare Falco Fri, 23 Oct 2009 18:55:23 +0000 + +btpd (0.13-0ubuntu1) hardy; urgency=low + + * Initial release - Closes (LP: #158447) + + -- Cesare Falco Tue, 13 Nov 2007 21:43:48 +0100 + --- btpd-0.15.orig/debian/btpd.manpages +++ btpd-0.15/debian/btpd.manpages @@ -0,0 +1,3 @@ +btpd.1 +btcli.1 +btinfo.1 --- btpd-0.15.orig/debian/btpd.docs +++ btpd-0.15/debian/btpd.docs @@ -0,0 +1 @@ +README --- btpd-0.15.orig/debian/README.source +++ btpd-0.15/debian/README.source @@ -0,0 +1,8 @@ +This package uses dpatch to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. Please see: + +/usr/share/doc/dpatch/README.source.gz + +for more information on how to apply the patches, modify patches, or +remove a patch. --- btpd-0.15.orig/debian/copyright +++ btpd-0.15/debian/copyright @@ -0,0 +1,141 @@ +This package was debianized by Cesare Falco on +Tue, 13 Nov 2007 21:43:48 +0100. + +It was downloaded from http://www.murmeldjur.se/btpd/ + +Upstream Authors: + Main code and everything not explicity listed below + Richard Nyberg . + + Man pages + Ludvig Omholt . + + libevent/buffer.c + libevent/defpoll.c + libevent/epoll.c + libevent/epoll_sub.c + libevent/event.c + libevent/event.h + libevent/event-internal.h + libevent/evsignal.h + libevent/kqueue.c + libevent/log.h + libevent/poll.c + libevent/select.c + libevent/signal.c + libevent/compat/sys/tree.h + Niels Provos + + libevent/evdns.c + Adam Langley + + libevent/evdns.h + Adam Langley + Nick Mathewson + + libevent/evport.c + David Pacheco + + libevent/install-sh + install-sh + X Consortium + + libevent/log.c + Nick Mathewson + Dug Song + + libevent/rtsig.c + Mathew Mills + The Regents of the University of California + + libevent/compat/sys/queue.h + libevent/compat/sys/_time.h + misc/queue.h + The Regents of the University of California + + libevent/WIN32-Code/win32.c + Niels Provos + Michael A. Davis + + +Copyright: + Copyright is owned by respective authors, except: + + libevent/evdns.c + libevent/evdns.h + Adam Langley put its original code in the Public Domain, + Nick Mathewson modification are also in the Public Domain + + libevent/evport.c + Copyright (c) 2006 Sun Microsystems. All rights reserved. + + +License: + Except where specifically noted (see below), the btpd software is + distributed under the following terms: + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + + + libevent/evdns.h (including Public Domain code) + In addition to the core licence stated above, the following applies: + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + + + libevent/compat/sys/queue.h + libevent/compat/sys/_time.h + misc/queue.h + In addition to the core licence stated above, the following applies: + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + + libevent/install-sh + install-sh + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN + AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- + TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + Except as contained in this notice, the name of the X Consortium shall not + be used in advertising or otherwise to promote the sale, use or other deal- + ings in this Software without prior written authorization from the X Consor- + tium. + + FSF changes to this file are in the public domain. + + +The Debian packaging is (c) 2007, Cesare Falco and +is licensed under the BSD license, see `/usr/share/common-licenses/BSD'. --- btpd-0.15.orig/debian/compat +++ btpd-0.15/debian/compat @@ -0,0 +1 @@ +5 --- btpd-0.15.orig/debian/README.Debian +++ btpd-0.15/debian/README.Debian @@ -0,0 +1,22 @@ +btpd for Debian +--------------- + +The Bittorrent Protocol Daemon is started as a system wide daemon, running +with its own system user. Regular users may control it through the btcli +interface. + +The home directory for the daemon is /var/lib/btpd, torrents are downloaded +in /var/lib/btpd/files/. is specified +with the mandatory -d switch of the btcli add command. + +Finally, each message from btpd is logged in /var/log/btpd.log. + +Not properly a recommendation, but consider the -n switch when you add a +torrent. This specifies the list command name. When not given, the name of +the .torrent is assumed. This may be annoying with file names containing +non-ASCII characters, which will break list formatting. + +Have fun with this great piece of software! + + + -- Cesare Falco Tue, 13 Nov 2007 21:43:48 +0100 --- btpd-0.15.orig/debian/rules +++ btpd-0.15/debian/rules @@ -0,0 +1,104 @@ +#!/usr/bin/make -f +# +# Building rules for btpd source package +# (c) Copyright 2007 Cesare Falco +# +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +URL=http://www.murmeldjur.se/btpd/ +MD5SUM=b64e2e8b9936e99685bc1e7246655561 +VER=0.15 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + + +config.status: patch + dh_testdir +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp +build-stamp: config.status + dh_testdir + $(MAKE) + docbook-to-man debian/contrib/btpd.sgml > btpd.1 + docbook-to-man debian/contrib/btcli.sgml > btcli.1 + docbook-to-man debian/contrib/btinfo.sgml > btinfo.1 + touch $@ + + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + rm -f btpd.1 btcli.1 btinfo.1 + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + dh_clean + + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +patch: patch-stamp +patch-stamp: + dpatch apply-all + touch $@ + + +unpatch: + dpatch deapply-all + rm -rf patch-stamp + + +get-orig-source: btpd-$(VER).tar.gz + echo "$(MD5SUM) *btpd-$(VER).tar.gz" | md5sum -c - + mv btpd-$(VER).tar.gz btpd_$(VER).orig.tar.gz + +btpd-$(VER).tar.gz: + wget -c -P . $(URL)btpd-$(VER).tar.gz + + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs --keep CHANGES + dh_installdocs --exclude=COPYRIGHT + dh_install --sourcedir=debian/tmp + dh_installinit + dh_installlogrotate + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch get-orig-source --- btpd-0.15.orig/debian/btpd.preinst +++ btpd-0.15/debian/btpd.preinst @@ -0,0 +1,54 @@ +#!/bin/sh +# +# preinst script for btpd +# (c) Copyright 2007 Cesare Falco +# +# Licensed under the BSD license. +# See the file /usr/share/common-licenses/BSD +# + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + install|upgrade) + # Create btpd user + if ! getent passwd btpd >/dev/null; then + adduser --system --home /var/lib/btpd \ + --shell /bin/sh --disabled-password btpd + fi + + # Create torrent files dir + if ! [ -d /var/lib/btpd/files ]; then + mkdir -p /var/lib/btpd/files + fi + chmod 775 /var/lib/btpd/files + chown -h -R btpd:users /var/lib/btpd/files + + # Create log file and fix permissions + if ! [ -e /var/log/btpd ]; then + touch /var/log/btpd.log + fi + chmod 644 /var/log/btpd.log + chown btpd:nogroup /var/log/btpd.log + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- btpd-0.15.orig/debian/btpd.postinst +++ btpd-0.15/debian/btpd.postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# +# postinst script for btpd +# (c) Copyright 2007 Cesare Falco +# +# Licensed under the BSD license. +# See the file /usr/share/common-licenses/BSD +# + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + configure) + # Can't be done in debian/rules as we have to create btpd user first + chown btpd:nogroup /usr/bin/btcli + chmod u+s /usr/bin/btcli + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- btpd-0.15.orig/debian/btpd.install +++ btpd-0.15/debian/btpd.install @@ -0,0 +1 @@ +usr/bin/* --- btpd-0.15.orig/debian/btpd.default +++ btpd-0.15/debian/btpd.default @@ -0,0 +1,26 @@ +# Defaults for btpd initscript +# sourced by /etc/init.d/btpd +# installed at /etc/default/btpd by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# TCP port the daemon will listen to +PORT=6881 + +# Maximum bandwidth allowed for downloading +BWIN=50 + +# Maximum bandwidth allowed to uploading peers +BWOUT=10 + +# Maximum peers allowed +PEERS=20 + + + +####################################################################################################### +# *DON'T* edit this line, use single variables above instead # +DAEMON_OPTS="--bw-out $BWOUT --bw-in $BWIN --max-peers $PEERS --port $PORT --logfile /var/log/btpd.log" +####################################################################################################### --- btpd-0.15.orig/debian/control +++ btpd-0.15/debian/control @@ -0,0 +1,24 @@ +Source: btpd +Section: net +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Cesare Falco +Homepage: http://www.murmeldjur.se/btpd/ +Build-Depends: debhelper (>= 5), autotools-dev, docbook-to-man, libssl-dev, dpatch +Standards-Version: 3.8.3 + + +Package: btpd +Architecture: any +Depends: ${shlibs:Depends} +Pre-Depends: adduser +Description: BitTorrent Protocol Daemon + btpd is a daemon based bittorrent client. The daemon state can be read or + changed with appropriate commands. The daemon is capable of running several + torrents simultaneously and only uses one tcp port, it's fairly low on + resource usage and should be perfect for file distribution sites. + . + Efficient downloads and ease of use make this client a good choice for the + casual user as well. + + --- btpd-0.15.orig/debian/btpd.logrotate +++ btpd-0.15/debian/btpd.logrotate @@ -0,0 +1,8 @@ +/var/log/btpd.log { + rotate 10 + weekly + compress + missingok + notifempty +} + --- btpd-0.15.orig/debian/patches/00list +++ btpd-0.15/debian/patches/00list @@ -0,0 +1 @@ +01_directory_names_fix.dpatch --- btpd-0.15.orig/debian/patches/01_directory_names_fix.dpatch +++ btpd-0.15/debian/patches/01_directory_names_fix.dpatch @@ -0,0 +1,52 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_directory_names_fix.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Debianize home directory path + +@DPATCH@ +diff -urNad btpd-0.15~/cli/add.c btpd-0.15/cli/add.c +--- btpd-0.15~/cli/add.c 2009-01-12 23:43:35.000000000 +0100 ++++ btpd-0.15/cli/add.c 2009-07-07 23:47:09.000000000 +0200 +@@ -73,7 +73,7 @@ + char *mi; + size_t mi_size; + enum ipc_err code; +- char dpath[PATH_MAX]; ++ char dpath[PATH_MAX] = "/var/lib/btpd/files/"; + struct iobuf iob; + + if ((mi = mi_load(argv[0], &mi_size)) == NULL) +@@ -89,8 +89,7 @@ + iobuf_write(&iob, td, tdlen); + } + iobuf_swrite(&iob, "\0"); +- if ((errno = make_abs_path(iob.buf, dpath)) != 0) +- diemsg("make_abs_path '%s' failed (%s).\n", dpath, strerror(errno)); ++ strcat(dpath, dir); + code = btpd_add(ipc, mi, mi_size, dpath, name); + if (code == 0 && start) { + struct ipc_torrent tspec; +diff -urNad btpd-0.15~/misc/subr.c btpd-0.15/misc/subr.c +--- btpd-0.15~/misc/subr.c 2009-01-12 23:43:35.000000000 +0100 ++++ btpd-0.15/misc/subr.c 2009-07-07 23:48:36.000000000 +0200 +@@ -327,18 +327,7 @@ + char * + find_btpd_dir(void) + { +- char *res = getenv("BTPD_HOME"); +- if (res != NULL) +- return strdup(res); +- char *home = getenv("HOME"); +- if (home == NULL) { +- struct passwd *pwent = getpwuid(getuid()); +- endpwent(); +- if (pwent != NULL) +- home = pwent->pw_dir; +- } +- if (home != NULL) +- asprintf(&res, "%s/.btpd", home); ++ char *res = "/var/lib/btpd"; + return res; + } + --- btpd-0.15.orig/debian/contrib/btpd.sgml +++ btpd-0.15/debian/contrib/btpd.sgml @@ -0,0 +1,203 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Ludvig"> + Omholt"> + + July 10, 2005"> + + 1"> + ludde@ludde.net"> + + BTPD"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2005 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + bittorrent protocol daemon + + + + &dhpackage; + + + + + + + DESCRIPTION + + This manual page briefly documents the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + &dhpackage; is the BitTorrent Protocol Daemon. + + + + OPTIONS + + + + + + + Limit incoming BitTorrent traffic to n kB/s. + Default is 0 which means unlimited. + + + + + + + Limit outgoing BitTorrent traffic to n kB/s. + Default is 0 which means unlimited. + + + + + + + The directory in which to run btpd. Default is '$HOME/.btpd'. + + + + + + + Where to put the logfile. By default it's put in the btpd dir. + + + + + + + Limit the amount of peers to n. + + + + + + + Controls the number of simultaneous uploads. + The possible values are: + n < -1 : Choose n >= 2 based on --bw-out (default). + n = -1 : Upload to every interested peer. + n = 0 : Dont't upload to anyone. + n > 0 : Upload to at most n peers simultaneously. + + + + + + + Keep the btpd process in the foregorund and log to std{out,err}. + This options is intended for debugging purposes. + + + + + + + + Listen on port n. Default is 6881. + + + + + + + Preallocate disk space in chunks of n kB. Default is 2048. + Note that n will be rounded up to the closest multiple of the + torrent piece size. If n is zero no preallocation will be done. + + + + + + + Show summary of options. + + + + + + SEE ALSO + + btcli (1), btinfo (1). + + + + AUTHOR + + This manual page was written by &dhusername; <&dhemail;> for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the same terms as the btpd software itself. + + +
+ + + + --- btpd-0.15.orig/debian/contrib/btinfo.sgml +++ btpd-0.15/debian/contrib/btinfo.sgml @@ -0,0 +1,136 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Ludvig"> + Omholt"> + + July 10, 2005"> + + 1"> + ludde@ludde.net"> + + BTINFO"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2005 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + show info about torrent files + + + + &dhpackage; + + file + + + + + DESCRIPTION + + This manual page briefly documents the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + &dhpackage; extracts and shows info about torrent files. + + + + OPTIONS + + + + + + + The torrent file[s] to examine. + + + + + + + Show summary of options. + + + + + + SEE ALSO + + btpd (1), btcli (1). + + + + AUTHOR + + This manual page was written by &dhusername; <&dhemail;> for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the same terms as the btpd software itself. + + +
+ + + + --- btpd-0.15.orig/debian/contrib/btcli.sgml +++ btpd-0.15/debian/contrib/btcli.sgml @@ -0,0 +1,185 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Ludvig"> + Omholt"> + + July 10, 2005"> + + 1"> + ludde@ludde.net"> + + BTCLI"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2005 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + btpd command line interface + + + + &dhpackage; + + command + options + file + + + + + DESCRIPTION + + This manual page briefly documents the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + &dhpackage; is a command line interface to the btpd (1) bittorrent client. + + + + COMMANDS + + + + add + + + Add the given torrents to btpd. + + + + del + + + Remove the given torrents from btpd. + + + + list + + + List active torrents. + + + + kill + + + Tell btpd to exit. + + + + stat [] [] [] + + Show stats for either all active or the given torrents. + + + + + + + Show per torrent stats in addition to the totals. + + + + + + + Repeat every n seconds. + + + + + + COMMON OPTIONS + + + + + + + Show summary of options. + + + + + + SEE ALSO + + btpd (1), btinfo (1). + + + + AUTHOR + + This manual page was written by &dhusername; <&dhemail;> for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the same terms as the btpd software itself. + + +
+ + + +