From patchwork Fri Jul 8 19:38:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Griffin X-Patchwork-Id: 13707 Received: (qmail 68817 invoked by uid 89); 8 Jul 2016 19:39:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Screen, D*fsf.org X-Spam-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 08 Jul 2016 19:39:02 +0000 Received: from localhost ([::1]:47529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLbc2-0007sZ-Pv for patchwork@sourceware.org; Fri, 08 Jul 2016 15:38:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLbbw-0007sI-Rp for guix-devel@gnu.org; Fri, 08 Jul 2016 15:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLbbt-0008NP-JJ for guix-devel@gnu.org; Fri, 08 Jul 2016 15:38:52 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLbbr-0008Lc-7M for guix-devel@gnu.org; Fri, 08 Jul 2016 15:38:49 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8C60520325 for ; Fri, 8 Jul 2016 15:38:36 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute7.internal (MEProxy); Fri, 08 Jul 2016 15:38:36 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ajgrf.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=J1I 9jKRVHY9q2qGdssRK41EVDBQ=; b=ZP6naHWqA2zE9orXsE1Xpd+qpqSfzWlgW1i XsN/RpO2kSj0+82WY0euFwbtK2Wo3TXOFlj5M6Oh18CfjvyJJ5QKzaIQSUvIYu2m gvMc1/tcJua+Gwjxp+dymnaoxNUk4mxmMmCVV2S6HAY4TtMDu+lbp28jQwRpraAy YDXW11Ds= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=J1I9jKRVHY9q2qGdssRK41EVDBQ=; b=b4jFG dU2X44O3WbimjvkjwtYIzozJp4HlNqZMlCm9FmBi9YhHbSGIzEJd/n2VpNQfbM8e vV0datZOb5xLgJrd8SsrDYzNTR47RLUGgJ7e3tncEOPjqy3gYQrSRPk7eUge7KxE QQaPMsP0oq75/qlov4MgxLhH5wz2K1UCofL8j4= Received: by mailuser.nyi.internal (Postfix, from userid 99) id 583B91E379; Fri, 8 Jul 2016 15:38:36 -0400 (EDT) Message-Id: <1468006716.1010694.660917729.687C408B@webmail.messagingengine.com> X-Sasl-Enc: lzzHUPvi1GS4iE4Cpmp67D7BfLfDKHjFP9VUcyj3CL/c 1468006716 From: Alex Griffin To: guix-devel@gnu.org MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface - ajax-22cd3445 Subject: [PATCH] gnu: Add reptyr. Date: Fri, 08 Jul 2016 14:38:36 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" This patch adds reptyr, a tool for reparenting a running program to a new terminal. I put it in screen.scm because it is usually used to move a process into a screen or tmux session. Also somewhat related, I think the file tmux.scm should merge with screen.scm. Thanks, -- Alex Griffin From 8e48e2a27b16215a23ecc224661808b58a6a7c40 Mon Sep 17 00:00:00 2001 From: Alex Griffin Date: Fri, 8 Jul 2016 14:27:32 -0500 Subject: [PATCH] gnu: Add reptyr. * gnu/packages/screen.scm (reptyr): New variable. --- gnu/packages/screen.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/screen.scm b/gnu/packages/screen.scm index a4eefd8..74f3f44 100644 --- a/gnu/packages/screen.scm +++ b/gnu/packages/screen.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2014 Mark H Weaver ;;; Copyright © 2015 Eric Bavier ;;; Copyright © 2016 Efraim Flashner +;;; Copyright © 2016 Alex Griffin ;;; ;;; This file is part of GNU Guix. ;;; @@ -144,3 +145,30 @@ as folding room dividers. The Byobu software includes an enhanced profile, configuration utilities, and system status notifications for the GNU Screen window manager as well as the Tmux terminal multiplexer.") (license gpl3+))) + +(define-public reptyr + (package + (name "reptyr") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/nelhage/reptyr/archive" + "/reptyr-" version ".tar.gz")) + (sha256 + (base32 + "07pfl0rkgm8m3f3jy8r9l2yvnhf8lgllpsk3mh57mhzdxq8fagf7")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:make-flags (list "CC=gcc" + (string-append "PREFIX=" %output)) + #:phases (alist-delete 'configure %standard-phases))) + (home-page "https://github.com/nelhage/reptyr") + (synopsis "Tool for reparenting a running program to a new terminal") + (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.") + (license expat))) -- 2.9.0