commit:     d515faa731e6dbf68223724005bc8b6f06012c47
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 28 22:23:37 2024 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sun Jul 28 22:55:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d515faa7

gui-libs/greetd: add 0.10.3

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 gui-libs/greetd/Manifest             |   1 +
 gui-libs/greetd/greetd-0.10.3.ebuild | 136 +++++++++++++++++++++++++++++++++++
 2 files changed, 137 insertions(+)

diff --git a/gui-libs/greetd/Manifest b/gui-libs/greetd/Manifest
index 294fd0f38c5c..61362df22a83 100644
--- a/gui-libs/greetd/Manifest
+++ b/gui-libs/greetd/Manifest
@@ -10,6 +10,7 @@ DIST enquote-1.1.0.crate 3552 BLAKE2B 
d9f04b671543b9d752af725431688bbff1c7ee740a
 DIST getopts-0.2.21.crate 18457 BLAKE2B 
10651e947e49acc768d99ae56ca5a7f37c1f61bbd1674e2ca58e3ae563fd64f3563d53ccdd0ae7a878710a39e13a99ac8c274974157db2c691f8c222de14992d
 SHA512 
5515ae6ccb0f03efb783683f46cfd1755342c4e83bb673ff8914c7f9dea0dae333f8d9703865e992659a359067df0e8b0e2253de0d4b0c7707cbe7d73401bb1f
 DIST gimli-0.28.1.crate 270497 BLAKE2B 
4089e0f871295d464e548610ab5f0c2fd863825416109cf58ca827e482897f00eab23b795295758f1e3af16167b52c77c91df6f707f1f445984a6c4bcd68c6ef
 SHA512 
695e46471fc07813dc4a47744458729b097f6efbfceeb57eb3db4165654e99bebb98dde2d73230b90bb5dd7c0ca0c6e77c7c3dc6f2abf70058b830a2fb386d25
 DIST greetd-0.10.0.tar.gz 49638 BLAKE2B 
acd638c674077bea5a86f3c0c798b28a6b5a3c0806c73bf4c6ac2e3a268b7b9adb3a34c1a375fd27b4c076bdc4ca0da56f976178fdf89bc79b8e8ed4395be2c0
 SHA512 
b2bfbbd4d9fca94ccc623f4f4fc2c3f9518319c96641ecc2c2f10bb6aa8f2b41633b651ed439626971b50c5ad5af5fb8ab5906a46dab158a37395f3cc67a3a21
+DIST greetd-0.10.3.tar.gz 49908 BLAKE2B 
9b41fc4d7d901b18af0f145a3d1bd626cd408f3cdeccaccb5ff7b5f622d183469990b1906f643604dc0bb89c7186f4a4f621b960e6b693d53c3ab4f13528c195
 SHA512 
26261261916ca2c4df054b896216fdceeadb319d443bf68dd9aad39b8e5fdba993c2d5a36248cc9d01640ef34fc22f228b3119a3e5f252281d4061221b6e05e3
 DIST itoa-1.0.11.crate 10563 BLAKE2B 
94da07e0f7f2535d0b1491b3a3c64905274b315ffd35ec8e9a3e36e26cd7211733b462eefb5208963e388345f65be9694804c344a6132b2b595b0bc716c0b328
 SHA512 
7e22dffac34c9c9f432daef395e0ec710ed658164bc9cd9fc6445c9f984c912a10bac556214a026bcddbe27a3197b35b0c87d6709fd605062637d086b2d20311
 DIST libc-0.2.153.crate 740614 BLAKE2B 
523a41bc8cff4ebcba0edbbe9e6a2286ec7cb3ba5e90ca5926c972b68e4b34188bc077d20c22376238c3cd91b7455898a95c505ace4ededea88cc496edb4c5a7
 SHA512 
3f99e3a192974fffdc053ef21e9ad5fb54b7cdbd4755df176704a95dba38047138ccab76763e89c6b565f37f98fd549fe368749f84f6d1638b3209cb07eae9b4
 DIST memchr-2.7.2.crate 96220 BLAKE2B 
2399064b6db21838d4aa0b25ed0bf04940ee3820741658cc6bf62e5ade08f41320df743ff13f99b2781da7b844e18deb1cfe25fe570f0e93f98ff03ca5d442e3
 SHA512 
cadcb4239c7f3aaab042592c5186770a225621e32f8583052fd3dbebb4a6d9b99be28f589b39b5ca36cb2d56fb3709e7d4ba91838ebb882e28e51280c02bbc40

diff --git a/gui-libs/greetd/greetd-0.10.3.ebuild 
b/gui-libs/greetd/greetd-0.10.3.ebuild
new file mode 100644
index 000000000000..1969369022d9
--- /dev/null
+++ b/gui-libs/greetd/greetd-0.10.3.ebuild
@@ -0,0 +1,136 @@
+# Copyright 2017-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+wasi-snapshot-preview1
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+inherit cargo optfeature pam systemd
+
+DESCRIPTION="ipc based login daemon"
+
+HOMEPAGE="https://git.sr.ht/~kennylevinsen/greetd/";
+SRC_URI="https://git.sr.ht/~kennylevinsen/greetd/archive/${PV}.tar.gz -> 
${P}.tar.gz
+       ${CARGO_CRATE_URIS}
+"
+
+LICENSE="GPL-3+"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 MIT Unicode-DFS-2016 Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="man"
+
+DEPEND="
+       acct-user/greetd
+       sys-auth/pambase
+       sys-libs/pam
+"
+RDEPEND="${DEPEND}"
+BDEPEND="man? ( app-text/scdoc )"
+
+QA_FLAGS_IGNORED="usr/bin/.*greet.*"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-0.6.1-correct_user_config_toml.patch"
+)
+
+src_compile() {
+       cargo_src_compile
+       if use man; then
+               scdoc < ./man/agreety-1.scd > ./agreety.1 || die
+               scdoc < ./man/greetd-1.scd > ./greetd.1 || die
+               scdoc < ./man/greetd-5.scd > ./greetd.5 || die
+               scdoc < ./man/greetd-ipc-7.scd > ./greetd-ipc.7 || die
+       fi
+}
+
+src_install() {
+       dobin "$(cargo_target_dir)"/{agreety,fakegreet,greetd}
+
+       insinto /etc/greetd
+       doins config.toml
+
+       systemd_dounit greetd.service
+
+       if use man; then
+               doman agreety.1 greetd.1 greetd.5 greetd-ipc.7
+       fi
+
+       newpamd - greetd <<-EOF
+               # newer greetd errors when no greetd-specific pam.d config is
+               # available
+               # workaround by just using the fallback that it was already
+               # using anyway
+               auth            include         login
+               account         include         login
+               password        include         login
+               session         include         login
+       EOF
+}
+
+pkg_postint() {
+       optfeature "eye-candy gtk based greeter" gui-apps/gtkgreet
+       optfeature "simplistic but sleek terminal greeter" gui-apps/tuigreet
+}

Reply via email to