Patchwork gnu: Add geteltorito.

login
register
mail settings
Submitter Marius Bakke
Date Nov. 1, 2016, 1:52 p.m.
Message ID <20161101135224.13574-1-mbakke@fastmail.com>
Download mbox | patch
Permalink /patch/17068/
State New
Headers show

Comments

Marius Bakke - Nov. 1, 2016, 1:52 p.m.
* gnu/packages/cdrom.scm (geteltorito): New variable.
---
 gnu/packages/cdrom.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
Ludovic Courtès - Nov. 3, 2016, 2:50 p.m.
Marius Bakke <mbakke@fastmail.com> skribis:

> * gnu/packages/cdrom.scm (geteltorito): New variable.

[...]

> +    (synopsis "Tool to extract the boot image from a CD-ROM")

s/Tool to extract/Extract/

> +    (description
> +     "@command{geteltorito} can extract the initial/default boot
> +image from CDs (and ISOs) that follow the El Torito specification.

*the El Torito specification for bootable CD-ROMs.

> +    (license gpl2)))

Given that no version is explicitly specified, this is ‘gpl2+’.

OK with these changes, thanks!

Ludo’.

Patch

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 39c7b52..5f3ddd8 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -5,6 +5,7 @@ 
 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
+;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -359,3 +360,37 @@  from an audio CD.")
 that grabs tracks off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex
 and/or MPP/MP+ (Musepack) format, and tags them, all in one go.")
     (license gpl2+)))
+
+(define-public geteltorito
+  (package
+    (name "geteltorito")
+    (version "0.6")
+    (home-page
+     "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append home-page name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ; No tests.
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (delete 'build)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref %outputs "out")))
+               (install-file "geteltorito"
+                             (string-append out "/bin"))))))))
+    (inputs `(("perl" ,perl)))
+    (synopsis "Tool to extract the boot image from a CD-ROM")
+    (description
+     "@command{geteltorito} can extract the initial/default boot
+image from CDs (and ISOs) that follow the El Torito specification.
+
+Image data is written to standard output by default and all other
+information is written to standard error.")
+    (license gpl2)))