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: base-live-0.0.0.20200125
Date: Sun, 26 Jan 2020 04:56:11 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18560@inbox.vuxu.org> (raw)

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

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

https://github.com/CameronNemo/void-packages base-live
https://github.com/void-linux/void-packages/pull/18560

New package: base-live-0.0.0.20200125
None

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

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

From f56215946a5914df3c7b8b0f7d98e9144830c7d2 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Sat, 25 Jan 2020 19:55:51 -0800
Subject: [PATCH] New package: base-live-0.0.0.20200125

---
 srcpkgs/base-live/files/LICENSE      |  1 +
 srcpkgs/base-live/files/polkit.rules |  8 ++++++++
 srcpkgs/base-live/files/sudoers      |  1 +
 srcpkgs/base-live/template           | 14 ++++++++++++++
 4 files changed, 24 insertions(+)
 create mode 120000 srcpkgs/base-live/files/LICENSE
 create mode 100644 srcpkgs/base-live/files/polkit.rules
 create mode 100644 srcpkgs/base-live/files/sudoers
 create mode 100644 srcpkgs/base-live/template

diff --git a/srcpkgs/base-live/files/LICENSE b/srcpkgs/base-live/files/LICENSE
new file mode 120000
index 00000000000..28b80bccc57
--- /dev/null
+++ b/srcpkgs/base-live/files/LICENSE
@@ -0,0 +1 @@
+../../../COPYING
\ No newline at end of file
diff --git a/srcpkgs/base-live/files/polkit.rules b/srcpkgs/base-live/files/polkit.rules
new file mode 100644
index 00000000000..cc3c7d01acf
--- /dev/null
+++ b/srcpkgs/base-live/files/polkit.rules
@@ -0,0 +1,8 @@
+polkit.addAdminRule(function(action, subject) {
+    return ["unix-group:wheel"];
+});
+polkit.addRule(function(action, subject) {
+    if (subject.isInGroup("wheel")) {
+        return polkit.Result.YES;
+    }
+});
diff --git a/srcpkgs/base-live/files/sudoers b/srcpkgs/base-live/files/sudoers
new file mode 100644
index 00000000000..7c499c26cff
--- /dev/null
+++ b/srcpkgs/base-live/files/sudoers
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/srcpkgs/base-live/template b/srcpkgs/base-live/template
new file mode 100644
index 00000000000..b9570c134ab
--- /dev/null
+++ b/srcpkgs/base-live/template
@@ -0,0 +1,14 @@
+# Template file for 'base-live'
+pkgname=base-live
+version=0.0.0.20200125
+revision=1
+short_desc="sudo and polkit rules for live images"
+maintainer="Cameron Nemo <cnemo@tutanota.com>"
+license="BSD-2-Clause"
+homepage="https://github.com/void-linux/void-mklive"
+
+do_install() {
+	vinstall "${FILESDIR}/sudoers" 0640 etc/sudoers.d 20_void-live
+	vinstall "${FILESDIR}/polkit.rules" 0644 usr/share/polkit-1/rules.d
+	vlicense "${FILESDIR}/LICENSE"
+}

             reply	other threads:[~2020-01-26  3:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-26  3:56 voidlinux-github [this message]
2020-11-01  2:33 ` ericonr
2020-11-01 14:41 ` sgn
2020-11-01 18:51 ` CameronNemo
2021-06-22 19:10 ` [PR PATCH] [Closed]: " CameronNemo

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