Index: head/misc/ttyrec/Makefile =================================================================== --- head/misc/ttyrec/Makefile (revision 399406) +++ head/misc/ttyrec/Makefile (revision 399407) @@ -1,37 +1,30 @@ # Created by: Ying-Chieh Liao # $FreeBSD$ PORTNAME= ttyrec PORTVERSION= 1.0.8 PORTREVISION= 2 CATEGORIES= misc MASTER_SITES= http://0xcc.net/ttyrec/ MAINTAINER= ports@FreeBSD.org COMMENT= Tty recorder -MANPAGE= ttyplay.1 ttyrec.1 -BINS= ttyplay ttyrec ttytime +LICENSE= BSD4CLAUSE OPTIONS_DEFINE= OPENPTY OPENPTY_DESC= Use openpty instead PLIST_FILES= bin/ttyplay bin/ttyrec bin/ttytime \ man/man1/ttyplay.1.gz man/man1/ttyrec.1.gz -.include +OPENPTY_CFLAGS= -DHAVE_openpty -lutil post-patch: - @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" \ - ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" ${WRKSRC}/Makefile do-install: - ${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${MANPAGE:S,^,${WRKSRC}/,} \ - ${STAGEDIR}${MANPREFIX}/man/man1 - -.if ${PORT_OPTIONS:MOPENPTY} -CFLAGS+= -DHAVE_openpty -lutil -.endif + cd ${WRKSRC}/ && ${INSTALL_PROGRAM} ttyplay ttyrec ttytime ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC}/ && ${INSTALL_MAN} ttyplay.1 ttyrec.1 ${STAGEDIR}${MANPREFIX}/man/man1/ .include Index: head/misc/ttyrec/files/patch-ttyrec.c =================================================================== --- head/misc/ttyrec/files/patch-ttyrec.c (revision 399406) +++ head/misc/ttyrec/files/patch-ttyrec.c (revision 399407) @@ -1,14 +1,14 @@ ---- ttyrec.c.orig Tue Jun 4 21:52:00 2002 -+++ ttyrec.c Tue Jun 4 21:52:12 2002 +--- ttyrec.c.orig 2002-06-04 21:52:00 UTC ++++ ttyrec.c @@ -202,11 +202,7 @@ void finish() { -#if defined(SVR4) int status; -#else /* !SVR4 */ - union wait status; -#endif /* !SVR4 */ register int pid; register int die = 0; Index: head/misc/ttyrec/pkg-descr =================================================================== --- head/misc/ttyrec/pkg-descr (revision 399406) +++ head/misc/ttyrec/pkg-descr (revision 399407) @@ -1,7 +1,6 @@ -ttyrec is a tty recorder. Recorded data can be played back with the -included ttyplay command. ttyrec is just a derivative of script -command for recording timing information with microsecond accuracy -as well. It can record emacs -nw, vi, lynx, or any programs running -on tty. +ttyrec is a tty recorder. Recorded data can be played back with the included +ttyplay command. ttyrec is just a derivative of script command for recording +timing information with microsecond accuracy as well. It can record emacs -nw, +vi, lynx, or any programs running on tty. WWW: http://0xcc.net/ttyrec/index.html.en