@@ -1,12 +1,15 @@
1{ stdenv, fetchurl, pkgconfig, unzip, which
1{ stdenv, fetchurl, pkgconfig, unzip, which
2, libuuid, attr, xfsprogs, cppunit, rdma-core
2, libuuid, attr, xfsprogs, cppunit, rdma-core
3, zlib, openssl, sqlite, jre, openjdk, ant
3, zlib, openssl, sqlite, jre, openjdk, ant
4+, openssh, perl, gfortran
7 version = "6.17";
8 version = "6.17";
9 subdirs = [
10 subdirs = [
11+ "beeond_thirdparty/build"
12+ "beeond_thirdparty_gpl/build"
10 "beegfs_thirdparty/build"
13 "beegfs_thirdparty/build"
11 "beegfs_opentk_lib/build"
14 "beegfs_opentk_lib/build"
12 "beegfs_common/build"
15 "beegfs_common/build"
@@ -30,14 +33,34 @@ in stdenv.mkDerivation rec {
30 sha256 = "10xs7gzdmlg23k6zn1b7jij3lljn7rr1j6h476hq4lbg981qk3n3";
33 sha256 = "10xs7gzdmlg23k6zn1b7jij3lljn7rr1j6h476hq4lbg981qk3n3";
33− nativeBuildInputs = [ which unzip pkgconfig cppunit openjdk ant];
36+ nativeBuildInputs = [ which unzip pkgconfig cppunit openjdk ant perl ];
34− buildInputs = [ libuuid attr xfsprogs zlib openssl sqlite jre rdma-core ];
37+
50+ hardeningDisable = [ "format" ]; # required for building beeond
36 postPatch = ''
52 postPatch = ''
37 patchShebangs ./
53 patchShebangs ./
38 find -type f -name Makefile -exec sed -i "s:/bin/bash:${stdenv.shell}:" \{} \;
54 find -type f -name Makefile -exec sed -i "s:/bin/bash:${stdenv.shell}:" \{} \;
39 find -type f -name Makefile -exec sed -i "s:/bin/true:true:" \{} \;
55 find -type f -name Makefile -exec sed -i "s:/bin/true:true:" \{} \;
40 find -type f -name "*.mk" -exec sed -i "s:/bin/true:true:" \{} \;
56 find -type f -name "*.mk" -exec sed -i "s:/bin/true:true:" \{} \;
58+ # unpack manually and patch variable name
59+ sed -i '/tar -C $(SOURCE_PATH) -xzf $(PCOPY_TAR)/d' beeond_thirdparty/build/Makefile
60+ cd beeond_thirdparty/source
61+ tar xf pcopy-0.96.tar.gz
62+ sed -i 's/\([^_]\)rank/\1grank/' pcopy-0.96/src/pcp.cpp
43 buildPhase = ''
66 buildPhase = ''
@@ -93,6 +116,12 @@ in stdenv.mkDerivation rec {
94 cp beegfs_client_devel/build/dist/usr/share/doc/beegfs-client-devel/examples/* $docDir
117 cp beegfs_client_devel/build/dist/usr/share/doc/beegfs-client-devel/examples/* $docDir
95 cp -r beegfs_client_devel/include/* $includeDir
118 cp -r beegfs_client_devel/include/* $includeDir
120+ cp beeond_thirdparty_gpl/build/parallel $out/bin
121+ cp beeond_thirdparty/build/pcopy/p* $out/bin
122+ cp beeond_thirdparty/build/pcopy/s* $out/bin
123+ cp -r beeond/scripts/* $out
124+ cp beeond/source/* $out/bin
98 postFixup = ''
127 postFixup = ''
@@ -100,6 +129,9 @@ in stdenv.mkDerivation rec {
100 --replace " java " " ${jre}/bin/java " \
129 --replace " java " " ${jre}/bin/java " \
101 --replace "/opt/beegfs/beegfs-admon-gui/beegfs-admon-gui.jar" \
130 --replace "/opt/beegfs/beegfs-admon-gui/beegfs-admon-gui.jar" \
102 "$libDirPkg/beegfs-admon-gui.jar"
131 "$libDirPkg/beegfs-admon-gui.jar"
133+ substituteInPlace $out/bin/beeond \
134+ --replace /opt/beegfs/sbin "$out/bin"
105 doCheck = true;
137 doCheck = true;