[arch-commits] Commit in glances/trunk (PKGBUILD glances.service)

Sébastien Luttringer seblu at archlinux.org
Sat Jul 8 11:39:45 UTC 2017


    Date: Saturday, July 8, 2017 @ 11:39:45
  Author: seblu
Revision: 243327

upgpkg: glances 2.10-2

- implement FS#54727

Added:
  glances/trunk/glances.service
Modified:
  glances/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   10 +++++++---
 glances.service |    8 ++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-07-08 11:13:27 UTC (rev 243326)
+++ PKGBUILD	2017-07-08 11:39:45 UTC (rev 243327)
@@ -5,7 +5,7 @@
 
 pkgname=glances
 pkgver=2.10
-pkgrel=1
+pkgrel=2
 pkgdesc='CLI curses-based monitoring tool'
 arch=('any')
 url='https://github.com/nicolargo/glances'
@@ -18,12 +18,16 @@
             'python-matplotlib: for graphical/chart support'
             'python-netifaces: for the IP plugin'
             'zeroconf: for the autodiscover mode')
-source=("git+https://github.com/nicolargo/glances.git#tag=v$pkgver")
-md5sums=('SKIP')
+source=("git+https://github.com/nicolargo/glances.git#tag=v$pkgver"
+        'glances.service')
+md5sums=('SKIP'
+         '193fe4123456b0a9567d8d5952c4c606')
 
 package() {
   cd glances
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  install -Dm644 "$srcdir"/glances.service \
+    "$pkgdir"/usr/lib/systemd/system/glances.service
 }
 
 # vim:set ts=2 sw=2 et:

Added: glances.service
===================================================================
--- glances.service	                        (rev 0)
+++ glances.service	2017-07-08 11:39:45 UTC (rev 243327)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Glances Server
+
+[Service]
+ExecStart=/usr/bin/glances -s
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list