2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-06-24 04:46:31 +02:00
|
|
|
#
|
|
|
|
# lvm2
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-10-08 03:31:48 +02:00
|
|
|
LVM2_VERSION = 2.02.103
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_SOURCE = LVM2.$(LVM2_VERSION).tgz
|
2011-01-26 11:08:34 +01:00
|
|
|
LVM2_SITE = ftp://sources.redhat.com/pub/lvm2/releases
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_INSTALL_STAGING = YES
|
2013-10-08 03:31:48 +02:00
|
|
|
LVM2_LICENSE = GPLv2 LGPLv2.1
|
|
|
|
LVM2_LICENSE_FILES = COPYING COPYING.LIB
|
2010-12-12 22:53:54 +01:00
|
|
|
|
|
|
|
LVM2_BINS = \
|
|
|
|
dmsetup fsadm lvm lvmconf lvmdump vgimportclone \
|
|
|
|
lvchange lvconvert lvcreate lvdisplay lvextend \
|
|
|
|
lvmchange lvmdiskscan lvmsadc lvmsar lvreduce \
|
|
|
|
lvremove lvrename lvresize lvs lvscan pvchange \
|
|
|
|
pvck pvcreate pvdisplay pvmove pvremove \
|
|
|
|
pvresize pvs pvscan vgcfgbackup vgcfgrestore \
|
|
|
|
vgchange vgck vgconvert vgcreate vgdisplay \
|
|
|
|
vgexport vgextend vgimport vgmerge vgmknodes \
|
|
|
|
vgreduce vgremove vgrename vgs vgscan vgsplit
|
|
|
|
|
|
|
|
# Make sure that binaries and libraries are installed with write
|
|
|
|
# permissions for the owner.
|
2013-01-18 13:08:46 +01:00
|
|
|
LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig
|
2010-12-12 22:53:54 +01:00
|
|
|
|
|
|
|
# LVM2 uses autoconf, but not automake, and the build system does not
|
|
|
|
# take into account the CC passed at configure time.
|
|
|
|
LVM2_MAKE_ENV = CC="$(TARGET_CC)"
|
2009-06-15 15:54:14 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_DEPENDENCIES += readline
|
2009-06-15 15:54:14 +02:00
|
|
|
else
|
|
|
|
# v2.02.44: disable readline usage, or binaries are linked against provider
|
|
|
|
# of "tgetent" (=> ncurses) even if it's not used..
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_CONF_OPT += --disable-readline
|
2009-06-15 15:54:14 +02:00
|
|
|
endif
|
|
|
|
|
2013-11-28 09:29:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),)
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_MAKE_OPT = device-mapper
|
|
|
|
LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install_device-mapper
|
|
|
|
LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install_device-mapper
|
2009-06-15 15:54:14 +02:00
|
|
|
endif
|
|
|
|
|
2013-01-07 11:43:18 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
|
|
|
|
LVM2_CONF_OPT += --enable-applib
|
|
|
|
else
|
|
|
|
LVM2_CONF_OPT += --disable-applib
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|