summaryrefslogtreecommitdiff
path: root/misc/pty-redir
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-04-08 20:04:15 +0000
committertron <tron@pkgsrc.org>1999-04-08 20:04:15 +0000
commit5770cd5d43c5f050318316e0da355aff9c2d7e41 (patch)
tree9d392c6e336b5564c3cc6a0673612820f6f235b3 /misc/pty-redir
parent65874c81749c035acfa91f85e08cebe87c500104 (diff)
downloadpkgsrc-5770cd5d43c5f050318316e0da355aff9c2d7e41.tar.gz
Import new "pty-redir" package supplied by Dustin Sallings in PR pkg/7030:
Attach a program's stdio to a pty.
Diffstat (limited to 'misc/pty-redir')
-rw-r--r--misc/pty-redir/Makefile10
-rw-r--r--misc/pty-redir/files/md53
-rw-r--r--misc/pty-redir/patches/patch-aa28
-rw-r--r--misc/pty-redir/patches/patch-ab20
-rw-r--r--misc/pty-redir/pkg/COMMENT1
-rw-r--r--misc/pty-redir/pkg/DESCR2
-rw-r--r--misc/pty-redir/pkg/PLIST2
7 files changed, 66 insertions, 0 deletions
diff --git a/misc/pty-redir/Makefile b/misc/pty-redir/Makefile
new file mode 100644
index 00000000000..307c9371d6b
--- /dev/null
+++ b/misc/pty-redir/Makefile
@@ -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"
diff --git a/misc/pty-redir/files/md5 b/misc/pty-redir/files/md5
new file mode 100644
index 00000000000..9c57551ecc4
--- /dev/null
+++ b/misc/pty-redir/files/md5
@@ -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
diff --git a/misc/pty-redir/patches/patch-aa b/misc/pty-redir/patches/patch-aa
new file mode 100644
index 00000000000..c88661bb4f8
--- /dev/null
+++ b/misc/pty-redir/patches/patch-aa
@@ -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);
+ }
diff --git a/misc/pty-redir/patches/patch-ab b/misc/pty-redir/patches/patch-ab
new file mode 100644
index 00000000000..31d28c59051
--- /dev/null
+++ b/misc/pty-redir/patches/patch-ab
@@ -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)
diff --git a/misc/pty-redir/pkg/COMMENT b/misc/pty-redir/pkg/COMMENT
new file mode 100644
index 00000000000..a13485408cc
--- /dev/null
+++ b/misc/pty-redir/pkg/COMMENT
@@ -0,0 +1 @@
+Attach a program's stdio to a pty.
diff --git a/misc/pty-redir/pkg/DESCR b/misc/pty-redir/pkg/DESCR
new file mode 100644
index 00000000000..ce1ec4f6f02
--- /dev/null
+++ b/misc/pty-redir/pkg/DESCR
@@ -0,0 +1,2 @@
+This is a very simple application which allocates a pty and redirects
+stdio to that pty.
diff --git a/misc/pty-redir/pkg/PLIST b/misc/pty-redir/pkg/PLIST
new file mode 100644
index 00000000000..1df1cd1b871
--- /dev/null
+++ b/misc/pty-redir/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/04/08 20:04:16 tron Exp $
+bin/pty-redir