nixpkgs/pkgs/os-specific/linux/autofs/autofs-v5.nix
Arvin Moezzi 2fed56b42f autofs: upgrade 5.0.5 -> 5.0.8
* upstream: patches have been moved into the patches-5.0.x directory
* disable autofs preparing and then moving mount points

  "With the introduction of systemd the root filesystem is now usually
  marked as shared instead of private as part of the systemd sandbox
  functionality. As a consequence moving a mount from one mount point to
  another is not allowed."
2013-11-21 21:49:47 +01:00

43 lines
1.2 KiB
Nix

{stdenv, fetchurl, flex, bison, linuxHeaders}:
let
baseURL = mirror://kernel/linux/daemons/autofs/v5;
in
stdenv.mkDerivation {
name = "autofs-5.0.8";
src = fetchurl {
url = "${baseURL}/autofs-5.0.8.tar.bz2";
sha256 = "0zczihrqdamj43401v2pczf7zi94f8qk20gc6l92nxmpak3443if";
};
patches = import ./patches-v5.nix fetchurl;
preConfigure = ''
configureFlags="--disable-move-mount --with-path=$PATH"
export MOUNT=/var/run/current-system/sw/bin/mount
export UMOUNT=/var/run/current-system/sw/bin/umount
export MODPROBE=/var/run/current-system/sw/sbin/modprobe
# Grrr, rpcgen can't find cpp. (NIXPKGS-48)
mkdir rpcgen
echo "#! $shell" > rpcgen/rpcgen
echo "exec $(type -tp rpcgen) -Y $(dirname $(type -tp cpp)) \"\$@\"" >> rpcgen/rpcgen
chmod +x rpcgen/rpcgen
export RPCGEN=$(pwd)/rpcgen/rpcgen
'';
installPhase = ''
make install SUBDIRS="lib daemon modules man" # all but samples
#make install SUBDIRS="samples" # impure!
'';
buildInputs = [flex bison linuxHeaders];
meta = {
description="Kernel based automounter";
homepage="http://www.linux-consulting.com/Amd_AutoFS/autofs.html";
license = "GPLv2";
executables = [ "automount" ];
};
}