c19cca0452
Now that we document _CPE_ID_VALID, and that it shall be used instead of setting a default value to one of the other _CPE_ID_* variables, change all of the existing packages to use it, to avoid any error when we later extend check-package to validate the sanity ofthe _CPE_ID_* variables. Mechanical change done within the reference container, running the new check in check-package, to report the CPE_ID errors: $ make check-package 2>/dev/null \ |awk '{ split($(1), a, ":"); fname = a[1] split($(2), a, "'\''"); val = a[2] new_var = $(8); gsub("_CPE_ID_.*", "_CPE_ID_VALID", new_var) printf("%s %s %s %s\n", fname, $(8), val, new_var) }' \ |while read fname var val new_var; do sed -r -i -e "s/${var}[[:space:]]*=[[:space:]]*${val}/${new_var} = YES/" "${fname}" done $ git diff -I'CPE_ID_(VENDOR|VALID)' [empty] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# dosfstools
|
|
#
|
|
################################################################################
|
|
|
|
DOSFSTOOLS_VERSION = 4.2
|
|
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
|
|
DOSFSTOOLS_LICENSE = GPL-3.0+
|
|
DOSFSTOOLS_LICENSE_FILES = COPYING
|
|
DOSFSTOOLS_CPE_ID_VALID = YES
|
|
DOSFSTOOLS_SELINUX_MODULES = fstools
|
|
DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/
|
|
HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
DOSFSTOOLS_CONF_OPTS += --with-udev
|
|
DOSFSTOOLS_DEPENDENCIES += udev
|
|
else
|
|
DOSFSTOOLS_CONF_OPTS += --without-udev
|
|
endif
|
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
DOSFSTOOLS_CONF_OPTS += LIBS="-liconv"
|
|
DOSFSTOOLS_DEPENDENCIES += libiconv
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),y)
|
|
define DOSFSTOOLS_INSTALL_FATLABEL
|
|
$(INSTALL) -D -m 0755 $(@D)/src/fatlabel $(TARGET_DIR)/sbin/fatlabel
|
|
ln -sf fatlabel $(TARGET_DIR)/sbin/dosfslabel
|
|
endef
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),y)
|
|
define DOSFSTOOLS_INSTALL_FSCK_FAT
|
|
$(INSTALL) -D -m 0755 $(@D)/src/fsck.fat $(TARGET_DIR)/sbin/fsck.fat
|
|
ln -sf fsck.fat $(TARGET_DIR)/sbin/fsck.vfat
|
|
ln -sf fsck.fat $(TARGET_DIR)/sbin/fsck.msdos
|
|
ln -sf fsck.fat $(TARGET_DIR)/sbin/dosfsck
|
|
endef
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),y)
|
|
define DOSFSTOOLS_INSTALL_MKFS_FAT
|
|
$(INSTALL) -D -m 0755 $(@D)/src/mkfs.fat $(TARGET_DIR)/sbin/mkfs.fat
|
|
ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkdosfs
|
|
ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkfs.msdos
|
|
ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkfs.vfat
|
|
endef
|
|
endif
|
|
|
|
define DOSFSTOOLS_INSTALL_TARGET_CMDS
|
|
$(call DOSFSTOOLS_INSTALL_FATLABEL)
|
|
$(call DOSFSTOOLS_INSTALL_FSCK_FAT)
|
|
$(call DOSFSTOOLS_INSTALL_MKFS_FAT)
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|