summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-11-14 22:49:14 +0000
committerpav <pav@FreeBSD.org>2003-11-14 22:49:14 +0000
commit8fe78978b17d350c21c9cc2dc0cd2fbf915e5e75 (patch)
tree00cf0f1dd8a8bc6a050e26dc65a5e6f5d078e204 /net
parent8ff87646a0076a82896cf6beddf6f24303212548 (diff)
downloadFreeBSD-ports-8fe78978b17d350c21c9cc2dc0cd2fbf915e5e75.zip
FreeBSD-ports-8fe78978b17d350c21c9cc2dc0cd2fbf915e5e75.tar.gz
Add torrentsniff, a commandline tool to display information
about a torrent like file names and a number of seeds and peers. PR: ports/54272 (based on) Approved by: adamw (mentor)
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/torrentsniff/Makefile30
-rw-r--r--net/torrentsniff/distinfo1
-rw-r--r--net/torrentsniff/files/patch-BitTorrent-BDecode.pm10
-rw-r--r--net/torrentsniff/files/patch-torrentsniff11
-rw-r--r--net/torrentsniff/pkg-descr8
-rw-r--r--net/torrentsniff/pkg-plist3
7 files changed, 64 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 696d023..0a135d5 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -686,6 +686,7 @@
SUBDIR += tkabber
SUBDIR += tn3270
SUBDIR += tn5250
+ SUBDIR += torrentsniff
SUBDIR += tptest
SUBDIR += traceroute
SUBDIR += trafd
diff --git a/net/torrentsniff/Makefile b/net/torrentsniff/Makefile
new file mode 100644
index 0000000..59deef6
--- /dev/null
+++ b/net/torrentsniff/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: torrentsniff
+# Date created: 06 July 2003
+# Whom: Pav Lucistnik <pav@oook.cz>
+#
+# $FreeBSD$
+#
+
+PORTNAME= torrentsniff
+PORTVERSION= 0.3.0
+CATEGORIES= net perl5
+MASTER_SITES= http://www.highprogrammer.com/alan/perl/
+
+MAINTAINER= pav@FreeBSD.org
+COMMENT= Commandline tool for getting status of torrent
+
+RUN_DEPENDS= ${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
+ ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
+
+USE_PERL5= yes
+NO_BUILD= yes
+
+post-patch:
+ ${PERL} -pi -e "s#/usr/local/bin/perl#${PERL5}#" ${WRKSRC}/torrentsniff
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/torrentsniff ${LOCALBASE}/bin
+ ${MKDIR} ${SITE_PERL}/BitTorrent
+ ${INSTALL_DATA} ${WRKSRC}/BitTorrent/BDecode.pm ${SITE_PERL}/BitTorrent
+
+.include <bsd.port.mk>
diff --git a/net/torrentsniff/distinfo b/net/torrentsniff/distinfo
new file mode 100644
index 0000000..945ef24
--- /dev/null
+++ b/net/torrentsniff/distinfo
@@ -0,0 +1 @@
+MD5 (torrentsniff-0.3.0.tar.gz) = 3884cac276a990a95ea77738195508aa
diff --git a/net/torrentsniff/files/patch-BitTorrent-BDecode.pm b/net/torrentsniff/files/patch-BitTorrent-BDecode.pm
new file mode 100644
index 0000000..9caadb0
--- /dev/null
+++ b/net/torrentsniff/files/patch-BitTorrent-BDecode.pm
@@ -0,0 +1,10 @@
+--- BitTorrent/BDecode.pm.orig Sun Jun 15 05:47:46 2003
++++ BitTorrent/BDecode.pm Fri Nov 14 18:42:44 2003
+@@ -5,7 +5,6 @@
+ use Carp;
+ use base 'Exporter';
+ use strict;
+-our @EXPORT_OK = qw(bdecode);
+
+ sub bdecode {
+ my ($dataref) = @_;
diff --git a/net/torrentsniff/files/patch-torrentsniff b/net/torrentsniff/files/patch-torrentsniff
new file mode 100644
index 0000000..03062bb
--- /dev/null
+++ b/net/torrentsniff/files/patch-torrentsniff
@@ -0,0 +1,11 @@
+--- torrentsniff.orig Fri Nov 14 18:17:20 2003
++++ torrentsniff Fri Nov 14 18:27:24 2003
+@@ -115,7 +115,7 @@
+ my($file, $report_file_info, $report_tracker_info) = @_;
+ print "$file\n";
+ local *TOR;
+- if( not open(TOR, "<", $file) ) {
++ if( not open(TOR, "< $file") ) {
+ print STDERR "Unable to read $file because of $!\n";
+ return 0;
+ }
diff --git a/net/torrentsniff/pkg-descr b/net/torrentsniff/pkg-descr
new file mode 100644
index 0000000..24bf555
--- /dev/null
+++ b/net/torrentsniff/pkg-descr
@@ -0,0 +1,8 @@
+TorrentSniff is a command line Perl program that reads a BitTorrent .torrent
+file from the local file system or from a URL and reports on the status of the
+torrent.
+
+TorrentSniff is based on an early version of TorrentSpy. Reporting seed and
+leech numbers works only with some tracker implementations.
+
+WWW: http://www.highprogrammer.com/alan/perl/torrentsniff.html
diff --git a/net/torrentsniff/pkg-plist b/net/torrentsniff/pkg-plist
new file mode 100644
index 0000000..3ad613b
--- /dev/null
+++ b/net/torrentsniff/pkg-plist
@@ -0,0 +1,3 @@
+bin/torrentsniff
+%%SITE_PERL%%/BitTorrent/BDecode.pm
+@dirrm %%SITE_PERL%%/BitTorrent
OpenPOWER on IntegriCloud