debian/0000755000000000000000000000000011566272703007177 5ustar debian/btpd.preinst0000644000000000000000000000243211426342174011532 0ustar #!/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 debian/changelog0000644000000000000000000000324011566272703011050 0ustar btpd (0.16-0ubuntu2) oneiric; urgency=low * No change rebuild for libssl1.0.0 transition. -- Angel Abad Sun, 22 May 2011 22:43:59 +0200 btpd (0.16-0ubuntu1) maverick; urgency=low * New upstream release (LP: #613652, #619691) * debian/btpd.init: - Added $remote_fs $network in LSB fields - Fixed stopping runlevel list * debian/control: - Bump Standards-version to 3.9.0 - Removed obsolete deps: dpatch, docbook-to-man - Wrapped and sorted Build-Depends et al. * debian/copyright: converted to DEP-5 format * debian/rules: - Restructured to take advantage of dh - Updated URL in get-orig-source * debian/source/format: moved to 3.0 (quilt) * debian/watch: Updated URL * debian/contrib/: gone, manpages provided upstream * debian/patches/: - homedir_name: renamed from 01_directory_names_fix; converted to quilt - hyphen_as_minus_sign: new, fix escaping minus signs in manpages -- Cesare Falco Wed, 04 Aug 2010 23:21:20 +0200 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 debian/watch0000644000000000000000000000011111426520267010215 0ustar version=3 http://githubredir.debian.net/github/btpd/btpd/v(.*)\.tar\.gz debian/btpd.init0000644000000000000000000000304111426534432011006 0ustar #!/bin/sh # # start/stop the btpd daemon. # (c) Copyright 2007 Cesare Falco # # Licensed under the BSD License. # See the file /usr/share/common-licenses/BSD # set -e ### BEGIN INIT INFO # Provides: btpd # Required-Start: $time $syslog $remote_fs $network # Required-Stop: $time $syslog $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 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 debian/README.Debian0000644000000000000000000000154311426342174011236 0ustar 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 debian/rules0000755000000000000000000000133211426546734010261 0ustar #!/usr/bin/make -f # # Building rules for btpd source package # (c) Copyright 2007 Cesare Falco # # Licensed under the BSD Licence. # See the file /usr/share/common-licenses/BSD DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) VER=0.16 MD5SUM=fe042aae8d7c515ecd855673d1c2b33e %: dh $@ override_dh_auto_install: dh_auto_install --destdir=debian/tmp override_dh_installchangelogs: dh_installchangelogs --keep CHANGES override_dh_installdocs: dh_installdocs --exclude=COPYRIGHT 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 . http://github.com/downloads/btpd/btpd/btpd-$(VER).tar.gz debian/copyright0000644000000000000000000001770711432757762011153 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: btpd Source: http://wiki.github.com/btpd/btpd/ Files: * Copyright: Richard Nyberg License: btpd Files: install-sh, libevent/install-sh Copyright: X Consortium License: 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. . Files: debian/* Copyright: Cesare Falco License: 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. 3. Neither the names of the authors nor the names of the contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHORS 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 AUTHORS 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. . Files: 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 Copyright: Niels Provos License: btpd Files: libevent/evdns.c, libevent/evdns.h Copyright: Public Domain License: 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. . 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . 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. . Files: libevent/evport.c Copyright: David Pacheco, Sun Microsystems License: btpd Files: libevent/log.c Copyright: Nick Mathewson, Dug Song License: btpd Files: libevent/rtsig.c Copyright: Mathew Mills, The Regents of the University of California License: btpd Files: libevent/compat/sys/queue.h, libevent/compat/sys/_time.h, misc/queue.h Copyright: The Regents of the University of California License: 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. . 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. . 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. . Files: libevent/WIN32-Code/win32.c Copyright: Niels Provos, Michael A. Davis License: btpd License: btpd 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. . debian/source/0000755000000000000000000000000011426360027010467 5ustar debian/source/format0000644000000000000000000000001411426342454011701 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011426567572010634 5ustar debian/patches/hyphen_as_minus_sign.patch0000644000000000000000000000554311426567572016075 0ustar Subject: Fix minus sign escaping in manpages Author: Cesare Falco Index: btpd-0.16/doc/btcli.1 =================================================================== --- btpd-0.16.orig/doc/btcli.1 2010-08-05 18:28:59.000000000 +0200 +++ btpd-0.16/doc/btcli.1 2010-08-05 18:32:56.000000000 +0200 @@ -62,45 +62,45 @@ list of the characters that can be used: .RS 8 .PP -\fB%n\fR - torrent name +\fB%n\fR \- torrent name .br -\fB%#\fR - torrent number +\fB%#\fR \- torrent number .br -\fB%h\fR - torrent hash +\fB%h\fR \- torrent hash .br -\fB%d\fR - download directory +\fB%d\fR \- download directory .br -\fB%t\fR - state +\fB%t\fR \- state .br -\fB%P\fR - peer count +\fB%P\fR \- peer count .PP -\fB%^\fR - upload rate +\fB%^\fR \- upload rate .br -\fB%v\fR - download rate +\fB%v\fR \- download rate .PP -\fB%D\fR - downloaded bytes +\fB%D\fR \- downloaded bytes .br -\fB%U\fR - uploaded bytes +\fB%U\fR \- uploaded bytes .br -\fB%g\fR - bytes got +\fB%g\fR \- bytes got .br -\fB%u\fR - bytes uploaded +\fB%u\fR \- bytes uploaded .br -\fB%s\fR - total size, (formatted: prints K, M, G) +\fB%s\fR \- total size, (formatted: prints K, M, G) .br -\fB%S\fR - total size, in bytes +\fB%S\fR \- total size, in bytes .PP -\fB%A\fR - available pieces +\fB%A\fR \- available pieces .br -\fB%T\fR - total pieces +\fB%T\fR \- total pieces .br -\fB%H\fR - have pieces +\fB%H\fR \- have pieces .PP -\fB%p\fR - percent have (formatted) +\fB%p\fR \- percent have (formatted) .br -\fB%r\fR - ratio +\fB%r\fR \- ratio .PP -\fB%%\fR - a percent symbol: '%' +\fB%%\fR \- a percent symbol: '%' .RE .SH "STAT OPTIONS" .TP @@ -108,11 +108,11 @@ Display individual lines for each torrent. .TP \fB\-n\fR -Display the name of each torrent. Implies '-i'. +Display the name of each torrent. Implies '\-i'. .SH "START OPTIONS" .TP \fB\-a\fR -Activate all non-active torrents. +Activate all non\-active torrents. .SH "STOP OPTIONS" .TP \fB\-a\fR Index: btpd-0.16/doc/btinfo.1 =================================================================== --- btpd-0.16.orig/doc/btinfo.1 2010-08-05 18:33:03.000000000 +0200 +++ btpd-0.16/doc/btinfo.1 2010-08-05 18:33:40.000000000 +0200 @@ -24,7 +24,7 @@ Total size: 709871616 Number of files: 1 Files: -osol-0906-x86.iso (709871616) +osol\-0906\-x86.iso (709871616) .fi .SH "TROUBLESHOOTING" If \fBbtpd\fR has shut down for some unknown reason, check the logfile for possible clues. Index: btpd-0.16/doc/btpd.1 =================================================================== --- btpd-0.16.orig/doc/btpd.1 2010-08-05 18:34:31.000000000 +0200 +++ btpd-0.16/doc/btpd.1 2010-08-05 18:36:04.000000000 +0200 @@ -63,7 +63,7 @@ .B \-\-logfile \fIfile\fR Where to put the logfile. By default it's put in the btpd dir. .TP -.B \-\-max-peers \fIn\fR +.B \-\-max\-peers \fIn\fR Limit the amount of peers to \fIn\fR. .TP .B \-\-max\-uploads n debian/patches/series0000644000000000000000000000005611426564336012045 0ustar homedir_name.patch hyphen_as_minus_sign.patch debian/patches/homedir_name.patch0000644000000000000000000000324611426564563014306 0ustar Subject: Set daemon home directory Author: Cesare Falco Index: btpd-0.16/cli/add.c =================================================================== --- btpd-0.16.orig/cli/add.c 2010-08-04 23:09:35.000000000 +0200 +++ btpd-0.16/cli/add.c 2010-08-04 23:13:16.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; for (nfile = 0; nfile < argc; nfile++) { @@ -91,11 +91,7 @@ iobuf_write(&iob, td, tdlen); } iobuf_swrite(&iob, "\0"); - if ((errno = make_abs_path(iob.buf, dpath)) != 0) { - fprintf(stderr, "make_abs_path '%s' failed (%s).\n", dpath, strerror(errno)); - iobuf_free(&iob); - continue; - } + strcat(dpath, dir); code = btpd_add(ipc, mi, mi_size, dpath, name); if ((code == IPC_OK) && start) { struct ipc_torrent tspec; Index: btpd-0.16/misc/subr.c =================================================================== --- btpd-0.16.orig/misc/subr.c 2010-08-04 23:13:36.000000000 +0200 +++ btpd-0.16/misc/subr.c 2010-08-04 23:14:55.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; } debian/control0000644000000000000000000000152611426575677010621 0ustar Source: btpd Section: net Priority: optional Maintainer: Ubuntu MOTU Developers XSBC-Original-Maintainer: Cesare Falco Homepage: http://wiki.github.com/btpd/btpd/ Build-Depends: autotools-dev, debhelper (>= 7.0.50~), libssl-dev Standards-Version: 3.9.0 Package: btpd Architecture: any Depends: ${misc: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. debian/compat0000644000000000000000000000000211426342574010374 0ustar 7 debian/btpd.logrotate0000644000000000000000000000012011426342174012036 0ustar /var/log/btpd.log { rotate 10 weekly compress missingok notifempty } debian/btpd.postrm0000644000000000000000000000240611426342174011373 0ustar #!/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 debian/btpd.manpages0000644000000000000000000000004411426367115011640 0ustar doc/btpd.1 doc/btcli.1 doc/btinfo.1 debian/btpd.postinst0000644000000000000000000000210611426342174011727 0ustar #!/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 debian/btpd.default0000644000000000000000000000140111426342174011465 0ustar # 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" ####################################################################################################### debian/btpd.docs0000644000000000000000000000000711426342174010772 0ustar README debian/btpd.install0000644000000000000000000000001211426355704011507 0ustar usr/bin/*