View | Details | Raw Unified | Return to bug 215973 | Differences between
and this patch

Collapse All | Expand All

(-)net/nncp/Makefile (+33 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	nncp
4
DISTVERSION=	2.0
5
CATEGORIES=	net
6
MASTER_SITES=	http://www.nncpgo.org/download/
7
8
MAINTAINER=	stargrave@stargrave.org
9
COMMENT=	Utilities for secure store-and-forward files and mail exchanging
10
11
LICENSE=	GPLv3+
12
LICENSE_FILE=	${WRKSRC}/COPYING
13
14
BUILD_DEPENDS=	go:lang/go
15
16
USES=		tar:xz
17
MAKEFILE=	BSDmakefile
18
USE_RC_SUBR=	nncp-caller nncp-daemon nncp-toss
19
INSTALL_TARGET=	install-strip
20
21
SUB_FILES=	pkg-message pkg-install pkg-deinstall
22
23
OPTIONS_DEFINE=	DOCS
24
25
PORTDOCS=	AUTHORS NEWS NEWS.RU README README.RU THANKS
26
INFO=		nncp
27
28
post-install:
29
	${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample
30
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
31
	@cd ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d && ${LN} -s ../nncp.conf
32
33
.include <bsd.port.mk>
(-)net/nncp/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1514626571
2
SHA256 (nncp-2.0.tar.xz) = bef31b13fb25381ea511fb77067798ab27409238bdf5600fe2eadb29e5e78996
3
SIZE (nncp-2.0.tar.xz) = 1009932
(-)net/nncp/files/nncp-caller.in (+29 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: nncp-caller
6
# REQUIRE: DAEMON NETWORKING FILESYSTEMS
7
# KEYWORD: shutdown
8
#
9
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# nncp_caller_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable nncp-caller.
14
# nncp_caller_config (path):	Set to %%PREFIX%%/etc/nncp.yaml by default.
15
16
. /etc/rc.subr
17
18
name=nncp_caller
19
rcvar=nncp_caller_enable
20
21
load_rc_config $name
22
23
: ${nncp_caller_enable:="NO"}
24
: ${nncp_caller_config="%%PREFIX%%/etc/nncp.yaml"}
25
26
command=%%PREFIX%%/bin/nncp-caller
27
command_args="-quiet -cfg $nncp_caller_config &"
28
29
run_rc_command "$1"
(-)net/nncp/files/nncp-daemon.in (+32 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: nncp-daemon
6
# REQUIRE: DAEMON NETWORKING FILESYSTEMS
7
# KEYWORD: shutdown
8
#
9
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# nncp_daemon_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable nncp-daemon.
14
# nncp_daemon_config (path):	Set to %%PREFIX%%/etc/nncp.yaml by default.
15
# nncp_daemon_bind (string):	Address:port to bind to
16
#				Default is "[::]:5400".
17
18
. /etc/rc.subr
19
20
name=nncp_daemon
21
rcvar=nncp_daemon_enable
22
23
load_rc_config $name
24
25
: ${nncp_daemon_enable:="NO"}
26
: ${nncp_daemon_config="%%PREFIX%%/etc/nncp.yaml"}
27
: ${nncp_daemon_bind="[::]:5400"}
28
29
command=%%PREFIX%%/bin/nncp-daemon
30
command_args="-quiet -bind $nncp_daemon_bind -cfg $nncp_daemon_config &"
31
32
run_rc_command "$1"
(-)net/nncp/files/nncp-toss.in (+32 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: nncp-toss
6
# REQUIRE: DAEMON NETWORKING FILESYSTEMS
7
# KEYWORD: shutdown
8
#
9
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# nncp_toss_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable nncp-toss.
14
# nncp_toss_config (path):	Set to %%PREFIX%%/etc/nncp.yaml by default.
15
# nncp_toss_cycle   (int):	Repeat tossing after that number of seconds.
16
#				Default is "60".
17
18
. /etc/rc.subr
19
20
name=nncp_toss
21
rcvar=nncp_toss_enable
22
23
load_rc_config $name
24
25
: ${nncp_toss_enable:="NO"}
26
: ${nncp_toss_config="%%PREFIX%%/etc/nncp.yaml"}
27
: ${nncp_toss_cycle="60"}
28
29
command=%%PREFIX%%/bin/nncp-toss
30
command_args="-quiet -cycle $nncp_toss_cycle -cfg $nncp_toss_config &"
31
32
run_rc_command "$1"
(-)net/nncp/files/nncp.newsyslog.conf.sample (+1 lines)
Line 0 Link Here
1
/var/spool/nncp/log		644	7	100	*	CXN
(-)net/nncp/files/pkg-deinstall.in (+9 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
[ "$2" = "POST-DEINSTALL" ] || exit 0
4
5
if [ -e %%PREFIX%%/etc/nncp.yaml ]; then
6
	echo "%%PREFIX%%/etc/nncp.yaml with your private keys is not removed!"
7
fi
8
9
exec rmdir /var/spool/nncp
(-)net/nncp/files/pkg-install.in (+5 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
[ "$2" = "POST-INSTALL" ] || exit 0
4
5
[ -e /var/spool/nncp ] || exec mkdir -p /var/spool/nncp
(-)net/nncp/files/pkg-message.in (+17 lines)
Line 0 Link Here
1
======================================================================
2
- Add the following lines to /etc/rc.conf to enable nncp-daemon,
3
  nncp-caller and nncp-toss:
4
5
    nncp_daemon_enable="YES"
6
    nncp_caller_enable="YES"
7
    nncp_toss_enable="YES"
8
9
- %%PREFIX%%/etc/newsyslog.conf.d/nncp.conf
10
  log rotation configuration has been installed.
11
- /var/spool/nncp is the packet spool directory.
12
- Look in nncp.info how to integrate mail exchanging with Postfix.
13
- Generate NNCP configuration file using the command:
14
15
    # umask 077
16
    # nncp-newcfg > %%PREFIX%%/etc/nncp.yaml
17
======================================================================
(-)net/nncp/pkg-descr (+16 lines)
Line 0 Link Here
1
NNCP (Node to Node copy) is a collection of utilities simplifying
2
secure store-and-forward files and mail exchanging.
3
4
This utilities are intended to help build up small size (dozens of
5
nodes) ad-hoc friend-to-friend (F2F) statically routed darknet networks
6
for fire-and-forget secure reliable files, file requests and Internet
7
mail transmission. All packets are integrity checked, end-to-end
8
encrypted (E2EE), explicitly authenticated by known participants public
9
keys. Onion encryption is applied to relayed packets. Each node acts
10
both as a client and server, can use push and poll behaviour model.
11
12
Out-of-box offline sneakernet/floppynet, dead drops, sequential and
13
append-only CD-ROM/tape storages, air-gapped computers support. But
14
online TCP daemon with full-duplex resumable data transmission exists.
15
16
WWW: http://www.nncpgo.org/
(-)net/nncp/pkg-plist (+20 lines)
Line 0 Link Here
1
bin/nncp-bundle
2
bin/nncp-call
3
bin/nncp-caller
4
bin/nncp-cfgenc
5
bin/nncp-cfgmin
6
bin/nncp-cfgnew
7
bin/nncp-check
8
bin/nncp-daemon
9
bin/nncp-file
10
bin/nncp-freq
11
bin/nncp-log
12
bin/nncp-mail
13
bin/nncp-pkt
14
bin/nncp-reass
15
bin/nncp-rm
16
bin/nncp-stat
17
bin/nncp-toss
18
bin/nncp-xfer
19
@sample etc/nncp.conf.sample
20
etc/newsyslog.conf.d/nncp.conf

Return to bug 215973