summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorn4nn313552017-09-14 16:54:47 +0300
committern4nn313552017-09-14 16:54:47 +0300
commit8725fdd338050fb53becd2aaf499ec117f65b5e0 (patch)
treef7506d5f9ab45223c9d91635350edab4af140747
downloadaur-nagstamon-git.tar.gz
Init build: 3.0
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore15
-rw-r--r--PKGBUILD38
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..80437fdfc17
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = nagstamon-git
+ pkgdesc = Status monitor for Nagios, Icinga, Zabbix and more
+ pkgver = 3.0
+ pkgrel = 1
+ url = https://github.com/HenriWahl/Nagstamon/
+ arch = any
+ license = GPL2
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python>=3.4
+ depends = python-keyring
+ depends = python-psutil
+ depends = python-pyqt5>=5.5
+ depends = python-beautifulsoup4
+ depends = python-requests
+ depends = python-requests-kerberos
+ depends = python-lxml
+ provides = nagstamon
+ conflicts = nagstamon
+ source = repo::git+https://github.com/HenriWahl/Nagstamon.git
+ md5sums = SKIP
+
+pkgname = nagstamon-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..743370ade3a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+src/
+pkg/
+repo/
+*.gz
+*.xz
+*.bz2
+*.zip
+*.part
+*.sig
+*.sign
+*.txt
+*.log
+*.scm
+*.pkg
+*.asc
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9be061c8a1f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Vyacheslav Artemiev <artemiev.vyacheslav a gmail d com>
+
+_pkgname=nagstamon
+pkgname=$_pkgname-git
+pkgver=3.0
+pkgrel=1
+pkgdesc='Status monitor for Nagios, Icinga, Zabbix and more'
+arch=('any')
+url='https://github.com/HenriWahl/Nagstamon/'
+license=('GPL2')
+depends=(
+ 'python>=3.4'
+ 'python-keyring'
+ 'python-psutil'
+ 'python-pyqt5>=5.5'
+ 'python-beautifulsoup4'
+ 'python-requests'
+ 'python-requests-kerberos'
+ 'python-lxml'
+ )
+makedepends=('git' 'python-setuptools')
+optdepends=()
+provides=($_pkgname)
+conflicts=($_pkgname)
+source=(repo::git+https://github.com/HenriWahl/Nagstamon.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/repo"
+ printf "%s" "$(git describe --always --dirty --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+package() {
+ cd "$srcdir/repo"
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ mv "$pkgdir/usr/bin/nagstamon.py" "$pkgdir/usr/bin/nagstamon"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+}