From c90bdf52fba08fdbeff75536a72c0c9a0bc08229 Mon Sep 17 00:00:00 2001 From: Laszlo Dvornik Date: Thu, 13 Sep 2018 15:40:02 +0200 Subject: [PATCH] New package: nagstamon-3.0.2 closes #2715 --- .../nagstamon/patches/disable-kerberos.patch | 40 +++++++++++++++++++ srcpkgs/nagstamon/template | 22 ++++++++++ 2 files changed, 62 insertions(+) create mode 100644 srcpkgs/nagstamon/patches/disable-kerberos.patch create mode 100644 srcpkgs/nagstamon/template diff --git a/srcpkgs/nagstamon/patches/disable-kerberos.patch b/srcpkgs/nagstamon/patches/disable-kerberos.patch new file mode 100644 index 00000000000..3711c18e12a --- /dev/null +++ b/srcpkgs/nagstamon/patches/disable-kerberos.patch @@ -0,0 +1,40 @@ +--- Nagstamon/QUI/__init__.py.orig 2018-09-12 16:40:47.350735530 +0200 ++++ Nagstamon/QUI/__init__.py 2018-09-12 16:47:18.330913802 +0200 +@@ -5279,7 +5279,7 @@ + self.ui.button_choose_custom_cert_ca_file.clicked.connect(self.choose_custom_cert_ca_file) + + # fill authentication combobox +- self.ui.input_combobox_authentication.addItems(['Basic', 'Digest', 'Kerberos']) ++ self.ui.input_combobox_authentication.addItems(['Basic', 'Digest']) + + # detect change of server type which leads to certain options shown or hidden + self.ui.input_combobox_type.activated.connect(self.toggle_type) +--- Nagstamon/Servers/Generic.py,orug 2018-09-12 16:40:47.353735516 +0200 ++++ Nagstamon/Servers/Generic.py 2018-09-12 16:47:52.962752440 +0200 +@@ -45,7 +45,6 @@ + from collections import OrderedDict + + import requests +-import requests_kerberos + + # disable annoying SubjectAltNameWarning warnings + try: +@@ -231,8 +230,6 @@ + self.session.auth = requests.auth.HTTPBasicAuth(self.username, self.password) + elif self.authentication == 'digest': + self.session.auth = requests.auth.HTTPDigestAuth(self.username, self.password) +- elif self.authentication == 'kerberos': +- self.session.auth = requests_kerberos.HTTPKerberosAuth() + + # default to check TLS validity + if self.ignore_cert: +--- setup.py.orig 2018-09-12 16:40:47.363735470 +0200 ++++ setup.py 2018-09-12 16:48:02.146709650 +0200 +@@ -85,7 +85,6 @@ + 'python3-psutil ' + 'python3-qt5 ' + 'python3-requests ' +- 'python3-requests-kerberos ' + 'python3-SecretStorage ' + 'qt5-qtmultimedia ' + 'qt5-qtsvg ', diff --git a/srcpkgs/nagstamon/template b/srcpkgs/nagstamon/template new file mode 100644 index 00000000000..2b46f7e467d --- /dev/null +++ b/srcpkgs/nagstamon/template @@ -0,0 +1,22 @@ +# Template file for 'nagstamon' +pkgname=nagstamon +version=3.0.2 +revision=1 +noarch=yes +wrksrc=Nagstamon +build_style=python3-module +pycompile_module="Nagstamon" +hostmakedepends="python3-setuptools python3-keyring" +depends="python3-BeautifulSoup4 python3-dbus python3-keyring python3-lxml + python3-psutil python3-PyQt5-multimedia python3-PyQt5-svg python3-requests" +short_desc="Nagios status monitor for the desktop" +maintainer="Laszlo Dvornik " +license="GPL-2.0-or-later" +homepage="https://nagstamon.ifw-dresden.de" +distfiles="https://nagstamon.ifw-dresden.de/files/stable/Nagstamon-${version}.tar.gz" +checksum=a6e9fbb3c4ad8f88ec8540f62457a7d32b6180e6aa0a5ff28ddacb15bc646f9d + +post_install() { + chmod 644 ${DESTDIR}/usr/share/pixmaps/nagstamon.svg + mv -v ${DESTDIR}/usr/bin/nagstamon.py ${DESTDIR}/usr/bin/nagstamon +}