[arch-commits] Commit in gkrellm/repos (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 15:11:18 UTC 2020


    Date: Tuesday, July 7, 2020 @ 15:11:18
  Author: felixonmars
Revision: 658852

archrelease: copy trunk to community-staging-x86_64

Added:
  gkrellm/repos/community-staging-x86_64/
  gkrellm/repos/community-staging-x86_64/PKGBUILD
    (from rev 658850, gkrellm/trunk/PKGBUILD)
  gkrellm/repos/community-staging-x86_64/fix-critical-warning.patch
    (from rev 658850, gkrellm/trunk/fix-critical-warning.patch)
  gkrellm/repos/community-staging-x86_64/gkrellm.service
    (from rev 658851, gkrellm/trunk/gkrellm.service)

----------------------------+
 PKGBUILD                   |   36 ++++++++++++++++++++++++++++++++++++
 fix-critical-warning.patch |   35 +++++++++++++++++++++++++++++++++++
 gkrellm.service            |   11 +++++++++++
 3 files changed, 82 insertions(+)

Copied: gkrellm/repos/community-staging-x86_64/PKGBUILD (from rev 658850, gkrellm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 15:11:18 UTC (rev 658852)
@@ -0,0 +1,36 @@
+# Maintainer: dorphell <dorphell at archlinux.org>
+# Contributor: Matt Smith (Majik) <darkknight at helpdesk.zaz.net>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Jozef Riha <jose1711 at gmail.com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+
+pkgname=gkrellm
+pkgver=2.3.11
+pkgrel=2
+pkgdesc="System monitor package for GTK2"
+arch=('x86_64')
+url="http://gkrellm.srcbox.net/"
+license=('GPL3')
+depends=('gtk2' 'libsm' 'lm_sensors')
+makedepends=('gettext')
+backup=('etc/gkrellmd.conf')
+source=("${url}/releases/${pkgname}-${pkgver}.tar.bz2"
+        gkrellm.service)
+sha256sums=('1ee0643ed9ed99f88c1504c89d9ccb20780cf29319c904b68e80a8e7c8678c06'
+            '2829931127632d0391f6749024809594b78c138fe4f03c98cd65fdbd47cea376')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make LOCALEDIR=/usr/share/locale
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" PREFIX=/usr install
+  install -Dm644 "server/gkrellmd.conf" "$pkgdir/etc/gkrellmd.conf"
+  install -Dm644 "../gkrellm.service" "$pkgdir/usr/lib/systemd/system/gkrellm.service"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: gkrellm/repos/community-staging-x86_64/fix-critical-warning.patch (from rev 658850, gkrellm/trunk/fix-critical-warning.patch)
===================================================================
--- community-staging-x86_64/fix-critical-warning.patch	                        (rev 0)
+++ community-staging-x86_64/fix-critical-warning.patch	2020-07-07 15:11:18 UTC (rev 658852)
@@ -0,0 +1,35 @@
+From 3db76c647a04a603bafae19cc699bd50436d66a2 Mon Sep 17 00:00:00 2001
+From: Jindřich Makovička
+Date: Sat, 20 May 2017 10:34:52 +0200
+Subject: Avoid calling g_strstr_len with NULL haystack
+
+---
+ src/sysdeps/linux.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/sysdeps/linux.c b/src/sysdeps/linux.c
+index 460a03d..99e7261 100644
+--- a/src/sysdeps/linux.c
++++ b/src/sysdeps/linux.c
+@@ -3157,6 +3157,7 @@ sensors_nvidia_smi_read(gboolean setup)
+ 				    || !strcmp(id, ":")
+ 				   )
+ 					continue;
++				stmp = str;
+ 				if ((str = g_strstr_len(str, -1, "Temperature")) != NULL)
+ 					{
+ 					str += 11;
+@@ -3185,6 +3186,10 @@ sensors_nvidia_smi_read(gboolean setup)
+ 					else if ((smi = nvidia_smi_lookup(id)) != NULL)
+ 						smi->temp = temp;
+ 					}
++				else
++					{
++					str = stmp;
++					}
+ 				}
+ 			}
+ 	if (output)
+-- 
+cgit v0.12
+

Copied: gkrellm/repos/community-staging-x86_64/gkrellm.service (from rev 658851, gkrellm/trunk/gkrellm.service)
===================================================================
--- community-staging-x86_64/gkrellm.service	                        (rev 0)
+++ community-staging-x86_64/gkrellm.service	2020-07-07 15:11:18 UTC (rev 658852)
@@ -0,0 +1,11 @@
+[Unit]
+Description=GNU Krell Monitors server
+After=network.target
+# If hddtemp is added to the dependencies in the PKGBUILD, then use
+#After=network.target hddtemp.service
+
+[Service]
+ExecStart=/usr/bin/gkrellmd
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list