]> Cypherpunks repositories - nncp.git/commitdiff
Let FreeBSD port be maintained in ports repository itself
authorSergey Matveev <stargrave@stargrave.org>
Sun, 28 Sep 2025 08:52:01 +0000 (11:52 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 28 Sep 2025 09:00:50 +0000 (12:00 +0300)
makedist
ports/nncp/Makefile [deleted file]
ports/nncp/files/nncp-caller.in [deleted file]
ports/nncp/files/nncp-daemon.in [deleted file]
ports/nncp/files/nncp-toss.in [deleted file]
ports/nncp/files/nncp.newsyslog.conf.sample [deleted file]
ports/nncp/files/pkg-deinstall.in [deleted file]
ports/nncp/files/pkg-install.in [deleted file]
ports/nncp/files/pkg-message.in [deleted file]
ports/nncp/pkg-descr [deleted file]
ports/nncp/pkg-plist [deleted file]

index f250bf6b95883aa34ce7952cf5067fada8a317ed..5c95e7ad82ca59ee090b2b42c0a2cb19985c39bc 100755 (executable)
--- a/makedist
+++ b/makedist
@@ -29,7 +29,6 @@ rm -r \
 find github.com/klauspost/compress golang.org/x/sys -name "*_test.go" -delete
 find . -type d -exec rmdir {} + 2>/dev/null || :
 cd ../..
-rm -r ports
 find . \( \
     -name .gitignore -o \
     -name .travis.yml -o \
diff --git a/ports/nncp/Makefile b/ports/nncp/Makefile
deleted file mode 100644 (file)
index e672ead..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-PORTNAME=      nncp
-DISTVERSION=   8.8.1
-CATEGORIES=    net
-MASTER_SITES=  http://www.nncpgo.org/download/
-
-MAINTAINER=    stargrave@stargrave.org
-COMMENT=       Utilities for secure store-and-forward files, mail, command exchanging
-WWW=           http://www.nncpgo.org/
-
-LICENSE=       GPLv3
-LICENSE_FILE=  ${WRKSRC}/COPYING
-
-USES=          go:modules,no_targets tar:xz
-
-USE_RC_SUBR=   nncp-caller nncp-daemon nncp-toss
-
-MAKE_ARGS=     INFODIR=${STAGEDIR}${PREFIX}/${INFO_PATH}
-MAKE_ENV=      ${GO_ENV}
-INSTALL_TARGET=        install-strip
-
-SUB_FILES=     pkg-message pkg-install pkg-deinstall
-
-INFO=          nncp
-PORTDOCS=      AUTHORS NEWS NEWS.RU README README.RU THANKS
-
-OPTIONS_DEFINE=        DOCS
-
-post-install:
-       ${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
-       ${INSTALL_DATA} ${FILESDIR}/nncp.newsyslog.conf.sample ${STAGEDIR}${PREFIX}/etc/nncp.conf.sample
-
-.include <bsd.port.mk>
diff --git a/ports/nncp/files/nncp-caller.in b/ports/nncp/files/nncp-caller.in
deleted file mode 100644 (file)
index 3ae65fb..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-# 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.hjson 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.hjson"}
-
-command=%%PREFIX%%/bin/nncp-caller
-command_args="-quiet -cfg $nncp_caller_config &"
-
-run_rc_command "$1"
diff --git a/ports/nncp/files/nncp-daemon.in b/ports/nncp/files/nncp-daemon.in
deleted file mode 100644 (file)
index 0e9b6dc..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# 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.hjson 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.hjson"}
-: ${nncp_daemon_bind="[::]:5400"}
-
-command=%%PREFIX%%/bin/nncp-daemon
-command_args="-quiet -bind $nncp_daemon_bind -cfg $nncp_daemon_config &"
-
-run_rc_command "$1"
diff --git a/ports/nncp/files/nncp-toss.in b/ports/nncp/files/nncp-toss.in
deleted file mode 100644 (file)
index 99dc6fc..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# 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.hjson 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.hjson"}
-: ${nncp_toss_cycle="60"}
-
-command=%%PREFIX%%/bin/nncp-toss
-command_args="-quiet -cycle $nncp_toss_cycle -cfg $nncp_toss_config &"
-
-run_rc_command "$1"
diff --git a/ports/nncp/files/nncp.newsyslog.conf.sample b/ports/nncp/files/nncp.newsyslog.conf.sample
deleted file mode 100644 (file)
index 47e134a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/var/spool/nncp/log            644     7       100     *       BCYN
diff --git a/ports/nncp/files/pkg-deinstall.in b/ports/nncp/files/pkg-deinstall.in
deleted file mode 100644 (file)
index 76a8b97..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-[ "$2" = "POST-DEINSTALL" ] || exit 0
-
-if [ -e %%PREFIX%%/etc/nncp.hjson ]; then
-       echo "%%PREFIX%%/etc/nncp.hjson with your private keys is not removed!"
-fi
-
-exec rmdir /var/spool/nncp
diff --git a/ports/nncp/files/pkg-install.in b/ports/nncp/files/pkg-install.in
deleted file mode 100644 (file)
index ff6cd87..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-[ "$2" = "POST-INSTALL" ] || exit 0
-
-[ -e /var/spool/nncp ] || exec mkdir -p /var/spool/nncp
diff --git a/ports/nncp/files/pkg-message.in b/ports/nncp/files/pkg-message.in
deleted file mode 100644 (file)
index db579d8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-[
-{ type: install
-  message: <<EOM
-- 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/Exim.
-- Generate NNCP configuration file using the command:
-
-    # umask 077
-    # nncp-cfgnew >%%PREFIX%%/etc/nncp.hjson
-EOM
-}
-]
diff --git a/ports/nncp/pkg-descr b/ports/nncp/pkg-descr
deleted file mode 100644 (file)
index 81cd3ad..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-NNCP (Node to Node copy) is a collection of utilities simplifying
-secure store-and-forward files, mail and commands exchanging.
-
-This utilities are intended to help build up small size (dozens of
-nodes) ad-hoc friend-to-friend (F2F) statically routed darknet
-delay-tolerant networks for fire-and-forget secure reliable files, file
-requests, Internet mail and commands 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. Also there is multicasting areas support.
-
-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.
diff --git a/ports/nncp/pkg-plist b/ports/nncp/pkg-plist
deleted file mode 100644 (file)
index e89c748..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-bin/nncp-ack
-bin/nncp-bundle
-bin/nncp-call
-bin/nncp-caller
-bin/nncp-cfgdir
-bin/nncp-cfgenc
-bin/nncp-cfgmin
-bin/nncp-cfgnew
-bin/nncp-check
-bin/nncp-cronexpr
-bin/nncp-daemon
-bin/nncp-exec
-bin/nncp-file
-bin/nncp-freq
-bin/nncp-hash
-bin/nncp-log
-bin/nncp-pkt
-bin/nncp-reass
-bin/nncp-rm
-bin/nncp-stat
-bin/nncp-toss
-bin/nncp-trns
-bin/nncp-xfer
-@dir etc/newsyslog.conf.d
-@sample etc/nncp.conf.sample etc/newsyslog.conf.d/nncp.conf