2017-01-04 04:42:38 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2018-05-29 13:06:22 -04:00
|
|
|
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-11-04 18:35:05 -04:00
|
|
|
|
;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
|
2018-06-27 06:09:36 -04:00
|
|
|
|
;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
|
2018-11-11 18:29:48 -05:00
|
|
|
|
;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
|
2017-01-04 04:42:38 -05: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 18:35:05 -04:00
|
|
|
|
#:use-module (guix git-download)
|
2018-11-11 18:29:48 -05:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2017-01-04 04:42:38 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2017-11-07 02:03:36 -05:00
|
|
|
|
#:use-module (guix utils)
|
2017-01-04 04:42:38 -05:00
|
|
|
|
#:use-module (gnu packages)
|
2017-11-07 02:03:36 -05:00
|
|
|
|
#:use-module (gnu packages acl)
|
2017-11-04 18:35:05 -04:00
|
|
|
|
#:use-module (gnu packages attr)
|
2017-11-07 02:03:36 -05:00
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2018-01-16 11:34:22 -05:00
|
|
|
|
#:use-module (gnu packages curl)
|
2017-11-07 02:03:36 -05:00
|
|
|
|
#:use-module (gnu packages datastructures)
|
2017-01-04 04:42:38 -05:00
|
|
|
|
#:use-module (gnu packages documentation)
|
|
|
|
|
#:use-module (gnu packages docbook)
|
2017-11-07 02:03:36 -05:00
|
|
|
|
#:use-module (gnu packages flex)
|
2018-01-16 11:34:22 -05:00
|
|
|
|
#:use-module (gnu packages glib)
|
2017-01-04 04:42:38 -05:00
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-11-07 02:03:36 -05: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 15:47:05 -05:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
2017-01-04 04:42:38 -05:00
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
|
#:use-module (gnu packages xml))
|
|
|
|
|
|
|
|
|
|
(define-public httpfs2
|
|
|
|
|
(package
|
|
|
|
|
(name "httpfs2")
|
|
|
|
|
(version "0.1.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/httpfs/" name "/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(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 18:35:05 -04:00
|
|
|
|
|
|
|
|
|
(define-public disorderfs
|
|
|
|
|
(package
|
|
|
|
|
(name "disorderfs")
|
2019-02-11 14:46:47 -05:00
|
|
|
|
(version "0.5.6")
|
2017-11-04 18:35:05 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2018-05-29 13:06:22 -04:00
|
|
|
|
(url "https://salsa.debian.org/reproducible-builds/disorderfs.git")
|
|
|
|
|
(commit version)))
|
2018-03-04 05:32:39 -05:00
|
|
|
|
(file-name (git-file-name name version))
|
2017-11-04 18:35:05 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-02-11 14:46:47 -05:00
|
|
|
|
"1zn2ydap8k9fwjl3ivgrg6l32s5p4ik6ca6j1idp7c77znlv6cpp"))))
|
2017-11-04 18:35:05 -04: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 16:49:28 -04:00
|
|
|
|
(delete 'configure)) ; no configure script
|
2017-11-04 18:35:05 -04: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))
|
|
|
|
|
(home-page "https://github.com/ReproducibleBuilds/disorderfs")
|
2018-01-19 10:25:13 -05:00
|
|
|
|
(synopsis "FUSE file system that introduces non-determinism")
|
2017-11-04 18:35:05 -04:00
|
|
|
|
(description
|
2018-01-19 10:25:13 -05:00
|
|
|
|
"An overlay FUSE file system that introduces non-determinism
|
|
|
|
|
into file system metadata. For example, it can randomize the order
|
2017-11-04 18:35:05 -04:00
|
|
|
|
in which directory entries are read. This is useful for detecting
|
|
|
|
|
non-determinism in the build process.")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2017-11-07 02:03:36 -05:00
|
|
|
|
(define-public glusterfs
|
|
|
|
|
(package
|
|
|
|
|
(name "glusterfs")
|
2018-06-27 06:09:36 -04:00
|
|
|
|
(version "3.10.12")
|
2017-11-07 02:03:36 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.gluster.org/pub/gluster/glusterfs/"
|
|
|
|
|
(version-major+minor version) "/" version
|
|
|
|
|
"/glusterfs-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-06-27 06:09:36 -04:00
|
|
|
|
"01ysvamvfv2l5pswa1rygpg8w0954h2wkh1ba97h3nx03m5n0prg"))
|
2017-12-01 10:39:08 -05:00
|
|
|
|
(patches
|
|
|
|
|
(search-patches "glusterfs-use-PATH-instead-of-hardcodes.patch"))))
|
2017-11-07 02:03:36 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list (string-append "--with-initdir=" out "/etc/init.d")
|
|
|
|
|
(string-append "--with-mountutildir=" out "/sbin")))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'replace-config.sub
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; The distributed config.sub is intentionally left empty and
|
|
|
|
|
;; must be replaced.
|
|
|
|
|
(install-file (string-append (assoc-ref inputs "automake")
|
|
|
|
|
"/share/automake-"
|
2018-06-27 06:09:36 -04:00
|
|
|
|
,(version-major+minor (package-version automake)) "/config.sub")
|
2017-11-07 02:03:36 -05:00
|
|
|
|
".")
|
|
|
|
|
#t))
|
|
|
|
|
;; Fix flex error. This has already been fixed with upstream commit
|
2018-06-27 06:09:36 -04:00
|
|
|
|
;; db3fe245a9e8812829eae7d143e49d0bfdfef9a7, but is not available in
|
|
|
|
|
;; current releases.
|
2017-11-07 02:03:36 -05:00
|
|
|
|
(add-before 'configure 'fix-lex
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "libglusterfs/src/Makefile.in"
|
|
|
|
|
(("libglusterfs_la_LIBADD = @LEXLIB@")
|
|
|
|
|
"libglusterfs_la_LIBADD ="))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("cmocka" ,cmocka)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("python-2" ,python-2) ; must be version 2
|
|
|
|
|
("flex" ,flex)
|
|
|
|
|
("bison" ,bison)
|
|
|
|
|
("automake" ,automake)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("acl" ,acl)
|
|
|
|
|
;; GlusterFS fails to build with libressl because HMAC_CTX_new and
|
|
|
|
|
;; HMAC_CTX_free are undefined.
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("liburcu" ,liburcu)
|
|
|
|
|
("libuuid" ,util-linux)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("lvm2" ,lvm2)
|
|
|
|
|
("readline" ,readline)
|
|
|
|
|
("sqlite" ,sqlite) ; for tiering
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(home-page "https://www.gluster.org")
|
|
|
|
|
(synopsis "Distributed file system")
|
2018-01-19 10:25:13 -05:00
|
|
|
|
(description "GlusterFS is a distributed scalable network file system
|
2017-11-07 02:03:36 -05: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 11:34:22 -05: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 11:50:14 -04:00
|
|
|
|
("fuse" ,fuse)))
|
2018-01-16 11:34:22 -05: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 18:29:48 -05:00
|
|
|
|
|
2018-12-06 01:23:22 -05: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 18:29:48 -05: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)
|
|
|
|
|
(install-file "../source/LICENSE" doc)
|
|
|
|
|
#t))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("bzip2" ,bzip2)
|
|
|
|
|
("fuse" ,fuse)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(synopsis "Read-only FUSE driver for the APFS filesystem")
|
|
|
|
|
(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+))))
|