You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=tmate
  6. PKG_VERSION:=2.4.0
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/tmate-io/tmate/tar.gz/$(PKG_VERSION)?
  10. PKG_HASH:=62b61eb12ab394012c861f6b48ba0bc04ac8765abca13bdde5a4d9105cb16138
  11. PKG_LICENSE:=ISC
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  14. PKG_FIXUP:=autoreconf
  15. PKG_BUILD_DEPENDS:=ncurses
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/tmate
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=SSH
  23. TITLE:=Instant Terminal Sharing
  24. URL:=https://tmate.io
  25. DEPENDS:=+libevent2 +libncurses +libpthread +libssh +msgpack-c +terminfo
  26. endef
  27. define Package/tmate/description
  28. Tmate is a fork of tmux. It provides an instant pairing solution.
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --oldincludedir="$(STAGING_DIR)"
  32. CONFIGURE_VARS+= \
  33. LIBSSH_CFLAGS="-I$(STAGING_DIR)/usr/include" \
  34. LIBSSH_LIBS="-lssh"
  35. define Package/tmate/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tmate $(1)/usr/bin/tmate
  38. endef
  39. $(eval $(call BuildPackage,tmate))