summaryrefslogtreecommitdiffstats
path: root/net-p2p/bitflu/Makefile
blob: d1359b12acb7563cd1b74cc3a39a992c8dc059da (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=	bitflu
PORTVERSION=	1.52
CATEGORIES=	net-p2p
MASTER_SITES=	http://bitflu.workaround.ch/bitflu/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	BitTorrent client written in Perl

LICENSE=	ART20
LICENSE_FILE=	${WRKSRC}/Documentation/artistic-2_0.txt

RUN_DEPENDS=	p5-Digest-SHA1>=0:security/p5-Digest-SHA1 \
		p5-Danga-Socket>=0:devel/p5-Danga-Socket

USES=		perl5 shebangfix tar:tgz
NO_BUILD=	yes
NO_ARCH=	yes

SHEBANG_FILES=	bitflu.pl
SUB_FILES=	pkg-message

PORTDOCS=	ChangeLog.txt README.txt README_IPv6.txt

OPTIONS_DEFINE=		DOCS EXAMPLES IPV6

IPV6_RUN_DEPENDS=	p5-IO-Socket-INET6>=0:net/p5-IO-Socket-INET6

post-patch:
	@${REINPLACE_CMD} -e 's|'\''.bitflu.config'\''|"$$ENV{HOME}/.bitflu.config"|; \
		s|\./plugins|${DATADIR}/plugins|; \
		s|\./workdir|$$ENV{HOME}/.bitflu.workdir|' \
		${WRKSRC}/bitflu.pl

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/Bitflu
	${INSTALL_DATA} ${WRKSRC}/plugins/Bitflu/*.pm ${STAGEDIR}${DATADIR}/plugins/Bitflu

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.config.example \
		${STAGEDIR}${EXAMPLESDIR}/${PORTNAME}.config

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud