]> Cypherpunks.ru repositories - nncp.git/commitdiff
Merge branch 'develop' v5.1.1
authorSergey Matveev <stargrave@stargrave.org>
Sun, 1 Dec 2019 14:02:21 +0000 (17:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 1 Dec 2019 14:02:21 +0000 (17:02 +0300)
VERSION
doc/building.texi
doc/cmds.texi
doc/download.texi
doc/integration.texi
doc/integrity.texi
doc/news.ru.texi
doc/news.texi
ports/nncp/Makefile
src/cmd/nncp-file/main.go

diff --git a/VERSION b/VERSION
index 831446cbd27a6de403344b21c9fa93a25357f43d..ac14c3dfaa865ea332c62348d1bca867bdbbd1cf 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.1.0
+5.1.1
index 30493d116f9bf00ab66aaf56c91ae36de50d774c..3911ae5f19b5579583d75c9208477663fa4ce023 100644 (file)
@@ -11,16 +11,16 @@ Make sure that Go is installed. For example to install it from packages:
 @end table
 
 @verbatim
-$ [fetch|wget] http://www.nncpgo.org/download/nncp-5.1.0.tar.xz
-$ [fetch|wget] http://www.nncpgo.org/download/nncp-5.1.0.tar.xz.sig
-$ gpg --verify nncp-5.1.0.tar.xz.sig nncp-5.1.0.tar.xz
-$ xz --decompress --stdout nncp-5.1.0.tar.xz | tar xf -
-$ make -C nncp-5.1.0 all
+$ [fetch|wget] http://www.nncpgo.org/download/nncp-5.1.1.tar.xz
+$ [fetch|wget] http://www.nncpgo.org/download/nncp-5.1.1.tar.xz.sig
+$ gpg --verify nncp-5.1.1.tar.xz.sig nncp-5.1.1.tar.xz
+$ xz --decompress --stdout nncp-5.1.1.tar.xz | tar xf -
+$ make -C nncp-5.1.1 all
 @end verbatim
 
 There is @command{install} make-target respecting @env{DESTDIR}. It will
 install binaries and info-documentation:
 
 @verbatim
-# make -C nncp-5.1.0 install PREFIX=/usr/local
+# make -C nncp-5.1.1 install PREFIX=/usr/local
 @end verbatim
index 1910651a74e58116c5e2b32f4c8efc6d7fc71f2b..32779f60a609973e9689a233ebe6e712609b3bf6 100644 (file)
@@ -332,7 +332,8 @@ If @option{-chunked} is specified, then source file will be split
 KiBs. This mode is more CPU hungry. Pay attention that chunk is saved in
 spool directory immediately and it is not deleted if any error occurs.
 @option{-minsize} option is applied per each chunk. Do not forget about
-@ref{ChunkedZFS, possible} ZFS deduplication issues.
+@ref{ChunkedZFS, possible} ZFS deduplication issues. Zero
+@option{-chunked} disables chunked transmission.
 
 If @ref{CfgNotify, notification} is enabled on the remote side for
 file transmissions, then it will sent simple letter after successful
index 1cbd5c670da2b63b3c1638665b15a396e9130840..b6ab1db1dc71e325607b4a744c9747c2256cff49 100644 (file)
@@ -23,7 +23,10 @@ Tarballs include all necessary required libraries:
 @multitable {XXXXX} {XXXX-XX-XX} {XXXX KiB} {link sign} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
 @headitem Version @tab Date @tab Size @tab Tarball @tab SHA256 checksum
 
-An entry for documentation:
+@item @ref{Release 5.1.0, 5.1.0} @tab 2019-11-24 @tab 1103 KiB
+@tab @url{download/nncp-5.1.0.tar.xz, link} @url{download/nncp-5.1.0.tar.xz.sig, sign}
+@tab @code{6F5B74EC 952EAFEC 2A787463 CE1E808E CC990F03 D46F28E9 A89BAB55 5A2C2214}
+
 @item @ref{Release 5.0.0, 5.0.0} @tab 2019-11-15 @tab 1099 KiB
 @tab @url{download/nncp-5.0.0.tar.xz, link} @url{download/nncp-5.0.0.tar.xz.sig, sign}
 @tab @code{3696D7EE B0783E91 87E5EEF4 EFC35235 10452353 7C51FA4C 9BD3CBEE A22678B3}
index d1f1af96163eb7b1131ee1e594f447862b7996b9..8240e2fb903ff67e9dd8c5923c5e8fef79d31f5a 100644 (file)
@@ -5,6 +5,7 @@ Here is some examples of how you can solve popular tasks with NNCP,
 making them store-and-forward friendly.
 
 @menu
+* Index files for freqing: FreqIndex.
 * Postfix::
 * Web feeds: Feeds.
 * Web pages: WARCs.
@@ -14,6 +15,22 @@ making them store-and-forward friendly.
 * Multimedia streaming: Multimedia.
 @end menu
 
+@node FreqIndex
+@section Index files for freqing
+
+In many cases you do not know exact files list on remote machine you
+want to freq from. Because files can be updated there. It is useful to
+run cron-ed job on it to create files listing you can freq and search
+for files in it:
+
+@verbatim
+0  4  *  *  *  cd /storage ; tmp=`mktemp` ; \
+    tree -f -h -N --du --timefmt \%Y-\%m-\%d |
+    zstdmt -19 > $tmp && chmod 644 $tmp && mv $tmp TREE.txt.zst ; \
+    tree -J -f --timefmt \%Y-\%m-\%d |
+    zstdmt -19 > $tmp && chmod 644 $tmp && mv $tmp TREE.json.zst
+@end verbatim
+
 @node Postfix
 @section Integration with Postfix
 
index d4bd4562200441e7b04ea42bbc6007e014cf8322..2c2ccb5803383faaa80fdd261914db559875338d 100644 (file)
@@ -31,5 +31,5 @@ $ gpg --auto-key-locate wkd --locate-keys releases at nncpgo dot org
 
 Then you could verify tarballs signature:
 @verbatim
-$ gpg --verify nncp-5.1.0.tar.xz.sig nncp-5.1.0.tar.xz
+$ gpg --verify nncp-5.1.1.tar.xz.sig nncp-5.1.1.tar.xz
 @end verbatim
index 3226116fe88e951c28d859c70824c28bfbe46a80..6cf154b9df23e7af3948851e317a41cd18716482 100644 (file)
@@ -1,6 +1,15 @@
 @node Новости
 @section Новости
 
+@node Релиз 5.1.1
+@subsection Релиз 5.1.1
+@itemize
+
+@item
+Исправлена работоспособность @command{nncp-file} с @option{-chunked 0} опцией.
+
+@end itemize
+
 @node Релиз 5.1.0
 @subsection Релиз 5.1.0
 @itemize
index bc7a6fcbe96422a7349563bec49eb201ab402ded..3e04abb053d7c81487a96d082cad7d404db7c479 100644 (file)
@@ -3,6 +3,15 @@
 
 See also this page @ref{Новости, on russian}.
 
+@node Release 5.1.1
+@section Release 5.1.1
+@itemize
+
+@item
+Fixed workability of @command{nncp-file} with @option{-chunked 0} option.
+
+@end itemize
+
 @node Release 5.1.0
 @section Release 5.1.0
 @itemize
index 6cee3efea791651d3e2cbba050f7d61c6c5ee19d..5f62b97919b674241f411b46a51f8be581be6bc4 100644 (file)
@@ -1,7 +1,7 @@
 # $FreeBSD: head/net/nncp/Makefile 517819 2019-11-17 11:51:56Z dmgk $
 
 PORTNAME=      nncp
-DISTVERSION=   5.1.0
+DISTVERSION=   5.1.1
 CATEGORIES=    net
 MASTER_SITES=  http://www.nncpgo.org/download/
 
index d7c06074843642f4bc7052c2b0b10e0924264240..3257f2b71a39cb9ac38754896989b071910b5e77 100644 (file)
@@ -108,6 +108,9 @@ func main() {
        } else if *argChunkSize > 0 {
                chunkSize = *argChunkSize * 1024
        }
+       if chunkSize == 0 {
+               chunkSize = nncp.MaxFileSize
+       }
 
        if err = ctx.TxFile(
                node,