2020-09-06 11:19:43 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# multipath-tools
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-04-12 11:03:37 +02:00
|
|
|
MULTIPATH_TOOLS_VERSION = 0.8.6
|
2020-11-21 11:44:12 +01:00
|
|
|
MULTIPATH_TOOLS_SITE = $(call github,opensvc,multipath-tools,$(MULTIPATH_TOOLS_VERSION))
|
2021-01-10 09:59:51 +01:00
|
|
|
|
|
|
|
MULTIPATH_TOOLS_LICENSE = \
|
|
|
|
LGPL-2.0 (default), \
|
|
|
|
LGPL-2.1+ (libmpathcmd), \
|
|
|
|
GPL-2.0+ (libmultipath), \
|
|
|
|
GPL-3.0+ (libdmmp)
|
|
|
|
MULTIPATH_TOOLS_LICENSE_FILES = \
|
|
|
|
LICENSES/GPL-2.0 \
|
|
|
|
LICENSES/GPL-3.0 \
|
|
|
|
LICENSES/LGPL-2.0 \
|
|
|
|
LICENSES/LGPL-2.1 \
|
|
|
|
README.md
|
|
|
|
|
2020-09-06 11:19:43 +02:00
|
|
|
MULTIPATH_TOOLS_DEPENDENCIES = lvm2 json-c readline udev liburcu libaio host-pkgconf
|
2021-01-08 18:06:29 +01:00
|
|
|
MULTIPATH_TOOLS_MAKE_OPTS = \
|
|
|
|
LIB="lib" \
|
|
|
|
RUN="run" \
|
|
|
|
OPTFLAGS="" \
|
|
|
|
STACKPROT="" \
|
|
|
|
WARNFLAGS=""
|
2020-09-06 11:19:43 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
MULTIPATH_TOOLS_DEPENDENCIES += systemd
|
|
|
|
MULTIPATH_TOOLS_MAKE_OPTS += ENABLE_SYSTEMD=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
define MULTIPATH_TOOLS_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
|
|
$(MULTIPATH_TOOLS_MAKE_OPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MULTIPATH_TOOLS_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
|
|
|
|
$(MULTIPATH_TOOLS_MAKE_OPTS) DESTDIR="$(TARGET_DIR)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MULTIPATH_TOOLS_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/multipath-tools/S60multipathd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S60multipathd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|