Update and adopt LVM2.

This commit is contained in:
Michael Raskin 2014-08-31 21:08:56 +04:00
parent 655e5c01b4
commit eb66d3654f
2 changed files with 11 additions and 4 deletions

View file

@ -1,15 +1,15 @@
{ stdenv, fetchurl, pkgconfig, udev, utillinux, coreutils }:
let
v = "2.02.106";
version = "2.02.110";
in
stdenv.mkDerivation {
name = "lvm2-${v}";
name = "lvm2-${version}";
src = fetchurl {
url = "ftp://sources.redhat.com/pub/lvm2/releases/LVM2.${v}.tgz";
sha256 = "0nr833bl0q4zq52drjxmmpf7bs6kqxwa5kahwwxm9411khkxz0vc";
url = "ftp://sources.redhat.com/pub/lvm2/releases/LVM2.${version}.tgz";
sha256 = "04fdzvv5431d1i4p701zkm9kc50087q56k7l2l5l5f3i9ah1mb9x";
};
configureFlags =
@ -54,5 +54,8 @@ stdenv.mkDerivation {
homepage = http://sourceware.org/lvm2/;
descriptions = "Tools to support Logical Volume Management (LVM) on Linux";
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [raskin];
inherit version;
downloadPage = "ftp://sources.redhat.com/pub/lvm2/";
};
}

View file

@ -0,0 +1,4 @@
url ftp://sources.redhat.com/pub/lvm2/
version_link '[.]tgz$'
version '.*[^0-9.][^.]*[.]([0-9.]+)[.].*' '\1'
do_overwrite () { do_overwrite_just_version; }