diff options
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/bitflu/Makefile | 39 | ||||
-rw-r--r-- | net-p2p/bitflu/distinfo | 6 | ||||
-rw-r--r-- | net-p2p/bitflu/files/pkg-message.in | 19 | ||||
-rw-r--r-- | net-p2p/bitflu/pkg-plist | 17 |
4 files changed, 70 insertions, 11 deletions
diff --git a/net-p2p/bitflu/Makefile b/net-p2p/bitflu/Makefile index 88390f6eeb5f..5723c788f951 100644 --- a/net-p2p/bitflu/Makefile +++ b/net-p2p/bitflu/Makefile @@ -6,25 +6,48 @@ # PORTNAME= bitflu -PORTVERSION= 0.33 +PORTVERSION= 0.52 CATEGORIES= net-p2p MASTER_SITES= http://bitflu.workaround.ch/bitflu/ CENKES EXTRACT_SUFX= .tgz -MAINTAINER= ports@FreeBSD.org +MAINTAINER= peter.schuller@infidyne.com COMMENT= BitTorrent client written in Perl RUN_DEPENDS= p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \ p5-URI>=0:${PORTSDIR}/net/p5-URI -PLIST_FILES= bin/bitflu %%EXAMPLESDIR%%/bitflu.config -PLIST_DIRS= %%EXAMPLESDIR%% -WRKSRC= ${WRKDIR}/${PORTNAME} +PLUGINSDIR= ${PREFIX}/lib/${PORTNAME} +USE_PERL5= yes NO_BUILD= yes +SUB_FILES= pkg-message +SUB_LIST= DOCSDIR=${DOCSDIR} PLUGINSDIR=${PLUGINSDIR} +PLIST_SUB= PLUGINSDIR=lib/${PORTNAME} + +post-patch: + @${REINPLACE_CMD} -e 's|'\''.bitflu.config'\''|"$$ENV{HOME}/.bitflu.config"|; \ + s|\./plugins|${PLUGINSDIR}|; s|\./workdir|$$ENV{HOME}/.bitflu.workdir|; \ + s|--config=\.bitflu.config|--config=~/.bitflu.config|' \ + ${WRKSRC}/bitflu.pl + do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME} - @${INSTALL} -d ${EXAMPLESDIR}/ - @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.config.example ${EXAMPLESDIR}/${PORTNAME}.config + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \ + ${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/ +.if !defined(NOPORTEXAMPLES) + ${INSTALL} -d ${EXAMPLESDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.config.example \ + ${EXAMPLESDIR}/${PORTNAME}.config +.endif +.if !defined(NOPORTDOCS) + ${INSTALL} -d ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/tools/fluconvert-README.txt \ + ${DOCSDIR}/fluconvert-README.txt +.endif + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/net-p2p/bitflu/distinfo b/net-p2p/bitflu/distinfo index 444f84e9a869..4e8de9106e2d 100644 --- a/net-p2p/bitflu/distinfo +++ b/net-p2p/bitflu/distinfo @@ -1,3 +1,3 @@ -MD5 (bitflu-0.33.tgz) = fe04d4b58bfef780b635d99bab4383c4 -SHA256 (bitflu-0.33.tgz) = 26c9b3fa99c4d67384018d2ce3b12326ed5cf25596e30f3a29d40b9e9446b3bd -SIZE (bitflu-0.33.tgz) = 55433 +MD5 (bitflu-0.52.tgz) = f75f5362aacd05ebbd25f01bc4ac11dd +SHA256 (bitflu-0.52.tgz) = fa252d7d1fb35bae5ef29ccfa130b2162c6d514f2ed72772fce9a7327eeee69f +SIZE (bitflu-0.52.tgz) = 112440 diff --git a/net-p2p/bitflu/files/pkg-message.in b/net-p2p/bitflu/files/pkg-message.in new file mode 100644 index 000000000000..86f5088df0bc --- /dev/null +++ b/net-p2p/bitflu/files/pkg-message.in @@ -0,0 +1,19 @@ +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). diff --git a/net-p2p/bitflu/pkg-plist b/net-p2p/bitflu/pkg-plist new file mode 100644 index 000000000000..616315cbc6d0 --- /dev/null +++ b/net-p2p/bitflu/pkg-plist @@ -0,0 +1,17 @@ +bin/bitflu +bin/fluconvert.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 +@dirrm %%PLUGINSDIR%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |