# Description: Device Mapper for LVM
# URL: http://sources.redhat.com/dm/
# Maintainer: Simon Gloßner, viper at hometux dot de
# Packager: Mark Rosenstand, mark at borkware dot net

name=libdevmapper
version=1.02.31
release=1
source=(ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.45.tgz)

build() {
    cd LVM2.2.02.45

    ./configure \
	--prefix=/usr \
	--libdir=/lib \
	--mandir=/usr/man \
	--sbindir=/sbin \
	--enable-pkgconfig \
	--disable-nls \
	--with-optimisation="$CFLAGS"
    make device-mapper
    make DESTDIR=$PKG install_device-mapper

    find $PKG -type f -exec chmod u+w {} \;
}
