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