reptyr: add package
authorJosef Schlehofer <redacted>
Sat, 17 Oct 2020 16:30:06 +0000 (18:30 +0200)
committerJosef Schlehofer <redacted>
Sat, 17 Oct 2020 20:24:41 +0000 (22:24 +0200)
Signed-off-by: Josef Schlehofer <redacted>
utils/reptyr/Makefile [new file with mode: 0644]

diff --git a/utils/reptyr/Makefile b/utils/reptyr/Makefile
new file mode 100644 (file)
index 0000000..4a9df64
--- /dev/null
@@ -0,0 +1,44 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=reptyr
+PKG_VERSION:=0.8.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/nelhage/reptyr/archive/
+PKG_HASH:=4b470ed2a0d25fed591739fa9613ce7ad3d0377891eb56cbe914e3c85db46ca8
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
+
+PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
+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
+  DEPENDS:=@!(arc||mips)
+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+= \
+       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))
git clone https://git.99rst.org/PROJECT