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>
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# tmux
|
|
#
|
|
################################################################################
|
|
|
|
TMUX_VERSION = 3.3a
|
|
TMUX_SITE = https://github.com/tmux/tmux/releases/download/$(TMUX_VERSION)
|
|
TMUX_LICENSE = ISC
|
|
TMUX_LICENSE_FILES = COPYING
|
|
TMUX_CPE_ID_VALID = YES
|
|
TMUX_DEPENDENCIES = libevent ncurses host-pkgconf
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
TMUX_DEPENDENCIES += systemd
|
|
TMUX_CONF_OPTS += --enable-systemd
|
|
else
|
|
TMUX_CONF_OPTS += --disable-systemd
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_UTF8PROC),y)
|
|
TMUX_DEPENDENCIES += utf8proc
|
|
TMUX_CONF_OPTS += --enable-utf8proc
|
|
else
|
|
TMUX_CONF_OPTS += --disable-utf8proc
|
|
endif
|
|
|
|
# tmux uses custom --enable-static option, instead of standard libtool
|
|
# directive resulting in a build failure with systemd or utf8proc
|
|
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
TMUX_CONF_OPTS += --disable-static
|
|
endif
|
|
|
|
# Add /usr/bin/tmux to /etc/shells otherwise some login tools like dropbear
|
|
# can reject the user connection. See man shells.
|
|
define TMUX_ADD_TMUX_TO_SHELLS
|
|
grep -qsE '^/usr/bin/tmux$$' $(TARGET_DIR)/etc/shells \
|
|
|| echo "/usr/bin/tmux" >> $(TARGET_DIR)/etc/shells
|
|
endef
|
|
TMUX_TARGET_FINALIZE_HOOKS += TMUX_ADD_TMUX_TO_SHELLS
|
|
|
|
$(eval $(autotools-package))
|