lvm2: cross build support.
This commit is contained in:
parent
4442b3ad03
commit
281b68f164
|
@ -1,17 +1,17 @@
|
|||
# Template file for 'lvm2'
|
||||
pkgname=lvm2
|
||||
version=2.02.98
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc=LVM2.${version}
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-selinux --enable-readline --enable-pkgconfig
|
||||
--enable-fsadm --enable-applib --sbindir=/usr/sbin --libdir=/usr/lib
|
||||
--enable-dmeventd --enable-cmdlib --enable-udev_sync --enable-udev_rules
|
||||
--with-udevdir=/usr/lib/udev/rules.d
|
||||
--with-systemdsystemunitdir=/usr/lib/systemd/system --with-default-pid-dir=/run
|
||||
--with-udevdir=/usr/lib/udev/rules.d --with-default-pid-dir=/run
|
||||
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
||||
--with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm
|
||||
--with-default-locking-dir=/run/lock/lvm --enable-lvmetad"
|
||||
makedepends="pkg-config readline-devel libudev-devel>=183 systemd-devel"
|
||||
makedepends="pkg-config readline-devel libudev-devel>=183"
|
||||
subpackages="liblvm2app liblvm2app-devel device-mapper device-mapper-devel"
|
||||
conf_files="/etc/lvm/lvm.conf"
|
||||
short_desc="Logical Volume Manager 2 utilities"
|
||||
|
@ -25,6 +25,13 @@ make_dirs="
|
|||
/etc/lvm/archive 0755 root root
|
||||
/etc/lvm/backup 0755 root root"
|
||||
|
||||
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
||||
makedepends="pkg-config"
|
||||
crossmakedepends="readline-devel libudev-devel"
|
||||
configure_args="${configure_args} ac_cv_func_malloc_0_nonnull=yes
|
||||
ac_cv_func_realloc_0_nonnull=yes"
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
vinstall ${FILESDIR}/lvm2.tmpfiles 644 usr/lib/tmpfiles.d lvm2.conf
|
||||
vinstall ${FILESDIR}/lvm-monitoring.service 644 usr/lib/systemd/system
|
||||
|
|
Loading…
Reference in New Issue