Import new "pty-redir" package supplied by Dustin Sallings in PR pkg/7030:

Attach a program's stdio to a pty.
This commit is contained in:
tron 1999-04-08 20:04:15 +00:00
parent 65874c8174
commit 5770cd5d43
7 changed files with 66 additions and 0 deletions

10
misc/pty-redir/Makefile Normal file
View file

@ -0,0 +1,10 @@
# $NetBSD: Makefile,v 1.1.1.1 1999/04/08 20:04:15 tron Exp $
DISTNAME= pty-redir-0.1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.vein.hu/pub/ssa/contrib/mag/ \
http://bleu.west.spy.net/~dustin/soft/
MAINTAINER= dustin@spy.net
.include "../../mk/bsd.pkg.mk"

3
misc/pty-redir/files/md5 Normal file
View file

@ -0,0 +1,3 @@
$NetBSD: md5,v 1.1.1.1 1999/04/08 20:04:16 tron Exp $
MD5 (pty-redir-0.1.tar.gz) = 2e8ce343022ae4ab87d3e46760953a79

View file

@ -0,0 +1,28 @@
$NetBSD: patch-aa,v 1.1.1.1 1999/04/08 20:04:16 tron Exp $
*** pty-redir.c.orig Sat Feb 20 17:29:59 1999
--- pty-redir.c Sat Feb 20 17:34:14 1999
***************
*** 72,78 ****
return fd;
}
! void main(int argc,char *argv[])
{
int fd;
char a,b;
--- 72,78 ----
return fd;
}
! int main(int argc,char *argv[])
{
int fd;
char a,b;
***************
*** 106,109 ****
--- 106,110 ----
exit(-2);
}
}
+ exit(0);
}

View file

@ -0,0 +1,20 @@
$NetBSD: patch-ab,v 1.1.1.1 1999/04/08 20:04:16 tron Exp $
*** Makefile.orig Sat Feb 20 18:44:40 1999
--- Makefile Sat Feb 20 18:55:40 1999
***************
*** 1,10 ****
--- 1,14 ----
CFLAGS= -Wall
PROG= pty-redir
+ DEST=/usr/pkg/bin/
all: $(PROG)
clean:
rm -f *.o *~
+
+ install: $(PROG)
+ install -c -g wheel -m 0755 -o root -s $(PROG) $(DEST)
distclean: clean
rm -f $(PROG)

View file

@ -0,0 +1 @@
Attach a program's stdio to a pty.

2
misc/pty-redir/pkg/DESCR Normal file
View file

@ -0,0 +1,2 @@
This is a very simple application which allocates a pty and redirects
stdio to that pty.

2
misc/pty-redir/pkg/PLIST Normal file
View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 1999/04/08 20:04:16 tron Exp $
bin/pty-redir