From mark@aeris.kyne.com.au  Fri Apr  6 02:58:40 2001
Return-Path: <mark@aeris.kyne.com.au>
Received: from hamster.kyne.com.au (kyneso.lnk.telstra.net [139.130.137.83])
	by hub.freebsd.org (Postfix) with ESMTP id 2A7CE37B443
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Apr 2001 02:58:37 -0700 (PDT)
	(envelope-from mark@aeris.kyne.com.au)
Received: from aeris.kyne.com.au (root@aeris.kyne.com.au [203.38.180.166])
	by hamster.kyne.com.au (8.9.3/8.9.3) with ESMTP id TAA11007
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 6 Apr 2001 19:28:34 +0930
Received: (from mark@localhost)
	by aeris.kyne.com.au (8.11.1/8.11.1) id f36A1w951794;
	Fri, 6 Apr 2001 19:31:58 +0930 (CST)
	(envelope-from mark)
Message-Id: <200104061001.f36A1w951794@aeris.kyne.com.au>
Date: Fri, 6 Apr 2001 19:31:58 +0930 (CST)
From: mark@kyne.com.au
Reply-To: mark@kyne.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port: games/xrot: A falling ball puzzle game for X
X-Send-Pr-Version: 3.2

>Number:         26377
>Category:       ports
>Synopsis:       New port: games/xrot: A falling ball puzzle game for X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 06 03:00:02 PDT 2001
>Closed-Date:    Fri Apr 6 22:50:28 PDT 2001
>Last-Modified:  Fri Apr 06 22:51:37 PDT 2001
>Originator:     Mark Pulford
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
none
>Environment:

>Description:

A falling ball puzzle game for X. Rotate the playfield and use gravity
to guide a ball around a maze toward the goal.

Could whoever commits this port add the distfile to their freefall webspace and
update the MASTER_SITES? Xrot is a great little game, but its fast becoming
extinct ;(

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	xrot
#	xrot/distinfo
#	xrot/Makefile
#	xrot/files
#	xrot/files/patch-Imakefile
#	xrot/files/patch-record.c
#	xrot/pkg-install
#	xrot/pkg-comment
#	xrot/pkg-descr
#	xrot/pkg-plist
#
echo c - xrot
mkdir -p xrot > /dev/null 2>&1
echo x - xrot/distinfo
sed 's/^X//' >xrot/distinfo << 'END-of-xrot/distinfo'
XMD5 (xrot-1.3.2.tar.gz) = 1230f2fe9f31db4ac47eac4ffe116db4
END-of-xrot/distinfo
echo x - xrot/Makefile
sed 's/^X//' >xrot/Makefile << 'END-of-xrot/Makefile'
X# New ports collection makefile for:	xrot
X# Date created:			Apr 2, 2001
X# Whom:				Mark Pulford <mark@kyne.com.au>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xrot
XPORTVERSION=	1.3.2
XCATEGORIES=	games
XMASTER_SITES=	ftp://ftp.kobe-u.ac.jp/pub/Linux/packages/Vine/VinePlus/1.1/JG-0.9.1/sources/
X
XMAINTAINER=	mark@kyne.com.au
X
XWRKSRC=		${WRKDIR}/xrot
XUSE_IMAKE=	yes
X
Xdo-install:
X		${INSTALL_PROGRAM} ${WRKSRC}/xrot ${PREFIX}/bin
X		${CHOWN} root.games ${PREFIX}/bin/xrot
X		${CHMOD} g+s ${PREFIX}/bin/xrot
X		${SH} pkg-install ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.mk>
END-of-xrot/Makefile
echo c - xrot/files
mkdir -p xrot/files > /dev/null 2>&1
echo x - xrot/files/patch-Imakefile
sed 's/^X//' >xrot/files/patch-Imakefile << 'END-of-xrot/files/patch-Imakefile'
X--- Imakefile.orig	Sat Jul  4 11:05:00 1998
X+++ Imakefile	Fri Apr  6 18:44:24 2001
X@@ -32,8 +32,8 @@
X 
X # NORECORD = -DNOREC
X 
X-RECORDDIR = /usr/local/games/lib/xrot
X-RECORDFILE = xrot_record
X+RECORDDIR = /var/games
X+RECORDFILE = xrot.scores
X 
X #------ secure RECORD file -------
X 
X@@ -62,7 +62,6 @@
X 
X #---------------------------------------------------------------
X 
X-CC = gcc
X DEPLIBS = $(DEPXLIB)
X LOCAL_LIBRARIES = $(XLIB) $(XPMLIB) -lm
X RECFLAGS = -DRECDIR=\"$(RECORDDIR)\" -DRECFILE=\"$(RECORDFILE)\" 
END-of-xrot/files/patch-Imakefile
echo x - xrot/files/patch-record.c
sed 's/^X//' >xrot/files/patch-record.c << 'END-of-xrot/files/patch-record.c'
X--- record.c.orig	Fri Apr  6 18:36:55 2001
X+++ record.c	Fri Apr  6 18:37:03 2001
X@@ -20,7 +20,7 @@
X extern void conv_time();
X 
X #ifdef SECURE_RECORDFILE
X-#define PERM 0644
X+#define PERM 0664
X #else
X #define PERM 0666
X #endif
END-of-xrot/files/patch-record.c
echo x - xrot/pkg-install
sed 's/^X//' >xrot/pkg-install << 'END-of-xrot/pkg-install'
X#!/bin/sh
X
XFILE="/var/games/xrot.scores"
X[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
X
Xecho "===>   Creating initial high score file $FILE"
Xtouch $FILE
Xchown root.games $FILE
Xchmod 664 $FILE
END-of-xrot/pkg-install
echo x - xrot/pkg-comment
sed 's/^X//' >xrot/pkg-comment << 'END-of-xrot/pkg-comment'
XA falling ball puzzle game for X
END-of-xrot/pkg-comment
echo x - xrot/pkg-descr
sed 's/^X//' >xrot/pkg-descr << 'END-of-xrot/pkg-descr'
XA falling ball puzzle game for X. Rotate the playfield and use gravity
Xto guide a ball around a maze toward the goal.
X
XUse right and left cursor keys to rotate the game screen.
XDown for less bounce.
XUp for jump.
XSpace for speed up.
XReturn to restart.
XESC to return to the title.
Xq to quit.
X
XRequires PseudoColor (256 colors).
END-of-xrot/pkg-descr
echo x - xrot/pkg-plist
sed 's/^X//' >xrot/pkg-plist << 'END-of-xrot/pkg-plist'
Xbin/xrot
END-of-xrot/pkg-plist
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Fri Apr 6 22:50:28 PDT 2001 
State-Changed-Why:  
Committed, thanks.  Your wish was granted: I put the tarball in 
my local distfiles area.  It will probably take about 24 hours 
to propagate to all FTP mirrors though.  So for now I left the 
old site in (as secondary).  Also, I had to use a nasty hack 
to get the thing to even work.  *sigh* 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26377 
>Unformatted:
