Source: ctorrent
Version: 1.3.4.dnh3.3.2-5
Severity: wishlist
Tags: patch
Dear Maintainers,
upstream of the package is stalled, previous maintainer doesn't respond.
During March-April there was a conflict on lists.d.o between former and new
maintainers "who hijacked my package" and i've a doubt about an uploading on
mentors.d.o and an appealing "need a sponsor for MY package"..
It's implementation of ability Ctorrent client to work with a tracker through
a proxy-server. Packages successfully builded on amd64/i386 archs.
To test it here is a simple guideline:
$ apt-get source ctorrent
$ cd ctorrent-1.3.4.dnh3.3.2
$ patch -p1 < ../ctorrent.1.patch
$ quilt import ../http-proxy-v2.diff
$ quilt push
$ dpkg-buildpackage --no-sign
I'm not sure about a further improvements from me or qualifying support the
package.
If the way isn't appropriate to QA team, please give me an advice what can
be better: ITA or opened Bug?
-- System Information:
Debian Release: 9.4
APT prefers stable
APT policy: (700, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8),
LANGUAGE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Description: ENVIRONMENT section being filled, DESCRIPTION section being moved up, made a minor text formatting
Author: Konstantin Suchkov
diff -Naurd ctorrent-1.3.4.dnh3.3.2~/debian/ctorrent.1 ctorrent-1.3.4.dnh3.3.2/debian/ctorrent.1
--- ctorrent-1.3.4.dnh3.3.2~/debian/ctorrent.1 2018-05-21 11:33:34.398587820 +0300
+++ ctorrent-1.3.4.dnh3.3.2/debian/ctorrent.1 2018-05-21 11:39:48.912831568 +0300
@@ -134,8 +134,12 @@
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 1
-\& ctorrent \- [options] *.torrent
+ctorrent [OPTIONS] *.torrent
.Ve
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+CTorrent is a BitTorrent Client program written in C/\*(C+. Fast and
+small are CTorrent's two strengths.
.SH "OPTIONS"
.IX Header "OPTIONS"
.IP "\fB\-a\fR" 4
@@ -209,19 +213,20 @@
.IP "\fB\-z SLICE-SIZE\fR" 4
.IX Item "-z SLICE-SIZE"
Download slice/block size, unit \s-1KB\s0 (default 16, max 128)
-.SH "DESCRIPTION"
-.IX Header "DESCRIPTION"
-CTorrent is a BitTorrent Client program written in C/\*(C+. Fast and
-small are CTorrent's two strengths.
-.PP
-\&\s-1EXAMPLES\s0
-.PP
-.Vb 1
-\&ctorrent \-s save.iso \-e 12 \-C 32 \-p 6881 iso.torrent
-.Ve
+.SH "EXAMPLES"
+.IX Header "EXAMPLES"
+ctorrent \-s save.iso \-e 12 \-C 32 \-p 6881 iso.torrent
+
+http_proxy=proxy1.example.com ctorrent John_Smith.torrent
.SH "ENVIRONMENT"
.IX Header "ENVIRONMENT"
-None.
+.IP "\fB\/http_proxy\fR" 4
+.IX Item "http_proxy"
+Use FQDN or IP address of a proxy server to redirect the client's
+queries. By default proxy server's port is 3128. Otherwise
+explicitly denote a port number after a colon.
+( example: http_proxy=proxy2.example.com:12345 ).
+Note: It isn't implemented for CTCS.
.SH "FILES"
.IX Header "FILES"
None.
Description: no bug being fixed, only new feature being intruduced
The patch implements possibility for CTorrent client to achive a tracker
over a circumvent. HTTP_PROXY environment variable provides the ability.
Hetherto the client doesn't use the feature.
.
ctorrent (1.3.4.dnh3.3.2-5) unstable; urgency=low
.
* Orphaned package.
Author: Konstantin Suchkov
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: ,
Bug:
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded:
Reviewed-By:
Last-Update: 2018-05-21
Index: ctorrent-1.3.4.dnh3.3.2/btgetenv.cpp
===
--- /dev/null
+++ ctorrent-1.3.4.dnh3.3.2/btgetenv.cpp
@@ -0,0 +1,30 @@
+#include
+#include
+#include "btgetenv.h"
+
+int Http_proxy_analyse(const char *url,char *host,int *port)
+{
+ if (url == NULL) return -1;
+
+ const char *p;
+ int r;
+ *port = 3128; /* default proxy port 3128 */
+ p = url;
+ /* host */
+ for(; *p && (isalnum(*p) || *p == '.' || *p == '-'); p++, host++)
+*host = *p;
+ *host = '\0';
+
+ if( *p == ':' ){
+/* port */
+p++;
+for( r = 0; p[r] >= '0' && p[r] <= '9' && r < 6; r++) ;
+
+if( !r ) return -1;
+*port = atoi(p);
+if(*port > 65536) return -1;
+p += r;
+ }
+ return 0;
+}
+
Index: ctorrent-1.3.4.dnh3.3.2/btgetenv.h
===
--- /dev/null
+++ ctorrent-1.3.4.dnh3.3.2/btgetenv.h
@@ -0,0 +1,6 @@
+#ifndef BTGETENV_H
+#define BTGETENV_H
+
+int Http_proxy_analyse(const char *,char *,int *);
+
+#endif
Index: ctorrent-1.3.4.dnh3.3.2/tracker.cpp
===
--- ctorrent-1.3.4.dnh3.3.2.orig/tracker.cpp
+++