guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Add sdparm.


From: tobias . geerinckx . rice
Subject: [PATCH] gnu: Add sdparm.
Date: Tue, 2 Feb 2016 01:20:06 +0100

From: Tobias Geerinckx-Rice <address@hidden>

* gnu/packages/disk.scm (sdparm): New variable.
---
 gnu/packages/disk.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index d806e0c..6e824d2 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2012, 2013 Nikita Karetnikov <address@hidden>
 ;;; Copyright © 2015 Mathieu Lirzin <address@hidden>
 ;;; Copyright © 2015 Mark H Weaver <address@hidden>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -144,3 +145,29 @@ to recover data more efficiently by only reading the 
necessary blocks.")
      "The dosfstools package includes the mkfs.fat and fsck.fat utilities,
 which respectively make and check MS-DOS FAT filesystems.")
     (license gpl3+)))
+
+(define-public sdparm
+  (package
+    (name "sdparm")
+    (version "1.09")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://sg.danny.cz/sg/p/";
+                           name "-" version ".tar.xz"))
+      (sha256
+       (base32
+        "0jakqyjwi72zqjzss04bally0xl0lc4710mx8da08vpmir1hfphg"))))
+    (build-system gnu-build-system)
+    (home-page "http://sg.danny.cz/sg/sdparm.html";)
+    (synopsis "Access to SCSI device parameters")
+    (description "Sdparm reads and modifies SCSI device parameters.
+These devices can be SCSI disks, in which case @command{sdparm}'s role is
+similar to its namesake: the Linux @command{hdparm} utility originally
+designed for ATA disks.  However, @command{sdparm} can be used to access
+parameters on any device that uses a SCSI command set.  Such devices
+include CD/DVD drives (irrespective of transport), SCSI and ATAPI tape
+drives, and SCSI enclosures.  A small set of commands associated with
+starting and stopping the media, loading and unloading removable media
+and some other housekeeping functions can also be sent with this utility.")
+    (license bsd-3)))
-- 
2.7.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]