From patchwork Mon Oct 21 15:16:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brice Waegeneire X-Patchwork-Id: 15798 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 3D24B172B3; Mon, 21 Oct 2019 16:17:11 +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,URIBL_BLOCKED autolearn=unavailable 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 EDA9B1729D for ; Mon, 21 Oct 2019 16:17:10 +0100 (BST) Received: from localhost ([::1]:43958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZQk-00077W-CH for patchwork@mira.cbaines.net; Mon, 21 Oct 2019 11:17:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55950) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZQd-000777-Qs for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMZQc-0003xO-Mf for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMZQc-0003xJ-Jt for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMZQc-0002RY-9v for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37853] [PATCH] gnu: Add ddcci-driver-linux. Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Oct 2019 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37853 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37853@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15716710008246 (code B ref -1); Mon, 21 Oct 2019 15:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2019 15:16:40 +0000 Received: from localhost ([127.0.0.1]:57643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMZQG-00028Z-1A for submit@debbugs.gnu.org; Mon, 21 Oct 2019 11:16:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:46882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMZQE-00026x-7Y for submit@debbugs.gnu.org; Mon, 21 Oct 2019 11:16:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55923) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZQC-00076F-Us for guix-patches@gnu.org; Mon, 21 Oct 2019 11:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMZQB-0003tR-B5 for guix-patches@gnu.org; Mon, 21 Oct 2019 11:16:36 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:38369) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iMZQB-0003tG-1r for guix-patches@gnu.org; Mon, 21 Oct 2019 11:16:35 -0400 X-Originating-IP: 78.237.113.178 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id E4568240010 for ; Mon, 21 Oct 2019 15:16:30 +0000 (UTC) From: Brice Waegeneire Date: Mon, 21 Oct 2019 17:16:28 +0200 Message-Id: <20191021151628.28632-1-brice@waegenei.re> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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 (ddcci-driver-linux): Add variable. --- gnu/packages/linux.scm | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 989d55f8aa..4a98c9e60e 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -968,6 +968,65 @@ and should be used with caution, especially on untested models.") between the CDemu userspace daemon and linux kernel.") (license license:gpl2+))) + +(define-public ddcci-driver-linux + (package + (name "ddcci-driver-linux") + (version "0.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vkkja3ykjil783zjpwp0vz7jy2fp9ccazzi3afd4fjk8gldin7f")))) + (build-system linux-module-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (for-each (lambda (module) + (invoke "make" "-C" + (string-append (assoc-ref inputs "linux-module-builder") + "/lib/modules/build") + (string-append "M=" (getcwd) "/" module))) + (list "ddcci" "ddcci-backlight")) + #t)) + (replace 'install + (lambda* (#:key inputs native-inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (moddir (string-append out "/lib/modules")) + (kmod (assoc-ref (or native-inputs inputs) "kmod"))) + ;; Install kernel modules + (mkdir-p moddir) + (for-each (lambda (module) + (invoke "make" "-C" + (string-append + (assoc-ref inputs "linux-module-builder") + "/lib/modules/build") + (string-append "M=" (getcwd) "/" module) + (string-append "DEPMOD=" kmod "/bin/depmod") + (string-append "MODULE_DIR=" moddir) + (string-append "INSTALL_PATH=" out) + (string-append "INSTALL_MOD_PATH=" out) + "INSTALL_MOD_STRIP=1" + "modules_install")) + (list "ddcci" "ddcci-backlight"))) + #t))))) + (home-page "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux") + (synopsis "A pair of Linux kernel drivers for DDC/CI monitors") + (description "Two Linux kernel drivers, ddcci and ddcci-backlight, that +allow the control of DDC/CI monitors through the sysfs interface. ddcci create +a character device for each DDC/CI monitors in @file{/dev/bus/ddcci/[I²C bus number]}. +ddcci-backlight allow the control of the backlight level or luminance property when supported +under @file{/sys/class/backlight/}.") + (license license:gpl2+))) + ;;; ;;; Pluggable authentication modules (PAM).