use UNIX98 ptys instead of falling back to Berkeley pty search;
original master site and home page are long gone ok espie@
This commit is contained in:
parent
c4506558a5
commit
bcbc7c08a5
@ -1,14 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2011/01/07 20:48:34 rpointel Exp $
|
||||
# $OpenBSD: Makefile,v 1.29 2012/12/08 14:24:37 naddy Exp $
|
||||
COMMENT= enhanced talk that allows for multiple parties
|
||||
|
||||
DISTNAME= ytalk-3.1.1
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
CATEGORIES= net
|
||||
|
||||
MASTER_SITES= http://www.iagora.com/~espel/ytalk/ \
|
||||
ftp://quatramaran.ens.fr/pub/orabidoo/ytalk/
|
||||
|
||||
HOMEPAGE= http://www.iagora.com/~espel/ytalk/ytalk.html
|
||||
MASTER_SITES= ftp://quatramaran.ens.fr/pub/orabidoo/ytalk/
|
||||
|
||||
MAINTAINER= Marc Espie <espie@openbsd.org>
|
||||
|
||||
@ -18,8 +15,8 @@ PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c ncurses
|
||||
|
||||
CONFIGURE_STYLE= gnu dest
|
||||
USE_GROFF = Yes
|
||||
AUTOCONF_VERSION=2.13
|
||||
CONFIGURE_STYLE= autoconf dest
|
||||
|
||||
FLAVORS= no_x11
|
||||
FLAVOR?=
|
||||
|
12
net/ytalk/patches/patch-configure_in
Normal file
12
net/ytalk/patches/patch-configure_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1 2012/12/08 14:24:38 naddy Exp $
|
||||
--- configure.in.orig Fri Dec 7 22:49:58 2012
|
||||
+++ configure.in Fri Dec 7 22:52:31 2012
|
||||
@@ -71,7 +71,7 @@ AC_CHECK_FUNC(select,,AC_MSG_ERROR(Can't compile witho
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
-AC_CHECK_FUNCS(putenv strerror ttyname ptsname grantpt unlockpt)
|
||||
+AC_CHECK_FUNCS(putenv strerror ttyname posix_openpt ptsname grantpt unlockpt)
|
||||
AC_CHECK_FUNCS(setsid tcflush)
|
||||
AC_CHECK_FUNCS(sigprocmask sigsetmask sighold, break)
|
||||
|
15
net/ytalk/patches/patch-exec_c
Normal file
15
net/ytalk/patches/patch-exec_c
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-exec_c,v 1.1 2012/12/08 14:24:38 naddy Exp $
|
||||
--- exec.c.orig Fri Dec 7 22:54:16 2012
|
||||
+++ exec.c Fri Dec 7 22:57:00 2012
|
||||
@@ -100,7 +100,11 @@ getpty(name)
|
||||
/* look for a Solaris/UNIX98-type pseudo-device */
|
||||
|
||||
#ifdef USE_DEV_PTMX
|
||||
+#ifdef HAVE_POSIX_OPENPT
|
||||
+ if ((pty=posix_openpt(O_RDWR|O_NOCTTY)) >= 0)
|
||||
+#else
|
||||
if ((pty=open("/dev/ptmx", O_RDWR)) >= 0)
|
||||
+#endif
|
||||
{
|
||||
/* grantpt() might want to fork/exec! */
|
||||
sigchld = signal(SIGCHLD, SIG_DFL);
|
Loading…
Reference in New Issue
Block a user