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.

44 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=reptyr
  3. PKG_VERSION:=0.8.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/nelhage/reptyr/archive/
  7. PKG_HASH:=4b470ed2a0d25fed591739fa9613ce7ad3d0377891eb56cbe914e3c85db46ca8
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
  10. PKG_LICENSE:=MIT
  11. PKG_LICENSE_FILES:=COPYING
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_INSTALL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/reptyr
  16. SECTION:=utils
  17. CATEGORY:=Utilities
  18. TITLE:=Tool for reparenting running programs
  19. URL:=https://github.com/nelhage/reptyr
  20. DEPENDS:=@!(arc||mips)
  21. endef
  22. define Package/reptyr/description
  23. reptyr is a utility for taking an existing running program and attaching it
  24. to a new terminal. Started a long-running process over ssh, but have to
  25. leave and don't want to interrupt it? Just start a screen, use reptyr to
  26. grab it, and then kill the ssh session and head on home.
  27. endef
  28. MAKE_FLAGS+= \
  29. PREFIX=/usr
  30. define Package/reptyr/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/reptyr $(1)/usr/bin/
  33. endef
  34. $(eval $(call BuildPackage,reptyr))