Date: Wednesday, November 28, 2018 @ 08:55:32 Author: lcarlier Revision: 410405
archrelease: copy trunk to community-staging-x86_64 Added: gkrellm/repos/community-staging-x86_64/ gkrellm/repos/community-staging-x86_64/PKGBUILD (from rev 410404, gkrellm/trunk/PKGBUILD) gkrellm/repos/community-staging-x86_64/fix-critical-warning.patch (from rev 410404, gkrellm/trunk/fix-critical-warning.patch) gkrellm/repos/community-staging-x86_64/gkrellm.service (from rev 410404, gkrellm/trunk/gkrellm.service) ----------------------------+ PKGBUILD | 46 +++++++++++++++++++++++++++++++++++++++++++ fix-critical-warning.patch | 35 ++++++++++++++++++++++++++++++++ gkrellm.service | 11 ++++++++++ 3 files changed, 92 insertions(+) Copied: gkrellm/repos/community-staging-x86_64/PKGBUILD (from rev 410404, gkrellm/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-11-28 08:55:32 UTC (rev 410405) @@ -0,0 +1,46 @@ +# Maintainer: dorphell <dorph...@archlinux.org> +# Contributor: Matt Smith (Majik) <darkkni...@helpdesk.zaz.net> +# Contributor: Jaroslav Lichtblau <dragonl...@aur.archlinux.org> +# Contributor: Jozef Riha <jose1...@gmail.com> +# Contributor: Alexander Rødseth <rods...@gmail.com> + +pkgname=gkrellm +pkgver=2.3.10 +pkgrel=4 +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" + "fix-critical-warning.patch" + "gkrellm.service") +sha256sums=('8b9ec8baadcd5830c6aff04ba86dc9ed317a15c1c3787440bd1e680fb2fcd766' + '05c02428065b8774637db3efe564fb597e3d9d3d9200e004077fbe9a04412e36' + '2829931127632d0391f6749024809594b78c138fe4f03c98cd65fdbd47cea376') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # Avoid calling g_strstr_len with NULL haystack (FS#51413) + # https://git.srcbox.net/gkrellm/commit/?id=3db76c647a04a603bafae19cc699bd50436d66a2 + patch -Np1 -i ../fix-critical-warning.patch +} + +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 410404, gkrellm/trunk/fix-critical-warning.patch) =================================================================== --- community-staging-x86_64/fix-critical-warning.patch (rev 0) +++ community-staging-x86_64/fix-critical-warning.patch 2018-11-28 08:55:32 UTC (rev 410405) @@ -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 410404, gkrellm/trunk/gkrellm.service) =================================================================== --- community-staging-x86_64/gkrellm.service (rev 0) +++ community-staging-x86_64/gkrellm.service 2018-11-28 08:55:32 UTC (rev 410405) @@ -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