eb251b3008
The application library (liblvm2app) has been dropped since version 2.03.00 and0d22b58172
It should be noted that lvm2 support must be dropped from udisks until a bump to at least version 2.7.0 and4c0709a893
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: - slightly expand help text for legacy BR2_PACKAGE_UDISKS_LVM2 ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
80 lines
2.2 KiB
Makefile
80 lines
2.2 KiB
Makefile
################################################################################
|
|
#
|
|
# lvm2
|
|
#
|
|
################################################################################
|
|
|
|
LVM2_VERSION = 2.03.12
|
|
LVM2_SOURCE = LVM2.$(LVM2_VERSION).tgz
|
|
LVM2_SITE = http://sources.redhat.com/pub/lvm2
|
|
LVM2_INSTALL_STAGING = YES
|
|
LVM2_LICENSE = GPL-2.0, LGPL-2.1
|
|
LVM2_LICENSE_FILES = COPYING COPYING.LIB
|
|
LVM2_CPE_ID_PRODUCT = redhat
|
|
|
|
# Make sure that binaries and libraries are installed with write
|
|
# permissions for the owner. We disable NLS because it's broken, and
|
|
# the package anyway doesn't provide any translation files.
|
|
LVM2_CONF_OPTS += \
|
|
--enable-write_install \
|
|
--enable-pkgconfig \
|
|
--enable-cmdlib \
|
|
--enable-dmeventd \
|
|
--disable-nls \
|
|
--with-symvers=no
|
|
|
|
LVM2_DEPENDENCIES += host-pkgconf libaio
|
|
|
|
# LVM2 uses autoconf, but not automake, and the build system does not
|
|
# take into account the toolchain passed at configure time.
|
|
LVM2_MAKE_ENV = $(TARGET_CONFIGURE_OPTS)
|
|
|
|
# package/readline is GPL-3.0+, so not license compatible
|
|
LVM2_CONF_OPTS += --disable-readline
|
|
|
|
LVM2_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR)
|
|
LVM2_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR)
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LVM2_CONF_OPTS += --enable-udev_rules
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
LVM2_CONF_OPTS += --enable-selinux
|
|
LVM2_DEPENDENCIES += libselinux
|
|
else
|
|
LVM2_CONF_OPTS += --disable-selinux
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),)
|
|
LVM2_MAKE_OPTS = device-mapper
|
|
LVM2_INSTALL_STAGING_OPTS += install_device-mapper
|
|
LVM2_INSTALL_TARGET_OPTS += install_device-mapper
|
|
else
|
|
LVM2_INSTALL_STAGING_OPTS += install
|
|
LVM2_INSTALL_TARGET_OPTS += install
|
|
endif
|
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
LVM2_INSTALL_TARGET_OPTS += install_systemd_units install_systemd_generators
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
|
|
LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
|
|
endif
|
|
|
|
HOST_LVM2_DEPENDENCIES = host-pkgconf host-libaio
|
|
HOST_LVM2_CONF_OPTS = \
|
|
--enable-write_install \
|
|
--enable-pkgconfig \
|
|
--disable-cmdlib \
|
|
--disable-dmeventd \
|
|
--disable-fsadm \
|
|
--disable-readline \
|
|
--disable-selinux
|
|
HOST_LVM2_MAKE_OPTS = device-mapper
|
|
HOST_LVM2_INSTALL_OPTS = install_device-mapper
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|