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