net-firewall/nftables: update systemd file target.
authorNicholas Vinson <nvinson234@gmail.com>
Sun, 23 Oct 2016 17:10:49 +0000 (10:10 -0700)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 26 Oct 2016 21:16:28 +0000 (23:16 +0200)
Change the systemd unit files to use

    Before=network-pre.target
    Wants=network-pre.target

as this better aligns with systemd documentation for this type of
service.  Special thanks to Shaun Bouckaert for triggering this review.
He originally asked (via email) about how the connman systemd unit file
handled its dependencies which prompted me to check this package as
well.  As for connman, v1.33-r1 seems to be aligned with systemd
documentation.

Package-Manager: portage-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/2649

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
net-firewall/nftables/files/systemd/nftables-restore.service
net-firewall/nftables/nftables-0.6-r4.ebuild [moved from net-firewall/nftables/nftables-0.6-r3.ebuild with 100% similarity]

index fbd5a838af541c4af4baf5608e10d69dd337f83b..4b68b0a5b09ee4aee601cf9d03cf0a658fe1cb7b 100644 (file)
@@ -1,8 +1,8 @@
 [Unit]
 Description=Store and restore nftables firewall rules
 ConditionPathExists=/var/lib/nftables/rules-save
-Before=network.target
-Before=shutdown.target
+Before=network-pre.target
+Wants=network-pre.target
 
 [Service]
 Type=oneshot