2017-01-04 09:42:38 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2020-01-20 01:23:59 +00:00
|
|
|
|
;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-11-04 22:35:05 +00:00
|
|
|
|
;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
|
2018-06-27 10:09:36 +00:00
|
|
|
|
;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
|
2018-11-11 23:29:48 +00:00
|
|
|
|
;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
|
2020-05-08 15:19:55 +00:00
|
|
|
|
;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
|
2020-05-10 21:19:52 +00:00
|
|
|
|
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
|
2017-01-04 09:42:38 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages file-systems)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2017-11-04 22:35:05 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2018-11-11 23:29:48 +00:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2017-01-04 09:42:38 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2019-12-19 09:47:49 +00:00
|
|
|
|
#:use-module (guix build-system linux-module)
|
2019-12-31 00:22:22 +00:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
#:use-module (guix utils)
|
2017-01-04 09:42:38 +00:00
|
|
|
|
#:use-module (gnu packages)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
#:use-module (gnu packages acl)
|
2017-11-04 22:35:05 +00:00
|
|
|
|
#:use-module (gnu packages attr)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2020-01-20 01:23:59 +00:00
|
|
|
|
#:use-module (gnu packages crypto)
|
2018-01-16 16:34:22 +00:00
|
|
|
|
#:use-module (gnu packages curl)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
#:use-module (gnu packages datastructures)
|
2017-01-04 09:42:38 +00:00
|
|
|
|
#:use-module (gnu packages documentation)
|
|
|
|
|
#:use-module (gnu packages docbook)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
#:use-module (gnu packages flex)
|
2018-01-16 16:34:22 +00:00
|
|
|
|
#:use-module (gnu packages glib)
|
2020-05-10 21:19:52 +00:00
|
|
|
|
#:use-module (gnu packages gnupg)
|
2019-12-19 09:47:49 +00:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2017-01-04 09:42:38 +00:00
|
|
|
|
#:use-module (gnu packages linux)
|
2019-12-19 09:47:49 +00:00
|
|
|
|
#:use-module (gnu packages nfs)
|
2019-11-28 08:06:29 +00:00
|
|
|
|
#:use-module (gnu packages onc-rpc)
|
2020-05-07 15:01:37 +00:00
|
|
|
|
#:use-module (gnu packages photo)
|
2017-01-04 09:42:38 +00:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
|
|
|
|
#:use-module (gnu packages readline)
|
gnu: Move sqlite to separate module.
* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5,
sqlite-with-column-metadata): Move variables from here...
* gnu/packages/sqlite.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/apl.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/code.scm,
gnu/packages/crypto.scm,
gnu/packages/databases.scm,
gnu/packages/dc.scm,
gnu/packages/disk.scm,
gnu/packages/ebook.scm,
gnu/packages/education.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/file-systems.scm,
gnu/packages/freedesktop.scm,
gnu/packages/ftp.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gnome.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/gps.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/kodi.scm,
gnu/packages/lisp.scm,
gnu/packages/mail.scm,
gnu/packages/messaging.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nfs.scm,
gnu/packages/ocaml.scm,
gnu/packages/package-management.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/php.scm,
gnu/packages/python.scm,
gnu/packages/qt.scm,
gnu/packages/ruby.scm,
gnu/packages/scheme.scm,
gnu/packages/sync.scm,
gnu/packages/syndication.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/web-browsers.scm,
gnu/packages/webkit.scm: Adjust module references.
2019-01-15 20:47:05 +00:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
2017-01-04 09:42:38 +00:00
|
|
|
|
#:use-module (gnu packages tls)
|
2020-01-20 01:23:59 +00:00
|
|
|
|
#:use-module (gnu packages valgrind)
|
2017-01-04 09:42:38 +00:00
|
|
|
|
#:use-module (gnu packages xml))
|
|
|
|
|
|
2020-05-10 21:19:52 +00:00
|
|
|
|
(define-public fsarchiver
|
|
|
|
|
(package
|
|
|
|
|
(name "fsarchiver")
|
|
|
|
|
(version "0.8.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
|
|
|
|
(url "https://github.com/fdupoux/fsarchiver.git")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1rvwq5v3rl14bqxjm1ibfapyicf0sa44nw7451v10kx39lp56ylp"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("bzip2" ,bzip2)
|
|
|
|
|
("e2fsprogs" ,e2fsprogs)
|
|
|
|
|
("libgcrypt" ,libgcrypt)
|
|
|
|
|
("lz4" ,lz4)
|
|
|
|
|
("lzo" ,lzo)
|
|
|
|
|
("util-linux" ,util-linux "lib")
|
|
|
|
|
("xz" ,xz)
|
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("zstd:lib" ,zstd "lib")))
|
2020-05-10 22:41:34 +00:00
|
|
|
|
(synopsis "File system back-up, deployment, and migration tool")
|
|
|
|
|
(description
|
|
|
|
|
"FSArchiver saves the contents of a file system to a compressed archive
|
|
|
|
|
file, and restores it to a different file system and/or partition. This
|
|
|
|
|
partition can be of a different size than the original and FSArchiver will
|
|
|
|
|
create a new file system if none exists.
|
|
|
|
|
|
|
|
|
|
All standard file attributes supported by the kernel are preserved, including
|
|
|
|
|
file permissions, timestamps, symbolic and hard links, and extended attributes.
|
|
|
|
|
|
|
|
|
|
Each file in the archive is protected by a checksum. If part of the archive
|
|
|
|
|
is corrupted you'll lose the affected file(s) but not the whole back-up.")
|
2020-05-10 21:19:52 +00:00
|
|
|
|
(home-page "http://www.fsarchiver.org/")
|
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
2020-05-07 15:01:37 +00:00
|
|
|
|
(define-public gphotofs
|
|
|
|
|
(package
|
|
|
|
|
(name "gphotofs")
|
|
|
|
|
(version "0.5.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "mirror://sourceforge/gphoto/gphotofs/" version
|
|
|
|
|
"/gphotofs-0.5.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04slwhr6ap9xcc27wphk22ad8yn79ngyy5z10lxams3k5liahvc2"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("fuse" ,fuse)
|
|
|
|
|
("glib" ,glib)
|
|
|
|
|
("libgphoto2" ,libgphoto2)))
|
|
|
|
|
(synopsis "Virtual filesystem for libgphoto2 using FUSE")
|
|
|
|
|
(description "GPhotoFS is a FUSE filesystem module to mount your camera as
|
|
|
|
|
a filesystem on Linux. This allow using your camera with any tool able to read
|
|
|
|
|
from a mounted filesystem.")
|
|
|
|
|
(home-page "http://www.gphoto.org/proj/gphotofs/")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2020-01-20 01:23:59 +00:00
|
|
|
|
(define-public bcachefs-tools
|
|
|
|
|
(let ((commit "ab2f1ec24f5307b0cf1e3c4ad19bf350d9f54d9f")
|
|
|
|
|
(revision "0"))
|
|
|
|
|
(package
|
|
|
|
|
(name "bcachefs-tools")
|
|
|
|
|
(version (git-version "0.1" revision commit))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://evilpiepirate.org/git/bcachefs-tools.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "10pafvaxg1lvwnqjv3a4rsi96bghbpcsgh3vhqilndi334k3b0hd"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags
|
|
|
|
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
|
|
|
|
"INITRAMFS_DIR=$(PREFIX)/share/initramfs-tools"
|
|
|
|
|
"CC=gcc"
|
|
|
|
|
"PYTEST=pytest")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)) ; no configure script
|
|
|
|
|
#:tests? #f)) ; XXX 6 valgrind tests fail
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
|
|
|
|
|
;; For tests.
|
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("valgrind" ,valgrind)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("keyutils" ,keyutils)
|
|
|
|
|
("libaio" ,libaio)
|
|
|
|
|
("libscrypt" ,libscrypt)
|
|
|
|
|
("libsodium" ,libsodium)
|
|
|
|
|
("liburcu" ,liburcu)
|
2020-02-03 14:45:44 +00:00
|
|
|
|
("util-linux" ,util-linux "lib") ; lib{blkid,uuid}
|
2020-01-20 01:23:59 +00:00
|
|
|
|
("lz4" ,lz4)
|
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("zstd:lib" ,zstd "lib")))
|
|
|
|
|
(home-page "https://bcachefs.org/")
|
|
|
|
|
(synopsis "Tools to create and manage bcachefs file systems")
|
|
|
|
|
(description
|
2020-01-30 23:24:00 +00:00
|
|
|
|
"The bcachefs-tools are command-line utilities for creating, checking,
|
2020-01-20 01:23:59 +00:00
|
|
|
|
and otherwise managing bcachefs file systems.
|
|
|
|
|
|
|
|
|
|
Bcachefs is a @acronym{CoW, copy-on-write} file system supporting native
|
|
|
|
|
encryption, compression, snapshots, and (meta)data checksums. It can use
|
|
|
|
|
multiple block devices for replication and/or performance, similar to RAID.
|
|
|
|
|
|
|
|
|
|
In addition, bcachefs provides all the functionality of bcache, a block-layer
|
|
|
|
|
caching system, and lets you assign different roles to each device based on its
|
|
|
|
|
performance and other characteristics.")
|
|
|
|
|
(license license:gpl2+))))
|
|
|
|
|
|
2017-01-04 09:42:38 +00:00
|
|
|
|
(define-public httpfs2
|
|
|
|
|
(package
|
|
|
|
|
(name "httpfs2")
|
|
|
|
|
(version "0.1.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2019-12-13 22:32:29 +00:00
|
|
|
|
(uri (string-append "mirror://sourceforge/httpfs/httpfs2/"
|
|
|
|
|
"httpfs2-" version ".tar.gz"))
|
2017-01-04 09:42:38 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1h8ggvhw30n2r6w11n1s458ypggdqx6ldwd61ma4yd7binrlpjq1"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("asciidoc" ,asciidoc)
|
|
|
|
|
("docbook-xml" ,docbook-xml)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("libxslt" ,libxslt)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("fuse" ,fuse)
|
|
|
|
|
("gnutls" ,gnutls)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(replace 'install
|
|
|
|
|
;; There's no ‘install’ target. Install all variants manually.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(man1 (string-append out "/share/man/man1")))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(mkdir-p man1)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (variant)
|
|
|
|
|
(let ((man1-page (string-append variant ".1")))
|
|
|
|
|
(install-file variant bin)
|
|
|
|
|
(install-file man1-page man1)))
|
|
|
|
|
(list "httpfs2"
|
|
|
|
|
"httpfs2-mt"
|
|
|
|
|
"httpfs2-ssl"
|
|
|
|
|
"httpfs2-ssl-mt")))
|
|
|
|
|
#t)))
|
|
|
|
|
#:make-flags (list "CC=gcc")
|
|
|
|
|
#:parallel-build? #f ; can result in missing man pages
|
|
|
|
|
#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "https://sourceforge.net/projects/httpfs/")
|
|
|
|
|
(synopsis "Mount remote files over HTTP")
|
|
|
|
|
(description "httpfs2 is a @code{fuse} file system for mounting any
|
|
|
|
|
@dfn{HyperText} (HTTP or HTTPS) URL. It uses HTTP/1.1 byte ranges to request
|
|
|
|
|
arbitrary bytes from the web server, without needing to download the entire
|
|
|
|
|
file. This is particularly useful with large archives such as ZIP files and
|
|
|
|
|
ISO images when you only need to inspect their contents or extract specific
|
|
|
|
|
files. Since the HTTP protocol itself has no notion of directories, only a
|
|
|
|
|
single file can be mounted.")
|
|
|
|
|
(license license:gpl2+)))
|
2017-11-04 22:35:05 +00:00
|
|
|
|
|
2019-12-12 01:19:20 +00:00
|
|
|
|
(define-public jfsutils
|
|
|
|
|
(package
|
|
|
|
|
(name "jfsutils")
|
|
|
|
|
(version "1.1.15")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://jfs.sourceforge.net/project/pub/jfsutils-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0kbsy2sk1jv4m82rxyl25gwrlkzvl3hzdga9gshkxkhm83v1aji4"))
|
|
|
|
|
(patches (search-patches "jfsutils-add-sysmacros.patch"
|
|
|
|
|
"jfsutils-include-systypes.patch"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
gnu: util-linux: Move libraries to separate output.
Fixes <https://bugs.gnu.org/37732>.
Reported by Diego Nicola Barbato <dnbarbato@posteo.de>.
* gnu/packages/linux.scm (util-linux)[outputs]: Add "lib".
[arguments]: Update #:configure-flags and the "move-static-libraries" phase
accordingly. Add phases "patch-build-scripts" and "adjust-pkg-config-files".
(e2fsprogs, psm, mtd-utils, f2fs-tools, f2fs-tools-1.7, eudev,
xfsprogs)[inputs]: Change to the "lib" output of UTIL-LINUX.
(btrfs-progs)[inputs]: Remove duplicate UTIL-LINUX inputs and change to use
the "lib" output.
* gnu/packages/admin.scm (pam-mount)[inputs]: Add UTIL-LINUX:LIB.
(testdisk)[inputs]: Change to the "lib" output of UTIL-LINUX.
* gnu/packages/android.scm (abootimg)[inputs]: Likewise.
* gnu/packages/audio.scm (jack-1)[propagated-inputs]: Likewise.
* gnu/packages/bootloaders.scm (syslinux, vboot-utils)[inputs]: Likewise.
* gnu/packages/chez.scm (chez-scheme)[inputs]: Likewise.
* gnu/packages/cryptsetup.scm (cryptsetup, cryptsetup-static)[inputs]: Likewise.
* gnu/packages/databases.scm (postgresql, 4store)[inputs]: Likewise.
* gnu/packages/disk.scm (ndctl, gptfdisk, fdisk, gparted, rmlint,
volume-key)[inputs]: Likewise.
(parted)[inputs]: Likewise.
[native-inputs]: Add UTIL-LINUX.
* gnu/packages/efi.scm (sbsigntools)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/engineering.scm (lib3mf)[inputs]: Change to the "lib" output of
UTIL-LINUX.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/file-systems.scm (glusterfs, jfsutils, zfs)[inputs]: Likewise.
* gnu/packages/firmware.scm (ovmf)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontconfig)[propagated-inputs]: Likewise.
* gnu/packages/freedesktop.scm (localed)[inputs]: Likewise.
* gnu/packages/glib.scm (glib, appstream-glib)[propagated-inputs]: Likewise.
* gnu/packages/gnome.scm (tracker, gnome-terminal)[inputs]: Likewise.
* gnu/packages/jupyter.scm (xeus)[inputs]: Likewise.
* gnu/packages/kde.scm (kpmcore)[inputs]: Likewise.
* gnu/packages/kodi.scm (crossguid)[inputs]: Likewise.
* gnu/packages/lighting.scm (ola)[inputs]: Likewise.
* gnu/packages/music.scm (libgig)[inputs]: Likewise.
* gnu/packages/nfs.scm (nfs-utils)[inputs]: Likewise.
* gnu/packages/opencog.scm (opencog)[inputs]: Likewise.
* gnu/packages/package-management.scm (msitools)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/password-utils.scm (pwsafe)[inputs]: Likewise.
* gnu/packages/telephony.scm (pjproject)[propagated-inputs]: Likewise.
* gnu/packages/rdf.scm (rasqal)[inputs]: Likewise.
* gnu/packages/search.scm (xapian)[inputs]: Likewise.
* gnu/packages/sssd.scm (sssd)[native-inputs]: Likewise.
* gnu/packages/storage.scm (ceph)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/task-management.scm (taskwarrior)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/virtualization.scm (libvirt, xen)[inputs]: Likewise.
* gnu/packages/xorg.scm (libsm)[inputs]: Likewise.
2020-01-14 23:24:28 +00:00
|
|
|
|
`(("util-linux" ,util-linux "lib")))
|
2019-12-12 01:19:20 +00:00
|
|
|
|
(home-page "http://jfs.sourceforge.net/home.html")
|
|
|
|
|
(synopsis "Utilities for managing JFS file systems")
|
|
|
|
|
(description
|
|
|
|
|
"The JFSutils are a collection of utilities for managing the @acronym{JFS,
|
|
|
|
|
Journaled File System}, a 64-bit journaling file system created by IBM and later
|
|
|
|
|
ported to the kernel Linux. The following commands are available:
|
|
|
|
|
@enumerate
|
|
|
|
|
@item @command{fsck.jfs}: check and repair a JFS file system or replay its
|
|
|
|
|
transaction log.
|
|
|
|
|
@item @command{logdump}: dump the JFS journal log.
|
|
|
|
|
@item @command{logredo}: replay the JFS journal log.
|
|
|
|
|
@item @command{mkfs.jfs}: create a new JFS file system.
|
|
|
|
|
@item @command{xchklog}: save a JFS fsck log to a file.
|
|
|
|
|
@item @command{xchkdmp}: dump the contents of such a log file.
|
|
|
|
|
@item @command{xpeek}: a JFS file system editor with a shell-like interface.
|
|
|
|
|
@end enumerate\n")
|
|
|
|
|
(license license:gpl3+))) ; no explicit version given
|
|
|
|
|
|
2019-12-31 00:18:22 +00:00
|
|
|
|
(define-public jfsutils/static
|
|
|
|
|
(static-package
|
|
|
|
|
(package
|
|
|
|
|
(inherit jfsutils)
|
|
|
|
|
(name "jfsutils-static")
|
|
|
|
|
(inputs
|
|
|
|
|
`(("util-linux:static" ,util-linux "static")
|
|
|
|
|
,@(package-inputs jfsutils))))))
|
|
|
|
|
|
2019-12-31 00:22:22 +00:00
|
|
|
|
(define-public jfs_fsck/static
|
|
|
|
|
(package
|
|
|
|
|
(name "jfs_fsck-static")
|
|
|
|
|
(version (package-version jfsutils))
|
|
|
|
|
(source #f)
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
|
(ice-9 ftw)
|
|
|
|
|
(srfi srfi-26))
|
|
|
|
|
(let* ((jfsutils (assoc-ref %build-inputs "jfsutils"))
|
|
|
|
|
(fsck "jfs_fsck")
|
|
|
|
|
(out (assoc-ref %outputs "out"))
|
|
|
|
|
(sbin (string-append out "/sbin")))
|
|
|
|
|
(mkdir-p sbin)
|
|
|
|
|
(with-directory-excursion sbin
|
|
|
|
|
(install-file (string-append jfsutils "/sbin/" fsck)
|
|
|
|
|
".")
|
|
|
|
|
(remove-store-references fsck)
|
|
|
|
|
(chmod fsck #o555))
|
|
|
|
|
#t))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("jfsutils" ,jfsutils/static)))
|
|
|
|
|
(home-page (package-home-page jfsutils))
|
|
|
|
|
(synopsis "Statically-linked jfs_fsck command from jfsutils")
|
|
|
|
|
(description "This package provides statically-linked jfs_fsck command taken
|
|
|
|
|
from the jfsutils package. It is meant to be used in initrds.")
|
|
|
|
|
(license (package-license jfsutils))))
|
|
|
|
|
|
2017-11-04 22:35:05 +00:00
|
|
|
|
(define-public disorderfs
|
|
|
|
|
(package
|
|
|
|
|
(name "disorderfs")
|
2020-04-17 02:34:59 +00:00
|
|
|
|
(version "0.5.9")
|
2017-11-04 22:35:05 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2018-05-29 17:06:22 +00:00
|
|
|
|
(url "https://salsa.debian.org/reproducible-builds/disorderfs.git")
|
|
|
|
|
(commit version)))
|
2018-03-04 10:32:39 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
2017-11-04 22:35:05 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-04-17 02:34:59 +00:00
|
|
|
|
"0irgr9hkm9icx1s44m9382484yx8hddzjxbsz621ip9c946pif0g"))))
|
2017-11-04 22:35:05 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("fuse" ,fuse)
|
|
|
|
|
("attr" ,attr)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
2018-10-30 20:49:28 +00:00
|
|
|
|
(delete 'configure)) ; no configure script
|
2017-11-04 22:35:05 +00:00
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list (string-append "PREFIX=" out)))
|
|
|
|
|
#:test-target "test"
|
|
|
|
|
;; FIXME: Tests require 'run-parts' which is not in Guix yet.
|
|
|
|
|
#:tests? #f))
|
2020-02-06 02:29:37 +00:00
|
|
|
|
(home-page "https://salsa.debian.org/reproducible-builds/disorderfs")
|
2018-01-19 15:25:13 +00:00
|
|
|
|
(synopsis "FUSE file system that introduces non-determinism")
|
2017-11-04 22:35:05 +00:00
|
|
|
|
(description
|
2018-01-19 15:25:13 +00:00
|
|
|
|
"An overlay FUSE file system that introduces non-determinism
|
|
|
|
|
into file system metadata. For example, it can randomize the order
|
2017-11-04 22:35:05 +00:00
|
|
|
|
in which directory entries are read. This is useful for detecting
|
|
|
|
|
non-determinism in the build process.")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2017-11-07 07:03:36 +00:00
|
|
|
|
(define-public glusterfs
|
|
|
|
|
(package
|
|
|
|
|
(name "glusterfs")
|
2019-11-28 08:06:29 +00:00
|
|
|
|
(version "7.0")
|
2017-11-07 07:03:36 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.gluster.org/pub/gluster/glusterfs/"
|
2019-11-28 08:06:29 +00:00
|
|
|
|
(version-major version) "/"
|
|
|
|
|
(version-major+minor version) "/"
|
|
|
|
|
"glusterfs-" version ".tar.gz"))
|
2017-11-07 07:03:36 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-11-28 08:06:29 +00:00
|
|
|
|
"0yzhx710ypj0j3m5dcgmmgvkp7p0rmmp2p7ld0axrm4vpwc2b1wa"))))
|
2017-11-07 07:03:36 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
2019-11-28 08:06:29 +00:00
|
|
|
|
(let ((out (assoc-ref %outputs "out"))
|
|
|
|
|
(p2 (assoc-ref %build-inputs "python-2")))
|
|
|
|
|
(list (string-append "PYTHON=" p2 "/bin/python")
|
|
|
|
|
(string-append "--with-initdir=" out "/etc/init.d")
|
|
|
|
|
(string-append "--with-mountutildir=" out "/sbin")
|
|
|
|
|
"--enable-cmocka" ; unit tests
|
|
|
|
|
;; "--enable-debug" ; debug build options
|
|
|
|
|
;; "--enable-asan" ; Address Sanitizer
|
|
|
|
|
;; "--enable-tsan" ; ThreadSanitizer
|
|
|
|
|
))
|
2017-11-07 07:03:36 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2019-11-28 08:06:29 +00:00
|
|
|
|
(add-before 'configure 'autogen
|
|
|
|
|
(lambda _ (invoke "./autogen.sh"))))))
|
2017-11-07 07:03:36 +00:00
|
|
|
|
(native-inputs
|
2019-11-28 08:06:29 +00:00
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("libtirpc", libtirpc)
|
|
|
|
|
("rpcsvc-proto", rpcsvc-proto)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
("python-2" ,python-2) ; must be version 2
|
|
|
|
|
("flex" ,flex)
|
|
|
|
|
("bison" ,bison)
|
2019-11-28 08:06:29 +00:00
|
|
|
|
("libtool" ,libtool)
|
|
|
|
|
("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("cmocka" ,cmocka)))
|
2017-11-07 07:03:36 +00:00
|
|
|
|
(inputs
|
|
|
|
|
`(("acl" ,acl)
|
2019-11-28 08:06:29 +00:00
|
|
|
|
("fuse", fuse)
|
2017-11-07 07:03:36 +00:00
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("liburcu" ,liburcu)
|
gnu: util-linux: Move libraries to separate output.
Fixes <https://bugs.gnu.org/37732>.
Reported by Diego Nicola Barbato <dnbarbato@posteo.de>.
* gnu/packages/linux.scm (util-linux)[outputs]: Add "lib".
[arguments]: Update #:configure-flags and the "move-static-libraries" phase
accordingly. Add phases "patch-build-scripts" and "adjust-pkg-config-files".
(e2fsprogs, psm, mtd-utils, f2fs-tools, f2fs-tools-1.7, eudev,
xfsprogs)[inputs]: Change to the "lib" output of UTIL-LINUX.
(btrfs-progs)[inputs]: Remove duplicate UTIL-LINUX inputs and change to use
the "lib" output.
* gnu/packages/admin.scm (pam-mount)[inputs]: Add UTIL-LINUX:LIB.
(testdisk)[inputs]: Change to the "lib" output of UTIL-LINUX.
* gnu/packages/android.scm (abootimg)[inputs]: Likewise.
* gnu/packages/audio.scm (jack-1)[propagated-inputs]: Likewise.
* gnu/packages/bootloaders.scm (syslinux, vboot-utils)[inputs]: Likewise.
* gnu/packages/chez.scm (chez-scheme)[inputs]: Likewise.
* gnu/packages/cryptsetup.scm (cryptsetup, cryptsetup-static)[inputs]: Likewise.
* gnu/packages/databases.scm (postgresql, 4store)[inputs]: Likewise.
* gnu/packages/disk.scm (ndctl, gptfdisk, fdisk, gparted, rmlint,
volume-key)[inputs]: Likewise.
(parted)[inputs]: Likewise.
[native-inputs]: Add UTIL-LINUX.
* gnu/packages/efi.scm (sbsigntools)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/engineering.scm (lib3mf)[inputs]: Change to the "lib" output of
UTIL-LINUX.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/file-systems.scm (glusterfs, jfsutils, zfs)[inputs]: Likewise.
* gnu/packages/firmware.scm (ovmf)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontconfig)[propagated-inputs]: Likewise.
* gnu/packages/freedesktop.scm (localed)[inputs]: Likewise.
* gnu/packages/glib.scm (glib, appstream-glib)[propagated-inputs]: Likewise.
* gnu/packages/gnome.scm (tracker, gnome-terminal)[inputs]: Likewise.
* gnu/packages/jupyter.scm (xeus)[inputs]: Likewise.
* gnu/packages/kde.scm (kpmcore)[inputs]: Likewise.
* gnu/packages/kodi.scm (crossguid)[inputs]: Likewise.
* gnu/packages/lighting.scm (ola)[inputs]: Likewise.
* gnu/packages/music.scm (libgig)[inputs]: Likewise.
* gnu/packages/nfs.scm (nfs-utils)[inputs]: Likewise.
* gnu/packages/opencog.scm (opencog)[inputs]: Likewise.
* gnu/packages/package-management.scm (msitools)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/password-utils.scm (pwsafe)[inputs]: Likewise.
* gnu/packages/telephony.scm (pjproject)[propagated-inputs]: Likewise.
* gnu/packages/rdf.scm (rasqal)[inputs]: Likewise.
* gnu/packages/search.scm (xapian)[inputs]: Likewise.
* gnu/packages/sssd.scm (sssd)[native-inputs]: Likewise.
* gnu/packages/storage.scm (ceph)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/task-management.scm (taskwarrior)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/virtualization.scm (libvirt, xen)[inputs]: Likewise.
* gnu/packages/xorg.scm (libsm)[inputs]: Likewise.
2020-01-14 23:24:28 +00:00
|
|
|
|
("libuuid" ,util-linux "lib")
|
2017-11-07 07:03:36 +00:00
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("readline" ,readline)
|
2019-11-28 08:06:29 +00:00
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("libaio", libaio)
|
|
|
|
|
("rdma-core", rdma-core)))
|
2017-11-07 07:03:36 +00:00
|
|
|
|
(home-page "https://www.gluster.org")
|
|
|
|
|
(synopsis "Distributed file system")
|
2018-01-19 15:25:13 +00:00
|
|
|
|
(description "GlusterFS is a distributed scalable network file system
|
2017-11-07 07:03:36 +00:00
|
|
|
|
suitable for data-intensive tasks such as cloud storage and media streaming.
|
|
|
|
|
It allows rapid provisioning of additional storage based on your storage
|
|
|
|
|
consumption needs. It incorporates automatic failover as a primary feature.
|
|
|
|
|
All of this is accomplished without a centralized metadata server.")
|
|
|
|
|
;; The user may choose either LGPLv3+ or GPLv2 only.
|
|
|
|
|
(license (list license:lgpl3+ license:gpl2+))))
|
2018-01-16 16:34:22 +00:00
|
|
|
|
|
|
|
|
|
(define-public curlftpfs
|
|
|
|
|
(package
|
|
|
|
|
(name "curlftpfs")
|
|
|
|
|
(version "0.9.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/curlftpfs/curlftpfs/" version
|
|
|
|
|
"/curlftpfs-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0n397hmv21jsr1j7zx3m21i7ryscdhkdsyqpvvns12q7qwwlgd2f"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-test
|
|
|
|
|
(lambda _
|
|
|
|
|
;; One of the 512-Byte block counts is definitely wrong.
|
|
|
|
|
;; See <https://sourceforge.net/p/curlftpfs/bugs/73/>.
|
|
|
|
|
(substitute* "tests/ftpfs-ls_unittest.c"
|
|
|
|
|
(("4426192") "12814800"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("curl" ,curl)
|
|
|
|
|
("glib" ,glib)
|
2018-03-16 15:50:14 +00:00
|
|
|
|
("fuse" ,fuse)))
|
2018-01-16 16:34:22 +00:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(home-page "http://curlftpfs.sourceforge.net/")
|
|
|
|
|
(synopsis "Mount remote file systems over FTP")
|
|
|
|
|
(description
|
|
|
|
|
"This is a file system client based on the FTP File Transfer Protocol.")
|
|
|
|
|
(license license:gpl2+)))
|
2018-11-11 23:29:48 +00:00
|
|
|
|
|
2018-12-06 06:23:22 +00:00
|
|
|
|
(define-public libnfs
|
|
|
|
|
(package
|
|
|
|
|
(name "libnfs")
|
|
|
|
|
(version "3.0.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/sahlberg/libnfs.git")
|
|
|
|
|
(commit (string-append "libnfs-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"115p55y2cbs92z5lmcnjx1v29lwinpgq4sha9v1kq1vd8674h404"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "https://github.com/sahlberg/libnfs")
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("libtool" ,libtool)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(synopsis "Client library for accessing NFS shares")
|
|
|
|
|
(description "LIBNFS is a client library for accessing NFS shares over a
|
|
|
|
|
network. LIBNFS offers three different APIs, for different use :
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item RAW, a fully asynchronous low level RPC library for NFS protocols. This
|
|
|
|
|
API provides very flexible and precise control of the RPC issued.
|
|
|
|
|
@item NFS ASYNC, a fully asynchronous library for high level vfs functions
|
|
|
|
|
@item NFS SYNC, a synchronous library for high level vfs functions.
|
|
|
|
|
@end enumerate\n")
|
|
|
|
|
(license (list license:lgpl2.1+ ; library
|
|
|
|
|
license:gpl3+ ; tests
|
|
|
|
|
license:bsd-3 ; copied nsf4 files
|
|
|
|
|
))))
|
|
|
|
|
|
2018-11-11 23:29:48 +00:00
|
|
|
|
(define-public apfs-fuse
|
|
|
|
|
(let ((commit "c7036a3030d128bcecefc1eabc47c039ccfdcec9")
|
|
|
|
|
(revision "0"))
|
|
|
|
|
(package
|
|
|
|
|
(name "apfs-fuse")
|
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/sgan81/apfs-fuse")
|
|
|
|
|
(recursive? #t) ; for lzfse
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1akd4cx1f9cyq6sfk9ybv4chhjwjlnqi8ic4z5ajnd5x0g76nz3r"))
|
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No test suite
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; No 'install' target in CMakeLists.txt
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(lib (string-append out "/lib"))
|
|
|
|
|
(doc (string-append out "/share/doc/"
|
|
|
|
|
(string-append ,name "-" ,version))))
|
|
|
|
|
(install-file "apfs-dump" bin)
|
|
|
|
|
(install-file "apfs-dump-quick" bin)
|
|
|
|
|
(install-file "apfs-fuse" bin)
|
|
|
|
|
(install-file "libapfs.a" lib)
|
|
|
|
|
#t))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("bzip2" ,bzip2)
|
|
|
|
|
("fuse" ,fuse)
|
|
|
|
|
("zlib" ,zlib)))
|
2019-04-15 20:14:03 +00:00
|
|
|
|
(synopsis "Read-only FUSE driver for the APFS file system")
|
2018-11-11 23:29:48 +00:00
|
|
|
|
(description "APFS-FUSE is a read-only FUSE driver for the @dfn{Apple File
|
|
|
|
|
System} (APFS). It is currently in an experimental state — it may not be able
|
|
|
|
|
to read all files, and it does not support all the compression methods in
|
|
|
|
|
APFS.")
|
|
|
|
|
(home-page "https://github.com/sgan81/apfs-fuse")
|
|
|
|
|
(license license:gpl2+))))
|
2019-12-19 09:47:49 +00:00
|
|
|
|
|
|
|
|
|
(define-public zfs
|
|
|
|
|
(package
|
|
|
|
|
(name "zfs")
|
|
|
|
|
(version "0.8.2")
|
|
|
|
|
(outputs '("out" "module" "src"))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/zfsonlinux/zfs/releases"
|
|
|
|
|
"/download/zfs-" version
|
|
|
|
|
"/zfs-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1f7aig15q3z832pr2n48j3clafic2yk1vvqlh28vpklfghjqwq27"))))
|
|
|
|
|
(build-system linux-module-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; The ZFS kernel module should not be downloaded since the license
|
|
|
|
|
;; terms don't allow for distributing it, only building it locally.
|
|
|
|
|
#:substitutable? #f
|
|
|
|
|
;; Tests cannot run in an unprivileged build environment.
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'configure 'really-configure
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("-/bin/sh") (string-append "-" (which "sh")))
|
|
|
|
|
((" /bin/sh") (string-append " " (which "sh"))))
|
|
|
|
|
(invoke "./configure"
|
|
|
|
|
"--with-config=all"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "--with-dracutdir=" out "/lib/dracut")
|
|
|
|
|
(string-append "--with-udevdir=" out "/lib/udev")
|
|
|
|
|
(string-append "--with-mounthelperdir=" out "/sbin")
|
|
|
|
|
(string-append "--with-linux="
|
|
|
|
|
(assoc-ref inputs "linux-module-builder")
|
|
|
|
|
"/lib/modules/build")))))
|
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(src (assoc-ref outputs "src"))
|
|
|
|
|
(util-linux (assoc-ref inputs "util-linux"))
|
|
|
|
|
(nfs-utils (assoc-ref inputs "nfs-utils")))
|
|
|
|
|
(substitute* "module/zfs/zfs_ctldir.c"
|
|
|
|
|
(("/usr/bin/env\", \"umount")
|
|
|
|
|
(string-append util-linux "/bin/umount\", \"-n"))
|
|
|
|
|
(("/usr/bin/env\", \"mount")
|
|
|
|
|
(string-append util-linux "/bin/mount\", \"-n")))
|
|
|
|
|
(substitute* "lib/libzfs/libzfs_mount.c"
|
|
|
|
|
(("/bin/mount") (string-append util-linux "/bin/mount"))
|
|
|
|
|
(("/bin/umount") (string-append util-linux "/bin/umount")))
|
|
|
|
|
(substitute* "lib/libshare/nfs.c"
|
|
|
|
|
(("/usr/sbin/exportfs")
|
|
|
|
|
(string-append nfs-utils "/sbin/exportfs")))
|
|
|
|
|
(substitute* "config/zfs-build.m4"
|
|
|
|
|
(("\\$sysconfdir/init.d") (string-append out "/etc/init.d")))
|
|
|
|
|
(substitute* '("etc/zfs/Makefile.am"
|
|
|
|
|
"cmd/zed/Makefile.am")
|
|
|
|
|
(("\\$\\(sysconfdir)") (string-append out "/etc")))
|
|
|
|
|
(substitute* "cmd/vdev_id/vdev_id"
|
|
|
|
|
(("PATH=/bin:/sbin:/usr/bin:/usr/sbin")
|
|
|
|
|
(string-append "PATH="
|
|
|
|
|
(dirname (which "chmod")) ":"
|
|
|
|
|
(dirname (which "grep")) ":"
|
|
|
|
|
(dirname (which "sed")) ":"
|
|
|
|
|
(dirname (which "gawk")))))
|
|
|
|
|
(substitute* "contrib/pyzfs/Makefile.in"
|
|
|
|
|
((".*install-lib.*") ""))
|
|
|
|
|
(substitute* '("Makefile.am" "Makefile.in")
|
|
|
|
|
(("\\$\\(prefix)/src") (string-append src "/src"))))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _ (invoke "make")))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs inputs native-inputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(moddir (assoc-ref outputs "module"))
|
|
|
|
|
(kmod (assoc-ref (or native-inputs inputs) "kmod")))
|
|
|
|
|
(invoke "make" "install"
|
|
|
|
|
(string-append "DEFAULT_INITCONF_DIR=" out "/etc/default")
|
|
|
|
|
(string-append "DEPMOD=" kmod "/bin/depmod")
|
|
|
|
|
(string-append "INSTALL_PATH=" out)
|
|
|
|
|
(string-append "INSTALL_MOD_PATH=" moddir)
|
|
|
|
|
"INSTALL_MOD_STRIP=1")
|
|
|
|
|
(install-file "contrib/bash_completion.d/zfs"
|
|
|
|
|
(string-append out "/share/bash-completion/completions"))
|
|
|
|
|
(symlink "../share/pkgconfig/" (string-append out "/lib/pkgconfig"))
|
|
|
|
|
#t))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("attr" ,attr)
|
2020-05-08 15:19:55 +00:00
|
|
|
|
("kmod" ,kmod)
|
2019-12-19 09:47:49 +00:00
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("eudev" ,eudev)
|
|
|
|
|
("libaio" ,libaio)
|
|
|
|
|
("libtirpc" ,libtirpc)
|
|
|
|
|
("nfs-utils" ,nfs-utils)
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("python" ,python)
|
|
|
|
|
("python-cffi" ,python-cffi)
|
gnu: util-linux: Move libraries to separate output.
Fixes <https://bugs.gnu.org/37732>.
Reported by Diego Nicola Barbato <dnbarbato@posteo.de>.
* gnu/packages/linux.scm (util-linux)[outputs]: Add "lib".
[arguments]: Update #:configure-flags and the "move-static-libraries" phase
accordingly. Add phases "patch-build-scripts" and "adjust-pkg-config-files".
(e2fsprogs, psm, mtd-utils, f2fs-tools, f2fs-tools-1.7, eudev,
xfsprogs)[inputs]: Change to the "lib" output of UTIL-LINUX.
(btrfs-progs)[inputs]: Remove duplicate UTIL-LINUX inputs and change to use
the "lib" output.
* gnu/packages/admin.scm (pam-mount)[inputs]: Add UTIL-LINUX:LIB.
(testdisk)[inputs]: Change to the "lib" output of UTIL-LINUX.
* gnu/packages/android.scm (abootimg)[inputs]: Likewise.
* gnu/packages/audio.scm (jack-1)[propagated-inputs]: Likewise.
* gnu/packages/bootloaders.scm (syslinux, vboot-utils)[inputs]: Likewise.
* gnu/packages/chez.scm (chez-scheme)[inputs]: Likewise.
* gnu/packages/cryptsetup.scm (cryptsetup, cryptsetup-static)[inputs]: Likewise.
* gnu/packages/databases.scm (postgresql, 4store)[inputs]: Likewise.
* gnu/packages/disk.scm (ndctl, gptfdisk, fdisk, gparted, rmlint,
volume-key)[inputs]: Likewise.
(parted)[inputs]: Likewise.
[native-inputs]: Add UTIL-LINUX.
* gnu/packages/efi.scm (sbsigntools)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/engineering.scm (lib3mf)[inputs]: Change to the "lib" output of
UTIL-LINUX.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/file-systems.scm (glusterfs, jfsutils, zfs)[inputs]: Likewise.
* gnu/packages/firmware.scm (ovmf)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontconfig)[propagated-inputs]: Likewise.
* gnu/packages/freedesktop.scm (localed)[inputs]: Likewise.
* gnu/packages/glib.scm (glib, appstream-glib)[propagated-inputs]: Likewise.
* gnu/packages/gnome.scm (tracker, gnome-terminal)[inputs]: Likewise.
* gnu/packages/jupyter.scm (xeus)[inputs]: Likewise.
* gnu/packages/kde.scm (kpmcore)[inputs]: Likewise.
* gnu/packages/kodi.scm (crossguid)[inputs]: Likewise.
* gnu/packages/lighting.scm (ola)[inputs]: Likewise.
* gnu/packages/music.scm (libgig)[inputs]: Likewise.
* gnu/packages/nfs.scm (nfs-utils)[inputs]: Likewise.
* gnu/packages/opencog.scm (opencog)[inputs]: Likewise.
* gnu/packages/package-management.scm (msitools)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/password-utils.scm (pwsafe)[inputs]: Likewise.
* gnu/packages/telephony.scm (pjproject)[propagated-inputs]: Likewise.
* gnu/packages/rdf.scm (rasqal)[inputs]: Likewise.
* gnu/packages/search.scm (xapian)[inputs]: Likewise.
* gnu/packages/sssd.scm (sssd)[native-inputs]: Likewise.
* gnu/packages/storage.scm (ceph)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/task-management.scm (taskwarrior)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/virtualization.scm (libvirt, xen)[inputs]: Likewise.
* gnu/packages/xorg.scm (libsm)[inputs]: Likewise.
2020-01-14 23:24:28 +00:00
|
|
|
|
("util-linux" ,util-linux "lib")
|
2019-12-19 09:47:49 +00:00
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(home-page "https://zfsonlinux.org/")
|
|
|
|
|
(synopsis "Native ZFS on Linux")
|
|
|
|
|
(description
|
|
|
|
|
"ZFS on Linux is an advanced file system and volume manager which was
|
|
|
|
|
originally developed for Solaris and is now maintained by the OpenZFS
|
|
|
|
|
community.")
|
|
|
|
|
(license license:cddl1.0)))
|