From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/conntrack-tools/, net-firewall/conntrack-tools/files/
Date: Thu, 11 Mar 2021 11:36:22 +0000 (UTC) [thread overview]
Message-ID: <1615462335.2fb0c650ae966e2c00a2cc8739fabb05cb13acff.sam@gentoo> (raw)
commit: 2fb0c650ae966e2c00a2cc8739fabb05cb13acff
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 11 11:32:15 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 11:32:15 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fb0c650
net-firewall/conntrack-tools: add systemd unit for conntrackd from Debian
The linked bug requested a systemd unit for nfct, but I don't use it and
can't see one in Debian or Arch Linux.
Bug: https://bugs.gentoo.org/573566
Signed-off-by: Sam James <sam <AT> gentoo.org>
...tools-1.4.6.ebuild => conntrack-tools-1.4.6-r1.ebuild} | 15 +++++++++------
net-firewall/conntrack-tools/files/conntrackd.service | 13 +++++++++++++
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/net-firewall/conntrack-tools/conntrack-tools-1.4.6.ebuild b/net-firewall/conntrack-tools/conntrack-tools-1.4.6-r1.ebuild
similarity index 95%
rename from net-firewall/conntrack-tools/conntrack-tools-1.4.6.ebuild
rename to net-firewall/conntrack-tools/conntrack-tools-1.4.6-r1.ebuild
index 2ac5faccf0f..5c420d94876 100644
--- a/net-firewall/conntrack-tools/conntrack-tools-1.4.6.ebuild
+++ b/net-firewall/conntrack-tools/conntrack-tools-1.4.6-r1.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit linux-info
+
+inherit linux-info systemd
DESCRIPTION="Connection tracking userspace tools"
HOMEPAGE="http://conntrack-tools.netfilter.org"
@@ -29,15 +30,15 @@ RDEPEND="
>=sys-apps/systemd-227
)
"
-DEPEND="
- ${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
doc? (
app-text/docbook-xml-dtd:4.1.2
app-text/xmlto
)
- virtual/pkgconfig
- sys-devel/bison
- sys-devel/flex
"
pkg_setup() {
@@ -93,6 +94,8 @@ src_install() {
insinto /etc/conntrackd
doins doc/stats/conntrackd.conf
+ systemd_dounit "${FILESDIR}/conntrackd.service"
+
dodoc -r doc/sync doc/stats AUTHORS TODO
use doc && dodoc doc/manual/${PN}.html
}
diff --git a/net-firewall/conntrack-tools/files/conntrackd.service b/net-firewall/conntrack-tools/files/conntrackd.service
new file mode 100644
index 00000000000..26f950c0d9c
--- /dev/null
+++ b/net-firewall/conntrack-tools/files/conntrackd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Conntrack Daemon
+Documentation=man:conntrackd(8) man:conntrackd.conf(5)
+
+[Service]
+Type=notify
+ExecStart=/usr/sbin/conntrackd -C /etc/conntrackd/conntrackd.conf
+Restart=on-failure
+ProtectSystem=full
+ProtectHome=true
+
+[Install]
+WantedBy=multi-user.target
next reply other threads:[~2021-03-11 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 11:36 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-09-12 5:55 [gentoo-commits] repo/gentoo:master commit in: net-firewall/conntrack-tools/, net-firewall/conntrack-tools/files/ Jeroen Roovers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1615462335.2fb0c650ae966e2c00a2cc8739fabb05cb13acff.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox