diff options
author | Sam James <sam@gentoo.org> | 2021-03-11 11:32:15 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-11 11:32:15 +0000 |
commit | 2fb0c650ae966e2c00a2cc8739fabb05cb13acff (patch) | |
tree | 06bdc000da5dd75aad5ea0968ff6b451f26d1471 /net-firewall/conntrack-tools | |
parent | app-misc/datefudge: minor style changes (diff) | |
download | gentoo-2fb0c650ae966e2c00a2cc8739fabb05cb13acff.tar.gz gentoo-2fb0c650ae966e2c00a2cc8739fabb05cb13acff.tar.bz2 gentoo-2fb0c650ae966e2c00a2cc8739fabb05cb13acff.zip |
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@gentoo.org>
Diffstat (limited to 'net-firewall/conntrack-tools')
-rw-r--r-- | net-firewall/conntrack-tools/conntrack-tools-1.4.6-r1.ebuild (renamed from net-firewall/conntrack-tools/conntrack-tools-1.4.6.ebuild) | 15 | ||||
-rw-r--r-- | 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 index 2ac5faccf0f8..5c420d948769 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 000000000000..26f950c0d9cc --- /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 |