@section nncp-freq
@verbatim
-% nncp-freq [options] NODE:SRC DST
+% nncp-freq [options] NODE:SRC [DST]
@end verbatim
Send file request to @option{NODE}, asking it to send its @file{SRC}
file from @ref{CfgFreq, freq} directory to our node under @file{DST}
-filename in our @ref{CfgIncoming, incoming} one.
+filename in our @ref{CfgIncoming, incoming} one. If @file{DST} is not
+specified, then last element of @file{SRC} will be used.
If @ref{CfgNotify, notification} is enabled on the remote side for
file request, then it will sent simple letter after successful file
@multitable {XXXXX} {XXXX KiB} {link sign} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
@headitem Version @tab Size @tab Tarball @tab SHA256 checksum
+@item @ref{Release 0.9, 0.9} @tab 942 KiB
+@tab @url{download/nncp-0.9.tar.xz, link} @url{download/nncp-0.9.tar.xz.sig, sign}
+@tab @code{8D0765A5 F9D81086 7E1F5AB4 52A9464D C5035CCB 4E09A29A 9C9A4934 1A72AB2C}
+
@item @ref{Release 0.8, 0.8} @tab 932 KiB
@tab @url{download/nncp-0.8.tar.xz, link} @url{download/nncp-0.8.tar.xz.sig, sign}
@tab @code{9BD607D5 C5551857 B7E9277D 0E857936 1DB7353A E0F1556E EA9B1D91 8305B184}
@node Новости
@section Новости
+@node Релиз 0.10
+@subsection Релиз 0.10
+@itemize
+@item
+@file{DST} аргумент @command{nncp-freq} команды теперь опционален.
+По-умолчанию будет подставлен последний элемент @file{SRC} пути.
+@end itemize
+
@node Релиз 0.9
@subsection Релиз 0.9
@itemize
See also this page @ref{Новости, on russian}.
+@node Release 0.10
+@section Release 0.10
+@itemize
+@item
+@command{nncp-freq}'s @file{DST} argument is optional now. Last
+@file{SRC} path's element will be used by default.
+@end itemize
+
@node Release 0.9
@section Release 0.9
@itemize
# $FreeBSD$
PORTNAME= nncp
-PORTVERSION= 0.9
+PORTVERSION= 0.10
CATEGORIES= net
MASTER_SITES= http://www.nncpgo.org/download/ \
http://sourceforge.net/projects/nncp/files/
"io/ioutil"
"log"
"os"
+ "path/filepath"
"strings"
"cypherpunks.ru/nncp"
func usage() {
fmt.Fprintf(os.Stderr, nncp.UsageHeader())
fmt.Fprintln(os.Stderr, "nncp-freq -- send file request\n")
- fmt.Fprintf(os.Stderr, "Usage: %s [options] NODE:SRC DST\nOptions:\n", os.Args[0])
+ fmt.Fprintf(os.Stderr, "Usage: %s [options] NODE:SRC [DST]\nOptions:\n", os.Args[0])
flag.PrintDefaults()
}
fmt.Println(nncp.VersionGet())
return
}
- if flag.NArg() != 2 {
+ if flag.NArg() == 0 {
usage()
os.Exit(1)
}
log.Fatalln("Invalid NODE specified:", err)
}
+ var dst string
+ if flag.NArg() == 2 {
+ dst = flag.Arg(1)
+ } else {
+ dst = filepath.Base(splitted[1])
+ }
+
if err = ctx.TxFreq(
node,
nice,
splitted[1],
- flag.Arg(1),
+ dst,
int64(*minSize)*1024,
); err != nil {
log.Fatalln(err)
-Subproject commit 0fe963104e9d1877082f8fb38f816fcd97eb1d10
+Subproject commit 69be088f860613049aa58c65154d1b1d32bbdf90
-Subproject commit 34057069f4ab13dc4433c68d368737ebeafcccdc
+Subproject commit 1f9224279e98554b6a6432d4dd998a739f8b2b7c
-Subproject commit 0b25a408a50076fbbcae6b7ac0ea5fbb0b085e79
+Subproject commit 94b76065f2d2081d0fef24a6e67c571f51a6408a