3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #5384 from ts468/glusterfs

FIX: Change local state dir
This commit is contained in:
Arseniy Seroka 2014-12-20 02:09:08 +03:00
commit c08149c6a4

View file

@ -19,12 +19,17 @@ stdenv.mkDerivation
rec {
inherit (s) name version;
inherit buildInputs;
preConfigure = ''
./autogen.sh
'';
configureFlags = [
''--with-mountutildir="$out/sbin"''
''--with-mountutildir="$out/sbin" --localstatedir=/var''
];
makeFlags = "DESTDIR=$(out)";
preInstall = ''
substituteInPlace api/examples/Makefile --replace '$(DESTDIR)' $out
substituteInPlace geo-replication/syncdaemon/Makefile --replace '$(DESTDIR)' $out
@ -32,6 +37,12 @@ rec {
substituteInPlace xlators/features/glupy/examples/Makefile --replace '$(DESTDIR)' $out
substituteInPlace xlators/features/glupy/src/Makefile --replace '$(DESTDIR)' $out
'';
postInstall = ''
cp -r $out/$out/* $out
rm -r $out/nix
'';
src = fetchurl {
inherit (s) url sha256;
};