b7e5ae9166
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-blackbox -h` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-blackbox --help` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-blackbox help` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync -v` and found version 2.4.3 - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cfgtool -h` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cfgtool --help` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cfgtool help` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cfgtool -V` and found version 2.4.3 - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cfgtool -v` and found version 2.4.3 - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cfgtool --help` and found version 2.4.3 - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cmapctl -h` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-cpgtool -h` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-keygen -h` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-keygen --help` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-qdevice-net-certutil -h` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-qdevice-net-certutil help` got 0 exit code - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-qdevice-net-certutil version` and found version 2.4.3 - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-qdevice-net-certutil -h` and found version 2.4.3 - ran `/nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3/bin/corosync-qdevice-net-certutil help` and found version 2.4.3 - found 2.4.3 with grep in /nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3 - found 2.4.3 in filename of file in /nix/store/m08rvzr19g6c09xj6h6v073lxgyq0f53-corosync-2.4.3
61 lines
1.7 KiB
Nix
61 lines
1.7 KiB
Nix
{ stdenv, fetchurl, makeWrapper, pkgconfig, nss, nspr, libqb
|
|
, dbus, librdmacm, libibverbs, libstatgrab, net_snmp
|
|
, enableDbus ? false
|
|
, enableInfiniBandRdma ? false
|
|
, enableMonitoring ? false
|
|
, enableSnmp ? false
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "corosync-2.4.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://build.clusterlabs.org/corosync/releases/${name}.tar.gz";
|
|
sha256 = "15y5la04qn2lh1gabyifygzpa4dx3ndk5yhmaf7azxyjx0if9rxi";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
|
|
buildInputs = [
|
|
nss nspr libqb
|
|
] ++ optional enableDbus dbus
|
|
++ optional enableInfiniBandRdma [ librdmacm libibverbs ]
|
|
++ optional enableMonitoring libstatgrab
|
|
++ optional enableSnmp net_snmp;
|
|
|
|
configureFlags = [
|
|
"--sysconfdir=/etc"
|
|
"--localstatedir=/var"
|
|
"--with-logdir=/var/log/corosync"
|
|
"--enable-watchdog"
|
|
"--enable-qdevices"
|
|
] ++ optional enableDbus "--enable-dbus"
|
|
++ optional enableInfiniBandRdma "--enable-rdma"
|
|
++ optional enableMonitoring "--enable-monitoring"
|
|
++ optional enableSnmp "--enable-snmp";
|
|
|
|
installFlags = [
|
|
"sysconfdir=$(out)/etc"
|
|
"localstatedir=$(out)/var"
|
|
"COROSYSCONFDIR=$(out)/etc/corosync"
|
|
"INITDDIR=$(out)/etc/init.d"
|
|
"LOGROTATEDIR=$(out)/etc/logrotate.d"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/corosync-blackbox \
|
|
--prefix PATH ":" "$out/sbin:${libqb}/sbin"
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = http://corosync.org/;
|
|
description = "A Group Communication System with features for implementing high availability within applications";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ wkennington montag451 ];
|
|
};
|
|
}
|