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.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=tmate-ssh-server
  3. PKG_VERSION:=511fd2bd852464e76824279609a34ee93fe148a4
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/tmate-io/tmate-ssh-server/tar.gz/$(PKG_VERSION)?
  7. PKG_HASH:=68602496ca6a17ea80f5be53eba047897ac714c7cdfcb3bcdc12c56b8f3c3b45
  8. PKG_LICENSE:=ISC
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
  11. PKG_FIXUP:=autoreconf
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_INSTALL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/tmate-ssh-server
  16. SECTION:=net
  17. CATEGORY:=Network
  18. TITLE:=Instant Terminal Sharing Server
  19. URL:=https://tmate.io
  20. DEPENDS:=+libevent2 +libncurses +libpthread +libssh +msgpack-c +terminfo +openssh-keygen
  21. endef
  22. define Package/tmate-ssh-server/description
  23. tmate-ssh-server is the server side part of tmate.io.
  24. endef
  25. CONFIGURE_VARS+= \
  26. LIBSSH_CFLAGS="-I$(STAGING_DIR)/usr/include" \
  27. LIBSSH_LIBS="-lssh"
  28. TARGET_CFLAGS+= \
  29. -D_GNU_SOURCE \
  30. define Package/tmate-ssh-server/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tmate-ssh-server $(1)/usr/bin/tmate-ssh-server
  33. $(INSTALL_DIR) $(1)/etc/init.d
  34. $(INSTALL_BIN) ./files/tmate-ssh-server.init $(1)/etc/init.d/tmate-ssh-server
  35. $(INSTALL_DIR) $(1)/etc/config
  36. $(INSTALL_DATA) ./files/tmate-ssh-server.config $(1)/etc/config/tmate-ssh-server
  37. endef
  38. $(eval $(call BuildPackage,tmate-ssh-server))