ports/54272: new port: misc/torrentsniff - BitTorrent utility

Pav Lucistnik pav at oook.cz
Wed Jul 9 19:20:20 UTC 2003


>Number:         54272
>Category:       ports
>Synopsis:       new port: misc/torrentsniff - BitTorrent utility
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 09 12:20:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Pav Lucistnik
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD hood.oook.cz 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Fri Jul 4 21:23:06 CEST 2003 root at hood.oook.cz:/usr/obj/usr/src/sys/PAV i386


	
>Description:
TorrentSniff is a perl script that reads .torrent file, connects
to tracker and prints the count of users connected.

This is my first perl port, so I hope I did it right :)

I haven't added p5- prefix because it's not a CPAN module.
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	torrentsniff
#	torrentsniff/Makefile
#	torrentsniff/distinfo
#	torrentsniff/pkg-plist
#	torrentsniff/pkg-descr
#
echo c - torrentsniff
mkdir -p torrentsniff > /dev/null 2>&1
echo x - torrentsniff/Makefile
sed 's/^X//' >torrentsniff/Makefile << 'END-of-torrentsniff/Makefile'
X# New ports collection makefile for:	torrentsniff
X# Date created:				06 July 2003
X# Whom:					Pav Lucistnik <pav at oook.cz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	torrentsniff
XPORTVERSION=	0.2.0
XCATEGORIES=	net perl5
XMASTER_SITES=	http://www.highprogrammer.com/alan/perl/
X
XMAINTAINER=	pav at oook.cz
XCOMMENT=	Commandline tool for getting status of torrent
X
XRUN_DEPENDS=	${SITE_PERL}/Digest/HMAC_SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
X		${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
X
XUSE_PERL5=	yes
XNO_BUILD=	yes
X
Xpost-patch:
X	${PERL} -pi -e "s#/usr/local/bin/perl#${PERL5}#" ${WRKSRC}/torrentsniff
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/torrentsniff ${LOCALBASE}/bin
X	${MKDIR} ${SITE_PERL}/BitTorrent
X	${INSTALL_DATA} ${WRKSRC}/BitTorrent/BDecode.pm ${SITE_PERL}/BitTorrent
X
X.include <bsd.port.mk>
END-of-torrentsniff/Makefile
echo x - torrentsniff/distinfo
sed 's/^X//' >torrentsniff/distinfo << 'END-of-torrentsniff/distinfo'
XMD5 (torrentsniff-0.2.0.tar.gz) = 1ad64e179c269f70ce0732b343ef4d96
END-of-torrentsniff/distinfo
echo x - torrentsniff/pkg-plist
sed 's/^X//' >torrentsniff/pkg-plist << 'END-of-torrentsniff/pkg-plist'
Xbin/torrentsniff
X%%SITE_PERL%%/BitTorrent/BDecode.pm
X at dirrm %%SITE_PERL%%/BitTorrent
END-of-torrentsniff/pkg-plist
echo x - torrentsniff/pkg-descr
sed 's/^X//' >torrentsniff/pkg-descr << 'END-of-torrentsniff/pkg-descr'
XTorrentSniff is a command line Perl program that reads a BitTorrent .torrent
Xfile from the local file system or from a URL and reports on the status of the
Xtorrent.
X
XTorrentSniff is based on an early version of TorrentSpy. Reporting seed and
Xleech numbers works only with some tracker implementations.
X
XWWW: http://www.highprogrammer.com/alan/perl/torrentsniff.html
END-of-torrentsniff/pkg-descr
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list