2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, flex, bison, linuxHeaders, libtirpc, mount, umount, nfs-utils, e2fsprogs
|
2016-04-14 20:18:09 +02:00
|
|
|
, libxml2, kerberos, kmod, openldap, sssd, cyrus_sasl, openssl }:
|
2010-06-12 12:22:09 +02:00
|
|
|
|
2009-04-30 04:37:00 +02:00
|
|
|
let
|
2018-03-17 20:06:19 +01:00
|
|
|
version = "5.1.4";
|
2015-09-18 04:57:51 +02:00
|
|
|
name = "autofs-${version}";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2010-06-12 12:22:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-18 04:57:51 +02:00
|
|
|
url = "mirror://kernel/linux/daemons/autofs/v5/${name}.tar.xz";
|
2018-03-17 20:06:19 +01:00
|
|
|
sha256 = "08hpphawzcdibwbhw0r3y7hnfczlazpp90sf3bz2imgza7p31klg";
|
2010-06-12 12:22:09 +02:00
|
|
|
};
|
2009-04-30 04:37:00 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2017-02-09 01:50:48 +01:00
|
|
|
configureFlags="--enable-force-shutdown --enable-ignore-busy --with-path=$PATH"
|
2016-04-14 20:18:09 +02:00
|
|
|
export sssldir="${sssd}/lib/sssd/modules"
|
|
|
|
export HAVE_SSS_AUTOFS=1
|
2016-08-14 21:32:08 +02:00
|
|
|
|
2018-03-27 05:37:49 +02:00
|
|
|
export MOUNT=${mount}/bin/mount
|
2017-02-09 01:50:48 +01:00
|
|
|
export MOUNT_NFS=${nfs-utils}/bin/mount.nfs
|
2018-03-27 05:37:49 +02:00
|
|
|
export UMOUNT=${umount}/bin/umount
|
2018-04-12 21:32:11 +02:00
|
|
|
export MODPROBE=${kmod}/bin/modprobe
|
2017-02-09 01:50:48 +01:00
|
|
|
export E2FSCK=${e2fsprogs}/bin/fsck.ext2
|
|
|
|
export E3FSCK=${e2fsprogs}/bin/fsck.ext3
|
|
|
|
export E4FSCK=${e2fsprogs}/bin/fsck.ext4
|
2017-10-31 15:35:59 +01:00
|
|
|
|
|
|
|
unset STRIP # Makefile.rules defines a usable STRIP only without the env var.
|
2009-04-30 04:37:00 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install SUBDIRS="lib daemon modules man" # all but samples
|
|
|
|
#make install SUBDIRS="samples" # impure!
|
|
|
|
'';
|
|
|
|
|
2016-04-14 20:18:09 +02:00
|
|
|
buildInputs = [ linuxHeaders libtirpc libxml2 kerberos kmod openldap sssd
|
|
|
|
openssl cyrus_sasl ];
|
2016-08-14 21:32:08 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ flex bison ];
|
2009-04-30 04:37:00 +02:00
|
|
|
|
2015-09-18 04:57:51 +02:00
|
|
|
meta = {
|
|
|
|
description = "Kernel-based automounter";
|
|
|
|
homepage = http://www.linux-consulting.com/Amd_AutoFS/autofs.html;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2009-04-30 04:37:00 +02:00
|
|
|
executables = [ "automount" ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-04-30 04:37:00 +02:00
|
|
|
};
|
|
|
|
}
|