gentoo-ebuilds/net-misc/portfwd/files/portfwd-2.init
Nicolas PARLANT ae7ffa7c12
net-misc/portfwd: fix c23, new initd
update HOMEPAGE http+S
update SRC_URI (redirect)

don't use bundled getopt
remove register keyword (c17)
rename configure.in to configure.ac
refresh initd w/o bashism

Closes: https://bugs.gentoo.org/822075
Closes: https://bugs.gentoo.org/849284
Closes: https://bugs.gentoo.org/921659
Closes: https://bugs.gentoo.org/945521
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43966
Closes: https://github.com/gentoo/gentoo/pull/43966
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-30 09:24:59 +01:00

17 lines
427 B
Text

#!/sbin/openrc-run
# Copyright 2025 Gentoo Authors
# # Distributed under the terms of the GNU General Public License v2
: ${PORTFWD_CONFIG:=/etc/portfwd.cfg}
name="portfwd"
description="Port Forwarding Daemon"
command="/usr/sbin/portfwd"
command_args="--foreground --config ${PORTFWD_CONFIG} ${PORTFWD_OPTS}"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
required_files="${PORTFWD_CONFIG}"
depend() {
need net
}