core/libdevmapper/Pkgfile

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2009-07-27 10:21:16 +02:00
# Description: Device mapper userspace library
# URL: http://sourceware.org/lvm2/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2017-10-24 12:44:25 +02:00
# Depends on: util-linux
2009-07-27 10:21:16 +02:00
name=libdevmapper
2018-12-08 13:18:09 +01:00
version=1.02.154
2017-11-04 16:43:05 +01:00
release=1
2018-12-08 13:18:09 +01:00
source=(https://mirrors.kernel.org/sourceware/lvm2/LVM2.2.02.183.tgz)
2009-07-27 10:21:16 +02:00
build() {
2018-12-08 13:18:09 +01:00
cd LVM2.2.02.183
2018-06-14 10:07:54 +02:00
# libaio is not needed for libdevmapper
sed 's/libaio.h//' -i configure
2013-11-15 14:37:53 +01:00
2017-04-01 15:13:24 +02:00
CONFIG_SHELL=/bin/bash \
2009-07-27 10:21:16 +02:00
./configure --prefix=/usr \
2013-08-19 19:35:02 +02:00
--exec-prefix= \
--datarootdir=/usr \
--with-udev-prefix= \
--mandir=/usr/share/man \
2013-08-19 19:35:02 +02:00
--disable-readline \
--enable-pkgconfig \
--enable-static_link \
--enable-udev_sync \
--enable-udev_rules \
--with-{user,group}=root
2009-07-27 10:21:16 +02:00
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
2015-08-12 15:16:15 +02:00
# symlink dmsetup to dmstats and not dmsetup.static
ln -sf dmsetup $PKG/sbin/dmstats
2013-08-19 19:35:02 +02:00
# pkgconfig insists on /lib one or the other way...
sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
2009-07-27 10:21:16 +02:00
}