diff --git a/PKGBUILD b/PKGBUILD index 6aba96e..0dc978f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,13 +5,14 @@ pkgbase=lvm2 pkgname=('lvm2' 'device-mapper') pkgver=2.02.105 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') url="http://sourceware.org/lvm2/" license=('GPL2' 'LGPL2.1') makedepends=('systemd' 'thin-provisioning-tools') groups=('base') source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${pkgver}.tgz{,.asc} + http://www.eworm.de/download/linux/lvm2-snapshot.patch lvm2_install lvm2_hook sd-lvm2 @@ -24,6 +25,7 @@ source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${pkgver}.tgz{,.asc} lvmetad.socket) sha1sums=('796163e766480cdc427cd443dc1336ae8e8e3bd7' 'SKIP' + '3f9a0789a0e046fcfdb4aaa8a672013e90d1d99d' '76e83966d1bc84f9a1e30bcaff84b8b8fefbca0f' 'ff0fdf0a3005a41acd4b36865056109effc3474b' '30777d42e31cb7fe1f4fadc1e8f4c4d4cdd8ffed' @@ -39,6 +41,9 @@ prepare() { cd LVM2.${pkgver} # enable lvmetad sed -i 's|use_lvmetad = 0|use_lvmetad = 1|' conf/example.conf.in + + # fix snapshot + patch -Np1 < ${srcdir}/lvm2-snapshot.patch } build() { @@ -50,7 +55,7 @@ build() { --with-default-pid-dir=/run --with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm \ --enable-pkgconfig --enable-readline --enable-dmeventd --enable-cmdlib --enable-applib \ --enable-udev_sync --enable-udev_rules --with-default-locking-dir=/run/lock/lvm \ - --enable-lvmetad --with-thin=internal + --enable-lvmetad --with-thin=internal --disable-blkid_wiping make }