summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-06-03 22:12:05 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-03 22:43:00 +0200
commitcc4a2aeb984b8cd007c48a2fb140792ce2a70a56 (patch)
tree50dfae2058133794bf3751489b5f38f142a0b770 /gnu
parenta549ab4bcf5756d10981141720aba782dd5827ad (diff)
gnu: Merge Parted, fdisk, and ddrescue in (gnu packages disk).
* gnu/packages/parted.scm: Rename to... * gnu/packages/disk.scm: ... this. New file. Merge with... * gnu/packages/fdisk.scm: ... this; remove file; * gnu/packages/ddrescue.scm: ... and this; remove file. * gnu/system/install.scm, gnu/system/vm.scm: Adjust accordingly. * gnu-system.am (GNU_SYSTEM_MODULES): Remove gnu/packages/{parted,fdisk,ddrescue}.scm and add gnu/packages/disk.scm.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ddrescue.scm47
-rw-r--r--gnu/packages/disk.scm (renamed from gnu/packages/parted.scm)58
-rw-r--r--gnu/packages/fdisk.scm53
-rw-r--r--gnu/system/install.scm3
-rw-r--r--gnu/system/vm.scm2
5 files changed, 57 insertions, 106 deletions
diff --git a/gnu/packages/ddrescue.scm b/gnu/packages/ddrescue.scm
deleted file mode 100644
index dd5bf0e5525..00000000000
--- a/gnu/packages/ddrescue.scm
+++ /dev/null
@@ -1,47 +0,0 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages ddrescue)
20 #:use-module (guix licenses)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module ((gnu packages compression) #:select (lzip)))
25
26(define-public ddrescue
27 (package
28 (name "ddrescue")
29 (version "1.17")
30 (source
31 (origin
32 (method url-fetch)
33 (uri (string-append "mirror://gnu/ddrescue/ddrescue-"
34 version ".tar.lz"))
35 (sha256
36 (base32
37 "0bvmsbzli2j4czwkabzs978n1y6vx31axh02kpgcf7033cc6rydy"))))
38 (build-system gnu-build-system)
39 (home-page "http://www.gnu.org/software/ddrescue/ddrescue.html")
40 (synopsis "Data recovery utility")
41 (native-inputs `(("lzip" ,lzip)))
42 (description
43 "GNU ddrescue is a fully automated data recovery tool. It copies data
44from one file to another, working to rescue data in case of read errors. The
45program also includes a tool for manipulating its log files, which are used
46to recover data more efficiently by only reading the necessary blocks.")
47 (license gpl3+)))
diff --git a/gnu/packages/parted.scm b/gnu/packages/disk.scm
index 5d5d38a5153..a5404b27499 100644
--- a/gnu/packages/parted.scm
+++ b/gnu/packages/disk.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> 2;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
3;;; 3;;;
4;;; This file is part of GNU Guix. 4;;; This file is part of GNU Guix.
5;;; 5;;;
@@ -16,7 +16,7 @@
16;;; You should have received a copy of the GNU General Public License 16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. 17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18 18
19(define-module (gnu packages parted) 19(define-module (gnu packages disk)
20 #:use-module (guix licenses) 20 #:use-module (guix licenses)
21 #:use-module (guix packages) 21 #:use-module (guix packages)
22 #:use-module (guix download) 22 #:use-module (guix download)
@@ -24,7 +24,10 @@
24 #:use-module (gnu packages check) 24 #:use-module (gnu packages check)
25 #:use-module (gnu packages gettext) 25 #:use-module (gnu packages gettext)
26 #:use-module (gnu packages linux) 26 #:use-module (gnu packages linux)
27 #:use-module (gnu packages readline)) 27 #:use-module (gnu packages readline)
28 #:use-module (gnu packages guile)
29 #:use-module ((gnu packages compression)
30 #:select (lzip)))
28 31
29(define-public parted 32(define-public parted
30 (package 33 (package
@@ -67,3 +70,52 @@
67 "GNU Parted is a package for creating and manipulating disk partition 70 "GNU Parted is a package for creating and manipulating disk partition
68tables. It includes a library and command-line utility.") 71tables. It includes a library and command-line utility.")
69 (license gpl3+))) 72 (license gpl3+)))
73
74(define-public fdisk
75 (package
76 (name "fdisk")
77 (version "2.0.0a")
78 (source
79 (origin
80 (method url-fetch)
81 (uri (string-append "mirror://gnu/fdisk/gnufdisk-"
82 version ".tar.gz"))
83 (sha256
84 (base32
85 "04nd7civ561x2lwcmxhsqbprml3178jfc58fy1v7hzqg5k4nbhy3"))))
86 (build-system gnu-build-system)
87 (inputs
88 `(("gettext" ,gnu-gettext)
89 ("guile" ,guile-1.8)
90 ("util-linux" ,util-linux)
91 ("parted" ,parted)))
92 (home-page "https://www.gnu.org/software/fdisk/")
93 (synopsis "Low-level disk partitioning and formatting")
94 (description
95 "GNU fdisk provides a GNU version of the common disk partitioning tool
96fdisk. fdisk is used for the creation and manipulation of disk partition
97tables, and it understands a variety of different formats.")
98 (license gpl3+)))
99
100(define-public ddrescue
101 (package
102 (name "ddrescue")
103 (version "1.17")
104 (source
105 (origin
106 (method url-fetch)
107 (uri (string-append "mirror://gnu/ddrescue/ddrescue-"
108 version ".tar.lz"))
109 (sha256
110 (base32
111 "0bvmsbzli2j4czwkabzs978n1y6vx31axh02kpgcf7033cc6rydy"))))
112 (build-system gnu-build-system)
113 (home-page "http://www.gnu.org/software/ddrescue/ddrescue.html")
114 (synopsis "Data recovery utility")
115 (native-inputs `(("lzip" ,lzip)))
116 (description
117 "GNU ddrescue is a fully automated data recovery tool. It copies data
118from one file to another, working to rescue data in case of read errors. The
119program also includes a tool for manipulating its log files, which are used
120to recover data more efficiently by only reading the necessary blocks.")
121 (license gpl3+)))
diff --git a/gnu/packages/fdisk.scm b/gnu/packages/fdisk.scm
deleted file mode 100644
index 8272c45aabb..00000000000
--- a/gnu/packages/fdisk.scm
+++ /dev/null
@@ -1,53 +0,0 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages fdisk)
20 #:use-module ((guix licenses) #:select (gpl3+))
21 #:use-module (gnu packages gettext)
22 #:use-module (gnu packages guile)
23 #:use-module (gnu packages linux)
24 #:use-module (gnu packages parted)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu))
28
29(define-public fdisk
30 (package
31 (name "fdisk")
32 (version "2.0.0a")
33 (source
34 (origin
35 (method url-fetch)
36 (uri (string-append "mirror://gnu/fdisk/gnufdisk-"
37 version ".tar.gz"))
38 (sha256
39 (base32
40 "04nd7civ561x2lwcmxhsqbprml3178jfc58fy1v7hzqg5k4nbhy3"))))
41 (build-system gnu-build-system)
42 (inputs
43 `(("gettext" ,gnu-gettext)
44 ("guile" ,guile-1.8)
45 ("util-linux" ,util-linux)
46 ("parted" ,parted)))
47 (home-page "https://www.gnu.org/software/fdisk/")
48 (synopsis "Low-level disk partitioning and formatting")
49 (description
50 "GNU fdisk provides a GNU version of the common disk partitioning tool
51fdisk. fdisk is used for the creation and manipulation of disk partition
52tables, and it understands a variety of different formats.")
53 (license gpl3+)))
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 3dbce0e3b8d..a7036c33bbf 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -27,8 +27,7 @@
27 #:use-module (gnu packages admin) 27 #:use-module (gnu packages admin)
28 #:use-module (gnu packages package-management) 28 #:use-module (gnu packages package-management)
29 #:use-module (gnu packages zile) 29 #:use-module (gnu packages zile)
30 #:use-module (gnu packages parted) 30 #:use-module (gnu packages disk)
31 #:use-module (gnu packages fdisk)
32 #:use-module (gnu packages texinfo) 31 #:use-module (gnu packages texinfo)
33 #:export (installation-os)) 32 #:export (installation-os))
34 33
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index c85445cd5f2..99628de709b 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -29,7 +29,7 @@
29 #:use-module (gnu packages bash) 29 #:use-module (gnu packages bash)
30 #:use-module (gnu packages less) 30 #:use-module (gnu packages less)
31 #:use-module (gnu packages qemu) 31 #:use-module (gnu packages qemu)
32 #:use-module (gnu packages parted) 32 #:use-module (gnu packages disk)
33 #:use-module (gnu packages zile) 33 #:use-module (gnu packages zile)
34 #:use-module (gnu packages grub) 34 #:use-module (gnu packages grub)
35 #:use-module (gnu packages linux) 35 #:use-module (gnu packages linux)