From 82a2807bd06abf88e8d01272e72635df9a077132 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Note <jean-baptiste.note@m4x.org>
Date: Fri, 8 May 2020 20:26:02 +0000
Subject: [PATCH] gnu: Add cachefilesd.
* gnu/packages/linux.scm (cachefilesd): New public variable.
---
gnu/packages/linux.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
@@ -6802,3 +6802,38 @@ utilities. Using @code{kexec}, it is possible to boot directly into a new
kernel from the context of an already-running kernel, bypassing the normal
system boot process.")
(license license:gpl2)))
+
+(define-public cachefilesd
+ (package
+ (name "cachefilesd")
+ (version "0.10.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells"
+ "/cachefilesd.git/snapshot/cachefilesd-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0g40ljjnn3wzh9gp6il21c95f977298qrrkrxfnwfl3k3asfmnbi"))))
+ (build-system gnu-build-system)
+ (outputs '("out"))
+ (arguments
+ `(#:tests? #f ; there are no tests
+ ; we emulate PREFIX with available variables
+ #:make-flags (let ((pfxdir (lambda (var dir)
+ (string-append var "=" %output "/" dir))))
+ (list "CC=gcc"
+ (pfxdir "SBINDIR" "sbin/")
+ (pfxdir "ETCDIR" "etc/")
+ (pfxdir "MANDIR" "share/man/")))
+ #:phases (modify-phases %standard-phases (delete 'configure))))
+ (home-page "https://people.redhat.com/~dhowells/cachefs/")
+ (synopsis "Backend daemon for the linux fscache")
+ (description "cachefilesd is a userspace daemon that implements the only
+cache backend currently available for FS-Cache, the linux caching system for
+network filesystems (such as NFS). It does the real work of caching by using
+files in a directory nominated by the administrator to store the data given to
+it. The contents of the cache, which should be stored locally, are persistent
+over reboots.")
+ (license license:gpl2+)))
--
2.26.2