81 lines
2.5 KiB
Bash
81 lines
2.5 KiB
Bash
# Template file for 'lvm2'
|
|
pkgname=lvm2
|
|
version=2.03.22
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
|
|
--enable-fsadm --enable-dmeventd --enable-cmdlib
|
|
--enable-udev_sync --enable-udev_rules --without-systemd-run
|
|
--with-udevdir=/usr/lib/udev/rules.d --with-default-pid-dir=/run
|
|
--with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm
|
|
--with-default-locking-dir=/run/lock/lvm"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="eudev-libudev-devel libaio-devel libblkid-devel
|
|
readline-devel thin-provisioning-tools"
|
|
depends="thin-provisioning-tools"
|
|
short_desc="Logical Volume Manager 2 utilities"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only, LGPL-2.1-only, BSD-2-Clause"
|
|
homepage="https://sourceware.org/lvm2/"
|
|
changelog="https://abi-laboratory.pro/?view=changelog&l=lvm2&v=${version}"
|
|
distfiles="https://mirrors.kernel.org/sourceware/lvm2/releases/LVM2.${version}.tgz"
|
|
checksum=4c5a6923bd1ace7ce04474608a84937ce053ba91b1ace9f0b0017268e732dc7c
|
|
conf_files="/etc/lvm/*.conf /etc/lvm/profile/*"
|
|
make_dirs="
|
|
/etc/lvm/archive 0755 root root
|
|
/etc/lvm/backup 0755 root root"
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) configure_args+=" --enable-static_link";;
|
|
esac
|
|
|
|
pre_configure() {
|
|
sed -i 's|@BLKID_LIBS@|-lblkid -luuid|g' make.tmpl.in
|
|
}
|
|
|
|
do_check() {
|
|
# requires opening /dev/kmsg which requires root
|
|
:
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/bin
|
|
mv -f ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin/ || true
|
|
vlicense COPYING.BSD
|
|
}
|
|
|
|
device-mapper-devel_package() {
|
|
depends="${makedepends} device-mapper>=${version}_${revision}"
|
|
short_desc="Device Mapper userspace library - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/pkgconfig/devmapper.pc
|
|
vmove usr/lib/pkgconfig/devmapper-event.pc
|
|
vmove usr/include/libdevmapper.h
|
|
vmove usr/include/libdevmapper-event.h
|
|
vmove usr/include/lvm2cmd.h
|
|
vmove usr/lib/liblvm2cmd.so
|
|
vmove "usr/lib/libdevmapper.so"
|
|
vmove "usr/lib/libdevmapper-event.so"
|
|
vmove "usr/lib/libdevmapper-event-lvm2.so"
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) vmove "usr/lib/*.a";;
|
|
esac
|
|
}
|
|
}
|
|
|
|
device-mapper_package() {
|
|
short_desc="Device Mapper userspace library and tools"
|
|
pkg_install() {
|
|
vmove "usr/bin/dm*"
|
|
vmove "usr/lib/libdevmapper*.so.*"
|
|
vmove "usr/lib/liblvm2cmd.so.*"
|
|
vmove "usr/share/man/man8/dm*"
|
|
vmove usr/lib/libdevmapper-event-lvm2?*.so
|
|
vmove usr/lib/device-mapper
|
|
for f in 10-dm 13-dm-disk 95-dm-notify; do
|
|
vmove usr/lib/udev/rules.d/${f}.rules
|
|
done
|
|
vsv dmeventd
|
|
}
|
|
}
|