From patchwork Tue Oct 23 18:46:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 5 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 A71B91674F; Tue, 23 Oct 2018 19:48:14 +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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id 272181674C for ; Tue, 23 Oct 2018 19:48:14 +0100 (BST) Received: from localhost ([::1]:43796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF1iv-00031U-F4 for patchwork@mira.cbaines.net; Tue, 23 Oct 2018 14:48:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF1in-000318-Sa for guix-patches@gnu.org; Tue, 23 Oct 2018 14:48:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF1im-0007RT-P8 for guix-patches@gnu.org; Tue, 23 Oct 2018 14:48:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gF1im-0007Qv-HU for guix-patches@gnu.org; Tue, 23 Oct 2018 14:48:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gF1ik-0003yc-I3 for guix-patches@gnu.org; Tue, 23 Oct 2018 14:48:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#33130] [PATCH] gnu: Add wavemon. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Oct 2018 18:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33130@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154032042215211 (code B ref -1); Tue, 23 Oct 2018 18:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2018 18:47:02 +0000 Received: from localhost ([127.0.0.1]:38499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF1hm-0003xE-EY for submit@debbugs.gnu.org; Tue, 23 Oct 2018 14:47:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF1hk-0003wl-9L for submit@debbugs.gnu.org; Tue, 23 Oct 2018 14:47:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF1he-000655-48 for submit@debbugs.gnu.org; Tue, 23 Oct 2018 14:46:54 -0400 Received: from lists.gnu.org ([2001:4830:134:3::11]:46059) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gF1hd-00064y-VZ for submit@debbugs.gnu.org; Tue, 23 Oct 2018 14:46:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF1hc-0002tK-Kn for guix-patches@gnu.org; Tue, 23 Oct 2018 14:46:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF1hb-00062f-P7 for guix-patches@gnu.org; Tue, 23 Oct 2018 14:46:52 -0400 Received: from tobias.gr ([2001:470:7405::1]:36320) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gF1hb-00060U-Au for guix-patches@gnu.org; Tue, 23 Oct 2018 14:46:51 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id c2ee4cc0 for ; Tue, 23 Oct 2018 18:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=2018; i=me@tobias.gr; bh=TLkw/NeQDY3iftgmcBLgVolA++/zqRRiNO+R rUe1RmE=; b=X3BcLzsAAxkbut8VhBV88ylpfQPTe5oIvA+8spSqlEi1zK+HORUD yu76kjtfe7+qQ6wKSCGbrGq+erHmWmuFnSlfqU5t37P153Bv8FRKnmiLKo9ITwpy PjQ8rPJUGeYR9qB15A+B0eJza8pjxeXcmjvJaNCBzVYqLx+NFtpytK6vUWpnOn+9 2kFvOSCapCS5DbZ7X+NZ2EnzOXMrAo3I63fg/wkLIUt0e6obP6wcH1hcKlh5Y9oB Fu0GlnhIeHPgRi5U8chddqcraSTxTwh/Mts2Fd+tDnJq+ZXUpfNBeMLjf+cTwEWA SdjNY9l0yMWZgwdJZ1S6W+y6mR5oizyhLg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 79407144 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Tue, 23 Oct 2018 18:46:47 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Tue, 23 Oct 2018 20:46:42 +0200 Message-Id: <20181023184642.10363-1-me@tobias.gr> X-Mailer: git-send-email 2.18.0 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: 208.118.235.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/hardware.scm (wavemon): New public variable. --- Guix, A thing. networking.scm's pretty pudgy (& this is more about radioing than networking anyway) so into hardware.scm it goes. Kind regards, T G-R gnu/packages/hardware.scm | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 52bc3d052..bfcb2cec8 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -22,11 +22,13 @@ #:use-module (gnu packages glib) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) + #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg) #:use-module (guix build-system gnu) #:use-module (guix download) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) @@ -232,3 +234,43 @@ such as the Turbo Boost ratio and Thermal Design Power (@dfn{TDP}) limits. MSR addresses differ (greatly) between processors, and any such modification can be dangerous and may void your CPU or system board's warranty.") (license license:gpl2))) ; cpuid.c is gpl2, {rd,wr}msr.c are gpl2+ + +(define-public wavemon + (package + (name "wavemon") + (version "0.8.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/uoaerg/wavemon.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rqpp7rhl9rlwnihsapaiy62v33h45fm3d0ia2nhdjw7fwkwcqvs")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list "CC=gcc" + ;; Makefile.in (ab)uses $(datadir) as $(docdir). Set it to Guix's + ;; standard --docdir since it's only used as such. + (string-append "datadir=" (assoc-ref %outputs "out") + "/share/doc/" ,name "-" ,version)) + #:tests? #f)) ; no tests + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libcap" ,libcap) + ("libnl" ,libnl) + ("ncurses" ,ncurses))) + (home-page "https://github.com/uoaerg/wavemon") + (synopsis "Wireless network device monitor") + (description + "Wavemon is a wireless device monitor with an interactive ncurses terminal +interface. It can display and plot signal and noise levels in real time. It +also reports packet statistics, device configuration, network parameters, and +access points and other wireless clients of your wireless network hardware. + +Wavemon should work (with varying levels of detail and features) with any device +supported by the Linux kernel.") + (license license:gpl2+)))