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

Generated by cgit