* util-linux-ng: updated to 2.16. Don't build a separate mount
anymore since the build process was very hacky. Instead mount/umount looks for mount helpers in /var/run/current-system/sw/sbin. It would be better to use an environment variable, but that would be risky if mount is setuid root. * e2fsprogs: updated to 1.41.8. Don't build libuuid, libblkid etc. anymore, since they have been moved to util-linux-ng. * nfs-utils: updated to 1.2.0. svn path=/nixpkgs/trunk/; revision=16682
This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
{ fetchurl, stdenv, tcpWrapper, e2fsprogs }:
|
||||
{ fetchurl, stdenv, tcpWrapper, libuuid }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nfs-utils-1.1.2";
|
||||
name = "nfs-utils-1.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/nfs/${name}.tar.gz";
|
||||
sha256 = "0cs0kl18f4h8nkbnd7n3flw9krhkm3mx9sh7vz9dkvp46g0v228x";
|
||||
url = "mirror://sourceforge/nfs/${name}.tar.bz2";
|
||||
sha256 = "1ld1f6wcm53pza3zy768y1y8xa01zq3bnjyy1j3z62yd7a5lcffb";
|
||||
};
|
||||
|
||||
patches = [ ./sbindir.patch ];
|
||||
|
||||
# Needs `libblkid' and `libcomerr' from `e2fsprogs'.
|
||||
buildInputs = [ tcpWrapper e2fsprogs ];
|
||||
# Needs `libblkid' and `libcomerr' from `e2fsprogs' or `util-linux-ng'.
|
||||
buildInputs = [ tcpWrapper libuuid ];
|
||||
|
||||
# FIXME: Currently too lazy to build the dependencies needed for NFSv4.
|
||||
configurePhase = ''./configure --prefix=$out \
|
||||
--disable-gss --disable-nfsv4 \
|
||||
--with-statedir=$out/var/lib/nfs'';
|
||||
configureFlags = "--disable-gss --disable-nfsv4 --with-statedir=/var/lib/nfs";
|
||||
|
||||
preBuild =
|
||||
''
|
||||
makeFlags="sbindir=$out/sbin"
|
||||
installFlags="statedir=$TMPDIR" # hack to make `make install' work
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Linux user-space NFS utilities";
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- nfs-utils-1.1.2/utils/mount/Makefile.in 2008-03-14 18:44:42.000000000 +0100
|
||||
+++ nfs-utils-1.1.2/utils/mount/Makefile.in 2008-03-30 19:30:57.000000000 +0200
|
||||
@@ -219,7 +219,7 @@ psdir = @psdir@
|
||||
|
||||
# These binaries go in /sbin (not /usr/sbin), and that cannot be
|
||||
# overriden at config time.
|
||||
-sbindir = /sbin
|
||||
+sbindir = @prefix@/sbin
|
||||
secure_statd = @secure_statd@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
Reference in New Issue
Block a user