guix-glicid/glicid/packages/file-systems.scm

96 lines
3.8 KiB
Scheme
Raw Normal View History

2021-12-15 09:31:25 +01:00
(define-module (glicid packages file-systems)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
2021-12-15 09:34:44 +01:00
#:use-module (gnu packages cyrus-sasl)
2021-12-15 09:37:47 +01:00
#:use-module (gnu packages linux)
2021-12-15 09:40:35 +01:00
#:use-module (gnu packages onc-rpc)
2021-12-15 09:44:35 +01:00
#:use-module (gnu packages xml)
2021-12-15 09:47:02 +01:00
#:use-module (gnu packages kerberos)
2021-12-15 09:49:10 +01:00
#:use-module (gnu packages nfs)
2021-12-15 09:52:36 +01:00
#:use-module (gnu packages openldap)
2021-12-15 10:09:16 +01:00
#:use-module (gnu packages tls)
2021-12-15 10:21:04 +01:00
#:use-module (gnu packages bison)
2021-12-15 10:25:11 +01:00
#:use-module (gnu packages flex)
2021-12-15 10:39:38 +01:00
#:use-module (gnu packages flex)
#:use-module (gnu packages pkg-config)
2021-12-15 10:09:16 +01:00
2021-12-15 09:31:25 +01:00
)
(define-public autofs-glicid
(package
(name "autofs-glicid")
(version "5.1.8")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://kernel.org/linux/daemons/autofs/"
"v" (version-major version) "/"
"autofs-" version ".tar.xz"))
(sha256
(base32 "1zf0fgf6kr9amxq5amlgsp1v13sizwl3wvx2xl7b4r2nhmci0gdk"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags
(list "--enable-ignore-busy" ; during shutdown
"--enable-sloppy-mount" ; support mount(8) -s
"--with-libtirpc"
(string-append "--with-openldap="
(assoc-ref %build-inputs "openldap"))
(string-append "--with-sasl="
(assoc-ref %build-inputs "cyrus-sasl"))
; "HAVE_SSS_AUTOFS=1" ; required to make sssldir click
; (string-append "sssldir="
; (assoc-ref %build-inputs "sssd")
; "/lib/sssd/modules")
)
#:tests? #f ; no test suite
#:phases
(modify-phases %standard-phases
(add-before 'configure 'fix-hard-coded-search-path
(lambda _
(substitute* "configure"
(("^searchpath=\".*\"")
"searchpath=\"$PATH\""))))
(add-before 'configure 'fix-rpath
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* "Makefile.rules"
(("^AUTOFS_LIB_LINK.*=" match)
(string-append match " -Wl,-rpath=" out "/lib"))))))
(add-before 'install 'omit-obsolete-lookup_nis.so-link
;; Building lookup_yp.so depends on $(YPCLNT) but this doesn't,
;; leading to a make error. Since it's broken, comment it out.
(lambda _
(substitute* "modules/Makefile"
(("ln -fs lookup_yp.so" match)
(string-append "# " match))))))))
(native-inputs
(list bison flex pkg-config rpcsvc-proto))
(inputs
(list cyrus-sasl
e2fsprogs ; for e[234]fsck
libtirpc
libxml2 ; needed for LDAP, SASL
mit-krb5 ; needed for LDAP, SASL
nfs-utils ; for mount.nfs
openldap
openssl ; needed for SASL
; sssd
util-linux)) ; for mount, umount
;; XXX A directory index is the closest thing this has to a home page.
(home-page "https://www.kernel.org/pub/linux/daemons/autofs/")
(synopsis "Kernel-based automounter for Linux")
(description
"Autofs is a kernel-based automounter for use with the Linux autofs4
module. It automatically mounts selected file systems when they are used and
unmounts them after a set period of inactivity. This provides
centrally-managed, consistent file names for users and applications, even in a
large and/or frequently changing (network) environment.")
;; fedfs/ is GPL-2-only but not built.
(license (list license:bsd-3 ; modules/cyrus-sasl.c
license:gpl2+)))) ; the rest