2012-11-29 14:14:16 +00:00
|
|
|
{ fetchurl, stdenv, tcp_wrappers, utillinux, libcap, libtirpc, libevent, libnfsidmap
|
2015-07-20 10:19:56 +01:00
|
|
|
, lvm2, e2fsprogs, python, sqlite
|
2014-09-30 09:25:38 +01:00
|
|
|
}:
|
2008-03-30 18:42:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-01-26 17:46:45 +00:00
|
|
|
name = "nfs-utils-1.3.3";
|
2007-11-20 15:55:37 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2009-08-11 21:57:29 +01:00
|
|
|
url = "mirror://sourceforge/nfs/${name}.tar.bz2";
|
2016-01-26 17:46:45 +00:00
|
|
|
sha256 = "1svn27j5c873nixm46l111g7cgyaj5zd51ahfq8mx5v9m3vh93py";
|
2007-11-20 15:55:37 +00:00
|
|
|
};
|
|
|
|
|
2012-03-21 09:18:40 +00:00
|
|
|
buildInputs =
|
2012-11-29 14:14:16 +00:00
|
|
|
[ tcp_wrappers utillinux libcap libtirpc libevent libnfsidmap
|
2015-07-20 10:19:56 +01:00
|
|
|
lvm2 e2fsprogs python sqlite
|
2012-03-21 09:18:40 +00:00
|
|
|
];
|
2010-04-27 10:43:22 +01:00
|
|
|
|
|
|
|
# FIXME: Add the dependencies needed for NFSv4 and TI-RPC.
|
|
|
|
configureFlags =
|
2012-03-20 23:17:45 +00:00
|
|
|
[ "--disable-gss"
|
2010-04-27 10:43:22 +01:00
|
|
|
"--with-statedir=/var/lib/nfs"
|
2012-03-20 23:17:45 +00:00
|
|
|
"--with-tirpcinclude=${libtirpc}/include/tirpc"
|
2010-09-03 09:44:38 +01:00
|
|
|
]
|
2015-04-26 18:54:51 +01:00
|
|
|
++ stdenv.lib.optional (stdenv ? glibc) "--with-rpcgen=${stdenv.glibc.bin}/bin/rpcgen";
|
2010-04-27 10:43:22 +01:00
|
|
|
|
2015-02-16 12:51:21 +00:00
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
makeFlags="sbindir=$out/sbin"
|
2015-07-20 10:19:56 +01:00
|
|
|
installFlags="statedir=$TMPDIR statdpath=$TMPDIR" # hack to make `make install' work
|
2015-02-16 12:51:21 +00:00
|
|
|
'';
|
2007-11-20 15:55:37 +00:00
|
|
|
|
2010-08-21 18:13:28 +01:00
|
|
|
# One test fails on mips.
|
2012-10-26 10:08:02 +01:00
|
|
|
doCheck = !stdenv.isMips;
|
2010-04-27 10:43:22 +01:00
|
|
|
|
|
|
|
meta = {
|
2008-03-30 18:42:49 +01: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/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-04-27 10:43:22 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2007-11-20 15:55:37 +00:00
|
|
|
};
|
|
|
|
}
|