Pkgfile (993B)
1 # Description: Userspace toolset for logical volume management 2 # URL: http://sourceware.org/lvm2/ 3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com 4 # Depends on: libdevmapper libaio 5 6 name=lvm2 7 version=2.03.33 8 release=1 9 source=(https://mirrors.kernel.org/sourceware/lvm2/LVM2.$version.tgz 10 fix-stdio-usage.patch) 11 12 build() { 13 cd LVM2.$version 14 15 patch -Np1 -i ../fix-stdio-usage.patch 16 17 # needed for static linking 18 export LIBS="-lpthread -luuid -lm" 19 20 CONFIG_SHELL=/bin/bash \ 21 ./configure \ 22 --prefix=/usr \ 23 --exec-prefix= \ 24 --with-libexecdir=/usr/lib/lvm2 \ 25 --datarootdir=/usr \ 26 --mandir=/usr/share/man \ 27 --with-udev-prefix= \ 28 --disable-readline \ 29 --disable-selinux \ 30 --enable-pkgconfig \ 31 --enable-static_link \ 32 --enable-udev_sync \ 33 --enable-udev_rules \ 34 --with-{user,group}=root 35 36 make 37 make DESTDIR=$PKG install_lvm2 38 39 install -d -m 0700 $PKG/etc/lvm/{archive,backup,cache} 40 install -d -m 1777 $PKG/var/lock 41 install -d -m 0700 $PKG/var/lock/lvm 42 }