From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2VLyJtR3817mcgAA0tVLHw (envelope-from ) for ; Wed, 24 Jun 2020 15:57:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yF56ItR3816aVQAAB5/wlQ (envelope-from ) for ; Wed, 24 Jun 2020 15:57:08 +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 DD7D69400B7 for ; Wed, 24 Jun 2020 15:57:07 +0000 (UTC) Received: from localhost ([::1]:52844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jo7lp-00033o-HR for larch@yhetil.org; Wed, 24 Jun 2020 11:57:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jo7lm-00033f-L4 for guix-patches@gnu.org; Wed, 24 Jun 2020 11:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jo7lm-0003mq-CC for guix-patches@gnu.org; Wed, 24 Jun 2020 11:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jo7lm-0006Yo-A2 for guix-patches@gnu.org; Wed, 24 Jun 2020 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42031] [PATCH] gnu: Add autofs. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 Jun 2020 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42031 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42031@debbugs.gnu.org Cc: Oleg Pykhalov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159301418425170 (code B ref -1); Wed, 24 Jun 2020 15:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2020 15:56:24 +0000 Received: from localhost ([127.0.0.1]:38730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jo7lA-0006Xu-2I for submit@debbugs.gnu.org; Wed, 24 Jun 2020 11:56:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:51536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jo7l7-0006Xl-9O for submit@debbugs.gnu.org; Wed, 24 Jun 2020 11:56:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jo7l7-00030D-0L for guix-patches@gnu.org; Wed, 24 Jun 2020 11:56:21 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:35743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jo7l5-0003Lt-33 for guix-patches@gnu.org; Wed, 24 Jun 2020 11:56:20 -0400 Received: by mail-lj1-x232.google.com with SMTP id q19so3142368lji.2 for ; Wed, 24 Jun 2020 08:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R2rTouI/GKL6rvAFZEAtznZHovEyoLhVAzvvLMyyXJo=; b=qD9xWg0c7JJ1CKR7bUhTB6SXxeD0b1I6mWoRH3OMOIz+hVkTZBMUi937QzdAQcvH7E OtVyvVzzBSEUv5tQP6r+PdOCv/k5yy9Bf4xNk+i29dyRmMsLTUcNdh193/+MW3IUg9+B QVZeiy+niRKUb9kO27ufAhJH1NhqrSG3an1LDWrm/w2fVH095vBHxJFDcFPMl21TW7Yx /CMl6YwelfBVCK5V1U0hGkbo5kzIFDoL9bLNWGn1rcxbawdICqoPDuxGU52aE5HtME67 hCE1cB7cMwLXXHl/LDEXhK1iE+XkHQ35BY/WMRbOTroGCsPayKGmKoGo+XZua9SlZOLv /3iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R2rTouI/GKL6rvAFZEAtznZHovEyoLhVAzvvLMyyXJo=; b=Q6mwXZYko92AbaFHw80O4qUSXgWgmfuw8DqNqr/1IipbvxnRI9HEcAD6hEymXLKS9I TIz2bHYQ2E/1qx+J8OwpKJjHTYBTXJhYhgjFq88gAttUXPylBPUqR69wUu9rwAV2Pv9V n9bdz88Ao9LNI5SopqdMeTysg7A4o4flmhEP2cixdtholyMFk1usfSOoqBKETmEvQ5JA OKp4Gbt2VnRzMhjWaYWAQ8c5BDEXSzvwU+gwzURYog230KSR6jzGQgzM00wb6/M2HMa4 ApDHzSvUi/6/7kaS0PWQbVEmMBcj8AshuxRuxJNscXoCmuUFwvtwJeMsiNbqWXmp0cQH 2WuQ== X-Gm-Message-State: AOAM533Ffm317lI1B01koY310oQ5cjqyMKva7SRV69raovmF2V7uNXhj DxVNa3R7NgzN7nrGWFN9qpCr3bRR X-Google-Smtp-Source: ABdhPJw47DeTsC+7hM+/HFd+bhkVySg2lOSEJuauogSpx6RUUW9005KlhWU9P08ZWeJFz4b3rICnWg== X-Received: by 2002:a2e:b0fa:: with SMTP id h26mr13801711ljl.148.1593014176566; Wed, 24 Jun 2020 08:56:16 -0700 (PDT) Received: from localhost.localdomain (ppp91-122-98-213.pppoe.avangarddsl.ru. [91.122.98.213]) by smtp.gmail.com with ESMTPSA id a27sm4225426ljn.58.2020.06.24.08.56.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 08:56:15 -0700 (PDT) From: Oleg Pykhalov Date: Wed, 24 Jun 2020 18:56:05 +0300 Message-Id: <20200624155605.23002-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x232.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=qD9xWg0c; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Spam-Score: 4.09 X-TUID: alD+gGo6CQyW * gnu/packages/file-systems.scm (autofs): New variable. --- gnu/packages/file-systems.scm | 77 +++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index dd72152c51..c8d881e542 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -36,6 +36,7 @@ #:use-module (gnu packages acl) #:use-module (gnu packages attr) #:use-module (gnu packages autotools) + #:use-module (gnu packages base) #:use-module (gnu packages bison) #:use-module (gnu packages check) #:use-module (gnu packages compression) @@ -57,6 +58,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) #:use-module (gnu packages rsync) + #:use-module (gnu packages sssd) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) @@ -782,3 +784,78 @@ directory onto a single drive and create FreeDesktop.org Trash specification compatible directories.") (home-page "https://github.com/trapexit/mergerfs-tools") (license license:isc)))) + +(define-public autofs + (package + (name "autofs") + (version "5.1.6") + (source (origin + (method url-fetch) + (uri (string-append + "https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v" + (version-major version) "/autofs-" version ".tar.xz")) + (sha256 + (base32 + "1vya21mb4izj3khcr3flibv7xc15vvx2v0rjfk5yd31qnzcy7pnx")))) + (build-system gnu-build-system) + (inputs `(("util-linux" ,util-linux) + ("nfs-utils" ,nfs-utils) + ("kmod" ,kmod) + ("e2fsprogs" ,e2fsprogs) + ("sssd" ,sssd) + ("linux-headers" ,linux-libre-headers) + ("libtirpc", libtirpc) + ("binutils" ,binutils) + ("rpcsvc-proto" ,rpcsvc-proto) ;for 'rpcgen' + ("libxml2" ,libxml2))) + (native-inputs + `(("flex" ,flex) + ("bison" ,bison) + ("pkg-config" ,pkg-config))) + (arguments + `(#:tests? #f ; no tests + #:validate-runpath? #f + #:configure-flags '("--enable-force-shutdown" "--with-path=$PATH" + "--enable-ignore-busy") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'pre-configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "exportsssldir" (string-append (assoc-ref inputs "sssd") + "/lib/sssd/modules")) + (setenv "HAVE_SSS_AUTOFS" "1") + (setenv "YACC" (string-append (assoc-ref inputs "bison") + "/bin/yacc")) + (setenv "RANLIB" (string-append (assoc-ref inputs "binutils") + "/bin/ranlib")) + (setenv "RPCGEN" (string-append (assoc-ref inputs "rpcsvc-proto") + "/bin/rpcgen")) + (setenv "LEX" (string-append (assoc-ref inputs "flex") + "/bin/flex")) + (setenv "MOUNT" (string-append (assoc-ref inputs "util-linux") + "/bin/mount")) + (setenv "MOUNT_NFS" (string-append (assoc-ref inputs "nfs-utils") + "/sbin/mount.nfs")) + (setenv "UMOUNT" (string-append (assoc-ref inputs "util-linux") + "/bin/umount")) + (setenv "MODPROBE" (string-append (assoc-ref inputs "kmod") + "/bin/modprobe")) + (setenv "E2FSCK" (string-append (assoc-ref inputs "e2fsprogs") + "/sbin/fsck.ext2")) + (setenv "E3FSCK" (string-append (assoc-ref inputs "e2fsprogs") + "/sbin/fsck.ext3")) + (setenv "E4FSCK" (string-append (assoc-ref inputs "e2fsprogs") + "/sbin/fsck.ext4")) + ;; Allow & co. to be found. + (setenv "CPATH" (string-append (assoc-ref inputs "libtirpc") + "/include/tirpc")) + ;; Makefile.rules defines a usable STRIP only without the env var. + (unsetenv "STRIP") + #t))))) + (home-page "https://www.kernel.org/pub/linux/daemons/autofs/") + (synopsis "Kernel-based automounter") + (description "Autofs controls the operation of the automount daemons. The +automount daemons automatically mount filesystems when they are used and +unmount them after a period of inactivity. This is done based on a set of +pre-configured maps.") + (license license:gpl2))) -- 2.26.2