SPOOLPATH=${SPOOLPATH:-/var/spool/nncp}
LOGPATH=${LOGPATH:-/var/spool/nncp/log}
-BINDIR=${DESTDIR}${PREFIX}/bin
-INFODIR=${DESTDIR}${PREFIX}/info
-DOCDIR=${DESTDIR}${PREFIX}/share/doc/nncp
+BINDIR=${BINDIR:-${DESTDIR}${PREFIX}/bin}
+INFODIR=${INFODIR:-${DESTDIR}${PREFIX}/info}
+DOCDIR=${DOCDIR:-${DESTDIR}${PREFIX}/share/doc/nncp}
@item @code{golang.org/x/crypto} @tab BSD 3-Clause
@item @code{golang.org/x/net} @tab BSD 3-Clause
@item @code{golang.org/x/sys} @tab BSD 3-Clause
+@item @code{golang.org/x/term} @tab BSD 3-Clause
@end multitable
@multitable {XXXXX} {XXXX-XX-XX} {XXXX KiB} {link sign} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
@headitem Version @tab Date @tab Size @tab Tarball @tab SHA256 checksum
+@item @ref{Release 5.5.0, 5.5.0} @tab 2021-01-07 @tab 1161 KiB
+@tab @url{download/nncp-5.5.0.tar.xz, link} @url{download/nncp-5.5.0.tar.xz.sig, sign}
+@tab @code{EF0CBEE1 520BE97D A210794C 172BF444 E6F75DB2 84F5BD05 66919193 326AED77}
+
@item @ref{Release 5.4.1, 5.4.1} @tab 2020-09-28 @tab 1143 KiB
@tab @url{download/nncp-5.4.1.tar.xz, link} @url{download/nncp-5.4.1.tar.xz.sig, sign}
@tab @code{A02D0C9B 51533DF8 115C17E1 02F8C485 9F7B805A 64290CDF 79151BA9 E627FA63}
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.10+ version. @command{Make} (BSD
+and you have to install Go compiler 1.12+ version. @command{Make} (BSD
and GNU versions are fine) is recommended for convenient building.
@url{https://www.gnu.org/software/texinfo/, Texinfo} is used for
building documentation (although tarballs already include it).
@node Новости
@section Новости
+@node Релиз 5.5.1
+@subsection Релиз 5.5.1
+@itemize
+
+@item
+Уважать @env{BINDIR}, @env{INFODIR} и @env{DOCDIR} переменные окружения
+в @file{config} во время установки.
+
+@end itemize
+
@node Релиз 5.5.0
@subsection Релиз 5.5.0
@itemize
появились @option{-autotoss*} опции для запуска tosser после завершения звонка.
@item
-Обновлены зависимые библиотеки.
+Обновлены зависимые библиотеки. Минимальная требуемая версия Go 1.12.
@end itemize
See also this page @ref{Новости, on russian}.
+@node Release 5.5.1
+@section Release 5.5.1
+@itemize
+
+@item
+Respect for @env{BINDIR}, @env{INFODIR} and @env{DOCDIR} environment
+variables in @file{config} during installation.
+
+@end itemize
+
@node Release 5.5.0
@section Release 5.5.0
@itemize
have @option{-autotoss*} options for running tosser after call is ended.
@item
-Updated dependencies.
+Updated dependencies. Minimal required Go version is 1.12.
@end itemize
cd $tmp/nncp-$release
git checkout v$release
redo module-name VERSION
+rm -r .redo
mod_name=`cat module-name`
rm -fr .git
golang.org/x/crypto
golang.org/x/net
golang.org/x/sys
+golang.org/x/term
"
for mod in $mods; do
mod_path=$(sed -n "s# // indirect## ; s#^ \($mod\) \(.*\)\$#\1@\2#p" src/$mod_name/go.mod)
golang.org/x/crypto/poly1305
golang.org/x/crypto/README.md
golang.org/x/crypto/salsa20
-golang.org/x/crypto/ssh/terminal
golang.org/x/net/AUTHORS
golang.org/x/net/CONTRIBUTORS
golang.org/x/net/go.mod
golang.org/x/sys/PATENTS
golang.org/x/sys/README.md
golang.org/x/sys/unix
+golang.org/x/term
EOF
tar cfCI - src $tmp/includes | tar xfC - $tmp
rm -fr src/golang.org $tmp/includes
########################################################################
-rm -r .redo
+rm -r .redo doc/.redo
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
find . -type f -name "*.sh" -exec chmod 755 {} \;
"github.com/gorhill/cronexpr"
"github.com/hjson/hjson-go"
"golang.org/x/crypto/ed25519"
- "golang.org/x/crypto/ssh/terminal"
+ "golang.org/x/term"
)
const (
type CfgJSON struct {
Spool string `json:"spool"`
Log string `json:"log"`
- Umask string `json:"umask",omitempty`
+ Umask string `json:"umask,omitempty"`
- OmitPrgrs bool `json:"noprogress",omitempty`
+ OmitPrgrs bool `json:"noprogress,omitempty"`
Notify *NotifyJSON `json:"notify,omitempty"`
var err error
if bytes.Compare(data[:8], MagicNNCPBv3[:]) == 0 {
os.Stderr.WriteString("Passphrase:") // #nosec G104
- password, err := terminal.ReadPassword(0)
+ password, err := term.ReadPassword(0)
if err != nil {
log.Fatalln(err)
}
xdr "github.com/davecgh/go-xdr/xdr2"
"go.cypherpunks.ru/nncp/v5"
"golang.org/x/crypto/blake2b"
- "golang.org/x/crypto/ssh/terminal"
+ "golang.org/x/term"
)
func usage() {
}
os.Stderr.WriteString("Passphrase:") // #nosec G104
- password, err := terminal.ReadPassword(0)
+ password, err := term.ReadPassword(0)
if err != nil {
log.Fatalln(err)
}
return
}
- password1, err := terminal.ReadPassword(0)
+ password1, err := term.ReadPassword(0)
if err != nil {
log.Fatalln(err)
}
os.Stderr.WriteString("\n") // #nosec G104
os.Stderr.WriteString("Repeat passphrase:") // #nosec G104
- password2, err := terminal.ReadPassword(0)
+ password2, err := term.ReadPassword(0)
if err != nil {
log.Fatalln(err)
}
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
golang.org/x/net v0.0.0-20201224014010-6772e930b67b
golang.org/x/sys v0.0.0-20210105210732-16f7687f5001
+ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
)
-go 1.10
+go 1.12
)
var (
- Version string = "5.5.0"
+ Version string = "5.5.1"
Base32Codec *base32.Encoding = base32.StdEncoding.WithPadding(base32.NoPadding)
)