aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/torrentsniff/Makefile
blob: 59deef6d85e4d341cf593fa5a674e123ba1245e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>