unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: 39829@debbugs.gnu.org
Subject: [bug#39829] [PATCH] gnu: linux: Add lsscsi.
Date: Sat, 29 Feb 2020 00:25:17 +0100	[thread overview]
Message-ID: <CAEwRq=pHKR35=aqgWm3SR185wQTAJaJaUm+2zbkRLnpBJ7F1Dw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

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

-- 
Vincent Legoll

[-- Attachment #2: 0001-gnu-linux-Add-lsscsi.patch --]
[-- Type: text/x-patch, Size: 1814 bytes --]

From 76ec9623747523e414d59df573e54e376691faa0 Mon Sep 17 00:00:00 2001
From: Vincent Legoll <vincent.legoll@gmail.com>
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 <kkebreau@posteo.net>
 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
+;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
 ;;;
 ;;; 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


             reply	other threads:[~2020-02-28 23:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-28 23:25 Vincent Legoll [this message]
2020-03-03 16:24 ` bug#39829: Done: gnu: linux: Add lsscsi Jakub Kądziołka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEwRq=pHKR35=aqgWm3SR185wQTAJaJaUm+2zbkRLnpBJ7F1Dw@mail.gmail.com' \
    --to=vincent.legoll@gmail.com \
    --cc=39829@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).