Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: psensor
Date: Sat, 04 Jan 2020 00:10:06 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18013@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

There is a new pull request by foxlet against master on the void-packages repository

https://github.com/foxlet/void-packages psensor
https://github.com/void-linux/void-packages/pull/18013

New package: psensor
Allows for sensor monitoring, included in Ubuntu and Arch repos.

A patch file from https://github.com/void-linux/void-packages/pull/18013.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-psensor-18013.patch --]
[-- Type: text/x-diff, Size: 2188 bytes --]

From 5a3a33152c5abf8299872508d1a85ec541e9a761 Mon Sep 17 00:00:00 2001
From: Foxlet <foxlet@furcode.co>
Date: Fri, 3 Jan 2020 18:07:12 -0500
Subject: [PATCH] New package: psensor

---
 srcpkgs/psensor/patches/is_error.patch | 26 ++++++++++++++++++++++++++
 srcpkgs/psensor/template               | 14 ++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 srcpkgs/psensor/patches/is_error.patch
 create mode 100644 srcpkgs/psensor/template

diff --git a/srcpkgs/psensor/patches/is_error.patch b/srcpkgs/psensor/patches/is_error.patch
new file mode 100644
index 00000000000..a4ec3232fa6
--- /dev/null
+++ b/srcpkgs/psensor/patches/is_error.patch
@@ -0,0 +1,26 @@
+--- src/rsensor.c	2016-12-20 00:39:54.000000000 +0100
++++ src/rsensor.c	2018-01-05 19:30:09.089759050 +0100
+@@ -133,7 +133,7 @@
+ 
+ 	obj = get_json_object(url);
+ 
+-	if (obj && !is_error(obj)) {
++	if (obj && (obj != NULL)) {
+ 		n = json_object_array_length(obj);
+ 		sensors = malloc((n + 1) * sizeof(struct psensor *));
+ 
+@@ -168,12 +168,12 @@
+ 
+ 	obj = get_json_object(get_url(s));
+ 
+-	if (obj && !is_error(obj)) {
++	if (obj && (obj != NULL)) {
+ 		json_object *om;
+ 
+ 		json_object_object_get_ex(obj, "last_measure", &om);
+ 
+-		if (!is_error(obj)) {
++		if (obj != NULL) {
+ 			json_object *ov, *ot;
+ 			struct timeval tv;
+ 
diff --git a/srcpkgs/psensor/template b/srcpkgs/psensor/template
new file mode 100644
index 00000000000..70abdce5327
--- /dev/null
+++ b/srcpkgs/psensor/template
@@ -0,0 +1,14 @@
+# Template file for 'psensor'
+pkgname=psensor
+version=1.2.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="pkg-config help2man glib-devel"
+makedepends="libX11 gtk+3-devel udisks2-devel libgtop-devel json-c-devel libsensors-devel libatasmart-devel libcurl-devel libnotify-devel libappindicator-devel libmicrohttpd-devel"
+depends="lm_sensors"
+short_desc="Graphical hardware temperature monitor for Linux"
+maintainer="Foxlet <foxlet@furcode.co>"
+license="GPL-2.0-only"
+homepage="https://wpitchoune.net/psensor"
+distfiles="https://wpitchoune.net/${pkgname}/files/${pkgname}-${version}.tar.gz"
+checksum=99708b313be2cf2d997aacfb6ab13288384c8c3f76266825093013bf568babea

             reply	other threads:[~2020-01-03 23:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-03 23:10 voidlinux-github [this message]
2020-01-05  3:21 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-05 20:42 ` voidlinux-github
2020-01-05 21:21 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-06  8:07 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18013@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).