- Update to 2009-04-19

PR:		134013
Submitted by:	Martin Kammerhofer <dada@sbox.tu-graz.ac.at> (maintainer)
This commit is contained in:
Martin Wilke 2009-04-26 23:27:55 +00:00
parent cc5a2c90d8
commit 1c44c76216
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=232799
4 changed files with 51 additions and 41 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= bitflu
PORTVERSION= 0.70
PORTVERSION= 0.81
CATEGORIES= net-p2p
MASTER_SITES= http://bitflu.workaround.ch/bitflu/ CENKES
EXTRACT_SUFX= .tgz
@ -17,17 +17,28 @@ COMMENT= BitTorrent client written in Perl
RUN_DEPENDS= p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
p5-URI>=0:${PORTSDIR}/net/p5-URI
PLUGINSDIR= ${PREFIX}/lib/${PORTNAME}
PLUGINSDIR= lib/perl5/Bitflu
USE_PERL5= yes
NO_BUILD= yes
SUB_FILES= pkg-message
SUB_LIST= DOCSDIR=${DOCSDIR} PLUGINSDIR=${PLUGINSDIR}
PLIST_SUB= PLUGINSDIR=lib/${PORTNAME}
PLIST_SUB= PLUGINSDIR=${PLUGINSDIR}
PORTDOCS= ChangeLog.txt README.txt README_IPv6.txt
OPTIONS= IPV6 "Enable functionality over IPv6 transport" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_IPV6)
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6
.endif
post-patch:
@${REINPLACE_CMD} -e 's|'\''.bitflu.config'\''|"$$ENV{HOME}/.bitflu.config"|; \
s|\./plugins|${PLUGINSDIR}|; s|\./workdir|$$ENV{HOME}/.bitflu.workdir|; \
s|\./plugins|${PREFIX}/${PLUGINSDIR}|; \
s|\./workdir|$$ENV{HOME}/.bitflu.workdir|; \
s|--config=\.bitflu.config|--config=~/.bitflu.config|' \
${WRKSRC}/bitflu.pl
@ -36,18 +47,21 @@ do-install:
${PREFIX}/bin/${PORTNAME}
${INSTALL_SCRIPT} ${WRKSRC}/tools/fluconvert.pl \
${PREFIX}/bin/fluconvert.pl
${INSTALL} -d ${PLUGINSDIR}/Bitflu
${INSTALL_DATA} ${WRKSRC}/plugins/Bitflu/*.pm ${PLUGINSDIR}/Bitflu/
${INSTALL_SCRIPT} ${WRKSRC}/tools/dumptorrent.pl \
${PREFIX}/bin/dumptorrent.pl
${MKDIR} ${PREFIX}/${PLUGINSDIR}
${INSTALL_DATA} ${WRKSRC}/plugins/Bitflu/*.pm ${PREFIX}/${PLUGINSDIR}/
.if !defined(NOPORTEXAMPLES)
${INSTALL} -d ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.config.example \
${EXAMPLESDIR}/${PORTNAME}.config
.endif
.if !defined(NOPORTDOCS)
${INSTALL} -d ${DOCSDIR}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/tools/fluconvert-README.txt \
${DOCSDIR}/fluconvert-README.txt
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View file

@ -1,3 +1,3 @@
MD5 (bitflu-0.70.tgz) = 03e58b83e8852055a2c1042052ea8cc4
SHA256 (bitflu-0.70.tgz) = 0593e052177f0fb405d718e1a1937a947a5f26ef8e09d50e7df3caee6d891377
SIZE (bitflu-0.70.tgz) = 122943
MD5 (bitflu-0.81.tgz) = 02f2f4fa09dc20c5f75a62b8d9f75932
SHA256 (bitflu-0.81.tgz) = 6a460ba21a747c0e746830c063ec21fac1f2e51e799039a73ae58c06a8ca5322
SIZE (bitflu-0.81.tgz) = 129085

View file

@ -1,19 +1,16 @@
To use bitflu with the plugins installed by this package, configure
your ~/.bitflu.config to search for plugins here (instead of the
default ./plugins):
%%PLUGINSDIR%%
If you have previously used a version of bitflu prior to 0.4x, you may
want to convert your data to the new storage plugin (which was
introduced along with the upstream bitflu re-write). Such conversions
can be done using fluconvert. If the package is build with
documentation, the upstream instructions for using fluconvert is
installed at:
%%DOCSDIR%%/fluconvert-README.txt
When installed by this port, the bitflu workdir is located under
~/.bitflu.workdir by default rather than ./bitflu.workdir (you may
want to use --config=./bitflu.workdir to produce the behavior used by
the upstream version).
*************************************************************************
* To use bitflu with the plugins installed by this package, configure *
* your ~/.bitflu.config to search for plugins here (instead of the *
* default ./plugins): *
* *
* %%PREFIX%%/lib/perl5 (New location as of 0.80) *
* *
* If you have previously used a version of bitflu prior to 0.4x, you *
* may want to convert your data to the new storage plugin (which was *
* introduced along with the upstream bitflu re-write). Such conversions *
* can be done using fluconvert. If the package is built with *
* documentation, the instructions are installed at: *
* *
* %%DOCSDIR%%/fluconvert-README.txt *
* *
*************************************************************************

View file

@ -1,17 +1,16 @@
bin/bitflu
bin/fluconvert.pl
bin/dumptorrent.pl
%%PORTDOCS%%%%DOCSDIR%%/fluconvert-README.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bitflu.config
%%PLUGINSDIR%%/Bitflu/00_StorageFarabDb.pm
%%PLUGINSDIR%%/Bitflu/00_StorageVFS.pm
%%PLUGINSDIR%%/Bitflu/10_AdminHTTP.pm
%%PLUGINSDIR%%/Bitflu/10_AdminTelnet.pm
%%PLUGINSDIR%%/Bitflu/20_DownloadBitTorrent.pm
%%PLUGINSDIR%%/Bitflu/20_DownloadHTTP.pm
%%PLUGINSDIR%%/Bitflu/30_SourcesBitTorrent.pm
%%PLUGINSDIR%%/Bitflu/30_SourcesBitTorrentKademlia.pm
%%PLUGINSDIR%%/Bitflu/99_Cron.pm
@dirrm %%PLUGINSDIR%%/Bitflu
%%PLUGINSDIR%%/00_StorageFarabDb.pm
%%PLUGINSDIR%%/00_StorageVFS.pm
%%PLUGINSDIR%%/10_AdminHTTP.pm
%%PLUGINSDIR%%/10_AdminTelnet.pm
%%PLUGINSDIR%%/20_DownloadBitTorrent.pm
%%PLUGINSDIR%%/20_DownloadHTTP.pm
%%PLUGINSDIR%%/30_SourcesBitTorrent.pm
%%PLUGINSDIR%%/30_SourcesBitTorrentKademlia.pm
%%PLUGINSDIR%%/99_Cron.pm
@dirrm %%PLUGINSDIR%%
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%