mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-06 17:47:07 -08:00
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>
This commit is contained in:
+9
-6
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user