Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2025 20:35:12 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 477be1ef3e8a - main - ftp/freebsd-ftpd: add missing startup script
Message-ID:  <202510202035.59KKZCxe034079@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=477be1ef3e8a5a3b22b1db666fb13c4fbd312933

commit 477be1ef3e8a5a3b22b1db666fb13c4fbd312933
Author:     Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
AuthorDate: 2025-10-14 17:02:59 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-10-20 20:33:57 +0000

    ftp/freebsd-ftpd: add missing startup script
    
    When the ftpd daemon was in the base system, it was possible (at least
    since 2006) to run it as a standalone daemon without inetd.  Make this
    possible for the port as well.
    
    PR: 290142
---
 ftp/freebsd-ftpd/Makefile      |  2 ++
 ftp/freebsd-ftpd/files/ftpd.in | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/ftp/freebsd-ftpd/Makefile b/ftp/freebsd-ftpd/Makefile
index ac65a6a11701..0aefa27362f4 100644
--- a/ftp/freebsd-ftpd/Makefile
+++ b/ftp/freebsd-ftpd/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	freebsd-ftpd
 DISTVERSIONPREFIX=	v
 DISTVERSION=	20250929
+PORTREVISION=	1
 CATEGORIES=	ftp
 
 MAINTAINER=	cy@FreeBSD.org
@@ -13,6 +14,7 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	cschuber
 
 USES=		uidfix
+USE_RC_SUBR=	ftpd
 
 MAKE_ARGS+=		BINOWN=${BINOWN} BINMODE=${BINMODE}
 MAKE_ENV+=		MAKESYSPATH=/usr/src/share/mk \
diff --git a/ftp/freebsd-ftpd/files/ftpd.in b/ftp/freebsd-ftpd/files/ftpd.in
new file mode 100644
index 000000000000..ef830b02f817
--- /dev/null
+++ b/ftp/freebsd-ftpd/files/ftpd.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# PROVIDE: ftpd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to run freebsd-ftpd
+# as a standalone daemon:
+#
+# ftpd_enable (bool):		    Run freebsd-ftpd FTP server (or NO).
+# ftpd_flags (str):		    Use this for flags OTHER than -D
+
+. /etc/rc.subr
+
+load_rc_config $name
+
+name="ftpd"
+rcvar="ftpd_enable"
+
+: ${ftpd_enable=NO}
+
+command="/usr/local/libexec/${name}"
+command_args="-D"
+
+run_rc_command "$1"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510202035.59KKZCxe034079>