Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2026 07:42:36 +0000
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1e3b8031a09b - main - news/inn{-current}: Add a dedicated nnrpd rc.d
Message-ID:  <6a0d65ec.3c42f.42502b15@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e3b8031a09bbbd2c2ad61e110f0d6c6fd1f63c9

commit 1e3b8031a09bbbd2c2ad61e110f0d6c6fd1f63c9
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-05-20 07:37:40 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-05-20 07:42:30 +0000

    news/inn{-current}: Add a dedicated nnrpd rc.d
    
    While inn typically registers port 119 and handles spawning nnrpd for
    reader connections, it is customary to run TLS-only nnrpd on port 563:
    https://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html#S4
    
    Provide an nnrpd rc.d script for this purpose.  This requires innd for
    start but is otherwise decoupled.  The admin should be aware that i.e.
    stopping innd will disrupt posting.
---
 news/inn-current/Makefile |  2 +-
 news/inn/Makefile         |  4 ++--
 news/inn/files/nnrpd.in   | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 3 deletions(-)

diff --git a/news/inn-current/Makefile b/news/inn-current/Makefile
index 2287e1fc5ed3..007f6f54bd5a 100644
--- a/news/inn-current/Makefile
+++ b/news/inn-current/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	inn-current
 PORTVERSION=	${SNAPSHOT}
-PORTREVISION=	5
+PORTREVISION=	6
 MASTER_SITE_SUBDIR=	inn/snapshots
 DISTNAME=	inn-${BRANCH}-${SNAPSHOT}
 
diff --git a/news/inn/Makefile b/news/inn/Makefile
index 43f488796bb4..e54a57cf5e58 100644
--- a/news/inn/Makefile
+++ b/news/inn/Makefile
@@ -1,6 +1,6 @@
 PORTNAME?=	inn
 PORTVERSION?=	2.7.3
-PORTREVISION?=	2
+PORTREVISION?=	3
 CATEGORIES=	news
 MASTER_SITES=	ISC
 MASTER_SITE_SUBDIR?=	${PORTNAME}
@@ -20,7 +20,7 @@ RUN_DEPENDS:=	${BUILD_DEPENDS}
 
 USES=		cpe gmake libtool perl5 uidfix
 CPE_VENDOR=	isc
-USE_RC_SUBR=	innd
+USE_RC_SUBR=	innd nnrpd
 
 .ifnmake portclippy
 VARBASE?=	/var
diff --git a/news/inn/files/nnrpd.in b/news/inn/files/nnrpd.in
new file mode 100644
index 000000000000..8ad3caaa403f
--- /dev/null
+++ b/news/inn/files/nnrpd.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# PROVIDE: nnrpd
+# REQUIRE: DAEMON innd
+# KEYWORD: shutdown
+
+# innd usually handles port 119 itself and spawns nnrpd for reader
+# connections.  This rc script is primarily for running nnrpd as a
+# standalone TLS daemon on port 563.
+
+. /etc/rc.subr
+
+name=nnrpd
+rcvar=nnrpd_enable
+
+load_rc_config ${name}
+
+: ${nnrpd_enable:="NO"}
+: ${nnrpd_port:="563"}
+: ${nnrpd_flags:="-D -p ${nnrpd_port} -S"}
+
+extra_commands="reload"
+
+# nnrpd writes its pidfile as nnrpd.pid on the default NNTP port and
+# nnrpd-<port>.pid otherwise.
+if [ "${nnrpd_port}" = "119" ]; then
+	pidfile="%%RUNDIR%%/${name}.pid"
+else
+	pidfile="%%RUNDIR%%/${name}-${nnrpd_port}.pid"
+fi
+command="%%NEWSBASE%%/bin/${name}"
+
+stop_postcmd="rm -f ${pidfile}"
+
+run_rc_command "$1"


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a0d65ec.3c42f.42502b15>