From c82e88dd00d1b0b7fcfb4e5628d99611388cef6f Mon Sep 17 00:00:00 2001 From: rawnix ports Date: Sat, 26 Sep 2026 18:19:05 +0000 Subject: sync 2026-09-26 18:19 UTC 1672 files changed, 151396 insertions(+) --- opt/opendoas/.footprint | 9 +++++++ opt/opendoas/.signature | 7 ++++++ opt/opendoas/MAKEPKG | 37 +++++++++++++++++++++++++++ opt/opendoas/better-wayland-support.patch | 42 +++++++++++++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 opt/opendoas/.footprint create mode 100644 opt/opendoas/.signature create mode 100644 opt/opendoas/MAKEPKG create mode 100644 opt/opendoas/better-wayland-support.patch (limited to 'opt/opendoas') diff --git a/opt/opendoas/.footprint b/opt/opendoas/.footprint new file mode 100644 index 0000000..a92d2a5 --- /dev/null +++ b/opt/opendoas/.footprint @@ -0,0 +1,9 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwsr-xr-x root/root usr/bin/doas +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/doas.1.gz +drwxr-xr-x root/root usr/share/man/man5/ +-rw-r--r-- root/root usr/share/man/man5/doas.conf.5.gz diff --git a/opt/opendoas/.signature b/opt/opendoas/.signature new file mode 100644 index 0000000..85eeec9 --- /dev/null +++ b/opt/opendoas/.signature @@ -0,0 +1,7 @@ +RWTZ9IduCSQ/mBCo1hT2z0E7A1gBSlo1PxZ6v3eXmZ+jwP3WcCyPknfm5lhJcMIQoAbB0xDUQSh33d9tqckN8UsIm01l9COy/gU= + +SHA256 (MAKEPKG) = 7f71dd2855095d11b7ed5defd7be8d9206d8122de01010de2ac856e7480c362a +SHA256 (.footprint) = aaea39099a0084d116f2918857943653df57763d3b1138c1f1a8aa8831167e4f +SHA256 (opendoas-6.8.2.tar.xz) = 4e98828056d6266bd8f2c93e6ecf12a63a71dbfd70a5ea99ccd4ab6d0745adf0 +SHA256 (better-wayland-support.patch) = 1d3958a8519b2e95c3cf4f7a09556e48fe06b3aaffcc85c5b676b51a4c7141eb +SHA256 (opendoas#6.8.2-1.pkg.tar.gz) = 13a6706fe3123c11f6e9e2db89d20a105b3d8bf95ac9451e79dfbe05b312af3a diff --git a/opt/opendoas/MAKEPKG b/opt/opendoas/MAKEPKG new file mode 100644 index 0000000..c488366 --- /dev/null +++ b/opt/opendoas/MAKEPKG @@ -0,0 +1,37 @@ +#!/bin/mkpkg +# description: Portable fork of OpenBSD doas command +# url: https://github.com/Duncaen/OpenDoas + +name=opendoas +version=6.8.2 +release=1 +source=(https://github.com/Duncaen/OpenDoas/releases/download/v$version/$name-$version.tar.xz + better-wayland-support.patch) +sha256sums=( + "4e98828056d6266bd8f2c93e6ecf12a63a71dbfd70a5ea99ccd4ab6d0745adf0" + "1d3958a8519b2e95c3cf4f7a09556e48fe06b3aaffcc85c5b676b51a4c7141eb" +) + +patch() { + cd $name-$version + patch -p1 -i $SRC/better-wayland-support.patch +} + +build() { + cd $name-$version + + ./configure \ + --prefix=/usr \ + --without-pam \ + --with-timestamp + + make + make DESTDIR=$PKG install +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh diff --git a/opt/opendoas/better-wayland-support.patch b/opt/opendoas/better-wayland-support.patch new file mode 100644 index 0000000..e77bf0a --- /dev/null +++ b/opt/opendoas/better-wayland-support.patch @@ -0,0 +1,42 @@ +From b861d070092ee71ac4208f79b699cf7dadd5c154 Mon Sep 17 00:00:00 2001 +From: Simon Ser +Date: Mon, 3 May 2021 15:42:19 +0200 +Subject: [PATCH] Copy XDG_RUNTIME_DIR and WAYLAND_DISPLAY + +This allows to run Wayland clients under doas. +--- + doas.1 | 6 +++++- + env.c | 2 +- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/doas.1 b/doas.1 +index a91705e..bd1f543 100644 +--- a/doas.1 ++++ b/doas.1 +@@ -58,8 +58,12 @@ is set to the name of the user executing + .Nm . + The variables + .Ev DISPLAY +-and ++, + .Ev TERM ++, ++.Ev XDG_RUNTIME_DIR ++and ++.Ev WAYLAND_DISPLAY + are inherited from the current environment. + This behavior may be modified by the config file. + The working directory is not changed. +diff --git a/env.c b/env.c +index e2286fc..b7955d7 100644 +--- a/env.c ++++ b/env.c +@@ -91,7 +91,7 @@ createenv(const struct rule *rule, const struct passwd *mypw, + const struct passwd *targpw) + { + static const char *copyset[] = { +- "DISPLAY", "TERM", ++ "DISPLAY", "TERM", "XDG_RUNTIME_DIR", "WAYLAND_DISPLAY", + NULL + }; + struct env *env; -- cgit v1.3.1