2010-06-12 12:22:09 +02:00
|
|
|
{stdenv, fetchurl, flex, bison, linuxHeaders}:
|
|
|
|
|
2009-04-30 04:37:00 +02:00
|
|
|
let
|
|
|
|
baseURL = mirror://kernel/linux/daemons/autofs/v5;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2013-10-30 22:04:25 +01:00
|
|
|
name = "autofs-5.0.8";
|
2010-06-12 12:22:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-30 22:04:25 +01:00
|
|
|
url = "${baseURL}/autofs-5.0.8.tar.bz2";
|
|
|
|
sha256 = "0zczihrqdamj43401v2pczf7zi94f8qk20gc6l92nxmpak3443if";
|
2010-06-12 12:22:09 +02:00
|
|
|
};
|
2009-04-30 04:37:00 +02:00
|
|
|
|
2010-06-12 12:22:09 +02:00
|
|
|
patches = import ./patches-v5.nix fetchurl;
|
2009-04-30 04:37:00 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2013-10-30 22:04:25 +01:00
|
|
|
configureFlags="--disable-move-mount --with-path=$PATH"
|
2009-04-30 04:37:00 +02:00
|
|
|
export MOUNT=/var/run/current-system/sw/bin/mount
|
2009-05-01 07:42:32 +02:00
|
|
|
export UMOUNT=/var/run/current-system/sw/bin/umount
|
2009-04-30 04:37:00 +02:00
|
|
|
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!
|
|
|
|
'';
|
|
|
|
|
2009-12-21 15:04:45 +01:00
|
|
|
buildInputs = [flex bison linuxHeaders];
|
2009-04-30 04:37:00 +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" ];
|
|
|
|
};
|
|
|
|
}
|