From 1eb645da34fc7563462f29afe140f1a3ddb32855 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 13 Dec 2019 14:52:22 +0100 Subject: [PATCH] iptables-1.8.4-3 - Remove dependencies on initscripts package --- iptables.init | 18 ++++++++++++++++-- iptables.spec | 6 ++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/iptables.init b/iptables.init index 8f74bb3..51155b0 100755 --- a/iptables.init +++ b/iptables.init @@ -18,8 +18,22 @@ # Description: Start, stop and save iptables firewall ### END INIT INFO -# Source function library. -. /etc/init.d/functions +# compat for removed initscripts dependency + +success() { + echo -n "[ OK ]" + return 0 +} + +warning() { + echo -n "[WARNING]" + return 1 +} + +failure() { + echo -n "[FAILED]" + return 1 +} IPTABLES=iptables IPTABLES_DATA=/etc/sysconfig/$IPTABLES diff --git a/iptables.spec b/iptables.spec index 5c51ed7..648dde7 100644 --- a/iptables.spec +++ b/iptables.spec @@ -19,7 +19,7 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities URL: http://www.netfilter.org/projects/iptables Version: 1.8.4 -Release: 2%{?dist} +Release: 3%{?dist} Source: %{url}/files/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config @@ -95,7 +95,6 @@ stable and may change with every new version. It is therefore unsupported. %package services Summary: iptables and ip6tables services for iptables Requires: %{name} = %{version}-%{release} -Requires: /etc/init.d/functions %{?systemd_ordering} # obsolete old main package Obsoletes: %{name} < 1.4.16.1 @@ -444,6 +443,9 @@ fi %changelog +* Fri Dec 13 2019 Phil Sutter - 1.8.4-3 +- Remove dependencies on initscripts package + * Tue Dec 10 2019 Phil Sutter - 1.8.4-2 - iptables-services requires /etc/init.d/functions