diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
commit | f516638b7fe9592837389826a6152a7e1b251c54 (patch) | |
tree | 8bfecb640b7b6403d7a3d662d923eed630033da7 /net-firewall/ufw-frontends | |
parent | 1a61119f9f7b057830e2ce0563f913ec86f282ad (diff) |
gentoo resync : 30.05.2020
Diffstat (limited to 'net-firewall/ufw-frontends')
5 files changed, 0 insertions, 173 deletions
diff --git a/net-firewall/ufw-frontends/Manifest b/net-firewall/ufw-frontends/Manifest deleted file mode 100644 index 7760702e1d44..000000000000 --- a/net-firewall/ufw-frontends/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX org.gentoo.pkexec.ufw-gtk.policy 778 BLAKE2B cc0be312e14eac90940e941f9d097244a2c05e73d4836afaf6f8a33b6ee1ba7aee9dc054615c7ad18c1aaef73145f0da8ed0a60c9df64ac602815951a8bf37d1 SHA512 f2b47a01535d565d2d3f40266f61b5b0ee3ad5befa4aa9f704000000f111980ac219eccea7d22fe3b0995d91aa794c278daa4f6a6d36649cd0db7b53772bd61f -AUX ufw-frontends-0.3.2-no-log-crash.patch 2224 BLAKE2B b1cd3ce8c289642f2d53918820a99384eeee4c9cad3dedd4c2ff0790e25651e3c723e1105ccbaf1515f122650bad972783ce1bbd3f8af07e52cb0e64711a312e SHA512 a68e414c92d6570ba7368526ddefae30897d79f7b352e841f69fa95435a1b14c26b551b37b3431830ee3df700d3a48fc62d454c9be8f8e59d070f5e47ece7ea7 -DIST ufw-frontends-0.3.2.tar.gz 85472 BLAKE2B 9aa53a2b2c87de416334c5e9c0c9c63ccf14405c896ad7ba9fc266df728ab29b79186102ee3fdd346dcf470f0a24327f1fc475d2fe25380c96da1645d236d446 SHA512 9f311596a3bad71562ca98acb8bf4d0d55990520cb5373c299dad05d1a1986e791eac984385013a511af4693a9988351ec37d8735ae6748818a9570db416b274 -EBUILD ufw-frontends-0.3.2-r5.ebuild 1732 BLAKE2B 510083cfac6dfa3d93037271d305fa08e43ab48fda331962225c315a59cdf9ef534b62d3260a0702883cce059074d345b6456c2fc1fe280b96bedb259bbc73b1 SHA512 c72a46f0cd68c533fb4c573130fbc7d1ed5c7fe29ee9b0e93a336daf6f5f5392bb0488ac52d8c8fabd8a50fe81402381f6429dcc525b2b28ed6da0a8b6a1cd94 -MISC metadata.xml 917 BLAKE2B 95b048745e22b89201a083314fa0e8e38d8f2de443a8a5f5a73a6c70c69a55cd522f6f89d0cfe1678fc7800e89c4f6b81c8ee294514b3017562c95367f5dc65d SHA512 e61b8a84c60861b69cae3a0f0748e5ab7d730ab0b9356ba29f991bfe1656cefdcc5f7395058003ac073daf71c4f58e484fcdbf9278e991bc92d8a7badcf453a9 diff --git a/net-firewall/ufw-frontends/files/org.gentoo.pkexec.ufw-gtk.policy b/net-firewall/ufw-frontends/files/org.gentoo.pkexec.ufw-gtk.policy deleted file mode 100644 index 7410debbc818..000000000000 --- a/net-firewall/ufw-frontends/files/org.gentoo.pkexec.ufw-gtk.policy +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE policyconfig PUBLIC - "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" - "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> -<policyconfig> - - <vendor>Gentoo</vendor> - <vendor_url>http://www.gentoo.org/</vendor_url> - - <action id="org.gentoo.pkexec.ufw-gtk"> - <message>Authentication is required to run the ufw configuration tool</message> - <defaults> - <allow_any>auth_admin</allow_any> - <allow_inactive>auth_admin</allow_inactive> - <allow_active>auth_admin</allow_active> - </defaults> - <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/ufw-gtk</annotate> - <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> - </action> - -</policyconfig> diff --git a/net-firewall/ufw-frontends/files/ufw-frontends-0.3.2-no-log-crash.patch b/net-firewall/ufw-frontends/files/ufw-frontends-0.3.2-no-log-crash.patch deleted file mode 100644 index f4adb49826ec..000000000000 --- a/net-firewall/ufw-frontends/files/ufw-frontends-0.3.2-no-log-crash.patch +++ /dev/null @@ -1,61 +0,0 @@ -From e7bcf87788588c3a38ce18c9a8d69bbe156860e9 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?S=C5=82awomir=20Nizio?= <slawomir.nizio@sabayon.org> -Date: Mon, 3 Mar 2014 08:31:47 +0100 -Subject: [PATCH] Fix crash when no log in supported location can be found - -This can happen for example on systems that use Journal -from systemd. - -In this case, ufw-gtk exits with a traceback containing: -IOError: [Errno 2] No such file or directory: '/var/log/messages.log' -(this is the last log file tried). - -The patch works around the issue by handling the error -and disabling the widget in the "Events" tab. ---- - gfw/frontend_gtk.py | 18 +++++++++++++----- - 1 file changed, 13 insertions(+), 5 deletions(-) - -diff --git a/gfw/frontend_gtk.py b/gfw/frontend_gtk.py -index 75ebb33..75dfde0 100644 ---- a/gfw/frontend_gtk.py -+++ b/gfw/frontend_gtk.py -@@ -33,14 +33,21 @@ from gfw.frontend import Frontend - - class Notifier(gfw.event.Notifier): - -- def __init__(self, callback): -- gfw.event.Notifier.__init__(self, callback) -+ def __init__(self, callback, inactive_handler): -+ self._active = False -+ try: -+ gfw.event.Notifier.__init__(self, callback) -+ except IOError: -+ inactive_handler() -+ return -+ self._active = True - self._w = gobject.io_add_watch(self._fd, gobject.IO_IN | gobject.IO_PRI, - self._trigger) - - def __del__(self): -- gfw.event.Notifier.__del__(self) -- gobject.source_remove(self._w) -+ if self._active: -+ gfw.event.Notifier.__del__(self) -+ gobject.source_remove(self._w) - - - class Builder(gtk.Builder): -@@ -90,7 +97,8 @@ class GtkFrontend(Frontend): - data = (timestamp, event, conn['IN'], conn['OUT'], conn['PROTO'], - conn['SRC'], spt, conn['DST'], dpt) - self.ui.events_model.append(data) -- self._notifier = Notifier(callback) -+ self._notifier = Notifier(callback, -+ lambda: self.ui.events_view.set_sensitive(False)) - self.ui.main_window.show_all() - ## FIXME: for the 0.3.0 release, hide the tab for the connections view - page = self.ui.view.get_nth_page(2) --- -1.9.0 - diff --git a/net-firewall/ufw-frontends/metadata.xml b/net-firewall/ufw-frontends/metadata.xml deleted file mode 100644 index a3ab739d57cd..000000000000 --- a/net-firewall/ufw-frontends/metadata.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>slawomir.nizio@sabayon.org</email> - <name>SÅ‚awomir Nizio</name> - </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <longdescription lang="en">Currently, UFW provides only a command-line interface (CLI) for user - interaction--the ufw command. This project implements graphical frontends - for UFW using PyGTK and PyQt (the latter in early stage of development).</longdescription> - <upstream> - <remote-id type="github">baudm/ufw-frontends</remote-id> - </upstream> - <use> - <flag name="policykit">Use pkexec to gain root privileges</flag> - <flag name="kde">Use kdesu to gain root privileges (note: the flag has lower priority than "policykit")</flag> - </use> -</pkgmetadata> diff --git a/net-firewall/ufw-frontends/ufw-frontends-0.3.2-r5.ebuild b/net-firewall/ufw-frontends/ufw-frontends-0.3.2-r5.ebuild deleted file mode 100644 index 6110449589c7..000000000000 --- a/net-firewall/ufw-frontends/ufw-frontends-0.3.2-r5.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -inherit distutils-r1 - -DESCRIPTION="Provides graphical frontend to ufw" -HOMEPAGE="https://github.com/baudm/ufw-frontends" -SRC_URI="https://github.com/baudm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -# CC-BY-NC-SA-3.0 is for a png file -LICENSE="GPL-3 CC-BY-NC-SA-3.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="kde policykit" - -DEPEND="" -RDEPEND="${DEPEND} - dev-python/pygobject:2[${PYTHON_USEDEP}] - dev-python/pygtk[${PYTHON_USEDEP}] - dev-python/pyinotify[${PYTHON_USEDEP}] - net-firewall/ufw[${PYTHON_USEDEP}] - !policykit? ( kde? ( kde-plasma/kde-cli-tools[kdesu] ) ) - policykit? ( sys-auth/polkit ) -" - -# fix crash when no ufw logs in supported locations can be found -PATCHES=( "${FILESDIR}/${P}-no-log-crash.patch" ) - -python_prepare_all() { - if use policykit; then - sed -i 's/^Exec=su-to-root -X -c/Exec=pkexec/' \ - share/ufw-gtk.desktop || die - elif use kde; then - sed -i 's/^Exec=su-to-root -X -c/Exec=kdesu/' \ - share/ufw-gtk.desktop || die - fi - - # don't try to override run() to install the script - # under /usr/sbin; it does not work with distutils-r1 - # and so it is handled differently (in python_install) - sed -i '/cmdclass=/d' setup.py || die - - # Qt version is unusable - rm gfw/frontend_qt.py || die - distutils-r1_python_prepare_all -} - -python_install() { - distutils-r1_python_install --install-scripts="/usr/sbin" -} - -python_install_all() { - distutils-r1_python_install_all - - if use policykit; then - insinto /usr/share/polkit-1/actions/ - doins "${FILESDIR}"/org.gentoo.pkexec.ufw-gtk.policy - elif ! use kde; then - rm "${ED}usr/share/applications/ufw-gtk.desktop" || die - fi -} |