From abb159a0ebb35e62192000df288aab494f35330d Mon Sep 17 00:00:00 2001 From: Steven Wallace Date: Tue, 3 Jan 1995 08:48:45 +0000 Subject: xpipeman - connect the pipes to stop the leaks (X Windows) --- games/xpipeman/Makefile | 17 +++++++ games/xpipeman/files/patch-aa | 91 ++++++++++++++++++++++++++++++++++++ games/xpipeman/files/patch-ab | 15 ++++++ games/xpipeman/files/xpipescores | 20 ++++++++ games/xpipeman/pkg-comment | 1 + games/xpipeman/pkg-descr | 4 ++ games/xpipeman/pkg-plist | 7 +++ games/xpipeman/scripts/pre-configure | 7 +++ 8 files changed, 162 insertions(+) create mode 100644 games/xpipeman/Makefile create mode 100644 games/xpipeman/files/patch-aa create mode 100644 games/xpipeman/files/patch-ab create mode 100644 games/xpipeman/files/xpipescores create mode 100644 games/xpipeman/pkg-comment create mode 100644 games/xpipeman/pkg-descr create mode 100644 games/xpipeman/pkg-plist create mode 100644 games/xpipeman/scripts/pre-configure diff --git a/games/xpipeman/Makefile b/games/xpipeman/Makefile new file mode 100644 index 000000000000..32b3184e969d --- /dev/null +++ b/games/xpipeman/Makefile @@ -0,0 +1,17 @@ +# New ports collection makefile for: xpipeman +# Date created: 2 Jan 1995 +# Whom: swallace +# +# $Id: Makefile,v 1.3 1994/12/31 04:17:52 swallace Exp $ +# + +DISTNAME= xpipeman +MASTER_SITES= ftp://iraun1.ira.uka.de/pub/x11/ +EXTRACT_SUFX= .tar.Z +USE_IMAKE= yes +INSTALL_MANPAGES= yes + +.include + +install: + install -c -g games -m 664 ${.CURDIR}/files/xpipescores /usr/X11R6/lib/X11 diff --git a/games/xpipeman/files/patch-aa b/games/xpipeman/files/patch-aa new file mode 100644 index 000000000000..00e13a694bee --- /dev/null +++ b/games/xpipeman/files/patch-aa @@ -0,0 +1,91 @@ +*** score.c.orig Fri Oct 11 11:35:59 1991 +--- score.c Mon Jan 2 23:46:28 1995 +*************** +*** 52,57 **** +--- 52,58 ---- + + #include /* brings in */ + #include ++ #include + #include "xpipeman.h" + + /*----------------------------------------------------------------------*/ +*************** +*** 63,69 **** + + static SCORE scores[MAXSCORES]; + +! void show_scores(), + new_high_score(), + load_scores(), + write_out_scores(); +--- 64,70 ---- + + static SCORE scores[MAXSCORES]; + +! static void show_scores(), + new_high_score(), + load_scores(), + write_out_scores(); +*************** +*** 106,117 **** + #ifndef SYSV + flock(scorefile->_file, LOCK_EX); + #endif +! while( fgets(scores[i].score,6,scorefile) /* get score */ +! && fgets(scores[i].name,26,scorefile) /* get name */ +! && fgetc(scorefile)) /* and newline */ +! { +! i++; +! if( i > MAXSCORES ) break; + } + } + +--- 107,119 ---- + #ifndef SYSV + flock(scorefile->_file, LOCK_EX); + #endif +! for(i = 0; i < MAXSCORES; i++) { +! if(!fgets(scores[i].score, 6, scorefile)) /* get score */ +! break; +! if(!fgets(scores[i].name, 26, scorefile)) /* get name */ +! break; +! if(!fgetc(scorefile)) /* and newline */ +! break; + } + } + +*************** +*** 190,196 **** + + + /*ARGSUSED*/ +! static XtCallbackProc + popdown_callback(w, closure, call_data) + Widget w; + caddr_t closure; +--- 192,198 ---- + + + /*ARGSUSED*/ +! static void + popdown_callback(w, closure, call_data) + Widget w; + caddr_t closure; +*************** +*** 249,255 **** + show_scores() + { + int i; +! char tmp_str[31]; + Arg tmp_arg; + + for(i = 0;i${WRKSRC}/Imakefile || exit 1; +echo "MANSUFFIX=6" >>${WRKSRC}/Imakefile || exit 1 +echo "INSTPGMFLAGS = -s -g games -m 2755" >>${WRKSRC}/Imakefile || exit 1 + +exit 0 -- cgit v1.2.3