From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SPTNMZLomWJlHgAAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 12:55:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sGzLMJLomWJ0rQAAG6o9tA (envelope-from ) for ; Fri, 03 Jun 2022 12:55:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 32C8C139E7 for ; Fri, 3 Jun 2022 12:55:14 +0200 (CEST) Received: from localhost ([::1]:37926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nx4xV-0003fd-CN for larch@yhetil.org; Fri, 03 Jun 2022 06:55:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nx4uQ-0001ZW-O6 for guix-patches@gnu.org; Fri, 03 Jun 2022 06:52:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nx4uQ-0006vf-DQ for guix-patches@gnu.org; Fri, 03 Jun 2022 06:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nx4uQ-0002yY-7r for guix-patches@gnu.org; Fri, 03 Jun 2022 06:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH 2/7] gnu: admin: Add greetd 0.8.0. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Jun 2022 10:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.165425349411370 (code B ref 49969); Fri, 03 Jun 2022 10:52:02 +0000 Received: (at 49969) by debbugs.gnu.org; 3 Jun 2022 10:51:34 +0000 Received: from localhost ([127.0.0.1]:55368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx4tu-0002xF-Le for submit@debbugs.gnu.org; Fri, 03 Jun 2022 06:51:33 -0400 Received: from [192.151.158.155] (port=48142 helo=mail.boiledscript.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx4Hk-0001kf-2u for 49969@debbugs.gnu.org; Fri, 03 Jun 2022 06:12:05 -0400 Received: from localhost (unknown [192.168.203.1]) by mail.boiledscript.com (Postfix) with ESMTP id A94893008F7 for <49969@debbugs.gnu.org>; Fri, 3 Jun 2022 10:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1654251118; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WVrOxeRUe8KQdV8xw4qar6u2s0RTSUp+6KqeC6ua7Cw=; b=LmjoDCm1+5aooK8XT8e82YcQDsVawK7hgts+vv0Aw+pMHwarvUGUJy+DxnCgjH+O+/NFTG TfjZo4hCLudyfEzmkJbcMXj/7Kza+qL42WsxsFf6ynj9y4D+aFn9Fr/PD4AJmJaUBna7iV 9wP+GerV78alXucQv8scp8ZBH6Ib7MO4Abbev48xJ6FgvO/VOoA5jsqe3TWkhIgxFQEDh/ E7kfwuTsdiAoczevT1kW+/IjH7xsXFETRfmy9thCzH5NBoGQ/0MCm0aJKmhnIZ2dVwPSRu jEd5rYnPZwM44f48lPn7dfdjOCAB7obnq3n4F4PxUIzJPpzvkb0c2i+KmsjjIg== Date: Fri, 3 Jun 2022 18:11:43 +0800 Message-ID: <20220603181143.5bef4199@ultrarare.space> In-Reply-To: <20220603181031.1ac07de0@ultrarare.space> References: <20220603180923.0caf6958@ultrarare.space> <20220603181031.1ac07de0@ultrarare.space> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Mailman-Approved-At: Fri, 03 Jun 2022 06:51:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 03 Jun 2022 06:54:55 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654253714; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WVrOxeRUe8KQdV8xw4qar6u2s0RTSUp+6KqeC6ua7Cw=; b=jhfcdGpJQjF8Wpl+0oL/dWFiWfkbGYrzsNk7VDHqF7yEHWyHheD0WqVV8lHedPoNL0MRUh mUDG36cQzGMyy5+NbyNNYehHiSJEtnIB9TmgXICWms0YNi8wEWrTwID+SWFcP2n0toKrqw kLG9wWiRZxZha5yYDchuE8L+Yxl+sZNAl38VPJpXRfm9fUuEFWA3i298z4fF8w+Jt2lAee oGlMzjd2n8+zXjBPuAayKrhVizMA0FUrYcIyeQBbLDl5Dn/fg36gmwMtHdR6zbViilvlZK 8RLNlD1f+8WxREYmR4OcEWKuuNlTCSTs0Sq5kCZ4B6pxUidoDgQ8qQ4QALHiMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654253714; a=rsa-sha256; cv=none; b=GGgxWT+xjsb4xp5OD86nIPULx88UgE2UaB7mWMfb+JJbd63evl1S2OOeExmp6xLaiMG8Yx Yc2IYuoAx4KndDbiHcKBuIVDMhjWgYcS4pRfp+85cfn1od7tgxwfY7u1kmiQG2bqCemKEJ TiMDBjNwQyoIK9x8ffS2zB6+bQitl+hGsE6XG82/vq9XOTMMdRbgfkD0rSKd6WekbfxAGQ 7kEWWnUAd6m+X0svWKD/7rIILq/rtAxz4S5ih7FwQyPn/lbqyObmpgTxDc4fsdTi9PEisi 3h9qRG2JfFydvGHYYaObaiuI2nEJcIjv4QzEJLcRYcJfEPrCxRLB+gqobK9tmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=LmjoDCm1; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=LmjoDCm1; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 32C8C139E7 X-Spam-Score: -3.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: TdfZgKGOwhkD * gnu/packages/admin.scm (greetd): New variable Signed-off-by: Hilton Chain --- gnu/packages/admin.scm | 80 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 92ee007729ee..d94b113d4e24 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -45,6 +45,7 @@ ;;; Copyright =C2=A9 2021 Brice Waegeneire ;;; Copyright =C2=A9 2021 Maxim Cournoyer ;;; Copyright =C2=A9 2021 Maxime Devos +;;; Copyright =C2=A9 2021 muradm ;;; Copyright =C2=A9 2021 Petr Hodina ;;; Copyright =C2=A9 2021 Artyom V. Poptsov ;;; Copyright =C2=A9 2022 Wamm K. D. @@ -65,6 +66,7 @@ ;;; along with GNU Guix. If not, see . =20 (define-module (gnu packages admin) + #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) #:use-module (guix build-system emacs) #:use-module (guix build-system glib-or-gtk) @@ -92,6 +94,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages c) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-io) #:use-module (gnu packages cross-base) #:use-module (gnu packages crypto) #:use-module (gnu packages cryptsetup) @@ -100,6 +103,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages elf) #:use-module (gnu packages file) #:use-module (gnu packages flex) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) #:use-module (gnu packages gl) @@ -4972,4 +4976,80 @@ (define-public udpcast (home-page "https://www.udpcast.linux.lu") (license license:gpl2+))) =20 +(define-public greetd + (package + (name "greetd") + (version "0.8.0") + (home-page "https://git.sr.ht/~kennylevinsen/greetd") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0x5c3jkw09kvj2grcxm899y2n6ws8p990cyp9cs0fy6lm4fzlh6v")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-nix" ,rust-nix-0.19) ("rust-pam-sys" ,rust-p= am-sys-0.5) + ("rust-rpassword" ,rust-rpassword-5) + ("rust-users" ,rust-users-0.11) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-tokio" ,rust-tokio-1) + ("rust-getopts" ,rust-getopts-0.2) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-async-trait" ,rust-async-trait-0.1) + ("rust-enquote" ,rust-enquote-1)) + #:phases + (modify-phases %standard-phases + (delete 'package) + (add-after 'build 'build-man-pages + (lambda* (#:key inputs #:allow-other-keys) + (define (scdoc-cmd doc lvl) + (system (string-append "scdoc < " + doc + "-" + lvl + ".scd > " + doc + "." + lvl))) + (with-directory-excursion "man" + (scdoc-cmd "greetd" "1") + (scdoc-cmd "greetd" "5") + (scdoc-cmd "greetd-ipc" "7") + (scdoc-cmd "agreety" "1")))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) (bin (string-append out + "/bin")) + (sbin (string-append out "/sbin")) + (share (string-append out "/share")) + (man (string-append share "/man")) + (man1 (string-append man "/man1")) + (man5 (string-append man "/man5")) + (man7 (string-append man "/man7")) + (release "target/release") + (greetd-bin (string-append release "/greetd")) + (agreety-bin (string-append release "/agreety"))) + (install-file greetd-bin sbin) + (install-file agreety-bin bin) + (with-directory-excursion "man" + (install-file "greetd.1" man1) + (install-file "greetd.5" man5) + (install-file "greetd-ipc.7" man7) + (install-file "agreety.1" man1)))= ))))) + (native-inputs `(("linux-pam" ,linux-pam) ("scdoc" ,scdoc))) + (synopsis "Minimal and flexible login manager daemon") + (description + "greetd is a minimal and flexible login manager daemon +that makes no assumptions about what you want to launch. =20 +If you can run it from your shell in a TTY, greetd can start it. + +If it can be taught to speak a simple JSON-based IPC protocol, +then it can be a greeter.") + (license license:gpl3+))) --=20 2.36.1