diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-08-18 18:55:57 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-08-18 18:55:57 +0100 |
commit | 46c0348ae33b289b46397ea1dccdbad3d8b20ea0 (patch) | |
tree | 733ddf0a9b787b2d48c4ad16ac90a5a23344612f /net-firewall/firewalld/files | |
parent | 191867d6863211d160aa6f2f28b4a397b305f7d8 (diff) |
import firewalld from gentoo, latest version pulls qt4 back in, we wanna avoid that
Diffstat (limited to 'net-firewall/firewalld/files')
-rw-r--r-- | net-firewall/firewalld/files/firewalld-0.3.10-py3k-compat.patch | 24 | ||||
-rw-r--r-- | net-firewall/firewalld/files/firewalld.init | 13 |
2 files changed, 37 insertions, 0 deletions
diff --git a/net-firewall/firewalld/files/firewalld-0.3.10-py3k-compat.patch b/net-firewall/firewalld/files/firewalld-0.3.10-py3k-compat.patch new file mode 100644 index 00000000..e91590f1 --- /dev/null +++ b/net-firewall/firewalld/files/firewalld-0.3.10-py3k-compat.patch @@ -0,0 +1,24 @@ +diff --git a/src/firewall/core/io/direct.py b/src/firewall/core/io/direct.py +index b698e4c..6b80201 100644 +--- a/src/firewall/core/io/direct.py ++++ b/src/firewall/core/io/direct.py +@@ -295,8 +295,8 @@ class Direct(IO_Object): + if len(self.passthroughs[ipv]) == 0: + del self.passthroughs[ipv] + else: +- raise ValueError, "Passthrough '%s' for ipv '%s'" % \ +- ("',".join(args), ipv) + "not in list" ++ raise ValueError("Passthrough '%s' for ipv '%s'" % \ ++ ("',".join(args), ipv) + "not in list") + + def query_passthrough(self, ipv, args): + return (ipv in self.passthroughs and args in self.passthroughs[ipv]) +@@ -305,7 +305,7 @@ class Direct(IO_Object): + if ipv in self.passthroughs: + return self.passthroughs[ipv] + else: +- raise ValueError, "No passthroughs for ipv '%s'" % (ipv) ++ raise ValueError("No passthroughs for ipv '%s'" % (ipv)) + + def get_all_passthroughs(self): + return self.passthroughs diff --git a/net-firewall/firewalld/files/firewalld.init b/net-firewall/firewalld/files/firewalld.init new file mode 100644 index 00000000..b1d7d15d --- /dev/null +++ b/net-firewall/firewalld/files/firewalld.init @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="FirewallD" +command=/usr/sbin/firewalld +pidfile=/var/run/firewalld.pid + +depend() { + need dbus + provide iptables ip6tables ebtables +} |