diff options
author | Chris Marusich <cmmarusich@gmail.com> | 2016-08-13 01:58:03 -0700 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-08-14 12:45:44 -0400 |
commit | 5cf30103f777d52c17556eff28c4d7898e602365 (patch) | |
tree | 9b22d738d6423b0d0dd78dcb01eaeb305066f424 /gnu | |
parent | 971ebdc89b8b3d83061afeca55ef43b3d713bc51 (diff) | |
download | guix-5cf30103f777d52c17556eff28c4d7898e602365.tar.gz |
gnu: Add sg3-utils.
* gnu/packages/scsi.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/local.mk | 1 | ||||
-rw-r--r-- | gnu/packages/scsi.scm | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index b7fa1c5999..166b9337aa 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -306,6 +306,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/scheme.scm \ %D%/packages/screen.scm \ %D%/packages/scribus.scm \ + %D%/packages/scsi.scm \ %D%/packages/sdl.scm \ %D%/packages/search.scm \ %D%/packages/serialization.scm \ diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm new file mode 100644 index 0000000000..92e2d7af4c --- /dev/null +++ b/gnu/packages/scsi.scm @@ -0,0 +1,54 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com> +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. + +(define-module (gnu packages scsi) + #:use-module ((guix licenses) + #:select (gpl2+ bsd-3)) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(define-public sg3-utils + (package + (name "sg3-utils") + (version "1.42") + (source (origin + (method url-fetch) + (uri (string-append "http://sg.danny.cz/sg/p/sg3_utils-" + version ".tar.xz")) + (sha256 + (base32 + "1fg71rj0f1gdjmkj0z8wlv46cf9lryjdyjkbi7fjmssgi5jyvblp")))) + (build-system gnu-build-system) + (home-page "http://sg.danny.cz/sg/sg3_utils.html") + (synopsis "SCSI device utilities") + (description + "sg3-utils is a collection of utilities for devices that use the Small +Computer System Interface (SCSI) command set. It includes utilities to read +data from, write data to, control, modify, and query the state of SCSI +devices. For example, this package provides command-line tools to copy data +based on @code{dd} syntax and semantics (called @code{sg_dd}, @code{sgp_dd} +and @code{sgm_dd}), check INQUIRY data and VPD pages (@code{sg_inq}), check +mode and log pages (@code{sginfo}, @code{sg_modes} and @code{sg_logs}), spin +up and down disks (@code{sg_start}), do self tests (@code{sg_senddiag}), parse +sense data (@code{sg_decode_sense}), and perform various other functions. In +addition, this package includes a library, called libsgutils, which can be +used in C and C++ programs to interact with SCSI devices.") + ;; The libsgutils library itself is licensed under bsd-3. Some tools are + ;; licensed under bsd-3, also. Some tools are licensed under gpl2+. + (license (list gpl2+ bsd-3)))) |