From owner-svn-ports-head@freebsd.org Mon Jan 29 16:17:47 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D7ADECF945; Mon, 29 Jan 2018 16:17:47 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D43437A1FE; Mon, 29 Jan 2018 16:17:46 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CEFAC262B; Mon, 29 Jan 2018 16:17:46 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0TGHkuF037987; Mon, 29 Jan 2018 16:17:46 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0TGHjKg037975; Mon, 29 Jan 2018 16:17:45 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201801291617.w0TGHjKg037975@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 29 Jan 2018 16:17:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460314 - in head/net: . nncp nncp/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/net: . nncp nncp/files X-SVN-Commit-Revision: 460314 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 16:17:47 -0000 Author: yuri Date: Mon Jan 29 16:17:45 2018 New Revision: 460314 URL: https://svnweb.freebsd.org/changeset/ports/460314 Log: New port: net/nncp: Utilities for secure store-and-forward files and mail exchanging More information is here: http://www.nncpgo.org/ PR: 215973 Submitted by: Sergey Matveev Approved by: tcberner (mentor), mat Differential Revision: https://reviews.freebsd.org/D13700 Added: head/net/nncp/ head/net/nncp/Makefile (contents, props changed) head/net/nncp/distinfo (contents, props changed) head/net/nncp/files/ head/net/nncp/files/nncp-caller.in (contents, props changed) head/net/nncp/files/nncp-daemon.in (contents, props changed) head/net/nncp/files/nncp-toss.in (contents, props changed) head/net/nncp/files/nncp.newsyslog.conf.sample (contents, props changed) head/net/nncp/files/pkg-deinstall.in (contents, props changed) head/net/nncp/files/pkg-install.in (contents, props changed) head/net/nncp/files/pkg-message.in (contents, props changed) head/net/nncp/pkg-descr (contents, props changed) head/net/nncp/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Mon Jan 29 15:49:54 2018 (r460313) +++ head/net/Makefile Mon Jan 29 16:17:45 2018 (r460314) @@ -480,6 +480,7 @@ SUBDIR += nifmon SUBDIR += nload SUBDIR += nmsg + SUBDIR += nncp SUBDIR += nocatsplash SUBDIR += norm SUBDIR += nph Added: head/net/nncp/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/Makefile Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= nncp +DISTVERSION= 2.0 +CATEGORIES= net +MASTER_SITES= http://www.nncpgo.org/download/ + +MAINTAINER= stargrave@stargrave.org +COMMENT= Utilities for secure store-and-forward files and mail exchanging + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= go:lang/go + +USES= tar:xz +MAKEFILE= BSDmakefile +USE_RC_SUBR= nncp-caller nncp-daemon nncp-toss +INSTALL_TARGET= install-strip + +SUB_FILES= pkg-message pkg-install pkg-deinstall + +OPTIONS_DEFINE= DOCS + +PORTDOCS= AUTHORS NEWS NEWS.RU README README.RU THANKS +INFO= nncp + +post-install: + ${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample + +.include Added: head/net/nncp/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/distinfo Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,3 @@ +TIMESTAMP = 1514626571 +SHA256 (nncp-2.0.tar.xz) = bef31b13fb25381ea511fb77067798ab27409238bdf5600fe2eadb29e5e78996 +SIZE (nncp-2.0.tar.xz) = 1009932 Added: head/net/nncp/files/nncp-caller.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/files/nncp-caller.in Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: nncp-caller +# REQUIRE: DAEMON NETWORKING FILESYSTEMS +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# nncp_caller_enable (bool): Set to NO by default. +# Set it to YES to enable nncp-caller. +# nncp_caller_config (path): Set to %%PREFIX%%/etc/nncp.yaml by default. + +. /etc/rc.subr + +name=nncp_caller +rcvar=nncp_caller_enable + +load_rc_config $name + +: ${nncp_caller_enable:="NO"} +: ${nncp_caller_config="%%PREFIX%%/etc/nncp.yaml"} + +command=%%PREFIX%%/bin/nncp-caller +command_args="-quiet -cfg $nncp_caller_config &" + +run_rc_command "$1" Added: head/net/nncp/files/nncp-daemon.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/files/nncp-daemon.in Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: nncp-daemon +# REQUIRE: DAEMON NETWORKING FILESYSTEMS +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# nncp_daemon_enable (bool): Set to NO by default. +# Set it to YES to enable nncp-daemon. +# nncp_daemon_config (path): Set to %%PREFIX%%/etc/nncp.yaml by default. +# nncp_daemon_bind (string): Address:port to bind to +# Default is "[::]:5400". + +. /etc/rc.subr + +name=nncp_daemon +rcvar=nncp_daemon_enable + +load_rc_config $name + +: ${nncp_daemon_enable:="NO"} +: ${nncp_daemon_config="%%PREFIX%%/etc/nncp.yaml"} +: ${nncp_daemon_bind="[::]:5400"} + +command=%%PREFIX%%/bin/nncp-daemon +command_args="-quiet -bind $nncp_daemon_bind -cfg $nncp_daemon_config &" + +run_rc_command "$1" Added: head/net/nncp/files/nncp-toss.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/files/nncp-toss.in Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: nncp-toss +# REQUIRE: DAEMON NETWORKING FILESYSTEMS +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# nncp_toss_enable (bool): Set to NO by default. +# Set it to YES to enable nncp-toss. +# nncp_toss_config (path): Set to %%PREFIX%%/etc/nncp.yaml by default. +# nncp_toss_cycle (int): Repeat tossing after that number of seconds. +# Default is "60". + +. /etc/rc.subr + +name=nncp_toss +rcvar=nncp_toss_enable + +load_rc_config $name + +: ${nncp_toss_enable:="NO"} +: ${nncp_toss_config="%%PREFIX%%/etc/nncp.yaml"} +: ${nncp_toss_cycle="60"} + +command=%%PREFIX%%/bin/nncp-toss +command_args="-quiet -cycle $nncp_toss_cycle -cfg $nncp_toss_config &" + +run_rc_command "$1" Added: head/net/nncp/files/nncp.newsyslog.conf.sample ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/files/nncp.newsyslog.conf.sample Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1 @@ +/var/spool/nncp/log 644 7 100 * CXN Added: head/net/nncp/files/pkg-deinstall.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/files/pkg-deinstall.in Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,9 @@ +#!/bin/sh + +[ "$2" = "POST-DEINSTALL" ] || exit 0 + +if [ -e %%PREFIX%%/etc/nncp.yaml ]; then + echo "%%PREFIX%%/etc/nncp.yaml with your private keys is not removed!" +fi + +exec rmdir /var/spool/nncp Added: head/net/nncp/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/files/pkg-install.in Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,5 @@ +#!/bin/sh + +[ "$2" = "POST-INSTALL" ] || exit 0 + +[ -e /var/spool/nncp ] || exec mkdir -p /var/spool/nncp Added: head/net/nncp/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/files/pkg-message.in Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,17 @@ +====================================================================== +- Add the following lines to /etc/rc.conf to enable nncp-daemon, + nncp-caller and nncp-toss: + + nncp_daemon_enable="YES" + nncp_caller_enable="YES" + nncp_toss_enable="YES" + +- %%PREFIX%%/etc/newsyslog.conf.d/nncp.conf + log rotation configuration has been installed. +- /var/spool/nncp is the packet spool directory. +- Look in nncp.info how to integrate mail exchanging with Postfix. +- Generate NNCP configuration file using the command: + + # umask 077 + # nncp-cfgnew > %%PREFIX%%/etc/nncp.yaml +====================================================================== Added: head/net/nncp/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/pkg-descr Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,16 @@ +NNCP (Node to Node copy) is a collection of utilities simplifying +secure store-and-forward files and mail exchanging. + +This utilities are intended to help build up small size (dozens of +nodes) ad-hoc friend-to-friend (F2F) statically routed darknet networks +for fire-and-forget secure reliable files, file requests and Internet +mail transmission. All packets are integrity checked, end-to-end +encrypted (E2EE), explicitly authenticated by known participants public +keys. Onion encryption is applied to relayed packets. Each node acts +both as a client and server, can use push and poll behaviour model. + +Out-of-box offline sneakernet/floppynet, dead drops, sequential and +append-only CD-ROM/tape storages, air-gapped computers support. But +online TCP daemon with full-duplex resumable data transmission exists. + +WWW: http://www.nncpgo.org/ Added: head/net/nncp/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nncp/pkg-plist Mon Jan 29 16:17:45 2018 (r460314) @@ -0,0 +1,19 @@ +bin/nncp-bundle +bin/nncp-call +bin/nncp-caller +bin/nncp-cfgenc +bin/nncp-cfgmin +bin/nncp-cfgnew +bin/nncp-check +bin/nncp-daemon +bin/nncp-file +bin/nncp-freq +bin/nncp-log +bin/nncp-mail +bin/nncp-pkt +bin/nncp-reass +bin/nncp-rm +bin/nncp-stat +bin/nncp-toss +bin/nncp-xfer +@sample etc/nncp.conf.sample etc/newsyslog.conf.d/nncp.conf