Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+7 -3
View File
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.13 2013/04/06 03:45:18 rodent Exp $
# $NetBSD: Makefile,v 1.15 2016/05/31 08:13:45 leot Exp $
DISTNAME= ttyrec-1.0.8
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://0xcc.net/ttyrec/
@@ -9,10 +10,13 @@ HOMEPAGE= http://0xcc.net/ttyrec/
COMMENT= Tty recorder
LICENSE= original-bsd
CFLAGS.SunOS+= -DSVR4
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
CFLAGS+= -DSVR4
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
CFLAGS+= -DHAVE_openpty
LDFLAGS+= -lutil
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+5 -2
View File
@@ -1,6 +1,9 @@
$NetBSD: distinfo,v 1.4 2006/09/09 13:48:02 obache Exp $
$NetBSD: distinfo,v 1.7 2016/05/31 08:13:45 leot Exp $
SHA1 (ttyrec-1.0.8.tar.gz) = 645f1e2a1ac4b2a32ad314711fb3da014ce9684d
RMD160 (ttyrec-1.0.8.tar.gz) = f7538fa742d1c1e07b8b48f3fa79cfcf13ca8044
SHA512 (ttyrec-1.0.8.tar.gz) = b7f6f4c78c5148dacc7058534d89f13fcf333ee9e099d4475135e9c15a99a8aed72bf4bd5954652a6bb044d11ad35b4cb8d07208a5349c79c811f68fde7e8611
Size (ttyrec-1.0.8.tar.gz) = 8528 bytes
SHA1 (patch-aa) = 92efba673741631b4e6c5fff09039468acd75198
SHA1 (patch-aa) = 319272a146906f9a65848e002532b70f5cf60440
SHA1 (patch-io.h) = 65abb06b152acc9cfcf2dd9761986dfe84eecc68
SHA1 (patch-ttyrec.c) = fb50614e09a6e456ab6c07adeb6449b1f59e0c04
+22 -2
View File
@@ -1,6 +1,9 @@
$NetBSD: patch-aa,v 1.2 2006/09/09 13:48:02 obache Exp $
$NetBSD: patch-aa,v 1.3 2016/05/31 08:13:45 leot Exp $
--- Makefile.orig 2006-06-12 00:52:50.000000000 +0900
- Do not force CC or CFLAGS
- Honor LDFLAGS
--- Makefile.orig 2006-06-11 15:52:50.000000000 +0000
+++ Makefile
@@ -1,5 +1,3 @@
-CC = gcc
@@ -8,3 +11,20 @@ $NetBSD: patch-aa,v 1.2 2006/09/09 13:48:02 obache Exp $
VERSION = 1.0.8
TARGET = ttyrec ttyplay ttytime
@@ -10,13 +8,13 @@ DIST = ttyrec.c ttyplay.c ttyrec.h io.c
all: $(TARGET)
ttyrec: ttyrec.o io.o
- $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o ttyrec ttyrec.o io.o
ttyplay: ttyplay.o io.o
- $(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o ttyplay ttyplay.o io.o
ttytime: ttytime.o io.o
- $(CC) $(CFLAGS) -o ttytime ttytime.o io.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o ttytime ttytime.o io.o
clean:
rm -f *.o $(TARGET) ttyrecord *~
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-io.h,v 1.1 2016/05/31 08:13:45 leot Exp $
Add set_progname() prototype.
--- io.h.orig 2006-06-11 15:52:50.000000000 +0000
+++ io.h
@@ -5,6 +5,7 @@
int read_header (FILE *fp, Header *h);
int write_header (FILE *fp, Header *h);
+void set_progname (const char *name);
FILE* efopen (const char *path, const char *mode);
int edup (int oldfd);
int edup2 (int oldfd, int newfd);
+46
View File
@@ -0,0 +1,46 @@
$NetBSD: patch-ttyrec.c,v 1.2 2016/05/31 08:13:45 leot Exp $
- add <signal.h> (needed by kill(2))
- use <util.h> on NetBSD, OpenBSD and Mac OS X
- remove union wait
--- ttyrec.c.orig 2006-06-11 15:52:50.000000000 +0000
+++ ttyrec.c
@@ -49,6 +49,7 @@
#include <sys/time.h>
#include <sys/file.h>
#include <sys/signal.h>
+#include <signal.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
@@ -71,8 +72,12 @@
#define _(FOO) FOO
#ifdef HAVE_openpty
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+#include <util.h>
+#else
#include <libutil.h>
#endif
+#endif
#if defined(SVR4) && !defined(CDEL)
#if defined(_POSIX_VDISABLE)
@@ -203,15 +208,11 @@ doinput()
void
finish()
{
-#if defined(SVR4)
int status;
-#else /* !SVR4 */
- union wait status;
-#endif /* !SVR4 */
register int pid;
register int die = 0;
- while ((pid = wait3((int *)&status, WNOHANG, 0)) > 0)
+ while ((pid = wait3(&status, WNOHANG, 0)) > 0)
if (pid == child)
die = 1;