2020-10-17 16:30:06 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=reptyr
|
2023-08-13 09:50:51 +00:00
|
|
|
PKG_VERSION:=0.10.0
|
|
|
|
PKG_RELEASE:=1
|
2020-10-17 16:30:06 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/nelhage/reptyr/archive/
|
2023-08-13 09:50:51 +00:00
|
|
|
PKG_HASH:=c6ffbc34a511ac00d072219bda30699e51f2f4eb483cbae9e32e981d49e8b380
|
2020-10-17 16:30:06 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
2023-09-04 09:00:32 +00:00
|
|
|
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
|
2020-10-17 16:30:06 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/reptyr
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Tool for reparenting running programs
|
|
|
|
URL:=https://github.com/nelhage/reptyr
|
2021-03-21 01:39:46 +00:00
|
|
|
DEPENDS:=@!(arc||mips||mipsel||mips64||mips64el)
|
2020-10-17 16:30:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/reptyr/description
|
|
|
|
reptyr is a utility for taking an existing running program and attaching it
|
|
|
|
to a new terminal. Started a long-running process over ssh, but have to
|
|
|
|
leave and don't want to interrupt it? Just start a screen, use reptyr to
|
|
|
|
grab it, and then kill the ssh session and head on home.
|
|
|
|
endef
|
|
|
|
|
|
|
|
MAKE_FLAGS+= \
|
2022-01-26 19:20:46 +00:00
|
|
|
UNAME_S=Linux \
|
2020-10-17 16:30:06 +00:00
|
|
|
PREFIX=/usr
|
|
|
|
|
|
|
|
define Package/reptyr/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/reptyr $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,reptyr))
|