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

Collapse All | Expand All

(-)net/nncp/Makefile (-7 / +8 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	nncp
3
PORTNAME=	nncp
4
DISTVERSION=	4.0
4
DISTVERSION=	5.0.0
5
CATEGORIES=	net
5
CATEGORIES=	net
6
MASTER_SITES=	http://www.nncpgo.org/download/
6
MASTER_SITES=	http://www.nncpgo.org/download/
7
7
Lines 8-29 Link Here
8
MAINTAINER=	stargrave@stargrave.org
8
MAINTAINER=	stargrave@stargrave.org
9
COMMENT=	Utilities for secure store-and-forward files, mail, command exchanging
9
COMMENT=	Utilities for secure store-and-forward files, mail, command exchanging
10
10
11
LICENSE=	GPLv3+
11
LICENSE=	GPLv3
12
LICENSE_FILE=	${WRKSRC}/COPYING
12
LICENSE_FILE=	${WRKSRC}/COPYING
13
13
14
USES=		go:no_targets tar:xz
14
USES=		go:no_targets tar:xz
15
MAKEFILE=	BSDmakefile
15
16
USE_RC_SUBR=	nncp-caller nncp-daemon nncp-toss
16
USE_RC_SUBR=	nncp-caller nncp-daemon nncp-toss
17
18
MAKE_ARGS=	INFODIR=${STAGEDIR}${PREFIX}/${INFO_PATH}
17
INSTALL_TARGET=	install-strip
19
INSTALL_TARGET=	install-strip
18
20
19
SUB_FILES=	pkg-message pkg-install pkg-deinstall
21
SUB_FILES=	pkg-message pkg-install pkg-deinstall
20
22
23
INFO=		nncp
24
PORTDOCS=	AUTHORS NEWS NEWS.RU README README.RU THANKS
25
21
OPTIONS_DEFINE=	DOCS
26
OPTIONS_DEFINE=	DOCS
22
27
23
PORTDOCS=	AUTHORS NEWS NEWS.RU README README.RU THANKS
24
INFO=		nncp
25
MAKE_ARGS=	INFODIR=${STAGEDIR}${PREFIX}/${INFO_PATH}
26
27
post-install:
28
post-install:
28
	${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample
29
	${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample
29
30
(-)net/nncp/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1556461726
1
TIMESTAMP = 1573851723
2
SHA256 (nncp-4.0.tar.xz) = eafa627222e355fceb772a90fc6dea8eae1f16953f48a4a357ada0b4ff918452
2
SHA256 (nncp-5.0.0.tar.xz) = 3696d7eeb0783e9187e5eef4efc35235104523537c51fa4c9bd3cbeea22678b3
3
SIZE (nncp-4.0.tar.xz) = 1256872
3
SIZE (nncp-5.0.0.tar.xz) = 1126312
(-)net/nncp/files/nncp-caller.in (-2 / +2 lines)
Lines 11-17 Link Here
11
#
11
#
12
# nncp_caller_enable (bool):	Set to NO by default.
12
# nncp_caller_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable nncp-caller.
13
#				Set it to YES to enable nncp-caller.
14
# nncp_caller_config (path):	Set to %%PREFIX%%/etc/nncp.yaml by default.
14
# nncp_caller_config (path):	Set to %%PREFIX%%/etc/nncp.hjson by default.
15
15
16
. /etc/rc.subr
16
. /etc/rc.subr
17
17
Lines 21-27 Link Here
21
load_rc_config $name
21
load_rc_config $name
22
22
23
: ${nncp_caller_enable:="NO"}
23
: ${nncp_caller_enable:="NO"}
24
: ${nncp_caller_config="%%PREFIX%%/etc/nncp.yaml"}
24
: ${nncp_caller_config="%%PREFIX%%/etc/nncp.hjson"}
25
25
26
command=%%PREFIX%%/bin/nncp-caller
26
command=%%PREFIX%%/bin/nncp-caller
27
command_args="-quiet -cfg $nncp_caller_config &"
27
command_args="-quiet -cfg $nncp_caller_config &"
(-)net/nncp/files/nncp-daemon.in (-2 / +2 lines)
Lines 11-17 Link Here
11
#
11
#
12
# nncp_daemon_enable (bool):	Set to NO by default.
12
# nncp_daemon_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable nncp-daemon.
13
#				Set it to YES to enable nncp-daemon.
14
# nncp_daemon_config (path):	Set to %%PREFIX%%/etc/nncp.yaml by default.
14
# nncp_daemon_config (path):	Set to %%PREFIX%%/etc/nncp.hjson by default.
15
# nncp_daemon_bind (string):	Address:port to bind to
15
# nncp_daemon_bind (string):	Address:port to bind to
16
#				Default is "[::]:5400".
16
#				Default is "[::]:5400".
17
17
Lines 23-29 Link Here
23
load_rc_config $name
23
load_rc_config $name
24
24
25
: ${nncp_daemon_enable:="NO"}
25
: ${nncp_daemon_enable:="NO"}
26
: ${nncp_daemon_config="%%PREFIX%%/etc/nncp.yaml"}
26
: ${nncp_daemon_config="%%PREFIX%%/etc/nncp.hjson"}
27
: ${nncp_daemon_bind="[::]:5400"}
27
: ${nncp_daemon_bind="[::]:5400"}
28
28
29
command=%%PREFIX%%/bin/nncp-daemon
29
command=%%PREFIX%%/bin/nncp-daemon
(-)net/nncp/files/nncp-toss.in (-2 / +2 lines)
Lines 11-17 Link Here
11
#
11
#
12
# nncp_toss_enable (bool):	Set to NO by default.
12
# nncp_toss_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable nncp-toss.
13
#				Set it to YES to enable nncp-toss.
14
# nncp_toss_config (path):	Set to %%PREFIX%%/etc/nncp.yaml by default.
14
# nncp_toss_config (path):	Set to %%PREFIX%%/etc/nncp.hjson by default.
15
# nncp_toss_cycle   (int):	Repeat tossing after that number of seconds.
15
# nncp_toss_cycle   (int):	Repeat tossing after that number of seconds.
16
#				Default is "60".
16
#				Default is "60".
17
17
Lines 23-29 Link Here
23
load_rc_config $name
23
load_rc_config $name
24
24
25
: ${nncp_toss_enable:="NO"}
25
: ${nncp_toss_enable:="NO"}
26
: ${nncp_toss_config="%%PREFIX%%/etc/nncp.yaml"}
26
: ${nncp_toss_config="%%PREFIX%%/etc/nncp.hjson"}
27
: ${nncp_toss_cycle="60"}
27
: ${nncp_toss_cycle="60"}
28
28
29
command=%%PREFIX%%/bin/nncp-toss
29
command=%%PREFIX%%/bin/nncp-toss
(-)net/nncp/files/pkg-deinstall.in (-2 / +2 lines)
Lines 2-9 Link Here
2
2
3
[ "$2" = "POST-DEINSTALL" ] || exit 0
3
[ "$2" = "POST-DEINSTALL" ] || exit 0
4
4
5
if [ -e %%PREFIX%%/etc/nncp.yaml ]; then
5
if [ -e %%PREFIX%%/etc/nncp.hjson ]; then
6
	echo "%%PREFIX%%/etc/nncp.yaml with your private keys is not removed!"
6
	echo "%%PREFIX%%/etc/nncp.hjson with your private keys is not removed!"
7
fi
7
fi
8
8
9
exec rmdir /var/spool/nncp
9
exec rmdir /var/spool/nncp
(-)net/nncp/files/pkg-message.in (-1 / +1 lines)
Lines 15-21 Link Here
15
- Generate NNCP configuration file using the command:
15
- Generate NNCP configuration file using the command:
16
16
17
    # umask 077
17
    # umask 077
18
    # nncp-cfgnew > %%PREFIX%%/etc/nncp.yaml
18
    # nncp-cfgnew > %%PREFIX%%/etc/nncp.hjson
19
EOM
19
EOM
20
}
20
}
21
]
21
]

Return to bug 241992