From patchwork Mon Sep 30 14:43:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brice Waegeneire X-Patchwork-Id: 15518 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 9007F17460; Mon, 30 Sep 2019 15:44:22 +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 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 EA17C1745C for ; Mon, 30 Sep 2019 15:44:18 +0100 (BST) Received: from localhost ([::1]:53276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEwuQ-0001tz-Gi for patchwork@mira.cbaines.net; Mon, 30 Sep 2019 10:44:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55715) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEwuB-0001to-Vo for guix-patches@gnu.org; Mon, 30 Sep 2019 10:44:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEwuA-0003h7-9j for guix-patches@gnu.org; Mon, 30 Sep 2019 10:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEwuA-0003h0-5n for guix-patches@gnu.org; Mon, 30 Sep 2019 10:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEwuA-0001m3-1o for guix-patches@gnu.org; Mon, 30 Sep 2019 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37519] [PATCH v3] gnu: add iwd. References: <20190926142340.29343-1-brice@waegenei.re> In-Reply-To: <20190926142340.29343-1-brice@waegenei.re> Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Sep 2019 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37519 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37519@debbugs.gnu.org Received: via spool by 37519-submit@debbugs.gnu.org id=B37519.15698546286788 (code B ref 37519); Mon, 30 Sep 2019 14:44:02 +0000 Received: (at 37519) by debbugs.gnu.org; 30 Sep 2019 14:43:48 +0000 Received: from localhost ([127.0.0.1]:60070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEwts-0001lK-Dl for submit@debbugs.gnu.org; Mon, 30 Sep 2019 10:43:48 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:49253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEwtl-0001ky-KL for 37519@debbugs.gnu.org; Mon, 30 Sep 2019 10:43:42 -0400 X-Originating-IP: 85.170.102.177 Received: from localhost (85-170-102-177.rev.numericable.fr [85.170.102.177]) (Authenticated sender: brice@waegenei.re) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 9D13224000D for <37519@debbugs.gnu.org>; Mon, 30 Sep 2019 14:43:35 +0000 (UTC) From: Brice Waegeneire Date: Mon, 30 Sep 2019 16:43:21 +0200 Message-Id: <20190930144321.9187-1-brice@waegenei.re> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 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/networking.scm (iwd): New variable. --- gnu/packages/networking.scm | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index a93e2cb9fc..bc768c6697 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -30,6 +30,7 @@ ;;; Copyright © 2019 Vasile Dumitrascu ;;; Copyright © 2019 Julien Lepiller ;;; Copyright © 2019 Timotej Lazar +;;; Copyright © 2019 Brice Waegeneire ;;; ;;; This file is part of GNU Guix. ;;; @@ -2578,3 +2579,62 @@ communication.") (description "FRRouting (FRR) is an IP routing protocol suite which includes protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ") (license license:gpl2+))) + +(define-public iwd + (package + (name "iwd") + (version "0.21") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393")))) + (build-system gnu-build-system) + (inputs + `(("dbus" ,dbus) + ("libtool" ,libtool) + ("ell" ,ell) + ("readline" ,readline))) + (native-inputs + `(("asciidoc" ,asciidoc) + ("autoconf" ,autoconf) + ("automake" ,automake) + ("pkgconfig" ,pkg-config) + ("python" ,python) + ("openssl" ,openssl))) + (arguments + `(#:configure-flags + (let ((dbus (assoc-ref %outputs "out"))) + (list "--disable-systemd-service" + "--enable-external-ell" + "--enable-hwsim" + "--enable-tools" + "--enable-wired" + "--enable-docs" + "--localstatedir=/var" + (string-append "--with-dbus-datadir=" dbus "/share/") + (string-append "--with-dbus-busdir=" + dbus "/share/dbus-1/system-services"))) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'pre-configure + (lambda _ + ;; Test disabled because it need the kernel module + ;; pkcs8_key_parser loaded. + (substitute* "Makefile.am" + (("unit\\/test-eapol.*? ") "")) + ;; Don't try to 'mkdir /var'. + (substitute* "Makefile.in" + (("\\$\\(MKDIR_P\\) -m 700") "true")) + #t))))) + (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/") + (synopsis "Internet Wireless Daemon") + (description "iwd is a wireless daemon for Linux that aims to replace WPA +Supplicant. It optimizes resource utilization by not depending on any external +libraries and instead utilizing features provided by the Linux kernel to the +maximum extent possible.") + (license license:lgpl2.1+)))