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
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
PREFIX ?= /usr/local
-GO ?= go
SENDMAIL ?= /usr/sbin/sendmail
CFGPATH ?= $(PREFIX)/etc/nncp.yaml
-X cypherpunks.ru/nncp.DefaultSendmailPath=$(SENDMAIL) \
-X cypherpunks.ru/nncp.DefaultSpoolPath=$(SPOOLPATH) \
-X cypherpunks.ru/nncp.DefaultLogPath=$(LOGPATH)
-BUILDMOD ?= -mod=vendor
ALL = \
nncp-bundle \
SRC := $(PWD)/src/cypherpunks.ru/nncp
BIN := $(PWD)/bin
-GOPATH ?= $(PWD)/gopath
all: $(ALL)
@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 |
@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}
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.
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.
@node Новости
@section Новости
+@node Релиз 4.1
+@subsection Релиз 4.1
+@itemize
+@item
+Восстановлена работоспособность на GNU/Linux системах и Go версии 1.10.
+@end itemize
+
@node Релиз 4.0
@subsection Релиз 4.0
@itemize
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
-# $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/
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
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
}