2009-04-30 04:37:00 +02:00
|
|
|
args: with args;
|
|
|
|
let
|
|
|
|
baseURL = mirror://kernel/linux/daemons/autofs/v5;
|
|
|
|
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "autofs-5.0.4";
|
|
|
|
|
2009-05-01 07:42:32 +02:00
|
|
|
# It's too tiresome to apply all patches which are availible (see previous rev).
|
|
|
|
# Using git repo which seems to be the same anyway..
|
2009-12-16 06:52:36 +01:00
|
|
|
# REGION AUTO UPDATE: { name="autofs"; type="git"; url="http://ftp.riken.go.jp/Linux/kernel.org/scm/linux/storage/autofs/autofs.git"; }
|
|
|
|
src= sourceFromHead "autofs-9a77464b8a661d33a6205756955e0047727d5c1f.tar.gz"
|
|
|
|
(fetchurl { url = "http://mawercer.de/~nix/repos/autofs-9a77464b8a661d33a6205756955e0047727d5c1f.tar.gz"; sha256 = "6764390e1f202eaef2f800146c8ccef616d502cec9471b006abde0781a62237f"; });
|
2009-12-11 14:58:23 +01:00
|
|
|
# END
|
2009-05-01 07:42:32 +02:00
|
|
|
/*fetchurl {
|
2009-04-30 04:37:00 +02:00
|
|
|
url = "${baseURL}/autofs-5.0.4.tar.bz2";
|
|
|
|
sha256 = "06ysv24jwhwvl8vbafy4jxcg9ps1iq5nrz2nyfm6c761rniy27v3";
|
2009-05-01 07:42:32 +02:00
|
|
|
};*/
|
2009-04-30 04:37:00 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="--with-path=$PATH"
|
|
|
|
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";
|
|
|
|
license = "GPLv2";
|
|
|
|
executables = [ "automount" ];
|
|
|
|
};
|
|
|
|
}
|