From patchwork Fri May 10 21:28:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 13947 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 3BA1516F8E; Fri, 10 May 2019 22:29:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 8013516F7B for ; Fri, 10 May 2019 22:29:07 +0100 (BST) Received: from localhost ([127.0.0.1]:50254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4k-0002g4-As for patchwork@mira.cbaines.net; Fri, 10 May 2019 17:29:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4h-0002fY-Bg for guix-patches@gnu.org; Fri, 10 May 2019 17:29:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4g-0004k9-9z for guix-patches@gnu.org; Fri, 10 May 2019 17:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPD4g-0004jv-6q for guix-patches@gnu.org; Fri, 10 May 2019 17:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPD4f-0003CI-W9 for guix-patches@gnu.org; Fri, 10 May 2019 17:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35677] [PATCH 1/3] gnu: Move Linux-Libre modules to their own section. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 May 2019 21:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35677@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155752373512264 (code B ref -1); Fri, 10 May 2019 21:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 May 2019 21:28:55 +0000 Received: from localhost ([127.0.0.1]:39289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4Z-0003Bi-7f for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4U-0003BH-Pd for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:52081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4P-0004Yf-GM for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4O-0002eZ-8p for guix-patches@gnu.org; Fri, 10 May 2019 17:28:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4M-0004Va-Sm for guix-patches@gnu.org; Fri, 10 May 2019 17:28:44 -0400 Received: from tobias.gr ([2001:470:7405::1]:53610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4M-0004Un-Ha for guix-patches@gnu.org; Fri, 10 May 2019 17:28:42 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id bb9e03fd for ; Fri, 10 May 2019 21:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=Uiwl116k1 GBINixHRr4O+KnOiZ8/OTE6iOT5DUxP91w=; b=Y4ska9KtwDcCWAqjdZXzl9LZG a2vMMGJu0iQ0q2aiFG+KktFtzoZ2FYMjHBztvN18NxQq65Koyy421CD5Je2c8A+x FM5DcFCYJaaRIcHWJ9+vLeMxkttNLSyBhjWXhz4Oqnrk2Uj4K9STpkqXS+3XqI2X 4ULPD6CNa+qF1aivdgt2/5s1Sszr3P3VUHgHi62/iHiwkOMRJDGcGfrAW6rAFJYB nanQtrYkvOfqa3vHCa1AKCnO7Sc9SjNds9Crh4uW8eK2cU+52r4ZMt3dn4CCCtci rLtSSJivZ/QC8XZKp3481lbXoCtAaaKRlnKy7U6HAX6lgZHKUnKGyaQB17JPw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9874fe45 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 10 May 2019 21:28:39 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Fri, 10 May 2019 23:28:16 +0200 Message-Id: <20190510212818.7996-1-me@tobias.gr> X-Mailer: git-send-email 2.21.0 In-Reply-To: <35676@debbugs.gnu.org> References: <35676@debbugs.gnu.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 * gnu/packages/linux.scm (vhba-module): Move to its own section. --- gnu/packages/linux.scm | 49 +++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 4e08bd0ae3..a3a2615834 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -440,28 +440,6 @@ It has been modified to remove all non-free binary blobs.") #:patches %linux-libre-5.0-patches #:configuration-file kernel-config)) -(define-public vhba-module - (package - (name "vhba-module") - (version "20190410") - (source (origin - (method url-fetch) - (uri (string-append - "http://downloads.sourceforge.net/cdemu/vhba-module/vhba-module-" - version ".tar.bz2")) - (sha256 - (base32 - "1513hq130raxp9z5grj54cwfjfxj05apipxg425j0zicii59a60c")))) - (build-system linux-module-build-system) - (arguments - ;; TODO: No tests? - `(#:tests? #f)) - (home-page "https://cdemu.sourceforge.io/") - (synopsis "Kernel module that emulates SCSI devices") - (description "VHBA module provides a Virtual (SCSI) HBA, which is the link -between the CDemu userspace daemon and linux kernel.") - (license license:gpl2+))) - (define %linux-libre-4.19-version "4.19.41") (define %linux-libre-4.19-hash "0lf1w72y4qkrg57qd78zs16r658qaqzwly0y9195nf7bdwqzb03v") @@ -558,6 +536,33 @@ between the CDemu userspace daemon and linux kernel.") #:extra-version "arm-omap2plus")) +;;; +;;; Linux kernel modules. +;;; + +(define-public vhba-module + (package + (name "vhba-module") + (version "20190410") + (source (origin + (method url-fetch) + (uri (string-append + "http://downloads.sourceforge.net/cdemu/vhba-module/vhba-module-" + version ".tar.bz2")) + (sha256 + (base32 + "1513hq130raxp9z5grj54cwfjfxj05apipxg425j0zicii59a60c")))) + (build-system linux-module-build-system) + (arguments + ;; TODO: No tests? + `(#:tests? #f)) + (home-page "https://cdemu.sourceforge.io/") + (synopsis "Kernel module that emulates SCSI devices") + (description "VHBA module provides a Virtual (SCSI) HBA, which is the link +between the CDemu userspace daemon and linux kernel.") + (license license:gpl2+))) + + ;;; ;;; Pluggable authentication modules (PAM). ;;; From patchwork Fri May 10 21:28:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 13949 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 967C716F8E; Fri, 10 May 2019 22:29:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7BD1116F5C for ; Fri, 10 May 2019 22:29:07 +0100 (BST) Received: from localhost ([127.0.0.1]:50252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4k-0002fr-6X for patchwork@mira.cbaines.net; Fri, 10 May 2019 17:29:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4i-0002fa-2j for guix-patches@gnu.org; Fri, 10 May 2019 17:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4g-0004kb-UF for guix-patches@gnu.org; Fri, 10 May 2019 17:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPD4g-0004kU-RD for guix-patches@gnu.org; Fri, 10 May 2019 17:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPD4g-0003CX-Nj for guix-patches@gnu.org; Fri, 10 May 2019 17:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35678] [PATCH 2/3] gnu: Add acpi-call-linux-module. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 May 2019 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35678 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35678@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155752373612270 (code B ref -1); Fri, 10 May 2019 21:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 May 2019 21:28:56 +0000 Received: from localhost ([127.0.0.1]:39291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4Z-0003Bl-MO for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4V-0003BI-4K for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:50098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4Q-0004Z0-0N for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4O-0002f7-Ne for guix-patches@gnu.org; Fri, 10 May 2019 17:28:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4N-0004Ws-H1 for guix-patches@gnu.org; Fri, 10 May 2019 17:28:44 -0400 Received: from tobias.gr ([2001:470:7405::1]:53610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4N-0004Un-68 for guix-patches@gnu.org; Fri, 10 May 2019 17:28:43 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 2298f3c9 for ; Fri, 10 May 2019 21:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=v3X2ky6el 5aXRSBEpDYRkVHzzK1pRuZy9n2XPEK99T8=; b=kosRyAEQE9Ri8fEudInxZ9Lqi 9m2CQw8+v/vtmZlRhbaoiNzMXzCPYz0IM8WXTRPR26ndd1DePtAiJntqLxzD52gF gXm0mH3xzkaAoB6jBaonTTl0cU6+QFcbptHxNxwrAOt/uXNbIt7IJA8F+YvzMBr7 xCkQ6DzCkIRxPITgZA2wPl3inhwJm01mJeUKeuHxmZAcN9GSpgHo9mPm9qHqTy4I OXnNx0hs+m4cuo5Mxl80EMl6IdNEDZC5YSmJIZOtvm9rNe9JoJCwGKS0RkM1NbEr kTyZ9uu4k2bGuVob3BTlPbH3a6aGwfbeXRzlhkwB9r1kiYt2AxLWGiJqDIf1g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 2513de9e (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 10 May 2019 21:28:39 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Fri, 10 May 2019 23:28:17 +0200 Message-Id: <20190510212818.7996-2-me@tobias.gr> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190510212818.7996-1-me@tobias.gr> References: <35676@debbugs.gnu.org> <20190510212818.7996-1-me@tobias.gr> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 * gnu/packages/linux.scm (acpi-call-linux-module): New public variable. --- Prolly contains typos; I'm sleepy. gnu/packages/linux.scm | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index a3a2615834..9689a89cc9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -540,6 +540,53 @@ It has been modified to remove all non-free binary blobs.") ;;; Linux kernel modules. ;;; +(define-public acpi-call-linux-module + (package + (name "acpi-call-linux-module") + (version "3.17") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/teleshoes/acpi_call.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04mbv4lasm3vv1j4ndxhnz4hvp5wg8f5fc9q6qxv0nhvwjynmsl3")))) + (build-system linux-module-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-for-linux-4.12 + (lambda _ + (substitute* "acpi_call.c" + (("asm/uaccess\\.h") + "linux/uaccess.h")) + #t)) + (add-after 'install 'install-documentation + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/" ,name "-" ,version))) + (for-each (lambda (file) + (let ((target (string-append doc "/" file))) + (mkdir-p (dirname target)) + (copy-recursively file target))) + (list "README.md" "examples")) + #t)))))) + (home-page "https://github.com/teleshoes/acpi_call") + (synopsis "Linux kernel module to perform ACPI method calls") + (description + "This simple Linux kernel module allows calls from user space to any +@acronym{ACPI, Advanced Configuration and Power Interface} method provided by +your computer's firmware, by writing to @file{/proc/acpi/call}. You can pass +any number of parameters of types @code{ACPI_INTEGER}, @code{ACPI_STRING}, +and @code{ACPI_BUFFER}. + +It grants direct and undocumented access to your hardware that may cause damage +and should be used with caution, especially on untested models.") + (license license:gpl3+))) ; see README.md (no licence headers) + (define-public vhba-module (package (name "vhba-module") From patchwork Fri May 10 21:28:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 13948 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 0E88616F8E; Fri, 10 May 2019 22:29:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 89EF316F7B for ; Fri, 10 May 2019 22:29:08 +0100 (BST) Received: from localhost ([127.0.0.1]:50258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4m-0002hZ-54 for patchwork@mira.cbaines.net; Fri, 10 May 2019 17:29:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4i-0002fm-OA for guix-patches@gnu.org; Fri, 10 May 2019 17:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4h-0004lI-LP for guix-patches@gnu.org; Fri, 10 May 2019 17:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53986) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPD4h-0004lA-IS for guix-patches@gnu.org; Fri, 10 May 2019 17:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPD4h-0003Cm-F4 for guix-patches@gnu.org; Fri, 10 May 2019 17:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35679] [PATCH 3/3] gnu: Add tpacpi-bat. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 May 2019 21:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35679 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35679@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155752373712278 (code B ref -1); Fri, 10 May 2019 21:29:03 +0000 Received: (at submit) by debbugs.gnu.org; 10 May 2019 21:28:57 +0000 Received: from localhost ([127.0.0.1]:39293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4b-0003By-1V for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4W-0003BK-1i for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:34841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4Q-0004ZM-U4 for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4P-0002fA-Ja for guix-patches@gnu.org; Fri, 10 May 2019 17:28:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4O-0004Xj-5B for guix-patches@gnu.org; Fri, 10 May 2019 17:28:45 -0400 Received: from tobias.gr ([2001:470:7405::1]:53610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4N-0004Un-QR for guix-patches@gnu.org; Fri, 10 May 2019 17:28:44 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id d5a5dd38 for ; Fri, 10 May 2019 21:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=MWK1rOPBOdgPzauzQbFTzYczFhFYoKcJn8Hq1HS+AN0=; b=hEdwOoTMLzxZ zhWBXSl3UaQeCdTXQS7tJ+SLCoDsN2z+qwO0bA651kQrLlb6Z/feOkD4zaUQ6Gwm p62ODWbqtqbStl4ImgKDZpX4lGQroJKiiVKw6ZfwZYzgeAqbjyhMIKMaX/SWwaoq mOOhY924Pp5gr56bEh5oLV7kuwSl9fGF1wA7Mrc+vG9wujcTcqRznGK5mNT9ctuX +NJwAbLUvfJ1Ui7ekHIWpS5AtAKu3Vcgv4B1JXnTI1wVhlO5XObY0o+4BabeF4v0 6TRLk0xnwi4BbQ6ACUzNfP6vL2Ad9iqg4io52xDDa9qldhmAI6012Na+XWiygdss pjL1noGkHA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id e12c2a50 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 10 May 2019 21:28:39 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Fri, 10 May 2019 23:28:18 +0200 Message-Id: <20190510212818.7996-3-me@tobias.gr> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190510212818.7996-1-me@tobias.gr> References: <35676@debbugs.gnu.org> <20190510212818.7996-1-me@tobias.gr> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 * gnu/packages/linux.scm (tpacpi-bat): New public variable. --- Same. gnu/packages/linux.scm | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 9689a89cc9..080a8b228b 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -3748,6 +3748,68 @@ other @code{hwmon} driver that enables temperature reading and fan control from userspace.") (license license:gpl3+))) +(define-public tpacpi-bat + (package + (name "tpacpi-bat") + (version "3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/teleshoes/tpacpi-bat.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wbaz34z99gqx721alh5vmpxpj2yxg3x9m8jqyivfi1wfpwc2nd5")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no test target + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'refer-to-inputs + (lambda _ + (substitute* "tpacpi-bat" + (("cat ") + (format "~a " (which "cat"))) + ;; tpacpi-bat modprobes the acpi_call kernel module if it's not + ;; loaded. That's the administrator's prerogative; disable it. + (("system \"(modprobe .*)\"" _ match) + (format "die \"Please run ‘~a’ first.\\n\"" match))) + #t)) + (delete 'configure) ; nothing to configure + (delete 'build) ; nothing to build + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (doc (string-append out "/share/doc/" ,name "-" ,version))) + (install-file "tpacpi-bat" bin) + + ;; There's no man page. Install other forms of documentation. + (for-each (lambda (file) + (let ((target (string-append doc "/" file))) + (mkdir-p (dirname target)) + (copy-recursively file target))) + (list "battery_asl" "examples" "README.md")) + #t)))))) + (inputs + `(("perl" ,perl))) + (home-page "https://github.com/teleshoes/tpacpi-bat") + (synopsis "ThinkPad battery charge controller") + (description + "Tpacpi-bat is a command-line interface to control battery charging on +@uref{https://github.com/teleshoes/tpacpi-bat/wiki/Supported-Hardware, Lenovo +ThinkPad models released after 2011}, starting with the xx20 series. It can +query and set the thresholds at which one or both batteries will start and stop +charging, inhibit charging batteries for a set period of time, or force them to +discharge when they otherwise would not. + +This tool merely exposes ACPI calls provided by the @code{acpi_call} Linux +kernel module provided by the @code{acpi-call-linux-module} package, which must +be installed and loaded separately. Only the original vendor firmware is +supported.") + (license license:gpl3+))) + (define-public ntfs-3g (package (name "ntfs-3g")