From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7DC271396D9 for ; Wed, 25 Oct 2017 13:33:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D97C02BC013; Wed, 25 Oct 2017 13:33:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6CD02BC013 for ; Wed, 25 Oct 2017 13:33:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7623633BE33 for ; Wed, 25 Oct 2017 13:33:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA658829 for ; Wed, 25 Oct 2017 13:33:08 +0000 (UTC) From: "Matt Thode" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Thode" Message-ID: <1508938371.e1070a6a8e25357594e2aad2f2415e841c4c09b0.prometheanfire@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/nftables/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-firewall/nftables/nftables-0.8-r2.ebuild net-firewall/nftables/nftables-0.8-r3.ebuild X-VCS-Directories: net-firewall/nftables/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matt Thode X-VCS-Revision: e1070a6a8e25357594e2aad2f2415e841c4c09b0 X-VCS-Branch: master Date: Wed, 25 Oct 2017 13:33:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f2366873-8834-4e28-9b48-bd2a9f55f2f4 X-Archives-Hash: 9ee2a8a2e03880b674bea5a1b296c460 commit: e1070a6a8e25357594e2aad2f2415e841c4c09b0 Author: Matthew Thode gentoo org> AuthorDate: Wed Oct 25 13:32:33 2017 +0000 Commit: Matt Thode gentoo org> CommitDate: Wed Oct 25 13:32:51 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1070a6a net-firewall/nftables: fixing the rules creating bug 634804 Bug: 634804 Package-Manager: Portage-2.3.8, Repoman-2.3.3 .../{nftables-0.8-r2.ebuild => nftables-0.8-r3.ebuild} | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/net-firewall/nftables/nftables-0.8-r2.ebuild b/net-firewall/nftables/nftables-0.8-r3.ebuild similarity index 79% rename from net-firewall/nftables/nftables-0.8-r2.ebuild rename to net-firewall/nftables/nftables-0.8-r3.ebuild index 4656176d0d3..00a30dec484 100644 --- a/net-firewall/nftables/nftables-0.8-r2.ebuild +++ b/net-firewall/nftables/nftables-0.8-r3.ebuild @@ -72,13 +72,13 @@ pkg_postinst() { local save_file save_file="${EROOT%/}/var/lib/nftables/rules-save" - elog "In order for the nftables-restore systemd service to start, " - elog "the file, ${save_file}, must exist. To create this " - elog "file run the following command: " - elog "" - elog " touch '${save_file}'" - elog "" - elog "Afterwards, the nftables-restore service should be manually started " - elog "to ensure firewall changes are stored on system shutdown. The " - elog "systemd service will function normally thereafter." + # In order for the nftables-restore systemd service to start + # the save_file must exist. + if [[ ! -f ${save_file} ]]; then + touch ${save_file} + fi + + elog "If you are creating firewall rules before the next system restart " + elog "the nftables-restore service must be manually started in order to " + elog "save those rules on shutdown." }