2012-11-29 15:14:16 +01:00
|
|
|
{ fetchurl, stdenv, tcp_wrappers, utillinux, libcap, libtirpc, libevent, libnfsidmap
|
2015-02-16 13:51:33 +01:00
|
|
|
, lvm2, e2fsprogs, python
|
2014-09-30 10:25:38 +02:00
|
|
|
}:
|
2008-03-30 19:42:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-02-16 13:51:33 +01:00
|
|
|
name = "nfs-utils-1.2.5";
|
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";
|
2015-02-16 13:51:33 +01:00
|
|
|
sha256 = "16ssfkj36ljifyaskgwpd3ys8ylhi5gasq88aha3bhg5dr7yv59m";
|
2007-11-20 16:55:37 +01:00
|
|
|
};
|
|
|
|
|
2012-03-21 10:18:40 +01:00
|
|
|
buildInputs =
|
2012-11-29 15:14:16 +01:00
|
|
|
[ tcp_wrappers utillinux libcap libtirpc libevent libnfsidmap
|
2015-02-16 13:51:33 +01:00
|
|
|
lvm2 e2fsprogs python
|
2012-03-21 10:18:40 +01:00
|
|
|
];
|
2010-04-27 11:43:22 +02:00
|
|
|
|
|
|
|
# FIXME: Add the dependencies needed for NFSv4 and TI-RPC.
|
|
|
|
configureFlags =
|
2012-03-21 00:17:45 +01:00
|
|
|
[ "--disable-gss"
|
2010-04-27 11:43:22 +02:00
|
|
|
"--with-statedir=/var/lib/nfs"
|
2012-03-21 00:17:45 +01:00
|
|
|
"--with-tirpcinclude=${libtirpc}/include/tirpc"
|
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
|
|
|
|
2015-02-16 13:51:21 +01: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
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=749195
|
|
|
|
sed -i s,PAGE_SIZE,getpagesize\(\), utils/blkmapd/device-process.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
2012-10-26 11:08:02 +02:00
|
|
|
doCheck = !stdenv.isMips;
|
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/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-04-27 11:43:22 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-01-13 22:33:24 +01:00
|
|
|
maintainers = [ ];
|
2007-11-20 16:55:37 +01:00
|
|
|
};
|
|
|
|
}
|