kumquat-buildroot/package/tmux/tmux.mk

22 lines
724 B
Makefile
Raw Normal View History

################################################################################
#
# tmux
#
################################################################################
TMUX_VERSION = 2.6
TMUX_SITE = https://github.com/tmux/tmux/releases/download/$(TMUX_VERSION)
TMUX_LICENSE = ISC
TMUX_LICENSE_FILES = README
TMUX_DEPENDENCIES = libevent ncurses host-pkgconf
# 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))