From patchwork Fri Feb 28 23:25:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 20469 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 DC17F27BBEA; Fri, 28 Feb 2020 23:26:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7583C27BBE4 for ; Fri, 28 Feb 2020 23:26:09 +0000 (GMT) Received: from localhost ([::1]:55028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7p1E-0004PM-T0 for patchwork@mira.cbaines.net; Fri, 28 Feb 2020 18:26:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52230) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7p19-0004PG-6Z for guix-patches@gnu.org; Fri, 28 Feb 2020 18:26:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7p18-0004Zb-3K for guix-patches@gnu.org; Fri, 28 Feb 2020 18:26:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56229) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7p17-0004ZV-W6 for guix-patches@gnu.org; Fri, 28 Feb 2020 18:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j7p17-0000Gm-Sk for guix-patches@gnu.org; Fri, 28 Feb 2020 18:26:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39829] [PATCH] gnu: linux: Add lsscsi. Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Feb 2020 23:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39829 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39829@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1582932338977 (code B ref -1); Fri, 28 Feb 2020 23:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Feb 2020 23:25:38 +0000 Received: from localhost ([127.0.0.1]:33968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7p0k-0000Fh-AV for submit@debbugs.gnu.org; Fri, 28 Feb 2020 18:25:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:39007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7p0h-0000FY-Lk for submit@debbugs.gnu.org; Fri, 28 Feb 2020 18:25:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52166) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7p0e-0004Kg-EI for guix-patches@gnu.org; Fri, 28 Feb 2020 18:25:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7p0d-0004K3-5H for guix-patches@gnu.org; Fri, 28 Feb 2020 18:25:32 -0500 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:43369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7p0c-0004J4-VZ for guix-patches@gnu.org; Fri, 28 Feb 2020 18:25:31 -0500 Received: by mail-io1-xd2c.google.com with SMTP id n21so5347659ioo.10 for ; Fri, 28 Feb 2020 15:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=iPPhBUZAFtlcsdiWSyTvP4aDSXaYagyWBlk4Ppc/7Yg=; b=D5bwJYR3bjb4DR2Yyc1SVyBo8T0s7JZ+yuunXT/fxnIr/N9uAvUcXFaZBd65L65j14 i8kjmlpW0WUjEu62PLUQahoCLgp98w6WuiSZZ6Np8+AWz+r2JRErfGJ9xilrzRXJcVnU dtzBL5tLQmD4Cum065PBMsIZwYyc5WgYBm9hDCILmXzkh+Vk4RmjwslNqD77TWQGYXdM JAAIH7rRkFwceaSTQ/XLlYzb0nnwfl6zakkRgGRLRNzvdLf3R7wEaWVWmUjb3uh/kb8z /zpgV+XCUsk/p6Q3yOP/il8bNhyYRclquXlbGaaIgX48QGukyV2MVYg1AZVT2/PhkiA3 0R+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iPPhBUZAFtlcsdiWSyTvP4aDSXaYagyWBlk4Ppc/7Yg=; b=uYypAvbqSpFEcvODewjBIc2+aqrD88aqmMDTK+xyt9rpZEdTzwbYWFCe2EpStlqwZW BDdPeZN5/0cRoYSXPPC5+2BCDRqkr74ZFsA5LTdI8owXSFdwi52xfPEHSbPJpzc76J6R 95AHC62X3WbS0EgWjBE6LFCBiFLwillgo6xJvJHRHabBwdd9WeJiAmqeqIh2Hp6qk5yj nvpwk80IHicWpYpU5Cydr6rd8nrsRdOz7tlSwpsp5xpbBIQj2HWJg/mk3EBTHnVWFGQb GqtnwB1EEJZUxYcqhcSGmyojaHJELo1taNQMXm8fAJ9Ah8289Ha3LWp1bDmm75JFrcaA fxgw== X-Gm-Message-State: APjAAAUk+bgxtRkfNB58bBJRt5nbpoHNYUvq8pgBOhhX8Yn6pPWmcyhN Hu5xCCDrp5KwKkwH1oAeRkUBrr42jH7StxGvJkUo0rJc X-Google-Smtp-Source: APXvYqxuaY8k3Xk5Zltcz/bYWqKcLtl2nB9M2im4l93Qgbe0Gzm6jWUbQXsB7pDgFOQzjmIYqLNQc1JBOnrRhtGVRdU= X-Received: by 2002:a6b:a0c:: with SMTP id z12mr5155998ioi.92.1582932329313; Fri, 28 Feb 2020 15:25:29 -0800 (PST) MIME-Version: 1.0 From: Vincent Legoll Date: Sat, 29 Feb 2020 00:25:17 +0100 Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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 Built in kvm x86_64, narchived & scp'ed to laptop, then tested there: $ /gnu/store/*lsscsi*/bin/lsscsi [0:0:0:0] disk ATA CT120BX500SSD1 R013 /dev/sda [1:0:0:0] cd/dvd TSSTcorp CDDVDW TS-L633C SN01 /dev/sr0 [4:0:0:0] disk Generic 2.0 Reader -SD 1.00 /dev/sdb [4:0:0:1] disk Generic 2.0 Reader -MS 1.00 /dev/sdc From 76ec9623747523e414d59df573e54e376691faa0 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Sat, 29 Feb 2020 00:19:01 +0100 Subject: [PATCH] gnu: linux: Add lsscsi. * gnu/packages/linux.scm (lsscsi): New variable. --- gnu/packages/linux.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 0289047d27..bea41536cc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -40,6 +40,7 @@ ;;; Copyright © 2019 Kei Kebreau ;;; Copyright © 2020 Oleg Pykhalov ;;; Copyright © 2020 Pierre Neidhardt +;;; Copyright © 2020 Vincent Legoll ;;; ;;; This file is part of GNU Guix. ;;; @@ -1841,6 +1842,27 @@ IPv6 packet filter. Both commands are targeted at system administrators.") (license license:gpl2+))) +(define-public lsscsi + (package + (name "lsscsi") + (version "0.31") + (source (origin + (method url-fetch) + (uri (string-append + "http://sg.danny.cz/scsi/lsscsi-" version ".tar.xz")) + (sha256 + (base32 + "1ry2y34xmpgxdbfbyvs8cjmbx0fn222yjdab87wj21q60nab5p75")))) + (build-system gnu-build-system) + (synopsis "Lists information about SCSI or NVMe devices in Linux") + (home-page "http://sg.danny.cz/scsi/lsscsi.html") + (description + "@command{lsscsi} lists SCSI logical units or SCSI targets. It can +also list NVMe namespaces or controllers and show the relationship between a +device's primary node name, its SCSI generic (sg) node name and its kernel +name.") + (license license:gpl2))) + (define-public ebtables (package (name "ebtables") -- 2.25.1