Github messages for voidlinux
 help / color / mirror / Atom feed
From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: greetd-0.7.0
Date: Mon, 28 Jun 2021 18:04:52 +0200	[thread overview]
Message-ID: <20210628160452.hToC_Q6t5t89Y0vOZOll7jfbrXscwelkDNrxD4Oc1zc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31320@inbox.vuxu.org>

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

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

https://github.com/cinerea0/void-packages greetd
https://github.com/void-linux/void-packages/pull/31320

New package: greetd-0.7.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

Closes #23221.

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

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

From 1e57cfb6c48dc22a0c66e3481107cab31d447a71 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 28 Jun 2021 12:04:34 -0400
Subject: [PATCH] New package: greetd-0.7.0

---
 srcpkgs/greetd/files/README.voidlinux        |  2 +
 srcpkgs/greetd/files/greetd.pam              |  7 +++
 srcpkgs/greetd/files/greetd/run              |  3 ++
 srcpkgs/greetd/patches/fix-system-user.patch |  8 ++++
 srcpkgs/greetd/template                      | 45 ++++++++++++++++++++
 5 files changed, 65 insertions(+)
 create mode 100644 srcpkgs/greetd/files/README.voidlinux
 create mode 100644 srcpkgs/greetd/files/greetd.pam
 create mode 100644 srcpkgs/greetd/files/greetd/run
 create mode 100644 srcpkgs/greetd/patches/fix-system-user.patch
 create mode 100644 srcpkgs/greetd/template

