Github messages for voidlinux
 help / color / mirror / Atom feed
From: JohnGebbie <JohnGebbie@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: dotool-1.0
Date: Sat, 22 Oct 2022 21:39:54 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40115@inbox.vuxu.org> (raw)

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

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

https://github.com/JohnGebbie/void-packages dotool
https://github.com/void-linux/void-packages/pull/40115

New package: dotool-1.0
#### Testing the changes
- I tested the changes in this PR: **briefly**

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

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures:
  - aarch64-musl cross
  - armv7l cross

I was packaging ydotool (https://github.com/void-linux/void-packages/pull/39920),
which was a dependency of my program (https://github.com/void-linux/void-packages/pull/39716),
but it was requiring enough patching that I didn't want to depend on it and so I wrote dotool.


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

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

From 3ab7847e00fa79dca99adda63b6be5272bb538ea Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 22 Oct 2022 19:27:12 +0100
Subject: [PATCH] New package: dotool-1.0

---
 srcpkgs/dotool/INSTALL.msg           |  6 ++++++
 srcpkgs/dotool/files/80-dotool.rules |  2 ++
 srcpkgs/dotool/files/dotoold/log/run |  2 ++
 srcpkgs/dotool/files/dotoold/run     |  3 +++
 srcpkgs/dotool/template              | 20 ++++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 srcpkgs/dotool/INSTALL.msg
 create mode 100644 srcpkgs/dotool/files/80-dotool.rules
 create mode 100755 srcpkgs/dotool/files/dotoold/log/run
 create mode 100755 srcpkgs/dotool/files/dotoold/run
 create mode 100644 srcpkgs/dotool/template

diff --git a/srcpkgs/dotool/INSTALL.msg b/srcpkgs/dotool/INSTALL.msg
new file mode 100644
index 000000000000..3f3355925de7
--- /dev/null
+++ b/srcpkgs/dotool/INSTALL.msg
@@ -0,0 +1,6 @@
+A udev rule has been added to allow users in group input to use dotool
+without root permissions.  You can make it effective without rebooting
+by running:
+
+	$ sudo udevadm trigger
+
diff --git a/srcpkgs/dotool/files/80-dotool.rules b/srcpkgs/dotool/files/80-dotool.rules
new file mode 100644
index 000000000000..68ccfa8a279e
--- /dev/null
+++ b/srcpkgs/dotool/files/80-dotool.rules
@@ -0,0 +1,2 @@
+# This allows users in group input to use dotool without root permissions.
+KERNEL=="uinput", GROUP="input", MODE="0660"
diff --git a/srcpkgs/dotool/files/dotoold/log/run b/srcpkgs/dotool/files/dotoold/log/run
new file mode 100755
index 000000000000..762ba9e6cc26
--- /dev/null
+++ b/srcpkgs/dotool/files/dotoold/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t dotoold
diff --git a/srcpkgs/dotool/files/dotoold/run b/srcpkgs/dotool/files/dotoold/run
new file mode 100755
index 000000000000..4f8205c123e0
--- /dev/null
+++ b/srcpkgs/dotool/files/dotoold/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _dotoold:input dotoold
diff --git a/srcpkgs/dotool/template b/srcpkgs/dotool/template
new file mode 100644
index 000000000000..3a768f200837
--- /dev/null
+++ b/srcpkgs/dotool/template
@@ -0,0 +1,20 @@
+# Template file for 'dotool'
+pkgname=dotool
+version=1.0
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/dotool"
+short_desc="Command to simulate input anywhere (X11, Wayland, TTYs)"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/dotool"
+distfiles="https://git.sr.ht/~geb/dotool/archive/${version}.tar.gz"
+checksum=3821dc2f7ef2483cd8e74857bb0f37986176e951a19e16b15f3ceedc11b10e44
+system_accounts="_dotoold"
+
+post_install() {
+	vbin dotoolc
+	vbin dotoold
+	vsv dotoold
+	vinstall "${FILESDIR}/80-dotool.rules" 644 usr/lib/udev/rules.d
+}

             reply	other threads:[~2022-10-22 19:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-22 19:39 JohnGebbie [this message]
2022-10-22 19:57 ` [PR REVIEW] " classabbyamp
2022-10-22 19:57 ` classabbyamp
2022-10-22 20:04 ` JohnGebbie
2022-10-23  9:45 ` JohnGebbie
2022-10-23 17:50 ` classabbyamp
2022-10-23 17:52 ` classabbyamp
2022-10-23 21:53 ` JohnGebbie
2022-10-23 22:05 ` classabbyamp
2022-10-24 10:25 ` [PR PATCH] [Updated] " JohnGebbie
2022-10-24 10:28 ` [PR REVIEW] " JohnGebbie
2022-10-26 12:50 ` [PR PATCH] [Updated] " JohnGebbie
2022-10-26 14:45 ` JohnGebbie
2022-10-26 15:53 ` JohnGebbie
2022-10-26 18:21 ` [PR PATCH] [Merged]: " classabbyamp
2022-10-26 18:32 ` JohnGebbie

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-40115@inbox.vuxu.org \
    --to=johngebbie@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).