2010-04-27 11:43:22 +02:00
|
|
|
{ fetchurl, stdenv, tcpWrapper, utillinuxng, libcap }:
|
2008-03-30 19:42:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-04-27 11:43:22 +02:00
|
|
|
name = "nfs-utils-1.2.2";
|
2007-11-20 16:55:37 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2009-08-11 22:57:29 +02:00
|
|
|
url = "mirror://sourceforge/nfs/${name}.tar.bz2";
|
2010-04-27 11:43:22 +02:00
|
|
|
sha256 = "07nhr7ds5ic4x81l9qphrlmi4ifxl28xzr1zpzvg334ncrv2fizx";
|
2007-11-20 16:55:37 +01:00
|
|
|
};
|
|
|
|
|
2009-08-11 22:57:29 +02:00
|
|
|
# Needs `libblkid' and `libcomerr' from `e2fsprogs' or `util-linux-ng'.
|
2010-04-27 11:43:22 +02:00
|
|
|
buildInputs = [ tcpWrapper utillinuxng libcap ];
|
|
|
|
|
|
|
|
# FIXME: Add the dependencies needed for NFSv4 and TI-RPC.
|
|
|
|
configureFlags =
|
|
|
|
[ "--disable-gss" "--disable-nfsv4" "--disable-nfsv41" "--disable-tirpc"
|
|
|
|
"--with-statedir=/var/lib/nfs"
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase =
|
2010-05-09 21:14:06 +02:00
|
|
|
''
|
|
|
|
for i in "tests/"*.sh
|
|
|
|
do
|
|
|
|
sed -i "$i" -e's|/bin/bash|/bin/sh|g'
|
|
|
|
chmod +x "$i"
|
|
|
|
done
|
|
|
|
sed -i s,/usr/sbin,$out/sbin, utils/statd/statd.c
|
2010-04-27 11:43:22 +02:00
|
|
|
'';
|
2009-08-11 22:57:29 +02:00
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
makeFlags="sbindir=$out/sbin"
|
|
|
|
installFlags="statedir=$TMPDIR" # hack to make `make install' work
|
|
|
|
'';
|
2007-11-20 16:55:37 +01:00
|
|
|
|
2010-04-27 11:43:22 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2008-03-30 19:42:49 +02:00
|
|
|
description = "Linux user-space NFS utilities";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
This package contains various Linux user-space Network File
|
|
|
|
System (NFS) utilities, including RPC `mount' and `nfs'
|
|
|
|
daemons.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://nfs.sourceforge.net/;
|
|
|
|
license = "GPLv2";
|
2010-04-27 11:43:22 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2007-11-20 16:55:37 +01:00
|
|
|
};
|
|
|
|
}
|