Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/nftables/
Date: Wed, 25 Oct 2017 13:33:12
Message-Id: 1508938371.e1070a6a8e25357594e2aad2f2415e841c4c09b0.prometheanfire@gentoo
1 commit: e1070a6a8e25357594e2aad2f2415e841c4c09b0
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 25 13:32:33 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 25 13:32:51 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1070a6a
7
8 net-firewall/nftables: fixing the rules creating bug 634804
9
10 Bug: 634804
11 Package-Manager: Portage-2.3.8, Repoman-2.3.3
12
13 .../{nftables-0.8-r2.ebuild => nftables-0.8-r3.ebuild} | 18 +++++++++---------
14 1 file changed, 9 insertions(+), 9 deletions(-)
15
16 diff --git a/net-firewall/nftables/nftables-0.8-r2.ebuild b/net-firewall/nftables/nftables-0.8-r3.ebuild
17 similarity index 79%
18 rename from net-firewall/nftables/nftables-0.8-r2.ebuild
19 rename to net-firewall/nftables/nftables-0.8-r3.ebuild
20 index 4656176d0d3..00a30dec484 100644
21 --- a/net-firewall/nftables/nftables-0.8-r2.ebuild
22 +++ b/net-firewall/nftables/nftables-0.8-r3.ebuild
23 @@ -72,13 +72,13 @@ pkg_postinst() {
24 local save_file
25 save_file="${EROOT%/}/var/lib/nftables/rules-save"
26
27 - elog "In order for the nftables-restore systemd service to start, "
28 - elog "the file, ${save_file}, must exist. To create this "
29 - elog "file run the following command: "
30 - elog ""
31 - elog " touch '${save_file}'"
32 - elog ""
33 - elog "Afterwards, the nftables-restore service should be manually started "
34 - elog "to ensure firewall changes are stored on system shutdown. The "
35 - elog "systemd service will function normally thereafter."
36 + # In order for the nftables-restore systemd service to start
37 + # the save_file must exist.
38 + if [[ ! -f ${save_file} ]]; then
39 + touch ${save_file}
40 + fi
41 +
42 + elog "If you are creating firewall rules before the next system restart "
43 + elog "the nftables-restore service must be manually started in order to "
44 + elog "save those rules on shutdown."
45 }