gnu: retroarch: Use shared zlib.
[jackhill/guix/guix.git] / gnu / packages / scsi.scm
CommitLineData
5cf30103
CM
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
bec13d87 3;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
5cf30103
CM
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages scsi)
21 #:use-module ((guix licenses)
bec13d87 22 #:select (gpl2+ bsd-2 bsd-3))
5cf30103
CM
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu))
26
27(define-public sg3-utils
28 (package
29 (name "sg3-utils")
bec13d87 30 (version "1.43")
5cf30103
CM
31 (source (origin
32 (method url-fetch)
33 (uri (string-append "http://sg.danny.cz/sg/p/sg3_utils-"
34 version ".tar.xz"))
35 (sha256
36 (base32
bec13d87 37 "04l58wvncqk6lfh4lashsl3ccsa1114hkd6vwi1h1cbmq2fw9c8v"))))
5cf30103
CM
38 (build-system gnu-build-system)
39 (home-page "http://sg.danny.cz/sg/sg3_utils.html")
40 (synopsis "SCSI device utilities")
41 (description
42 "sg3-utils is a collection of utilities for devices that use the Small
43Computer System Interface (SCSI) command set. It includes utilities to read
44data from, write data to, control, modify, and query the state of SCSI
45devices. For example, this package provides command-line tools to copy data
46based on @code{dd} syntax and semantics (called @code{sg_dd}, @code{sgp_dd}
47and @code{sgm_dd}), check INQUIRY data and VPD pages (@code{sg_inq}), check
48mode and log pages (@code{sginfo}, @code{sg_modes} and @code{sg_logs}), spin
49up and down disks (@code{sg_start}), do self tests (@code{sg_senddiag}), parse
50sense data (@code{sg_decode_sense}), and perform various other functions. In
51addition, this package includes a library, called libsgutils, which can be
52used in C and C++ programs to interact with SCSI devices.")
bec13d87
TGR
53 ;; See README: "All utilities and libraries have either a "2 clause" BSD
54 ;; license or are "GPL-2ed". [...] That BSD license was updated from the
55 ;; "3 clause" to the newer "2 clause" version on 20180119. To save space
56 ;; various source code files refer to a file called "BSD_LICENSE" [...]."
57 ;; Some files (like sg_compare_and_write.c) retain their 3-clause headers!
58 (license (list gpl2+ bsd-2 bsd-3))))