Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: dotool-1.0
@ 2022-10-22 19:39 JohnGebbie
  2022-10-22 19:57 ` [PR REVIEW] " classabbyamp
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: JohnGebbie @ 2022-10-22 19:39 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-10-26 18:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 19:39 [PR PATCH] New package: dotool-1.0 JohnGebbie
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

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).