Import dtach.
DESCR: dtach is a tiny program that emulates the detach feature of screen, allowing you to run a program in an environment that is protected from the controlling terminal and attach to it later. dtach does not keep track of the contents of the screen, and thus works best with programs that know how to redraw themselves.
This commit is contained in:
parent
6571254a50
commit
3b0835794b
29
misc/dtach/Makefile
Normal file
29
misc/dtach/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/03/05 17:05:36 niallo Exp $
|
||||
|
||||
COMMENT= "tiny program emulating the detach feature of screen"
|
||||
DISTNAME= dtach-0.7
|
||||
CATEGORIES= misc
|
||||
|
||||
HOMEPAGE= http://dtach.sourceforge.net/
|
||||
|
||||
MAINTAINER= Niall O Higgins <niallo@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= c util
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dtach/}
|
||||
CONFIGURE_STYLE= gnu
|
||||
NO_REGRESS= Yes
|
||||
|
||||
ALL_TARGET= dtach
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dtach ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/dtach.1 ${PREFIX}/man/man1/dtach.1
|
||||
|
||||
.include <bsd.port.mk>
|
4
misc/dtach/distinfo
Normal file
4
misc/dtach/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (dtach-0.7.tar.gz) = 9aa11433d5a5b4b9fed271f10102cf6f
|
||||
RMD160 (dtach-0.7.tar.gz) = a85b405a42ce59fa7df2893f2ffdf1b3458096f4
|
||||
SHA1 (dtach-0.7.tar.gz) = 7f163d7bb4db1d266d69a4090bede02128bbca43
|
||||
SIZE (dtach-0.7.tar.gz) = 50900
|
12
misc/dtach/patches/patch-attach_c
Normal file
12
misc/dtach/patches/patch-attach_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-attach_c,v 1.1.1.1 2006/03/05 17:05:36 niallo Exp $
|
||||
--- attach.c.orig Sun Feb 26 01:16:57 2006
|
||||
+++ attach.c Sun Feb 26 01:17:00 2006
|
||||
@@ -59,7 +59,7 @@ connect_socket(char *name)
|
||||
if (s < 0)
|
||||
return -1;
|
||||
sockun.sun_family = AF_UNIX;
|
||||
- strcpy(sockun.sun_path, name);
|
||||
+ strlcpy(sockun.sun_path, name, sizeof(sockun.sun_path));
|
||||
if (connect(s, (struct sockaddr*)&sockun, sizeof(sockun)) < 0)
|
||||
{
|
||||
close(s);
|
20
misc/dtach/patches/patch-master_c
Normal file
20
misc/dtach/patches/patch-master_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-master_c,v 1.1.1.1 2006/03/05 17:05:36 niallo Exp $
|
||||
--- master.c.orig Sun Jul 4 17:07:03 2004
|
||||
+++ master.c Sun Feb 26 01:19:14 2006
|
||||
@@ -17,6 +17,7 @@
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#include "dtach.h"
|
||||
+#define HAVE_OPENPTY
|
||||
|
||||
/* The pty struct - The pty information is stored here. */
|
||||
struct pty
|
||||
@@ -124,7 +125,7 @@ create_socket(char *name)
|
||||
if (s < 0)
|
||||
return -1;
|
||||
sockun.sun_family = AF_UNIX;
|
||||
- strcpy(sockun.sun_path, name);
|
||||
+ strlcpy(sockun.sun_path, name, sizeof(sockun.sun_path));
|
||||
if (bind(s, (struct sockaddr*)&sockun, sizeof(sockun)) < 0)
|
||||
{
|
||||
close(s);
|
5
misc/dtach/pkg/DESCR
Normal file
5
misc/dtach/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
dtach is a tiny program that emulates the detach feature of screen,
|
||||
allowing you to run a program in an environment that is protected from
|
||||
the controlling terminal and attach to it later. dtach does not keep
|
||||
track of the contents of the screen, and thus works best with programs
|
||||
that know how to redraw themselves.
|
3
misc/dtach/pkg/PLIST
Normal file
3
misc/dtach/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/03/05 17:05:36 niallo Exp $
|
||||
bin/dtach
|
||||
@man man/man1/dtach.1
|
Loading…
Reference in New Issue
Block a user