commit:     b158c5b7a463d88b775fb2471a0f56ff0ba09f6b
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 24 16:07:42 2026 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Jan 24 16:07:42 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b158c5b7

net-misc/rinetd: add systemd unit file

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 net-misc/rinetd/files/rinetd.service  | 13 +++++++++++++
 net-misc/rinetd/rinetd-0.73-r1.ebuild | 21 +++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/net-misc/rinetd/files/rinetd.service 
b/net-misc/rinetd/files/rinetd.service
new file mode 100644
index 000000000000..c96a7c0f3b2f
--- /dev/null
+++ b/net-misc/rinetd/files/rinetd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Redirects TCP connections from one IP address and port to another
+After=network.target network-online.target
+
+[Service]
+ExecStart=/usr/sbin/rinetd
+ExecReload=kill -HUP $MAINPID
+Type=forking
+PIDFile=/var/run/rinetd.pid
+Restart=always
+
+[Install]
+WantedBy=default.target

diff --git a/net-misc/rinetd/rinetd-0.73-r1.ebuild 
b/net-misc/rinetd/rinetd-0.73-r1.ebuild
new file mode 100644
index 000000000000..20463a85de8a
--- /dev/null
+++ b/net-misc/rinetd/rinetd-0.73-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+
+DESCRIPTION="redirects TCP connections from one IP address and port to another"
+HOMEPAGE="https://github.com/samhocevar/rinetd";
+SRC_URI="https://github.com/samhocevar/rinetd/releases/download/v${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2+ GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_install() {
+       default
+
+       newinitd "${FILESDIR}"/rinetd.rc rinetd
+       systemd_dounit "${FILESDIR}"/rinetd.service
+}

Reply via email to