]> Cypherpunks.ru repositories - nncp.git/commitdiff
Merge branch 'develop' 4.1
authorSergey Matveev <stargrave@stargrave.org>
Wed, 1 May 2019 20:06:18 +0000 (23:06 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 1 May 2019 20:06:18 +0000 (23:06 +0300)
12 files changed:
BSDmakefile
GNUmakefile
VERSION
common.mk
doc/cmds.texi
doc/download.texi
doc/install.texi
doc/integration.texi
doc/news.ru.texi
doc/news.texi
ports/nncp/Makefile
src/cypherpunks.ru/nncp/ctx.go

index 63c724c3499450e58a502112a4e7176cd1ede947..12bf97ac0211f22c59428ea0637c3230bd51bd7e 100644 (file)
@@ -1,3 +1,14 @@
 VERSION != cat VERSION
+GO ?= go
+
+GO_MOD_EXISTS != $(GO) help mod >/dev/null 2>&1 || echo no
+
+.if ${GO_MOD_EXISTS} == "no"
+BUILDMOD ?=
+GOPATH ?= $(PWD)
+.else
+BUILDMOD ?= -mod=vendor
+GOPATH ?= $(PWD)/gopath
+.endif
 
 include common.mk
index 5af4eb08aa90362082b1816f2f27554e8a2b7d7c..1bcb1be686401b7fd212d8d14549402f7b25c670 100644 (file)
@@ -1,3 +1,14 @@
 VERSION = $(shell cat VERSION)
+GO ?= go
+
+GO_MOD_EXISTS = $(shell $(GO) help mod >/dev/null 2>&1 || echo no)
+
+ifeq ($(GO_MOD_EXISTS), no)
+BUILDMOD ?=
+GOPATH ?= $(PWD)
+else
+BUILDMOD ?= -mod=vendor
+GOPATH ?= $(PWD)/gopath
+endif
 
 include common.mk
diff --git a/VERSION b/VERSION
index 5186d07068cfed4c3f4705df79c73e115dd35c43..7d5c902e777905446c67de7e52a945b88fd2038c 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.0
+4.1
index 602d754be0f7f9fabb8e0b00fe15f466e3db9884..6c887a56e2ecf7165f66af0fa7df60646aabee41 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -1,5 +1,4 @@
 PREFIX ?= /usr/local
-GO ?= go
 
 SENDMAIL ?= /usr/sbin/sendmail
 CFGPATH ?= $(PREFIX)/etc/nncp.yaml
@@ -16,7 +15,6 @@ LDFLAGS = \
        -X cypherpunks.ru/nncp.DefaultSendmailPath=$(SENDMAIL) \
        -X cypherpunks.ru/nncp.DefaultSpoolPath=$(SPOOLPATH) \
        -X cypherpunks.ru/nncp.DefaultLogPath=$(LOGPATH)
-BUILDMOD ?= -mod=vendor
 
 ALL = \
        nncp-bundle \
@@ -40,7 +38,6 @@ ALL = \
 
 SRC := $(PWD)/src/cypherpunks.ru/nncp
 BIN := $(PWD)/bin
-GOPATH ?= $(PWD)/gopath
 
 all: $(ALL)
 
index ac665ace0d3a1c166a31f10ba8f685a11c5a3bdc..b61492f31c464683829f27b042dd686ae0269909 100644 (file)
@@ -275,7 +275,7 @@ exec:
 @end verbatim
 
 then executing @verb{|echo My message | nncp-exec -replynice 123 REMOTE
-sendmail root@localhost|} will lead to executing of:
+sendmail root@localhost|} will lead to execution of:
 
 @verbatim
 echo My message |
index 0722f0413c236d8e642371a64e347bf041a65d43..0418f47380d639de8da581c3971fae5daf447965 100644 (file)
@@ -23,6 +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
 
+@item @ref{Release 4.0, 4.0} @tab 2019-04-28 @tab 1227 KiB
+@tab @url{download/nncp-4.0.tar.xz, link} @url{download/nncp-4.0.tar.xz.sig, sign}
+@tab @code{EAFA6272 22E355FC EB772A90 FC6DEA8E AE1F1695 3F48A4A3 57ADA0B4 FF918452}
+
 @item @ref{Release 3.4, 3.4} @tab 2018-06-10 @tab 1154 KiB
 @tab @url{download/nncp-3.4.tar.xz, link} @url{download/nncp-3.4.tar.xz.sig, sign}
 @tab @code{9796C4CB 7B670FC7 5FEED3CD 467CA556 B230387D 935B09BB 4B19FD57 FD17FFBA}
