Github messages for voidlinux
 help / color / mirror / Atom feed
From: T0mstone <T0mstone@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: logiops-0.2.3
Date: Wed, 28 Jun 2023 19:21:11 +0200	[thread overview]
Message-ID: <20230628172111.zf6afkJaye3SXgJkBOHqq6aMrQ9R9m0INfzc4_PDP6Y@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42849@inbox.vuxu.org>

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

There is an updated pull request by T0mstone against master on the void-packages repository

https://github.com/T0mstone/void-packages logiops
https://github.com/void-linux/void-packages/pull/42849

New package: logiops-0.2.3
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)


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

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

From 0b72e7f77bc027bc27bcdd79e97db56ec555be7a Mon Sep 17 00:00:00 2001
From: T0mstone <realt0mstone@gmail.com>
Date: Sat, 18 Mar 2023 22:36:22 +0100
Subject: [PATCH 1/2] New package: logiops-0.2.3

---
 srcpkgs/logiops/files/logid.cfg |  1 +
 srcpkgs/logiops/files/logid/run |  7 +++++++
 srcpkgs/logiops/template        | 24 ++++++++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 srcpkgs/logiops/files/logid.cfg
 create mode 100644 srcpkgs/logiops/files/logid/run
 create mode 100644 srcpkgs/logiops/template

diff --git a/srcpkgs/logiops/files/logid.cfg b/srcpkgs/logiops/files/logid.cfg
new file mode 100644
index 000000000000..76be54d61e23
--- /dev/null
+++ b/srcpkgs/logiops/files/logid.cfg
@@ -0,0 +1 @@
+devices: ();
\ No newline at end of file
diff --git a/srcpkgs/logiops/files/logid/run b/srcpkgs/logiops/files/logid/run
new file mode 100644
index 000000000000..c99363c7ea18
--- /dev/null
+++ b/srcpkgs/logiops/files/logid/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+if /usr/bin/modprobe hid_logitech_hidpp
+then exec /usr/bin/logid
+else
+	# retry every second until the module is loaded
+	sleep 1
+fi
\ No newline at end of file
diff --git a/srcpkgs/logiops/template b/srcpkgs/logiops/template
new file mode 100644
index 000000000000..86b570c094f5
--- /dev/null
+++ b/srcpkgs/logiops/template
@@ -0,0 +1,24 @@
+# Template file for 'logiops'
+pkgname=logiops
+version=0.2.3
+revision=1
+build_style=cmake
+make_cmd=make
+hostmakedepends="gcc make cmake pkg-config"
+makedepends="libevdev-devel eudev-libudev-devel libconfig-devel libconfig++-devel"
+short_desc="Unofficial userspace driver for HID++ Logitech devices"
+maintainer="T0mstone <realt0mstone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/PixlOne/logiops"
+changelog="https://github.com/PixlOne/logiops/releases/tag/v${version}"
+distfiles="https://github.com/PixlOne/logiops/archive/refs/tags/v${version}.tar.gz"
+checksum=45147cacc5e75d461fa53e6f391aa6994cc724a422d1a8f8943e50186854f88f
+conf_files="/etc/logid.cfg"
+
+export CMAKE_GENERATOR="Unix Makefiles"
+
+post_install() {
+	vsconf logid.example.cfg logid.cfg
+	vconf $FILESDIR/logid.cfg
+	vsv logid
+}

From e61948595dc59503c0f44512016abb07c19bc037 Mon Sep 17 00:00:00 2001
From: T0mstone <realt0mstone@gmail.com>
Date: Wed, 28 Jun 2023 19:21:43 +0200
Subject: [PATCH 2/2] address complaints

---
 srcpkgs/logiops/files/logid.cfg | 1 -
 srcpkgs/logiops/files/logid/run | 9 +++------
 srcpkgs/logiops/template        | 1 -
 3 files changed, 3 insertions(+), 8 deletions(-)
 delete mode 100644 srcpkgs/logiops/files/logid.cfg

diff --git a/srcpkgs/logiops/files/logid.cfg b/srcpkgs/logiops/files/logid.cfg
deleted file mode 100644
index 76be54d61e23..000000000000
--- a/srcpkgs/logiops/files/logid.cfg
+++ /dev/null
@@ -1 +0,0 @@
-devices: ();
\ No newline at end of file
diff --git a/srcpkgs/logiops/files/logid/run b/srcpkgs/logiops/files/logid/run
index c99363c7ea18..30542ccf311f 100644
--- a/srcpkgs/logiops/files/logid/run
+++ b/srcpkgs/logiops/files/logid/run
@@ -1,7 +1,4 @@
 #!/bin/sh
-if /usr/bin/modprobe hid_logitech_hidpp
-then exec /usr/bin/logid
-else
-	# retry every second until the module is loaded
-	sleep 1
-fi
\ No newline at end of file
+[ -r conf ] && . ./conf
+modprobe -q hid_logitech_hidpp || exit 1
+exec logid ${OPTS}
diff --git a/srcpkgs/logiops/template b/srcpkgs/logiops/template
index 86b570c094f5..7de956775ae9 100644
--- a/srcpkgs/logiops/template
+++ b/srcpkgs/logiops/template
@@ -19,6 +19,5 @@ export CMAKE_GENERATOR="Unix Makefiles"
 
 post_install() {
 	vsconf logid.example.cfg logid.cfg
-	vconf $FILESDIR/logid.cfg
 	vsv logid
 }

  parent reply	other threads:[~2023-06-28 17:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-18 21:58 [PR PATCH] " T0mstone
2023-03-19 22:42 ` [PR PATCH] [Updated] " T0mstone
2023-03-19 22:44 ` T0mstone
2023-03-26 18:55 ` T0mstone
2023-06-25  2:13 ` github-actions
2023-06-25 18:53 ` [PR REVIEW] " Duncaen
2023-06-25 18:56 ` Duncaen
2023-06-28 17:21 ` T0mstone [this message]
2023-06-28 17:23 ` T0mstone
2023-06-28 17:49 ` [PR PATCH] [Closed]: " Duncaen
  -- strict thread matches above, loose matches on Subject: below --
2022-11-08 22:12 [PR PATCH] " Owenlaw222
2022-11-09  1:47 ` [PR PATCH] [Updated] " Owenlaw222

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=20230628172111.zf6afkJaye3SXgJkBOHqq6aMrQ9R9m0INfzc4_PDP6Y@z \
    --to=t0mstone@users.noreply.github.com \
    --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).