core/libdevmapper/Pkgfile

38 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
# Depends on: eudev
2009-07-27 10:21:16 +02:00
name=libdevmapper
2015-07-25 10:24:16 +02:00
version=1.02.103
2015-03-19 13:13:25 +01:00
release=1
2015-07-25 10:24:16 +02:00
source=(http://mirrors.kernel.org/sources.redhat.com/lvm2/LVM2.2.02.126.tgz)
2009-07-27 10:21:16 +02:00
build() {
2015-07-25 10:24:16 +02:00
cd LVM2.2.02.126
2013-08-19 19:35:02 +02:00
# needed for static linking with eudev
export UDEV_LIBS="$(pkg-config --libs --static libudev)"
2013-11-15 14:37:53 +01:00
# needed for static linking
2014-01-25 09:35:44 +01:00
export LIBS="-lpthread -luuid"
2013-11-15 14:37:53 +01:00
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= \
--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
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
}