index b4df48425ff61ab3b826b1c673ca9d1d5e72b5d0..db3be1dd3354524009533033380cce700c4bedf1 100644 (file)
@@ -11,7 +11,7 @@ Possibly NNCP package already exists for your distribution:
 NNCP should run on any POSIX-compatible operating system.
 
 NNCP is written on @url{https://golang.org/, Go} programming language
-and you have to install Go compiler (1.7+ version is highly
+and you have to install Go compiler (1.10+ version is highly
 recommended). @emph{Make} (BSD and GNU ones are fine) is recommended for
 convenient building. @url{https://www.gnu.org/software/texinfo/,
 Texinfo} is used for building documentation.
index 984f6629e01b3121d0e3583eb0448e787c797306..729752e99a5c392d476c70ffba8709c974347f70 100644 (file)
@@ -121,9 +121,9 @@ nncp      unix  -       n       n       -       -       pipe
 
 This runs the @command{nncp-exec} command to place outgoing mail into
 the NNCP queue. It substitutes the hostname (@emph{nncp-gateway}, or
-whatever you specified) and the recipients before executing the command.
-The @command{nncp-exec} command is executed without assistance from the
-shell, so there are no problems with shell meta characters.
+whatever you specified) and the recipients before execution of the
+command. The @command{nncp-exec} command is executed without assistance
+from the shell, so there are no problems with shell meta characters.
 
 @item Execute the command @command{postfix reload} to make the changes
 effective.
index a17c2efa0a73405d7af8a896e43ef993b3d2a1de..25865b770e65f091420be964a273ee72a388159e 100644 (file)
@@ -1,6 +1,13 @@
 @node Новости
 @section Новости
 
+@node Релиз 4.1
+@subsection Релиз 4.1
+@itemize
+@item
+Восстановлена работоспособность на GNU/Linux системах и Go версии 1.10.
+@end itemize
+
 @node Релиз 4.0
 @subsection Релиз 4.0
 @itemize
index ed1bf0839333802891b7cff8d32ddae98c6dd562..839effc005f6fe99d20d0f8f42b38e963a4dddc8 100644 (file)
@@ -3,6 +3,13 @@
 
 See also this page @ref{Новости, on russian}.
 
+@node Release 4.1
+@section Release 4.1
+@itemize
+@item
+Workability on GNU/Linux systems and Go 1.10 is fixed.
+@end itemize
+
 @node Release 4.0
 @section Release 4.0
 @itemize
index 77a7f974dffac3e5b750d61d827ccf997946d80a..a10018d23bb4468fc0b70cd823adfbed02c80a5d 100644 (file)
@@ -1,7 +1,8 @@
-# $FreeBSD: head/net/nncp/Makefile 471003 2018-05-27 20:24:00Z krion $
+# $FreeBSD: head/net/nncp/Makefile 484628 2018-11-10 18:12:57Z bapt $
 
 PORTNAME=      nncp
-DISTVERSION=   3.4
+DISTVERSION=   4.0
+PORTREVISION=  1
 CATEGORIES=    net
 MASTER_SITES=  http://www.nncpgo.org/download/
 
@@ -24,6 +25,7 @@ OPTIONS_DEFINE=       DOCS
 
 PORTDOCS=      AUTHORS NEWS NEWS.RU README README.RU THANKS
 INFO=          nncp
+MAKE_ARGS=     INFODIR=${STAGEDIR}${PREFIX}/${INFO_PATH}
 
 post-install:
        ${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample
index fb7246a5f15ff0e2943fe18ef3400a0075fc0020..3f4def9d10754b48b4b7b129cbe152775bbb6a4a 100644 (file)
@@ -112,5 +112,5 @@ func (ctx *Ctx) IsEnoughSpace(want int64) bool {
        if err := unix.Statfs(ctx.Spool, &s); err != nil {
                log.Fatalln(err)
        }
-       return s.Bavail*int64(s.Bsize) > want
+       return int64(s.Bavail)*int64(s.Bsize) > want
 }