From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: greetd-0.8.0
Date: Thu, 06 Jan 2022 03:54:19 +0100 [thread overview]
Message-ID: <20220106025419.g-8xBPFjcFIThgK7xtzih-Qt4uCpqn_IPkHo4I01ZG8@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.8.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: 3617 bytes --]
From 46c2fe664705c89d979af5f4e57caae9667b0b4d Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Wed, 5 Jan 2022 21:53:56 -0500
Subject: [PATCH] New package: greetd-0.8.0
---
srcpkgs/greetd/files/README.voidlinux | 2 ++
srcpkgs/greetd/files/greetd.pam | 7 ++++
srcpkgs/greetd/files/greetd/run | 4 +++
srcpkgs/greetd/patches/fix-system-user.patch | 8 +++++
srcpkgs/greetd/template | 38 ++++++++++++++++++++
5 files changed, 59 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..19c22236bdc2
--- /dev/null
+++ b/srcpkgs/greetd/files/greetd/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+exec 2>&1
+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..cf5f3c400b0c
--- /dev/null
+++ b/srcpkgs/greetd/template
@@ -0,0 +1,38 @@
+# Template file for 'greetd'
+pkgname=greetd
+version=0.8.0
+revision=1
+build_style=cargo
+conf_files="/etc/greetd/config.toml"
+hostmakedepends="pkg-config 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/greetd/archive/${version}.tar.gz"
+checksum=47a73709df60f04b63fc50cfc409e47a451a9620777638f527b9d9333256035f
+
+system_accounts="_greeter"
+_greeter_groups="video"
+_greeter_homedir="/var/lib/_greeter"
+make_dirs="/var/lib/_greeter 0755 _greeter _greeter"
+
+pre_build() {
+ cd man
+ make all
+}
+
+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/
+
+ cd man
+ make install
+
+ vinstall ${FILESDIR}/greetd.pam 644 etc/pam.d/ greetd
+ vsv greetd
+ vdoc "${FILESDIR}/README.voidlinux"
+}
next prev parent reply other threads:[~2022-01-06 2:54 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-06 6:09 [PR PATCH] New package: greetd-0.7.0 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 ` [PR PATCH] [Updated] " cinerea0
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 ` cinerea0 [this message]
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=20220106025419.g-8xBPFjcFIThgK7xtzih-Qt4uCpqn_IPkHo4I01ZG8@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).