From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QPv3K7PPTWBHWAAA0tVLHw (envelope-from ) for ; Sun, 14 Mar 2021 08:56:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8KXTJ7PPTWCtdAAAbx9fmQ (envelope-from ) for ; Sun, 14 Mar 2021 08:56:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 031931B185 for ; Sun, 14 Mar 2021 09:56:18 +0100 (CET) Received: from localhost ([::1]:57776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLMXp-0002db-Mn for larch@yhetil.org; Sun, 14 Mar 2021 04:56:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLMXa-0002cz-9Y for guix-patches@gnu.org; Sun, 14 Mar 2021 04:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLMXa-0003xo-2Y for guix-patches@gnu.org; Sun, 14 Mar 2021 04:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLMXa-0002F8-0O for guix-patches@gnu.org; Sun, 14 Mar 2021 04:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47134] [PATCH] gnu: Add zfs-auto-snapshot. Resent-From: raid5atemyhomework Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Mar 2021 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47134 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47134@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.16157121428595 (code B ref -1); Sun, 14 Mar 2021 08:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Mar 2021 08:55:42 +0000 Received: from localhost ([127.0.0.1]:32949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLMXF-0002EZ-TF for submit@debbugs.gnu.org; Sun, 14 Mar 2021 04:55:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:59388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLMXB-0002EP-US for submit@debbugs.gnu.org; Sun, 14 Mar 2021 04:55:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLMXB-0002bD-DW for guix-patches@gnu.org; Sun, 14 Mar 2021 04:55:37 -0400 Received: from mail-40140.protonmail.ch ([185.70.40.140]:11868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLMX1-0003id-Mr for guix-patches@gnu.org; Sun, 14 Mar 2021 04:55:36 -0400 Date: Sun, 14 Mar 2021 08:55:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1615712122; bh=DMw6TTcXa+AnC7OnHjWQqx9a+gaJ61ZDGnqjEOTot44=; h=Date:To:From:Reply-To:Subject:From; b=lWW4XTVZA66XmQe/vqOtVAhhPcvQvxHMAad31PZmekqh72cC9G96TnwiY0VDE3Tep 28mMXNbpBNPbMCugzzAwWes1iklHGMoO5/82Imnmw7nor7RM9XOT2J9zCQslIUW6b8 GVUS0xiXFLg3mu0QYIuTFRby1zWRItGPU3u6QLpk= Message-ID: <8khDgDFm8YAH3rsudpda_ASV2o4CdQLmejmEXU3QkRkUFrMfewbzBrqrC4OO2mvpuQUckFSwYmSGadSjNy87Z7NKas5fupZILvGtvPJSa3Y=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.140; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40140.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: raid5atemyhomework X-ACL-Warn: , raid5atemyhomework via Guix-patches From: raid5atemyhomework via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615712179; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DMw6TTcXa+AnC7OnHjWQqx9a+gaJ61ZDGnqjEOTot44=; b=pP0ahNZPGdRYrOhVxeagFCITOIGgtBsrT8AWBX2gDop53+cFiBwqmMvCAC1EepTed5+LIT xXK7EpR0d9L4J9ZpzX6D8g/C1ESrFvhrtFcTeC4wJV1qfeV+vZuriomduDxbvQLa4C2pON VdgI8i4RzkoRpgnA3ANTBKLYbPfL63Yv+7giNzQVzWRM1MGKBcMkgqPKBUfTnu0wp8HRF7 ItJZH1BaQ05VOXfPkhcL9YvLS5hXrWJSviiNyVm2E4JVjKC3pOdQTP7gZnjxPgBHl1dcEs 2BNtRTX0QvAkGELKVKYsR6AZrZJjiASjGX+9uF9Vk2rYW2pByOKIF+furB/BRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615712179; a=rsa-sha256; cv=none; b=J50Dll6H2+QBSZT/YS6FSnJA8uFkcdRHvoYK4E00uQYzykb0lrAjWMCvuK1wlRpo2Jhb7T 6V0NxHo+1ZW8NzYuJYPKEVZZNrd8AP3zUYeB/hyGi2aUKwZAIS2o4x/VYKsy4jWZHPOu6u k+adMaeEqskN9hjr/fxx+hPfrqSE/f/dOeiBDVDIdx/llRbsBKEDnEUEUhJw8YJLy/XXqI oMWbSAvOf31RW+mfNMfWmxwh0nmXD6aGGDePsR54r7h+wwQtntkRDsJ8gc8DMYlk5uwAKL Y5LuAROwilr2LAjApf1PAABuudRyJxyRRyC1v+nUzDAh0N7oja0jUxvzNiMv+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=lWW4XTVZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=lWW4XTVZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 031931B185 X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: YRYIq/ys40Yc >From be0c4d4ef73e68ace117f2a1b1396331a4fcdf84 Mon Sep 17 00:00:00 2001 From: raid5atemyhomework Date: Sun, 14 Mar 2021 16:40:47 +0800 Subject: [PATCH] gnu: Add zfs-auto-snapshot. * gnu/packages/file-systems.scm (zfs-auto-snapshot): New variable. --- gnu/packages/file-systems.scm | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index e7d78e41fb..0543be2d82 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -975,6 +975,60 @@ originally developed for Solaris and is now maintained= by the OpenZFS community.") (license license:cddl1.0))) +(define-public zfs-auto-snapshot + (package + (name "zfs-auto-snapshot") + (version "1.2.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/zfsonlinux/zfs-auto-snapshot/archive/up= stream/" + version ".tar.gz")) + (sha256 + (base32 "16ry1w43i44xc67gr73x6fa48ninfhqxr498ad4m3kya93vp2zrh"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No tests + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + ;; Guix System may not have a traditional cron system, but + ;; the cron scripts installed by this package are convenient + ;; to use as targets for an mcron job specification, so make + ;; sure they can be run in-store. + (add-before 'install 'fix-cron-scripts + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (zfs-auto-snapshot (string-append + out + "/sbin/zfs-auto-snapshot"))) + (substitute* '("etc/zfs-auto-snapshot.cron.daily" + "etc/zfs-auto-snapshot.cron.frequent" + "etc/zfs-auto-snapshot.cron.hourly" + "etc/zfs-auto-snapshot.cron.monthly" + "etc/zfs-auto-snapshot.cron.weekly") + (("zfs-auto-snapshot") + zfs-auto-snapshot))))) + ;; Provide DESTDIR and PREFIX on make command. + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" "install" + "PREFIX=3D" + (string-append "DESTDIR=3D" out))) + #t))))) + (home-page "https://github.com/zfsonlinux/zfs-auto-snapshot") + (synopsis "Automatically create, rotate, and destroy periodic ZFS snap= shots") + (description + "An alternative implementation of the zfs-auto-snapshot service for = Linux +that is compatible with zfs-linux and zfs-fuse. + +On Guix System, you will need to invoke the installed shell scripts as @co= de{job} +declarations in your @code{operating-system} configuration.") + (license license:gpl2+))) + (define-public mergerfs (package (name "mergerfs") -- 2.30.2