blob: 1bf97ca5123afb6fa4087658596c8ffbc69baef2 (
plain)
1 # Description: Userspace toolset for logical volume management
2 # URL: http://sourceware.org/lvm2/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: libdevmapper
5
6 name=lvm2
7 version=2.02.107
8 release=1
9 source=(http://mirrors.kernel.org/sources.redhat.com/lvm2/LVM2.$version.tgz)
10
11 build() {
12 cd LVM2.$version
13
14 # needed for static linking with eudev
15 export UDEV_LIBS="$(pkg-config --libs --static libudev)"
16
17 # needed for static linking
18 export LIBS="-lpthread -luuid"
19
20 ./configure --prefix=/usr \
21 --exec-prefix= \
22 --datarootdir=/usr \
23 --with-udev-prefix= \
24 --disable-readline \
25 --enable-pkgconfig \
26 --enable-static_link \
27 --enable-udev_sync \
28 --enable-udev_rules \
29 --with-{user,group}=root
30
31 make
32 make DESTDIR=$PKG install_lvm2
33
34 install -d -m 0700 $PKG/etc/lvm/{archive,backup}
35 install -d -m 1777 $PKG/var/lock
36 install -d -m 0700 $PKG/var/lock/lvm
37 }
|