Linux nfs-utils 1.2.2.

svn path=/nixpkgs/trunk/; revision=21336
This commit is contained in:
Ludovic Courtès 2010-04-27 09:43:22 +00:00
parent 9ae4b8b11c
commit 7802763b45
2 changed files with 24 additions and 8 deletions

View File

@ -1,18 +1,29 @@
{ fetchurl, stdenv, tcpWrapper, libuuid }: { fetchurl, stdenv, tcpWrapper, utillinuxng, libcap }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "nfs-utils-1.2.0"; name = "nfs-utils-1.2.2";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/nfs/${name}.tar.bz2"; url = "mirror://sourceforge/nfs/${name}.tar.bz2";
sha256 = "1ld1f6wcm53pza3zy768y1y8xa01zq3bnjyy1j3z62yd7a5lcffb"; sha256 = "07nhr7ds5ic4x81l9qphrlmi4ifxl28xzr1zpzvg334ncrv2fizx";
}; };
# Needs `libblkid' and `libcomerr' from `e2fsprogs' or `util-linux-ng'. # Needs `libblkid' and `libcomerr' from `e2fsprogs' or `util-linux-ng'.
buildInputs = [ tcpWrapper libuuid ]; buildInputs = [ tcpWrapper utillinuxng libcap ];
# FIXME: Currently too lazy to build the dependencies needed for NFSv4. # FIXME: Add the dependencies needed for NFSv4 and TI-RPC.
configureFlags = "--disable-gss --disable-nfsv4 --with-statedir=/var/lib/nfs"; configureFlags =
[ "--disable-gss" "--disable-nfsv4" "--disable-nfsv41" "--disable-tirpc"
"--with-statedir=/var/lib/nfs"
];
patchPhase =
'' for i in "tests/"*.sh
do
sed -i "$i" -e's|/bin/bash|/bin/sh|g'
chmod +x "$i"
done
'';
preBuild = preBuild =
'' ''
@ -20,6 +31,8 @@ stdenv.mkDerivation rec {
installFlags="statedir=$TMPDIR" # hack to make `make install' work installFlags="statedir=$TMPDIR" # hack to make `make install' work
''; '';
doCheck = true;
meta = { meta = {
description = "Linux user-space NFS utilities"; description = "Linux user-space NFS utilities";
@ -31,5 +44,8 @@ stdenv.mkDerivation rec {
homepage = http://nfs.sourceforge.net/; homepage = http://nfs.sourceforge.net/;
license = "GPLv2"; license = "GPLv2";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.ludo ];
}; };
} }

View File

@ -5731,7 +5731,7 @@ let
}; };
nfsUtils = import ../os-specific/linux/nfs-utils { nfsUtils = import ../os-specific/linux/nfs-utils {
inherit fetchurl stdenv tcpWrapper libuuid; inherit fetchurl stdenv tcpWrapper utillinuxng libcap;
}; };
acpi = import ../os-specific/linux/acpi { acpi = import ../os-specific/linux/acpi {