Package Details: nagstamon 3.4.1-1

Git Clone URL: https://aur.archlinux.org/nagstamon.git (read-only, click to copy)
Package Base: nagstamon
Description: Nagios status monitor for the desktop
Upstream URL: https://nagstamon.ifw-dresden.de/
Licenses: GPL
Submitter: ghostbuster
Maintainer: ghostbuster
Last Packager: ghostbuster
Votes: 14
Popularity: 0.019172
First Submitted: 2015-08-09 16:15
Last Updated: 2020-01-26 18:43

Latest Comments

1 2 3 Next › Last »

ziopera commented on 2020-01-07 15:00

This is my(working) PKGBUILD for version 3.4

# Maintainer: ghostbuster <aur@sieverdingbeck.com>
_pkgname=Nagstamon
pkgname=nagstamon
pkgver=3.4
pkgrel=1
pkgdesc="Nagios status monitor for the desktop"
depends=('python-pyqt5' 'qt5-multimedia' 'qt5-svg' 'python-requests' 'python-beautifulsoup4' 'python-keyring' 'python-psutil' 'python-requests-kerberos' 'python-lxml' 'python-dbus')
arch=('any')
url="https://nagstamon.ifw-dresden.de/"
license=('GPL')
source=(
        "https://nagstamon.ifw-dresden.de/files/stable/$_pkgname-$pkgver.tar.gz"
)
md5sums=(
        '76c3b7cabb8143e94f6845cd63516ffe'
)
sha256sums=(
        '9ad3fa7ad46239bc53f4153e9e8487d2fa93aa8d66085f1c5e9fdef7c5394b7e'
)

package() {
  cd "$srcdir/$_pkgname"
  # setup.py imports AppInfo from Nagstamon.Config which leads to a import of keyring
  # importing keyring fails in a fakeroot environment, which seems to be somehow related to a the keyring connection init triggered by the import
  # to avoid the issue setup.py is rewritten here to resolve the need for the AppInfo import
  name=$(sed '0,/class AppInfo/d' Nagstamon/Config.py  | grep "NAME " | sed -e "s/^[\t ]*NAME = '//" -e "s/'$//")
  version=$(sed '0,/class AppInfo/d' Nagstamon/Config.py  | grep "VERSION " | sed -e "s/^[\t ]*VERSION = '//" -e "s/'$//")
  sed -i setup.py -e "s/from Nagstamon.Config import AppInfo//" -e "s/AppInfo.NAME/'${name}'/" -e "s/AppInfo.VERSION/'${version}'/"
  sed -i Nagstamon/setup.py -e "s/from Nagstamon.Config import AppInfo//" -e "s/AppInfo.NAME/'${name}'/" -e "s/AppInfo.VERSION/'${version}'/"
  sed -i setup.py -e "s/platform.dist()/('arch', '', '')/g"
  python setup.py install --prefix=/usr --root="$pkgdir"
  mv $pkgdir/usr/bin/nagstamon.py $pkgdir/usr/bin/nagstamon
}

paschty commented on 2020-01-02 10:30

I did this to upgrade to 3.4:


$ git diff origin/master
diff --git a/PKGBUILD b/PKGBUILD
index 657fef8..83f5d1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: ghostbuster aur@sieverdingbeck.com
 _pkgname=Nagstamon
 pkgname=nagstamon
-pkgver=3.2.1
+pkgver=3.4
 pkgrel=2
 pkgdesc="Nagios status monitor for the desktop"
 depends=('python-pyqt5' 'qt5-multimedia' 'qt5-svg' 'python-requests' 'python-beautifulsoup4' 'python-keyring' 'python-psutil' 'python-requests-kerberos' 'python-lxml' 'python-dbus')
@@ -12,10 +12,10 @@ source=(
         "https://nagstamon.ifw-dresden.de/files/stable/$_pkgname-$pkgver.tar.gz"
 )
 md5sums=(
-        '9ab4d49c1bb88c898c3ca2a1fc8a9065'
+        '76c3b7cabb8143e94f6845cd63516ffe'
 )
 sha256sums=(
-        'a834460e78dc01f62171a83c4a11d890702264ed662863dff39edaf14ae98880'
+        '9ad3fa7ad46239bc53f4153e9e8487d2fa93aa8d66085f1c5e9fdef7c5394b7e'
 )

package() {

wuestengecko commented on 2019-12-27 11:04

@maxdevaine, to report a new upstream version please use the "Flag package out of date" link in the box on the right.

maxdevaine commented on 2019-12-27 08:04

Download url not working, there is new version : https://nagstamon.ifw-dresden.de/files/stable/Nagstamon-3.4.tar.gz

ghostbuster commented on 2019-11-19 22:03

package build for nagstamon is working again. I added the workaround wuestengecko proposed.

badpixelbr commented on 2019-11-18 13:23

cant build this package. after makepkg -sriC i got:

Traceback (most recent call last): File "setup.py", line 36, in <module> DIST, DIST_VERSION, DIST_NAME = platform.dist() AttributeError: module 'platform' has no attribute 'dist' ==> ERROR: A failure occurred in package(). Aborting...

wuestengecko commented on 2019-11-14 16:54

Python 3.8 removes platform.dist(), which is needed by setup.py. The following script stubs it out with the value it used to return:

sed -i setup.py -e "s/platform.dist()/('arch', '', '')/g"

ghostbuster commented on 2018-07-10 21:49

The observed issues was caused by a keyring connection initialization triggered by a python import in the fakeroot environment used for the package build. I modified the PKGBUILD to work around the not working (but also not really needed) import. Building the package should work again for all environments.

presianbg commented on 2018-07-05 19:14

@ghostbuster Sent on your e-mail. Thanks for looking into this.

ghostbuster commented on 2018-07-05 18:39

I can confirm the posted traceback for my own system but the build does not fail in a clean change root. I assume there is some kind of interference with other python packages in the environment. I'll investigate the issue, but it will take some time. Please build nagstamon in a clean chroot until I figured out the root cause for this traceback.

@presianbg: Could you send me the output of 'python --version' and 'pacman -Qs python' of the affected system by mail?