From patchwork Tue Oct 11 11:27:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mehmet Tekman X-Patchwork-Id: 43321 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CFCA227BBEA; Tue, 11 Oct 2022 13:47:01 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2A6D827BBE9 for ; Tue, 11 Oct 2022 13:47:01 +0100 (BST) Received: from localhost ([::1]:58228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiEex-0007bi-Pg for patchwork@mira.cbaines.net; Tue, 11 Oct 2022 08:46:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiDRW-0000mI-Vd for guix-patches@gnu.org; Tue, 11 Oct 2022 07:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52181) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiDRW-0002vI-L5 for guix-patches@gnu.org; Tue, 11 Oct 2022 07:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiDRW-0005wI-Fy for guix-patches@gnu.org; Tue, 11 Oct 2022 07:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58356] [PATCH] Add xtrlock Resent-From: Mehmet Tekman Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 Oct 2022 11:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58356 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 58356@debbugs.gnu.org Received: via spool by 58356-submit@debbugs.gnu.org id=B58356.166548771922783 (code B ref 58356); Tue, 11 Oct 2022 11:29:02 +0000 Received: (at 58356) by debbugs.gnu.org; 11 Oct 2022 11:28:39 +0000 Received: from localhost ([127.0.0.1]:51253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiDR8-0005vO-Vk for submit@debbugs.gnu.org; Tue, 11 Oct 2022 07:28:39 -0400 Received: from mail-lf1-f41.google.com ([209.85.167.41]:34788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiDR6-0005vB-Si for 58356@debbugs.gnu.org; Tue, 11 Oct 2022 07:28:37 -0400 Received: by mail-lf1-f41.google.com with SMTP id a29so20648510lfo.1 for <58356@debbugs.gnu.org>; Tue, 11 Oct 2022 04:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=4FiWPdf5FnXN7NPziusAeKVSV/u4HnPjYeLcC4XM3K8=; b=Krcp3TN+D1qpaL8omPvRcxWlJpt/f4doFABjtQ7SfNUPgUqs+tJE2/RtFQsm9Jkf9Y breaOsrjk23GEnhWaj0q42c6dDIFtZzA80twFTgh5JXH4c84MIxlC7wrqIYfojK8HcBn A/nZN1+IZleh/IPcq3KyE/zU6AxILWiQNUJxz99cubshHVVOsh1HT+POEQu1wTd3fKR5 mXFxspkvp9x1KhHDuxwDNpDFNoKlYS1K7MAskmyu53RVJ4985VckXtYd5yNBfTVziiSS gXkEp3kc5DnQHenzN0c7b7+qCrxMcFuKKYkKrwXN0hoScUkSKDNodnlljbWT4FOg4U+c T2Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4FiWPdf5FnXN7NPziusAeKVSV/u4HnPjYeLcC4XM3K8=; b=hI+s0Phvq3Vc5dn9R81kKsO26IVhNi7VQYZbxkWvc5N/qLu7Ka/mwSTC4rLsptDPXn JPZaGr7mR5ixAJKq+twYfbsSyqQbKzy3SbEa13CynrRkPcfcMZMP+M4xfp0Vql91NVeh GzxTdS5UI/SCp9V5hnf7PFKNNw0mReeVjqcd4dgBRH7Z//OXP60k8V9TrrS6NAHOLEYO iz3cYHieF80bNfAHY4GwVt2fvVN1g5nVj4DcUvRIFbw/WbQFom73un4lZhIawcrFY0ZJ t734uWqS0HdiTK/jbDSESo24jW1q+wCcP1uLyhLJdVovlwjycCUgNLjZDoEegWlqe0b5 DB5Q== X-Gm-Message-State: ACrzQf3KswWgv9LxmHFeiiykjjkhSHqMsqtDKZ57MuBlZSUfudD25P5+ 94vRcoWo1HrVirDe03zZlmvkTbY4CQnlKKg0F0wKhtmLGCo= X-Google-Smtp-Source: AMsMyM5Sz1oA+7TuYKot0qIC6FTWi208r/Zg7R3U4ylsg7yRue3svFA+oQDgfkZ9vrOWonv0UNGvcDZ5TUX+PHmKYls= X-Received: by 2002:ac2:4d28:0:b0:4a2:40ef:2996 with SMTP id h8-20020ac24d28000000b004a240ef2996mr7792805lfk.425.1665487710474; Tue, 11 Oct 2022 04:28:30 -0700 (PDT) MIME-Version: 1.0 References: <87czb2297f.fsf@gmail.com> In-Reply-To: From: Mehmet Tekman Date: Tue, 11 Oct 2022 13:27:54 +0200 Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches I've just noticed that though the package builds without the CFLAGS, it doesn't work well in context to the shadow file. I've reincluded it in this next patch (diff from master). Best, Mehmet From aced8b924a194495233b0698f2185b9b80d10963 Mon Sep 17 00:00:00 2001 From: Mehmet Tekman Date: Tue, 11 Oct 2022 12:38:13 +0200 Subject: [PATCH] gnu: Add xtrlock. * gnu/packages/xdisorg.scm (xtrlock): New variable. --- gnu/packages/xdisorg.scm | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 9908f29191..fc25c14ea7 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -56,6 +56,7 @@ ;;; Copyright © 2022 Jai Vetrivelan ;;; Copyright © 2022 Derek Chuank ;;; Copyright © 2022 Wamm K. D. +;;; Copyright © 2022 Mehmet Tekman ;;; ;;; This file is part of GNU Guix. ;;; @@ -1099,6 +1100,54 @@ (define-public xlockmore (license (license:non-copyleft #f "See xlock.c.") ))) ; + GPLv2 in modes/glx/biof.c. +(define-public xtrlock + (package + (name "xtrlock") + (version "2.15") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://debian/pool/main/x/xtrlock/xtrlock_" version + ".tar.xz")) + (sha256 + (base32 + "0mgpysbvipd5h6x6zz4hng6b13gp3qjnpgny3azyj8k8dv85bppw")))) + (build-system gnu-build-system) + (arguments + ;; LDLIBS are required for the package to build. + ;; CFLAGS are required for it to use the shadow file, and to + ;; be compatible with multi-touch devices. + '(#:make-flags (list "CFLAGS=-Wall -DSHADOW_PWD -DMULTITOUCH" + "LDLIBS=-lX11 -lcrypt -lXi") + #:phases (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-after 'unpack 'rename-makefile + (lambda _ + (rename-file "Makefile.noimake" "Makefile") + (rename-file "xtrlock.man" "xtrlock.1"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (install-file "xtrlock" + (string-append out "/bin/")) + (install-file "xtrlock.1" + (string-append out "/share/man/man1/")))))))) + (inputs (list libx11 libxi libxfixes)) + (home-page "https://packages.debian.org/sid/xtrlock") + (synopsis "Minimal X display lock program") + (description + "xtrlock locks the X server till the user enters their password at the +keyboard. While xtrlock is running, the mouse and keyboard are grabbed and +the mouse cursor becomes a padlock. Output displayed by X programs, and +windows put up by new X clients, continue to be visible, and any new output is +displayed normally. The mouse and keyboard are returned when the user types +their password, followed by Enter or Newline. If an incorrect password is +entered the bell is sounded. Pressing Backspace or Delete erases one +character of a password partially typed; pressing Escape or Clear clears +anything that has been entered.") + (license license:gpl3+))) + (define-public xosd (package (name "xosd") -- 2.38.0