diff --git a/srcpkgs/greetd/files/README.voidlinux b/srcpkgs/greetd/files/README.voidlinux
new file mode 100644
index 000000000000..3fe48e949867
--- /dev/null
+++ b/srcpkgs/greetd/files/README.voidlinux
@@ -0,0 +1,2 @@
+In order for agreety to work correctly, disable the agetty service for the tty
+set in /etc/greetd/config.toml.
diff --git a/srcpkgs/greetd/files/greetd.pam b/srcpkgs/greetd/files/greetd.pam
new file mode 100644
index 000000000000..1960d9497c08
--- /dev/null
+++ b/srcpkgs/greetd/files/greetd.pam
@@ -0,0 +1,7 @@
+#%PAM-1.0
+
+auth       required     pam_securetty.so
+auth       requisite    pam_nologin.so
+auth       include      system-local-login
+account    include      system-local-login
+session    include      system-local-login
diff --git a/srcpkgs/greetd/files/greetd/run b/srcpkgs/greetd/files/greetd/run
new file mode 100644
index 000000000000..a9d69837ec28
--- /dev/null
+++ b/srcpkgs/greetd/files/greetd/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec greetd
diff --git a/srcpkgs/greetd/patches/fix-system-user.patch b/srcpkgs/greetd/patches/fix-system-user.patch
new file mode 100644
index 000000000000..6f47f3fd538d
--- /dev/null
+++ b/srcpkgs/greetd/patches/fix-system-user.patch
@@ -0,0 +1,8 @@
+--- a/config.toml	2020-12-22 06:29:48.000000000 -0500
++++ b/config.toml	2021-06-07 23:51:31.868809783 -0400
+@@ -13,4 +13,4 @@
+ # The user to run the command as. The privileges this user must have depends
+ # on the greeter. A graphical greeter may for example require the user to be
+ # in the `video` group.
+-user = "greeter"
++user = "_greeter"
diff --git a/srcpkgs/greetd/template b/srcpkgs/greetd/template
new file mode 100644
index 000000000000..02797e68840c
--- /dev/null
+++ b/srcpkgs/greetd/template
@@ -0,0 +1,45 @@
+# Template file for 'greetd'
+pkgname=greetd
+version=0.7.0
+revision=1
+build_style=cargo
+conf_files="/etc/greetd/config.toml"
+hostmakedepends="scdoc"
+makedepends="pam-devel"
+short_desc="Minimal and flexible login manager daemon"
+maintainer="cinerea0 <cinerea0@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://git.sr.ht/~kennylevinsen/greetd"
+distfiles="https://git.sr.ht/~kennylevinsen/${pkgname}/archive/${version}.tar.gz"
+checksum=5229b7f00be40187de9df6240fc3b1f4012dd5e4777bb8661016cc7c2c105df7
+
+system_accounts="_greeter"
+_greeter_groups="video"
+_greeter_homedir="/var/lib/_greeter"
+make_dirs="/var/lib/_greeter 0755 _greeter _greeter"
+
+pre_build() {
+	for i in man/*.scd; do
+		scdoc < "$i" > "${i:: -4}"
+	done
+
+	for f in man/*-[0-9]; do
+		num="${f: -1}"
+		mv "$f" "${f/-$num/.$num}"
+	done
+}
+
+do_install() {
+	vbin "target/${RUST_TARGET}/release/agreety"
+	vbin "target/${RUST_TARGET}/release/fakegreet"
+	vbin "target/${RUST_TARGET}/release/greetd"
+	vinstall config.toml 644 etc/greetd/
+
+	for i in man/*.[0-9]; do
+		vman "$i"
+	done
+
+	vinstall ${FILESDIR}/greetd.pam 644 etc/pam.d/ greetd
+	vsv greetd
+	vdoc "${FILESDIR}/README.voidlinux"
+}

  parent reply	other threads:[~2021-06-28 16:04 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-06  6:09 [PR PATCH] " cinerea0
2021-06-06  6:12 ` cinerea0
2021-06-08  3:26 ` [PR REVIEW] " ericonr
2021-06-08  3:26 ` ericonr
2021-06-08  3:26 ` ericonr
2021-06-08  3:26 ` ericonr
2021-06-08 14:31 ` [PR PATCH] [Updated] " cinerea0
2021-06-08 14:33 ` [PR REVIEW] " cinerea0
2021-06-08 14:36 ` cinerea0
2021-06-12  1:04 ` [PR PATCH] [Updated] " cinerea0
2021-06-12 22:04 ` cinerea0
2021-06-15  1:42 ` cinerea0
2021-06-15 17:24 ` [PR PATCH] [Updated] " cinerea0
2021-06-17  2:36 ` ericonr
2021-06-17 14:36 ` cinerea0
2021-06-17 14:50 ` ericonr
2021-06-20 20:55 ` [PR REVIEW] " sbogomolov
2021-06-20 20:57 ` sbogomolov
2021-06-21  0:50 ` [PR REVIEW] " cinerea0
2021-06-21  0:50 ` cinerea0
2021-06-21  7:35 ` sbogomolov
2021-06-21  7:36 ` sbogomolov
2021-06-22 20:46 ` sbogomolov
2021-06-27  5:11 ` [PR PATCH] [Updated] " cinerea0
2021-06-27  5:16 ` cinerea0
2021-06-27  8:56 ` sbogomolov
2021-06-27  8:58 ` sbogomolov
2021-06-27  9:01 ` sbogomolov
2021-06-27  9:02 ` sbogomolov
2021-06-27  9:02 ` sbogomolov
2021-06-27 23:58 ` [PR PATCH] [Updated] " cinerea0
2021-06-28  0:15 ` cinerea0
2021-06-28  6:36 ` sbogomolov
2021-06-28 15:31 ` cinerea0
2021-06-28 16:04 ` cinerea0 [this message]
2021-06-28 16:47 ` sbogomolov
2021-06-28 16:47 ` sbogomolov
2021-06-28 21:59 ` sbogomolov
2021-06-28 22:05 ` [PR REVIEW] " sbogomolov
2021-06-28 22:05 ` sbogomolov
2021-06-30  0:37 ` cinerea0
2021-08-04  4:51 ` cinerea0
2021-09-07 19:06 ` [PR PATCH] [Updated] " cinerea0
2021-09-07 19:32 ` New package: greetd-0.8.0 cinerea0
2021-10-02  2:41 ` cinerea0
2021-10-04 19:18 ` cinerea0
2021-11-14  8:05 ` ericonr
2021-11-15 22:02 ` cinerea0
2021-12-12 10:52 ` rslabbert
2022-01-06  2:54 ` [PR PATCH] [Updated] " cinerea0
2022-01-06  2:55 ` cinerea0
2022-01-06  3:08 ` cinerea0
2022-01-17  9:50 ` Relected
2022-02-19 15:38 ` KSPAtlas
2022-02-25 23:27 ` [PR PATCH] [Merged]: " leahneukirchen

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=20210628160452.hToC_Q6t5t89Y0vOZOll7jfbrXscwelkDNrxD4Oc1zc@z \
    --to=cinerea0@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).