2011-12-13 13:57:32 +01:00
|
|
|
{ fetchurl, stdenv, tcpWrapper, utillinux, libcap }:
|
2008-03-30 19:42:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-11-25 16:59:08 +01:00
|
|
|
name = "nfs-utils-1.2.3";
|
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-11-25 16:59:08 +01:00
|
|
|
sha256 = "06gzb4idg6rkr4wpj7lrdmg3zdqiz86j43dygykbyz0987lyqxam";
|
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'.
|
2011-12-13 13:57:32 +01:00
|
|
|
buildInputs = [ tcpWrapper utillinux libcap ];
|
2010-04-27 11:43:22 +02:00
|
|
|
|
|
|
|
# FIXME: Add the dependencies needed for NFSv4 and TI-RPC.
|
|
|
|
configureFlags =
|
|
|
|
[ "--disable-gss" "--disable-nfsv4" "--disable-nfsv41" "--disable-tirpc"
|
|
|
|
"--with-statedir=/var/lib/nfs"
|
2010-09-03 10:44:38 +02:00
|
|
|
]
|
|
|
|
++ stdenv.lib.optional (stdenv ? glibc) "--with-rpcgen=${stdenv.glibc}/bin/rpcgen";
|
2010-04-27 11:43:22 +02:00
|
|
|
|
|
|
|
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-08-21 19:13:28 +02:00
|
|
|
# One test fails on mips.
|
|
|
|
doCheck = if stdenv.isMips then false else true;
|
2010-04-27 11:43:22 +02:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|