diff options
author | Magnus Boman | 2020-07-25 16:59:20 +0200 |
---|---|---|
committer | Magnus Boman | 2020-07-25 16:59:20 +0200 |
commit | bb8af4ee0c4cb157ac026f0fb4814f7fc39e7f3d (patch) | |
tree | a273df919bf50c51f77a99464e7206eb7c69b7f4 | |
download | aur-bb8af4ee0c4cb157ac026f0fb4814f7fc39e7f3d.tar.gz |
glances-git: add package
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | glances.service | 8 |
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a67229eacd9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = glances-git + pkgdesc = CLI curses-based monitoring tool + pkgver = 3.1.4.r39.g9f8a8120 + pkgrel = 1 + url = https://github.com/nicolargo/glances + arch = any + license = LGPL + makedepends = git + depends = python + depends = python-psutil + depends = python-setuptools + depends = python-future + optdepends = hddtemp: HDD temperature monitoring support + optdepends = python-bottle: web server support + optdepends = python-docker: for the Docker monitoring support + optdepends = python-matplotlib: for graphical/chart support + optdepends = python-netifaces: for the IP plugin + optdepends = python-zeroconf: for the autodiscover mode + provides = glances + conflicts = glances + source = git+https://github.com/nicolargo/glances.git + source = glances.service + sha512sums = SKIP + sha512sums = 49f0d185a37a5c5837e5beb463770c943ede40b2f1b8405e338129e897e97d9fc58373a8586fabc506266e6343cfea3c91b9787ac6832cc97a1ab63d6ad058d4 + +pkgname = glances-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5dc63cd96d82 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: katt <magunasu.b97@gmail.com> +# Contributor: Christian Rebischke <chris.rebischke@archlinux.org> +# Contributor: Sébastien Luttringer <seblu@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Francois Boulogne <fboulogne at april dot org> + +pkgname=glances-git +pkgver=3.1.4.r39.g9f8a8120 +pkgrel=1 +pkgdesc='CLI curses-based monitoring tool' +arch=(any) +url=https://github.com/nicolargo/glances +license=(LGPL) +makedepends=(git) +depends=(python python-psutil python-setuptools python-future) +optdepends=('hddtemp: HDD temperature monitoring support' + 'python-bottle: web server support' + 'python-docker: for the Docker monitoring support' + 'python-matplotlib: for graphical/chart support' + 'python-netifaces: for the IP plugin' + 'python-zeroconf: for the autodiscover mode') +conflicts=("${pkgname%-git}") +provides=("${pkgname%-git}") +source=(git+"${url}".git + glances.service) +sha512sums=('SKIP' + '49f0d185a37a5c5837e5beb463770c943ede40b2f1b8405e338129e897e97d9fc58373a8586fabc506266e6343cfea3c91b9787ac6832cc97a1ab63d6ad058d4') + +pkgver() { + cd "${pkgname%-git}" + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "${pkgname%-git}" + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + install -Dm644 "${srcdir}"/glances.service -t "${pkgdir}"/usr/lib/systemd/system +} diff --git a/glances.service b/glances.service new file mode 100644 index 000000000000..4e8429d0b121 --- /dev/null +++ b/glances.service @@ -0,0 +1,8 @@ +[Unit] +Description=Glances Server + +[Service] +ExecStart=/usr/bin/glances -s + +[Install] +WantedBy=multi-user.target |