]> Cypherpunks.ru repositories - nncp.git/commitdiff
Merge branch 'develop' 3.1
authorSergey Matveev <stargrave@stargrave.org>
Sun, 27 May 2018 11:26:32 +0000 (14:26 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 27 May 2018 11:26:32 +0000 (14:26 +0300)
26 files changed:
README
README.RU
VERSION
doc/cmds.texi
doc/contacts.texi
doc/download.texi
doc/install.texi
doc/integration.texi
doc/integrity.texi
doc/news.ru.texi
doc/news.texi
doc/platforms.texi
doc/sources.texi
makedist.sh
ports/nncp/Makefile
src/cypherpunks.ru/nncp/cmd/nncp-exec/main.go
src/cypherpunks.ru/nncp/cmd/nncp-file/main.go
src/cypherpunks.ru/nncp/cmd/nncp-freq/main.go
src/cypherpunks.ru/nncp/via.go [new file with mode: 0644]
src/github.com/dustin/go-humanize
src/github.com/flynn/noise
src/github.com/gorhill/cronexpr
src/golang.org/x/crypto
src/golang.org/x/net
src/golang.org/x/sys
src/gopkg.in/yaml.v2

diff --git a/README b/README
index 58db3ed563e76b28d8ba89dd946fe5c692d206f9..faf31c30440c92514d533aa79faf8ed8653106e9 100644 (file)
--- a/README
+++ b/README
@@ -19,8 +19,6 @@ conditions. It should work on all POSIX-compatible systems. Easy
 integration with existing SMTP servers. Single YAML configuration file.
 
 Home page: http://www.nncpgo.org/
-Also available as I2P service:
-http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/
 
 Please send questions regarding the use of NNCP, bug reports and
 patches to nncp-devel mailing list:
index ba9829c499d86fe6c3dff9e2ddd3c25b86d551b1..21bb25a259effc626d2db4b03933eeae8df43fac 100644 (file)
--- a/README.RU
+++ b/README.RU
@@ -24,8 +24,6 @@ NNCP это свободное программное обеспечением:
 конфигурационный YAML файл.
 
 Домашняя страница: http://www.nncpgo.org/
-Также доступная как I2P сервис:
-http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/
 
 Пожалуйста все вопросы касающиеся использования NNCP, отчёты об ошибках
 и патчи отправляйте в nncp-devel почтовую рассылку:
diff --git a/VERSION b/VERSION
index 9f55b2ccb5f234fc6b87ada62389a3d73815d0d1..8c50098d8aed57b02fd10f40a670a7c673b7c5a5 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.0
+3.1
index e7090afff73fe4d0d7be71d68bd4937d9602872d..7d05bf2363ef8b8296f50aca81bcbaa3372a4c17 100644 (file)
@@ -27,6 +27,7 @@ Nearly all commands have the following common options:
 @item -via
     Override @ref{CfgVia, via} configuration option for destination node.
     Specified nodes must be separated with comma: @verb{|NODE1,NODE2|}.
+    With @verb{|-via -|} you can disable relaying at all.
 @item -spool
     Override path to spool directory. May be specified by
     @env{NNCPSPOOL} environment variable.
index 4c06d4548dc84214844243aa44c96b9704de4d8f..473df97e9c1dc508ad07b7e13d285034873f7aac 100644 (file)
@@ -5,6 +5,4 @@ Please send questions regarding the use of NNCP, bug reports and patches to
 @url{https://lists.cypherpunks.ru/pipermail/nncp-devel/, nncp-devel}
 mailing list. Announcements also go to this mailing list.
 
-Official website is @url{http://www.nncpgo.org/}, also available as
-@url{https://geti2p.net/en/, I2P} service
-@url{http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/}.
+Official website is @url{http://www.nncpgo.org/}.
index cecc89b2afa8292558ef25a1ca901a116a437b82..6da3b86f15c1406b65c8a290520ab2d0d9d1e222 100644 (file)
@@ -23,6 +23,10 @@ Tarballs include all necessary required libraries:
 @multitable {XXXXX} {XXXX KiB} {link sign} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
 @headitem Version @tab Size @tab Tarball @tab SHA256 checksum
 
+@item @ref{Release 3.0, 3.0} @tab 993 KiB
+@tab @url{download/nncp-3.0.tar.xz, link} @url{download/nncp-3.0.tar.xz.sig, sign}
+@tab @code{248B2257 2F576E79 A19672E9 B82EB649 18FC95A9 194408C0 67EA4DD3 0468286D}
+
 @item @ref{Release 2.0, 2.0} @tab 986 KiB
 @tab @url{download/nncp-2.0.tar.xz, link} @url{download/nncp-2.0.tar.xz.sig, sign}
 @tab @code{BEF31B13 FB25381E A511FB77 067798AB 27409238 BDF5600F E2EADB29 E5E78996}
@@ -81,5 +85,3 @@ Tarballs include all necessary required libraries:
 @tab @code{8F71D65B 70865EBF FE802CDF A5C14D00 A9FD6559 FD722E60 5D97E82C 5E2412C2}
 
 @end multitable
-
-Also you can try its @ref{Contacts, .i2p} version.
index 3f2131bd22899fa88e875c593773abdf7e3d3749..ebcc530d74d3eea89089276b4ed54ccf67a3864f 100644 (file)
@@ -4,8 +4,8 @@
 Possibly NNCP package already exists for your distribution:
 
 @itemize
-@item @url{https://github.com/voidlinux/void-packages/blob/master/srcpkgs/nncp/template, Void Linux}
 @item @url{https://www.freshports.org/net/nncp/, FreeBSD ports}
+@item @url{https://github.com/voidlinux/void-packages/blob/master/srcpkgs/nncp/template, Void Linux}
 @end itemize
 
 NNCP should run on any POSIX-compatible operating system.
index bd531193617d376d4d11d97db8489ac62dfdf775..984f6629e01b3121d0e3583eb0448e787c797306 100644 (file)
@@ -17,7 +17,7 @@ making them store-and-forward friendly.
 @node Postfix
 @section Integration with Postfix
 
-This section is taken from @url{http://www.postfix.org/nncp_README.html,
+This section is taken from @url{http://www.postfix.org/UUCP_README.html,
 Postfix and UUCP} manual and just replaces UUCP-related calls with NNCP
 ones.
 
index a88f1b2744de8abbee0e6e05d330db1563ad29ca..67edc7240558ce8b92fe475e2af418ebd8f6fab5 100644 (file)
@@ -33,5 +33,5 @@ uid   NNCP releases <releases at nncpgo dot org>
 
 Then you could verify tarballs signature:
 @verbatim
-% gpg --verify nncp-0.1.tar.xz.sig nncp-0.1.tar.xz
+% gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz
 @end verbatim
index ea8606a2476bd1f3cb445491232b77cb6272546d..5061c81da743dbe38045814bc0f3bf0e5ad9587d 100644 (file)
@@ -1,6 +1,14 @@
 @node Новости
 @section Новости
 
+@node Релиз 3.1
+@subsection Релиз 3.1
+@itemize
+@item
+Возможность отключать пересылку через промежуточные ноды используя
+@verb{|-via -|} опцию командной строки.
+@end itemize
+
 @node Релиз 3.0
 @subsection Релиз 3.0
 @itemize
index 4d9e7dccdd8a07fed6a787cb9e1c4f2a518c5130..f3116d89c653c127b19b4317be2f434d5f1f838d 100644 (file)
@@ -3,6 +3,13 @@
 
 See also this page @ref{Новости, on russian}.
 
+@node Release 3.1
+@section Release 3.1
+@itemize
+@item
+Ability to disable relaying at all using @verb{|-via -|} command line option.
+@end itemize
+
 @node Release 3.0
 @section Release 3.0
 @itemize
index 5a259e34a244540896a16fc169cefe7843b22cd0..a162de26c450af842b1e7137d66333330ea9927e 100644 (file)
@@ -4,31 +4,19 @@
 @node General
 @subsection General installation instructions
 
-@verbatim
-% wget http://www.nncpgo.org/download/nncp-0.1.tar.xz
-% wget http://www.nncpgo.org/download/nncp-0.1.tar.xz.sig
-% gpg --verify nncp-0.1.tar.xz.sig nncp-0.1.tar.xz
-% tar xf nncp-0.1.tar.xz
-% make -C nncp-0.1 all
-@end verbatim
-
-There is @command{install} target respecting @env{DESTDIR}. It will
-install binaries and info-documentation.
-
-@node FreeBSD
-@subsection FreeBSD installation instructions
-
 Look @ref{Integrity, here} for finding public keys for tarball authentication.
 
 @verbatim
-# pkg install go
+% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz
+% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz.sig
+% gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz
+% xz -d nncp-3.1.tar.xz
+% tar xf nncp-3.1.tar
+% make -C nncp-3.1 all
 @end verbatim
 
-follow @ref{General, general} installation instructions
-
-@verbatim
-# make -C nncp-0.1 install
-@end verbatim
+There is @command{install} target respecting @env{DESTDIR}. It will
+install binaries and info-documentation.
 
 @node Ubuntu
 @subsection Ubuntu installation instructions
@@ -45,19 +33,19 @@ Look @ref{Integrity, here} for finding public keys for tarball authentication.
 follow @ref{General, general} installation instructions
 
 @verbatim
-# make -C nncp-0.1 install PREFIX=/usr
+# make -C nncp-3.1 install PREFIX=/usr
 @end verbatim
 
 @item Ubuntu 14.04
 
 @verbatim
 # apt-get install golang-1.6
-% wget http://www.nncpgo.org/download/nncp-0.1.tar.xz
-% wget http://www.nncpgo.org/download/nncp-0.1.tar.xz.sig
-% gpg --verify nncp-0.1.tar.xz.sig nncp-0.1.tar.xz
-% tar xf nncp-0.1.tar.xz
-% PATH=/usr/lib/go-1.6/bin:$PATH make -C nncp-0.1 all
-# make -C nncp-0.1 install PREFIX=/usr
+% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz
+% wget http://www.nncpgo.org/download/nncp-3.1.tar.xz.sig
+% gpg --verify nncp-3.1.tar.xz.sig nncp-3.1.tar.xz
+% tar xf nncp-3.1.tar.xz
+% PATH=/usr/lib/go-1.6/bin:$PATH make -C nncp-3.1 all
+# make -C nncp-3.1 install PREFIX=/usr
 @end verbatim
 
 @end table
index 83c2b4a8265ea43e93707e71a91f0c74588d62d3..38de61a5a2289514758241496b60e0623006a790 100644 (file)
@@ -16,3 +16,19 @@ and fetching dependent libraries source code as git submodules:
 % git checkout develop
 % git submodule update --init
 @end verbatim
+
+Also there is mirror of dependent libraries for safety if their native
+repositories will be unavailable (they are seldom updated):
+
+@multitable @columnfractions .50 .50
+@headitem Software/library @tab Mirror
+@item @code{github.com/davecgh/go-xdr} @tab @url{git://git.cypherpunks.ru/go-xdr.git}
+@item @code{github.com/dustin/go-humanize} @tab @url{git://git.cypherpunks.ru/go-humanize.git}
+@item @code{github.com/flynn/noise} @tab @url{git://git.cypherpunks.ru/noise.git}
+@item @code{github.com/gorhill/cronexpr} @tab @url{git://git.cypherpunks.ru/cronexpr.git}
+@item @code{golang.org/x/crypto} @tab @url{git://git.cypherpunks.ru/crypto.git}
+@item @code{golang.org/x/net} @tab @url{git://git.cypherpunks.ru/net.git}
+@item @code{golang.org/x/sys} @tab @url{git://git.cypherpunks.ru/sys.git}
+@item @code{gopkg.in/check.v1} @tab @url{git://git.cypherpunks.ru/check.git}
+@item @code{gopkg.in/yaml.v2} @tab @url{git://git.cypherpunks.ru/yaml.git}
+@end multitable
index a81bdc73e8274457db5ec2a71835670320513fe7..35db1e798cf6ef7cd6faee025dfed2f23089f84f 100755 (executable)
@@ -34,6 +34,7 @@ golang.org/x/crypto/blake2s
 golang.org/x/crypto/chacha20poly1305
 golang.org/x/crypto/curve25519
 golang.org/x/crypto/ed25519
+golang.org/x/crypto/internal/chacha20
 golang.org/x/crypto/nacl
 golang.org/x/crypto/poly1305
 golang.org/x/crypto/salsa20
@@ -124,8 +125,6 @@ $(git cat-file -p $release | sed -n '6,/^.*BEGIN/p' | sed '$d')
 ------------------------ >8 ------------------------
 
 NNCP's home page is: http://www.nncpgo.org/
-Also available as I2P service:
-http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/
 
 Source code and its signature for that version can be found here:
 
@@ -174,8 +173,6 @@ $(git cat-file -p $release | sed -n '6,/^.*BEGIN/p' | sed '$d')
 ------------------------ >8 ------------------------
 
 Домашняя страница NNCP: http://www.nncpgo.org/
-Также доступная как I2P сервис:
-http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/
 Коротко об утилитах: http://www.nncpgo.org/Ob-utilitakh.html
 
 Исходный код и его подпись для этой версии находятся здесь:
index ce2e217be19c9f5c5fd69006534f3040e65927e6..971db0b504cfaf24db7d55aba98677ec3d07dac1 100644 (file)
@@ -1,7 +1,7 @@
 # $FreeBSD: head/net/nncp/Makefile 460314 2018-01-29 16:17:45Z yuri $
 
 PORTNAME=      nncp
-DISTVERSION=   3.0
+DISTVERSION=   3.1
 CATEGORIES=    net
 MASTER_SITES=  http://www.nncpgo.org/download/
 
index 8e7aec62682a1e3002d2557145ee33144273b044..3a5328dc009a1e46c1e277696257771fc461a203 100644 (file)
@@ -26,7 +26,6 @@ import (
        "io/ioutil"
        "log"
        "os"
-       "strings"
 
        "cypherpunks.ru/nncp"
 )
@@ -88,17 +87,7 @@ func main() {
                log.Fatalln("Invalid NODE specified:", err)
        }
 
-       if *viaOverride != "" {
-               vias := make([]*nncp.NodeId, 0, strings.Count(*viaOverride, ",")+1)
-               for _, via := range strings.Split(*viaOverride, ",") {
-                       foundNodeId, err := ctx.FindNode(via)
-                       if err != nil {
-                               log.Fatalln("Invalid Via node specified:", err)
-                       }
-                       vias = append(vias, foundNodeId.Id)
-               }
-               node.Via = vias
-       }
+       nncp.ViaOverride(*viaOverride, ctx, node)
 
        body, err := ioutil.ReadAll(bufio.NewReader(os.Stdin))
        if err != nil {
index 43259146071cd558e3e4e99df367e65ec751354a..e19eb9365463a52634e51231e1f734c8c925e71d 100644 (file)
@@ -93,17 +93,7 @@ func main() {
                log.Fatalln("Invalid NODE specified:", err)
        }
 
-       if *viaOverride != "" {
-               vias := make([]*nncp.NodeId, 0, strings.Count(*viaOverride, ",")+1)
-               for _, via := range strings.Split(*viaOverride, ",") {
-                       foundNodeId, err := ctx.FindNode(via)
-                       if err != nil {
-                               log.Fatalln("Invalid Via node specified:", err)
-                       }
-                       vias = append(vias, foundNodeId.Id)
-               }
-               node.Via = vias
-       }
+       nncp.ViaOverride(*viaOverride, ctx, node)
 
        var minSize int64
        if *argMinSize < 0 {
index cab8a8d2d53e67aec22ad5cd403e6d404acdb38b..1c8e248cb60ce27a1f2c7e0be57566ad778a3b4d 100644 (file)
@@ -92,17 +92,7 @@ func main() {
                log.Fatalln("Invalid NODE specified:", err)
        }
 
-       if *viaOverride != "" {
-               vias := make([]*nncp.NodeId, 0, strings.Count(*viaOverride, ",")+1)
-               for _, via := range strings.Split(*viaOverride, ",") {
-                       foundNodeId, err := ctx.FindNode(via)
-                       if err != nil {
-                               log.Fatalln("Invalid Via node specified:", err)
-                       }
-                       vias = append(vias, foundNodeId.Id)
-               }
-               node.Via = vias
-       }
+       nncp.ViaOverride(*viaOverride, ctx, node)
 
        var dst string
        if flag.NArg() == 2 {
diff --git a/src/cypherpunks.ru/nncp/via.go b/src/cypherpunks.ru/nncp/via.go
new file mode 100644 (file)
index 0000000..f6f3e98
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+NNCP -- Node to Node copy, utilities for store-and-forward data exchange
+Copyright (C) 2016-2018 Sergey Matveev <stargrave@stargrave.org>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+package nncp
+
+import (
+       "log"
+       "strings"
+)
+
+// Helper function for parsing -via command line option
+func ViaOverride(argValue string, ctx *Ctx, node *Node) {
+       if argValue == "" {
+               return
+       }
+       if argValue == "-" {
+               node.Via = make([]*NodeId, 0)
+               return
+       }
+       vias := make([]*NodeId, 0, strings.Count(argValue, ",")+1)
+       for _, via := range strings.Split(argValue, ",") {
+               foundNodeId, err := ctx.FindNode(via)
+               if err != nil {
+                       log.Fatalln("Invalid Via node specified:", err)
+               }
+               vias = append(vias, foundNodeId.Id)
+       }
+       node.Via = vias
+}
index bb3d318650d48840a39aa21a027c6630e198e626..02af3965c54e8cacf948b97fef38925c4120652c 160000 (submodule)
@@ -1 +1 @@
-Subproject commit bb3d318650d48840a39aa21a027c6630e198e626
+Subproject commit 02af3965c54e8cacf948b97fef38925c4120652c
index 01638cb52dafe42224b938fb517721f984c03100..2492fe189ae688d7edbeae0fd575de2f1c5fec8e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 01638cb52dafe42224b938fb517721f984c03100
+Subproject commit 2492fe189ae688d7edbeae0fd575de2f1c5fec8e
index d520615e531a6bf3fb69406b9eba718261285ec8..88b0669f7d75f171bd612b874e52b95c190218df 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d520615e531a6bf3fb69406b9eba718261285ec8
+Subproject commit 88b0669f7d75f171bd612b874e52b95c190218df
index 650f4a345ab4e5b245a3034b110ebc7299e68186..ab813273cd59e1333f7ae7bff5d027d4aadf528c 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 650f4a345ab4e5b245a3034b110ebc7299e68186
+Subproject commit ab813273cd59e1333f7ae7bff5d027d4aadf528c
index 136a25c244d3019482a795d728110278d6ba09a4..dfa909b99c79129e1100513e5cd36307665e5723 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 136a25c244d3019482a795d728110278d6ba09a4
+Subproject commit dfa909b99c79129e1100513e5cd36307665e5723
index 37707fdb30a5b38865cfb95e5aab41707daec7fd..c11f84a56e43e20a78cee75a7c034031ecf57d1f 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 37707fdb30a5b38865cfb95e5aab41707daec7fd
+Subproject commit c11f84a56e43e20a78cee75a7c034031ecf57d1f
index 287cf08546ab5e7e37d55a84f7ed3fd1db036de5..5420a8b6744d3b0345ab293f6fcba19c978f1183 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 287cf08546ab5e7e37d55a84f7ed3fd1db036de5
+Subproject commit 5420a8b6744d3b0345ab293f6fcba19c978f1183