xbomb stable port information

Package: xbomb
Version: 2.1a
Revision: 3
Maintainer: Dave Vasilevsky
##
License: GPL
Homepage: http://www.gedanken.demon.co.uk/xbomb/
Source: http://www.gedanken.demon.co.uk/download-%n/%n-%v.tgz
##
##
##
BuildDepends: fink (>= 0.24.12), x11-dev
Depends: x11, passwd
##
##
PatchFile: %n.patch
PatchFile-MD5: e3197c7235821b45ad98f5e4d91c52be
PatchScript: <<
%{default_script}
perl -i -pe 's,/var/tmp,%p/var/games/%n,g' hiscore.c
<<
CompileScript: make
InstallScript: <<
install -d -m 0755 %i/bin
install -c -m 2755 xbomb %i/bin/xbomb
install -d -m 0775 %i/var/games/xbomb
install -d -m 0755 %i/share/man/man6
install -m 0644 xbomb.6 %i/share/man/man6
<<
##
##
PostInstScript: <<
chown :games %p/bin/xbomb %p/var/games/xbomb
<<
##
##
DocFiles: COPYING README
##
##
##
Description: Minesweeper for X11
DescDetail: <<
A simple minesweeper clone, including a high score list, mutliple levels
and square, triangular and hexagonal grids.
<<
DescPort: <<
- include /usr/X11R6/include
- implemented cuserid(), sorta
<<
Source-MD5: a7bb9f99d922f6f1b6aa0b4b903c19e7

xbomb stable port .patch

diff -Naur xbomb-2.1a/Makefile xbomb-new/Makefile
--- xbomb-2.1a/Makefile 1996-01-20 16:02:46.000000000 -0500
+++ xbomb-new/Makefile 2003-03-21 05:16:44.000000000 -0500
@@ -15,7 +15,7 @@
CC=gcc
CFLAGS=-O2

-INCLUDES=
+INCLUDES=-I/usr/X11R6/include

LIB=

diff -Naur xbomb-2.1a/hiscore.c xbomb-new/hiscore.c
--- xbomb-2.1a/hiscore.c 1998-01-16 14:50:39.000000000 -0500
+++ xbomb-new/hiscore.c 2003-03-21 05:16:24.000000000 -0500
@@ -79,6 +79,9 @@
static void decrypt_score(struct score_name* sn);
static void encrypt_score(struct score_name* sn);

+static char *cuserid(char *buf) {
+ return strncpy(buf, getlogin(), 19);
+}

/*++++++++++++++++++++++++++++++++++++++
Prints the high score tables.

xbomb _unstable_ port .patch