42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# Description: Device mapper userspace library
|
|
# URL: https://sourceware.org/lvm2/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: util-linux
|
|
|
|
name=libdevmapper
|
|
version=1.02.193
|
|
release=1
|
|
source=(https://mirrors.kernel.org/sourceware/lvm2/LVM2.2.03.20.tgz)
|
|
|
|
build() {
|
|
cd LVM2.2.03.20
|
|
|
|
# libaio is not needed for libdevmapper
|
|
sed 's/libaio.h//' -i configure
|
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--exec-prefix= \
|
|
--datarootdir=/usr \
|
|
--with-udev-prefix= \
|
|
--mandir=/usr/share/man \
|
|
--disable-readline \
|
|
--disable-selinux \
|
|
--enable-pkgconfig \
|
|
--enable-static_link \
|
|
--enable-udev_sync \
|
|
--enable-udev_rules \
|
|
--with-{user,group}=root
|
|
|
|
make device-mapper
|
|
make -j1 DESTDIR=$PKG install_device-mapper
|
|
install -m0644 -D udev/12-dm-permissions.rules $PKG/etc/udev/rules.d/12-dm-permissions.rules.example
|
|
|
|
# symlink dmsetup to dmstats and not dmsetup.static
|
|
ln -sf dmsetup $PKG/sbin/dmstats
|
|
|
|
# pkgconfig insists on /lib one or the other way...
|
|
sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
|
|
}
|