[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#31999] [PATCH 6/7] gnu: Add libblockdev.
From: |
Pierre Neidhardt |
Subject: |
[bug#31999] [PATCH 6/7] gnu: Add libblockdev. |
Date: |
Thu, 28 Jun 2018 23:35:26 +0200 |
* gnu/package/disk.scm (libblockdev): New variable.
---
gnu/packages/disk.scm | 59 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 58 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index bb1faae8a..2a458eafb 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -65,7 +65,8 @@
#:use-module (gnu packages autotools)
#:use-module (gnu packages web)
#:use-module (gnu packages documentation)
- #:use-module (gnu packages bash))
+ #:use-module (gnu packages bash)
+ #:use-module (gnu packages c))
(define-public parted
(package
@@ -679,3 +680,59 @@ removal, rebuild and display of properties for
ATARAID/DDF1 metadata.
@command{dmraid} uses @file{libdevmapper} and the device-mapper kernel runtime
to create devices with respective mappings for the ATARAID sets discovered.")
(license license:gpl2+)))
+
+(define-public libblockdev
+ (package
+ (name "libblockdev")
+ (version "2.17")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rhinstaller/libblockdev")
+ (commit (string-append version "-1"))))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32
+ "14f52cj2qcnm8i2zb57qfpdk3kij2gb3xgqkbvidmf6sjicq84z2"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("python" ,python)
+ ("gobject-introspection" ,gobject-introspection)
+ ("automake" ,automake)
+ ("autocont" ,autoconf)
+ ("libtool" ,libtool)
+ ("glib" ,glib)
+ ("util-linux" ,util-linux)
+ ("nss" ,nss)
+ ("cryptsetup" ,cryptsetup)
+ ("eudev" ,eudev)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("btrfs-progs" ,btrfs-progs)
+ ("dosfstools" ,dosfstools)
+ ("dmraid" ,dmraid)
+ ("libbytesize" ,libbytesize)
+ ("lvm2" ,lvm2)
+ ("mdadm" ,mdadm)
+ ("ndctl" ,ndctl)
+ ("mdadm" ,mdadm)
+ ("parted" ,parted)
+ ("volume-key" ,volume-key)
+ ;; ("xfsprogs" ,xfsprogs) ; TODO: Package?
+ ("kmod" ,kmod)
+ ))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'autogen
+ (lambda _
+ (invoke "sh" "autogen.sh"))))))
+ (home-page "https://github.com/rhinstaller/libblockdev")
+ (synopsis "A library for manipulating block devices")
+ (description
+ "libblockdev is a C library supporting GObject introspection for
+manipulation of block devices. It has a plugin-based architecture where each
+technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate
+plugin, possibly with multiple implementations (e.g. using LVM CLI or the new
+LVM DBus API).")
+ (license license:lgpl2.1+)))
--
2.17.1