blob: 2f502c10022868369f660e1d9fba300fe9dab96a (
plain)
1 # Description: Device mapper userspace library
2 # URL: http://sourceware.org/lvm2/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: eudev util-linux
5
6 name=libdevmapper
7 version=1.02.119
8 release=1
9 source=(http://mirrors.kernel.org/sources.redhat.com/lvm2/releases/LVM2.2.02.145.tgz)
10
11 build() {
12 cd LVM2.2.02.145
13
14 ./configure --prefix=/usr \
15 --exec-prefix= \
16 --datarootdir=/usr \
17 --with-udev-prefix= \
18 --mandir=/usr/share/man \
19 --disable-readline \
20 --enable-pkgconfig \
21 --enable-static_link \
22 --enable-udev_sync \
23 --enable-udev_rules \
24 --with-{user,group}=root
25
26 make device-mapper
27 make DESTDIR=$PKG install_device-mapper
28 install -m0644 -D udev/12-dm-permissions.rules $PKG/etc/udev/rules.d/12-dm-permissions.rules.example
29
30 # symlink dmsetup to dmstats and not dmsetup.static
31 ln -sf dmsetup $PKG/sbin/dmstats
32
33 # pkgconfig insists on /lib one or the other way...
34 sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
35 }
|