38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
# Description: Device mapper userspace library
|
|
# URL: http://sourceware.org/lvm2/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: eudev
|
|
|
|
name=libdevmapper
|
|
version=1.02.97
|
|
release=1
|
|
source=(http://mirrors.kernel.org/sources.redhat.com/lvm2/LVM2.2.02.120.tgz)
|
|
|
|
build() {
|
|
cd LVM2.2.02.120
|
|
|
|
# needed for static linking with eudev
|
|
export UDEV_LIBS="$(pkg-config --libs --static libudev)"
|
|
|
|
# needed for static linking
|
|
export LIBS="-lpthread -luuid"
|
|
|
|
./configure --prefix=/usr \
|
|
--exec-prefix= \
|
|
--datarootdir=/usr \
|
|
--with-udev-prefix= \
|
|
--disable-readline \
|
|
--enable-pkgconfig \
|
|
--enable-static_link \
|
|
--enable-udev_sync \
|
|
--enable-udev_rules \
|
|
--with-{user,group}=root
|
|
|
|
make device-mapper
|
|
make DESTDIR=$PKG install_device-mapper
|
|
install -m0644 -D udev/12-dm-permissions.rules $PKG/etc/udev/rules.d/12-dm-permissions.rules.example
|
|
|
|
# pkgconfig insists on /lib one or the other way...
|
|
sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
|
|
}
|