mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-17 09:32:50 +00:00
Revert "nfs-utils: Build and update for 1.3.2"
This reverts commit a4ef29c499
.
This commit is contained in:
parent
9128cf6944
commit
8b666652a5
|
@ -3,11 +3,11 @@
|
|||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nfs-utils-1.3.2";
|
||||
name = "nfs-utils-1.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/nfs/${name}.tar.bz2";
|
||||
sha256 = "1xwilpdr1vizq2yhpzxpwqqr9f8kn0dy2wcpc626mf30ybp7572v";
|
||||
sha256 = "1lxfjl6mzdfn7kw2hcn40q9xn40a539iv7spzqbj1sfkvzxlm33l";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
|
@ -23,21 +23,24 @@ stdenv.mkDerivation rec {
|
|||
]
|
||||
++ stdenv.lib.optional (stdenv ? glibc) "--with-rpcgen=${stdenv.glibc}/bin/rpcgen";
|
||||
|
||||
patches = [ ./no-install.patch ];
|
||||
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
|
||||
|
||||
postPatch = ''
|
||||
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
|
||||
'';
|
||||
preBuild =
|
||||
''
|
||||
makeFlags="sbindir=$out/sbin"
|
||||
installFlags="statedir=$TMPDIR" # hack to make `make install' work
|
||||
'';
|
||||
|
||||
# One test fails on mips.
|
||||
doCheck = !stdenv.isMips;
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 6a5c7c2..64342fe 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -872,14 +872,6 @@ uninstall-am:
|
||||
|
||||
|
||||
install-data-hook:
|
||||
- if [ ! -d $(DESTDIR)$(statedir) ]; then mkdir -p $(DESTDIR)$(statedir); fi
|
||||
- touch $(DESTDIR)$(statedir)/xtab; chmod 644 $(DESTDIR)$(statedir)/xtab
|
||||
- touch $(DESTDIR)$(statedir)/etab; chmod 644 $(DESTDIR)$(statedir)/etab
|
||||
- touch $(DESTDIR)$(statedir)/rmtab; chmod 644 $(DESTDIR)$(statedir)/rmtab
|
||||
- mkdir -p $(DESTDIR)$(statdpath)/sm $(DESTDIR)$(statdpath)/sm.bak
|
||||
- touch $(DESTDIR)$(statdpath)/state
|
||||
- chmod go-rwx $(DESTDIR)$(statdpath)/sm $(DESTDIR)$(statdpath)/sm.bak $(DESTDIR)$(statdpath)/state
|
||||
- -chown $(statduser) $(DESTDIR)$(statdpath)/sm $(DESTDIR)$(statdpath)/sm.bak $(DESTDIR)$(statdpath)/state
|
||||
|
||||
uninstall-hook:
|
||||
rm $(DESTDIR)$(statedir)/xtab
|
Loading…
Reference in a new issue