* Install the libvirt-guests boot script for saving/restoring VMs

across host reboots.

svn path=/nixpkgs/trunk/; revision=26120
This commit is contained in:
Eelco Dolstra 2011-02-25 15:56:10 +00:00
parent 55050ba5c6
commit f543078655

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, libxml2, gnutls, devicemapper, perl, python
, iproute, iptables, readline, lvm2, utillinux, udev, libpciaccess }:
, iproute, iptables, readline, lvm2, utillinux, udev, libpciaccess, gettext }:
let version = "0.8.8"; in
@ -13,7 +13,7 @@ stdenv.mkDerivation {
buildInputs =
[ pkgconfig libxml2 gnutls devicemapper perl python readline lvm2
utillinux udev libpciaccess
utillinux udev libpciaccess gettext
];
preConfigure =
@ -21,10 +21,16 @@ stdenv.mkDerivation {
PATH=${iproute}/sbin:${iptables}/sbin:${lvm2}/sbin:${udev}/sbin:$PATH
'';
configureFlags = "--localstatedir=/var";
configureFlags = "--localstatedir=/var --with-init-script=redhat";
installFlags = "localstatedir=$(TMPDIR)/var";
postInstall =
''
substituteInPlace $out/etc/rc.d/init.d/libvirt-guests \
--replace "$out/bin" "${gettext}/bin"
'';
meta = {
homepage = http://libvirt.org/;
description = "A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes).";