From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: [PATCH] gnu: Add sdparm. Date: Tue, 2 Feb 2016 09:52:27 +0100 Message-ID: References: <1454396674-24793-1-git-send-email-tobias.geerinckx.rice@gmail.com> <1454396674-24793-2-git-send-email-tobias.geerinckx.rice@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQWi0-0002Eh-Ur for guix-devel@gnu.org; Tue, 02 Feb 2016 03:53:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQWhv-00052J-F0 for guix-devel@gnu.org; Tue, 02 Feb 2016 03:53:12 -0500 Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:32778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQWhv-00052E-9Q for guix-devel@gnu.org; Tue, 02 Feb 2016 03:53:07 -0500 Received: by mail-ob0-x234.google.com with SMTP id is5so143391016obc.0 for ; Tue, 02 Feb 2016 00:53:07 -0800 (PST) In-Reply-To: <1454396674-24793-2-git-send-email-tobias.geerinckx.rice@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Ugh, Sorry about the spam. I was having trouble with git send-email + Gmail, and saw a few other replies make it into the archives a few hours ago, while mine didn't^H^H^H^Happeared not to. Apologies, and please disregard the other almost-duplicate thread: I got bored waiting and changed the description slightly. Kind regards, T G-R On 2 February 2016 at 08:04, wrote: > From: Tobias Geerinckx-Rice > > * 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 =C2=A9 2012, 2013 Nikita Karetnikov > ;;; Copyright =C2=A9 2015 Mathieu Lirzin > ;;; Copyright =C2=A9 2015 Mark H Weaver > +;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice > ;;; > ;;; 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 utilitie= s, > 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 "Provide 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 i= s > +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 >