* Added drbd.
svn path=/nixpkgs/trunk/; revision=30163
This commit is contained in:
parent
a5a5dcde90
commit
aa98c7dc02
33
pkgs/os-specific/linux/drbd/default.nix
Normal file
33
pkgs/os-specific/linux/drbd/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv, fetchurl, flex, udev }:
|
||||||
|
|
||||||
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "drbd-8.4.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://oss.linbit.com/drbd/8.4/${name}.tar.gz";
|
||||||
|
sha256 = "096njwxjpwvnl259gxq6cr6n0r6ba0h5aryvgk05hqi95jx927vg";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ flex ];
|
||||||
|
|
||||||
|
configureFlags = "--without-distro --without-legacy_utils --without-pacemaker --localstatedir=/var --sysconfdir=/etc";
|
||||||
|
|
||||||
|
preConfigure =
|
||||||
|
''
|
||||||
|
export PATH=${udev}/sbin:$PATH
|
||||||
|
substituteInPlace user/Makefile.in --replace /sbin/ $out/sbin/
|
||||||
|
substituteInPlace scripts/drbd.rules --replace /sbin/drbdadm $out/sbin/drbdadm
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeFlags = "SHELL=${stdenv.shell}";
|
||||||
|
|
||||||
|
installFlags = "localstatedir=$(TMPDIR)/var sysconfdir=$(out)/etc INITDIR=$(out)/etc/init.d";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://www.drbd.org/;
|
||||||
|
description = "Distributed Replicated Block Device, a distributed storage system for Linux";
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -5126,6 +5126,8 @@ let
|
|||||||
inherit devicemapper;
|
inherit devicemapper;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
drbd = callPackage ../os-specific/linux/drbd { };
|
||||||
|
|
||||||
libuuid =
|
libuuid =
|
||||||
if crossSystem != null && crossSystem.config == "i586-pc-gnu"
|
if crossSystem != null && crossSystem.config == "i586-pc-gnu"
|
||||||
then (utillinuxng // {
|
then (utillinuxng // {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user