svn commit: r392394 - in head/sysutils: . reptyr reptyr/files
Kurt Jaeger
pi at FreeBSD.org
Fri Jul 17 18:57:45 UTC 2015
Author: pi
Date: Fri Jul 17 18:57:42 2015
New Revision: 392394
URL: https://svnweb.freebsd.org/changeset/ports/392394
Log:
New port: sysutils/reptyr
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.
WWW: http://github.com/nelhage/reptyr
PR: 200720
Submitted by: Andrey Cherkashin <andoriyu at gmail.com>
Added:
head/sysutils/reptyr/
head/sysutils/reptyr/Makefile (contents, props changed)
head/sysutils/reptyr/distinfo (contents, props changed)
head/sysutils/reptyr/files/
head/sysutils/reptyr/files/patch-Makefile (contents, props changed)
head/sysutils/reptyr/pkg-descr (contents, props changed)
head/sysutils/reptyr/pkg-plist (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Fri Jul 17 17:59:40 2015 (r392393)
+++ head/sysutils/Makefile Fri Jul 17 18:57:42 2015 (r392394)
@@ -806,6 +806,7 @@
SUBDIR += rename
SUBDIR += renameutils
SUBDIR += reoback
+ SUBDIR += reptyr
SUBDIR += respond
SUBDIR += retail
SUBDIR += rfstool
Added: head/sysutils/reptyr/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/reptyr/Makefile Fri Jul 17 18:57:42 2015 (r392394)
@@ -0,0 +1,42 @@
+# Created by: Andrey Cherkashin <andoriyu at gmail.com>
+# $FreeBSD$
+
+PORTNAME= reptyr
+PORTVERSION= 0.6.3a
+CATEGORIES= sysutils
+
+MAINTAINER= andoriyu at gmail.com
+COMMENT= Reparent a running program to a new terminal
+
+LICENSE= MIT
+
+USE_GITHUB= yes
+GH_ACCOUNT= nelhage
+GH_TAGNAME= 6fb15adb4552e170bcd5e648803da83dba57283b
+
+USES= gmake
+
+OPTIONS_DEFINE= BASH
+OPTIONS_SUB= yes
+
+ONLY_FOR_ARCHS= i386 amd64
+
+.include <bsd.port.pre.mk>
+.if ${PORT_OPTIONS:MBASH}
+BUILD_DEPENDS= ${LOCALBASE}/share/bash-completion/bash_completion:${PORTSDIR}/shells/bash-completion
+.endif
+
+BROKEN_FreeBSD_8= Not supported on FreeBSD older than 10.0
+BROKEN_FreeBSD_9= Not supported on FreeBSD older than 10.0
+
+post-install:
+.if ${PORT_OPTIONS:MBASH}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+ ${INSTALL_SCRIPT} ${WRKSRC}/reptyr.bash \
+ ${STAGEDIR}${PREFIX}/etc/bash_completion.d/reptyr
+.endif
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/reptyr
+ ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man1/reptyr.1
+ ${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/fr/man1/reptyr.1
+
+.include <bsd.port.post.mk>
Added: head/sysutils/reptyr/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/reptyr/distinfo Fri Jul 17 18:57:42 2015 (r392394)
@@ -0,0 +1,2 @@
+SHA256 (nelhage-reptyr-0.6.3a-6fb15adb4552e170bcd5e648803da83dba57283b_GH0.tar.gz) = 9ee7983de2f4ab8bb56e3fdbcaad20d03733e75befb34003f95eddaface655f8
+SIZE (nelhage-reptyr-0.6.3a-6fb15adb4552e170bcd5e648803da83dba57283b_GH0.tar.gz) = 28883
Added: head/sysutils/reptyr/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/reptyr/files/patch-Makefile Fri Jul 17 18:57:42 2015 (r392394)
@@ -0,0 +1,23 @@
+--- Makefile.orig 2015-06-05 21:41:48 UTC
++++ Makefile
+@@ -43,7 +43,7 @@ ptrace.o: ptrace.h platform/platform.h $
+ clean:
+ rm -f reptyr $(OBJS) test/victim.o test/victim
+
+-BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null)
++BASHCOMPDIR ?= /usr/local/share/bash-completion/completions
+
+ install: reptyr
+ install -d -m 755 $(DESTDIR)$(BINDIR)
+@@ -52,9 +52,7 @@ install: reptyr
+ install -m 644 reptyr.1 $(DESTDIR)$(MANDIR)/man1/reptyr.1
+ install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1
+ install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1
+- bashcompdir=$(BASHCOMPDIR) ; \
+- test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \
+- install -d -m 755 $(DESTDIR)$$bashcompdir ; \
+- install -m 644 reptyr.bash $(DESTDIR)$$bashcompdir/reptyr
++ install -d -m 755 $(DESTDIR)$(BASHCOMPDIR)
++ install -m 644 reptyr.bash $(DESTDIR)$(BASHCOMPDIR)/reptyr
+
+ .PHONY: PHONY
Added: head/sysutils/reptyr/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/reptyr/pkg-descr Fri Jul 17 18:57:42 2015 (r392394)
@@ -0,0 +1,7 @@
+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.
+
+WWW: http://github.com/nelhage/reptyr
Added: head/sysutils/reptyr/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/reptyr/pkg-plist Fri Jul 17 18:57:42 2015 (r392394)
@@ -0,0 +1,5 @@
+%%BASH%%etc/bash_completion.d/reptyr
+%%BASH%%share/bash-completion/completions/reptyr
+bin/reptyr
+share/man/fr/man1/reptyr.1.gz
+share/man/man1/reptyr.1.gz
More information about the svn-ports-all
mailing list