summaryrefslogtreecommitdiffstats
path: root/libdevmapper/Pkgfile
blob: 0078bfe409bc98610f4433ff1f2ab2e98e1ca8d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
description="Device mapper userspace library."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://sourceware.org/lvm2/"
depends=()

name=libdevmapper
version=1.02.59
release=1
source=(ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.79.tgz lvm2-static_build.patch)
build () 
{ 
	cd LVM2.2.02.78;
	patch -p1 -i $SRC/lvm2-static_build.patch;
	./configure \
		${CHOST:+--build=${CHOST}} \
		${CTARGET:+--host=${CTARGET}} \
		--prefix=$prefix \
		--sbindir=/sbin \
		--libdir=/lib \
		--mandir=$mandir \
		--datarootdir=$prefix \
		--with-staticdir=/sbin \
		--with-usrlibdir=$libdir \
		--disable-readline \
		--enable-pkgconfig \
		--enable-static_link \
		--with-{user,group}=root;
	make device-mapper;
	make DESTDIR=$PKG install_device-mapper
	mkdir -p $PKG/usr/share/man
	mv $PKG/usr/man $PKG/usr/share/man
}