unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean-Baptiste Note <jean-baptiste.note@m4x.org>
To: 41149@debbugs.gnu.org
Subject: [bug#41149] [PATCH] Add cachefilesd
Date: Sat, 09 May 2020 13:19:04 +0000	[thread overview]
Message-ID: <87eert6ybb.fsf@m4x.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 562 bytes --]


Dear guix maintainers,

Please find attached a patch to add a package for the cachefilesd
daemon, mostly used for read caching of NFS data. I've put in into
linux.scm as it's tightly coupled to the fscache linux module and is
being developed on git.kernel.org.

There's a lint warning for Software Heritage; however i've followed the
convention of using snapshot tarballs from kernel.org (we could also
directly go through git, but this seems less common).

A service will follow as soon as I understand how to correctly write
one.

Kind regards,
Jean-Baptiste

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-cachefilesd.patch --]
[-- Type: text/x-patch, Size: 2455 bytes --]

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(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2d31444ea6..418b868698 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

             reply	other threads:[~2020-05-09 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-09 13:19 Jean-Baptiste Note [this message]
2020-05-10  7:53 ` bug#41149: [PATCH] Add cachefilesd Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eert6ybb.fsf@m4x.org \
    --to=jean-baptiste.note@m4x.org \
    --cc=41149@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).