rdma-core: set correct RUNDIR and SHAREDSTATEDIR
This commit is contained in:
parent
7c554c13ee
commit
c208456d3a
@ -18,9 +18,13 @@ in stdenv.mkDerivation {
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
buildInputs = [ libnl ethtool nettools libudev python perl ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSTALL_RUNDIR=/run"
|
||||
"-DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace providers/rxe/rxe_cfg.in \
|
||||
--replace '@CMAKE_INSTALL_FULL_SHAREDSTATEDIR@' '/run' \
|
||||
--replace ethtool "${ethtool}/bin/ethtool" \
|
||||
--replace ifconfig "${nettools}/bin/ifconfig"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user