debian/0000755000000000000000000000000012147473570007200 5ustar debian/changelog0000644000000000000000000002122012147473570011047 0ustar xdemineur (2.1.1-18) unstable; urgency=low * debian/control: set vcs-* fields (now on git.debian.org) * add debian/gbp.conf with pristine-tar=true * Standards-version 3.9.4 (no change) * Bump debhelper compat level to 9 in order to get hardening flags. Bump build-dependency on debhelper to >=9. * patch observe_ldflags: import $LDFLAGS into the generated Makefile, in order to get linker hardening flags. -- Ralf Treinen Thu, 23 May 2013 22:07:21 +0200 xdemineur (2.1.1-17) unstable; urgency=low * patch minimal-size: reduce minimal number of rows to 1 and columns to 12. (closes: #603112). A smaller number of columns would require to hack the layout of the graphical window. * patch readme-utf8: convert upstream README to utf8 (closes: #603103) * rewrite debian/rules from scratch using dh(1): - rename debian/menu to debian/xdemineur.menu - add debian/xdemineur.{docs,install,manpages} - add debian/clean - bump dependency on debhelper to >= 7.0.50~ * Standards-version 3.9.3: - debian/copyright: migrate to machine-readable format 1.0 * Install manpage with extension .6 instead of .6x -- Ralf Treinen Tue, 19 Jun 2012 20:48:54 +0200 xdemineur (2.1.1-16) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format: - created debian/source/format - no more patching in debian/rules - no more build-dependency on dpatch - converted dpatch patches to quilt patches * debhelper compatibility level 7 - dh_clean -k => dh_prep * Add dependency on ${misc:Depends} * Standards-Version 3.8.3 (no change) -- Ralf Treinen Sat, 02 Jan 2010 20:34:16 +0100 xdemineur (2.1.1-15) unstable; urgency=low * Fixed typo in long description (closes: Bug#511236). -- Ralf Treinen Sun, 11 Jan 2009 18:08:54 +0100 xdemineur (2.1.1-14) unstable; urgency=low * changed build-dependency on xutils to xutils-dev (closes: Bug#485542). * Standards-Version 3.8.0 (no change). -- Ralf Treinen Tue, 10 Jun 2008 20:49:38 +0200 xdemineur (2.1.1-13) unstable; urgency=low * debian/rules: do not set explicitly CFLAGS, quote correctly CFLAGS when passing them to make (closes: Bug#476059). -- Ralf Treinen Mon, 14 Apr 2008 21:36:25 +0200 xdemineur (2.1.1-12) unstable; urgency=low * debian/rules: apply patch by Neil Williams (thanks!) to support cross-platform package building (closes: Bug#465117). * Install desktop file in /usr/share/applications, instead of /usr/share/gnome/apps or /usr/share/applnk. -- Ralf Treinen Mon, 11 Feb 2008 20:01:41 +0100 xdemineur (2.1.1-11) unstable; urgency=low * Standards-Version 3.7.3 (no change). * Added build-dependency on libxext-dev (closes: Bug#454538). * Removed useless build-dependency on x-dev. * Removed some deprecated items from xdemineur.desktop. * No national encoding in debian/copyright. * Removed useless file debian/menu-2. -- Ralf Treinen Sat, 08 Dec 2007 15:41:16 +0100 xdemineur (2.1.1-10) unstable; urgency=low * Fix "clean" target of debian/rules: invoke "make clean" only when Makefile exists. -- Ralf Treinen Sun, 08 Jul 2007 21:51:36 +0200 xdemineur (2.1.1-9) unstable; urgency=low * Acknowledge NMU (thanks, Marc). * Standards-version 3.7.2 (no change) * debian/rules, target "clean": do not ignore errors of "make clean" -- Ralf Treinen Sat, 07 Jul 2007 11:35:43 +0200 xdemineur (2.1.1-8.1) unstable; urgency=low * Non-maintainer upload to help with xlibs-dev transition. * debian/control: Replace xlibs-dev build-dep. (Closes: #346803) -- Marc 'HE' Brockschmidt Thu, 19 Jan 2006 23:33:34 +0100 xdemineur (2.1.1-8) unstable; urgency=low * Removed patch 02_manpage since it was comletely garbled * Patch 02_manpage_section: Fix man page section from 6 to 6x * Put xdemineur-icon.xpm into /usr/share/pixmaps, instead of /usr/X11R6include/X11 * Add xdemineur.desktop file -- Ralf Treinen Fri, 23 Jul 2004 10:41:59 +0200 xdemineur (2.1.1-7) unstable; urgency=low * Bounced build-dependency on debhelper to >= 4.0. * Dpatchified: - 01_endgame: correct false win - 02_manpage: language corrections in manpage - 03_optionmines: keep number of mines over successive games. Patch provided by Per von Zweigbergk - thanks ! (closes: Bug#238751). -- Ralf Treinen Fri, 19 Mar 2004 04:55:34 +0100 xdemineur (2.1.1-6) unstable; urgency=low * Standards-Version 3.6.1: - honor "noopt" in the value of DEB_BUILD_OPTIONS. * Replace DH_COMAPT variable by file debian/compat, set level to 4. * debian/rules: replace target build-stamp by xdemineur. -- Ralf Treinen Tue, 30 Sep 2003 23:14:08 +0200 xdemineur (2.1.1-5) unstable; urgency=low * Fixed some minor typos in the man page. * Better description (file debian/control). * Constrained build-dependency on debhelper to >= 3.0. * Some cleanup in debian/rules. -- Ralf Treinen Tue, 5 Nov 2002 20:25:52 +0100 xdemineur (2.1.1-4) unstable; urgency=low * Patched the function demineur_won in demineur.c such that no winning situation is detected in case the last uncovered case was holding a mine (cloeses: Bug#136372). -- Ralf Treinen Sat, 2 Mar 2002 11:43:19 +0100 xdemineur (2.1.1-3) unstable; urgency=low * Removed bad "-flood" option from xdemineur invocation in the menu file (closes: #120434) -- Ralf Treinen Sat, 8 Dec 2001 16:40:43 +0100 xdemineur (2.1.1-2) unstable; urgency=low * Adopting orphaned package (closes: #82444) * Standards-version 3.5.6 * Added missing line to the copyright file. -- Ralf Treinen Wed, 19 Sep 2001 21:10:57 +0200 xdemineur (2.1.1-1) unstable; urgency=low * New upstream release. - This release uses the original colors. (closes: #48008) * Removed the Debian-specific patches. -- Adrian Bunk Fri, 24 Aug 2001 19:48:48 +0200 xdemineur (1.1-11.2) unstable; urgency=low * fixed missing Build-Dependency from xlibs-dev -- Andreas Tille Thu, 05 Jul 2001 16:46:37 +0200 xdemineur (1.1-11.1) unstable; urgency=low * Non-maintainer upload. * switched to debhelper to make it easy for future maintainer * closes: #100152 fixed /usr/doc -> /usr/share/doc transition I decided not to use the patch of Stephen Stafford but to use debhelper. Thanks anyway Stephen. * Standards-Version: 3.5.2 * added Build-Depends * changed menu section to games/puzzles -- Andreas Tille Wed, 04 Jul 2001 10:06:50 +0200 xdemineur (1.1-11) unstable; urgency=low * debian/postinst: only run update-menus if it exists (#22015) * debian/postrm: run update-menus * debian/prerm: deleted (no point in running update-menus when the menu file is still around! -- Mark Baker Sat, 02 May 1998 21:57:00 +0100 xdemineur (1.1-10) unstable; urgency=low * Changed case of text in menu entry (#21553) * Use new format menu entry file -- Mark Baker Thu, 23 Apr 1998 16:49:00 +0100 xdemineur (1.1-9) unstable; urgency=low * Put pixmap in /usr/X11R6/include/X11/pixmaps instead of /usr/include/X11/pixmaps (#18332) -- Mark Baker Sat, 14 Feb 1998 23:12:04 +0000 xdemineur (1.1-8) unstable; urgency=low * Moved manpage to /usr/man instead of /usr/X11R6/man -- Mark Baker Sat, 14 Feb 1998 23:12:04 +0000 xdemineur (1.1-7) unstable; urgency=low * Updated standards-version to 2.4.0.0 (no changes) -- Mark Baker Mon, 09 Feb 1998 22:02:46 +0000 xdemineur (1.1-6) unstable; urgency=low * Install manpage as xdemineur.6x instead of xdemineur.1x -- Mark Baker Mon, 26 Jan 1998 22:02:46 +0000 xdemineur (1.1-5) unstable; urgency=low * Added flood feature (thanks Tony Giorgino) -- Mark Baker Thu, 22 Jan 1998 20:57:51 +0000 xdemineur (1.1-4) unstable; urgency=low * Compile with xlib6g -- Mark Baker Tue, 09 Sep 1997 21:51:58 +0100 xdemineur (1.1-3) unstable; urgency=low * Use resources (to work round the IMO non-bug #12046) -- Mark Baker Sun, 07 Sep 1997 11:11:43 +0100 xdemineur (1.1-2) unstable; urgency=low * Compile with libc6 -- Mark Baker Fri, 20 Jun 1997 15:15:01 +0100 xdemineur (1.1-1) unstable; urgency=low * First debian release -- Mark Baker Wed, 30 Apr 1997 12:30:00 +0100 debian/clean0000644000000000000000000000001412147473570010200 0ustar xdemineur.6 debian/source/0000755000000000000000000000000012147473570010500 5ustar debian/source/format0000644000000000000000000000001412147473570011706 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000026612147473570010264 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_configure: xmkmf override_dh_auto_install: # do nothing override_dh_auto_build: dh_auto_build cp -a xdemineur.man xdemineur.6 debian/copyright0000644000000000000000000000130612147473570011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-name: xdémineur Source: ftp://sunsite.doc.ic.ac.uk:/packages/X11/contrib/games/ Files: * Copyright: 1993-1999 Marc Baudoin License: xdemineur Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The author makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. debian/xdemineur.menu0000644000000000000000000000024612147473570012070 0ustar ?package(xdemineur):\ section="Games/Puzzles"\ needs="X11"\ title="Xdemineur"\ command="/usr/games/xdemineur"\ icon="/usr/share/pixmaps/xdemineur-icon.xpm" debian/xdemineur.install0000644000000000000000000000017012147473570012566 0ustar debian/xdemineur-icon.xpm /usr/share/pixmaps debian/xdemineur.desktop /usr/share/applications xdemineur /usr/games debian/patches/0000755000000000000000000000000012147473570010627 5ustar debian/patches/observe_ldflags0000644000000000000000000000104312147473570013711 0ustar Author: Ralf Treinen Description: respect the value of $LDFLAGS in the Makefile Index: xdemineur/Imakefile =================================================================== --- xdemineur.orig/Imakefile 2013-05-23 22:02:19.000000000 +0200 +++ xdemineur/Imakefile 2013-05-23 22:03:40.000000000 +0200 @@ -14,5 +14,6 @@ DEPLIBS = $(DEPXLIB) SRCS = demineur.c main.c util.c xdemineur.c OBJS = demineur.o main.o util.o xdemineur.o +EXTRA_LDOPTIONS = $(LDFLAGS) ComplexProgramTarget(xdemineur) debian/patches/endgame0000644000000000000000000000135512147473570012156 0ustar Author: Ralf Treinen Description: fixes a bug in the end of the game: no winning situation is detected in case the last uncovered case was holding a mine. Closes-bug: #136372 --- /home/rt/debian/own/xdemineur/xdemineur-2.1.1/demineur.c +++ xdemineur-2.1.1/demineur.c @@ -402,6 +402,13 @@ { int row , column ; + if (state == LOST) return ; + /* This may happen in case no hidden or questioned cases are left + but the last uncovered case was holding a mine. This means that + one of the flagged cases was in fact not holding a mine. + [Ralf Treinen ] + */ + for ( row = 1 ; row <= board.rows ; row ++ ) { for ( column = 1 ; column <= board.columns ; column ++ ) debian/patches/minimal-size0000644000000000000000000000511612147473570013153 0ustar Author: Ralf Treinen Description: allow smaller boards Debian-bug: #603112 Index: xdemineur-2.1.1/xdemineur.h =================================================================== --- xdemineur-2.1.1.orig/xdemineur.h 2012-06-19 22:13:28.000000000 +0200 +++ xdemineur-2.1.1/xdemineur.h 2012-06-19 22:14:48.000000000 +0200 @@ -17,8 +17,11 @@ #ifndef _XDEMINEUR_H_ #define _XDEMINEUR_H_ -#define ROWS_MIN 16 -#define COLUMNS_MIN 30 +#define ROWS_MIN 1 +#define COLUMNS_MIN 12 + +#define ROWS_DEFAULT 16 +#define COLUMNS_DEFAULT 30 #define EDGE 15 /* edge around the game board */ #define RELIEF_WIDTH 3 /* width of the relief */ Index: xdemineur-2.1.1/xdemineur.man =================================================================== --- xdemineur-2.1.1.orig/xdemineur.man 2012-06-19 22:13:28.000000000 +0200 +++ xdemineur-2.1.1/xdemineur.man 2012-06-19 22:14:48.000000000 +0200 @@ -43,8 +43,9 @@ This option specifies the name of the X server to use. See X(1). .TP 8 .B \-geometry \fIgeom\fP -This option specifies the initial size and location of the -window. See X(1). +This option specifies the initial size and location of the window. +See X(1). The size is expressed in number of columns times number of +rows. The default is 30x16. The minimum number of columns is 12. .TP 8 .B \-m \fImines \fP This option specifies the number of mines in the minefield. If Index: xdemineur-2.1.1/xdemineur.c =================================================================== --- xdemineur-2.1.1.orig/xdemineur.c 2012-06-19 22:13:28.000000000 +0200 +++ xdemineur-2.1.1/xdemineur.c 2012-06-19 22:32:02.000000000 +0200 @@ -181,8 +181,8 @@ screen = DefaultScreen ( display ) ; - board.columns = COLUMNS_MIN ; - board.rows = ROWS_MIN ; + board.columns = COLUMNS_DEFAULT ; + board.rows = ROWS_DEFAULT ; size_hints.flags = 0 ; if ( geometry != NULL ) @@ -204,7 +204,6 @@ else { board.columns = w ; - width = BASE_WIDTH + board.columns * WIDTH_INC ; } } @@ -220,7 +219,6 @@ else { board.rows = h ; - height = BASE_HEIGHT + board.rows * HEIGHT_INC ; } } @@ -251,6 +249,9 @@ } } + width = BASE_WIDTH + board.columns * WIDTH_INC ; + height = BASE_HEIGHT + board.rows * HEIGHT_INC ; + window = XCreateSimpleWindow ( display , RootWindow ( display , screen ) , x_pos , y_pos , width , height , 1 , BlackPixel ( display , screen ) , debian/patches/optionmines0000644000000000000000000000224212147473570013116 0ustar Integrator: Ralf Treinen Author: Per von Zweigbergk Description: Keep number of mines when starting new game Closes-bug: #238751 --- orig/main.c 2004-03-18 19:24:55.000000000 +0100 +++ main.c 2004-03-18 19:25:47.000000000 +0100 @@ -33,12 +33,13 @@ extern volatile time_t elapsed ; extern state_t state ; +int option_mines = 0 ; /* ------------------------------------------------------------------------- */ int main ( int argc , char **argv ) { - int i , option_mines = 0 ; + int i ; char *display_name = NULL , *geometry = NULL ; struct sigaction act ; --- orig/xdemineur.c 2004-03-18 19:26:15.000000000 +0100 +++ xdemineur.c 2004-03-18 19:27:30.000000000 +0100 @@ -544,8 +544,9 @@ case STATE_FACE : if ( item == ITEM_FACE ) /* new game */ { + extern int option_mines; demineur_end ( ) ; - demineur_initialize ( 0 ) ; + demineur_initialize ( option_mines ) ; xdemineur_display ( ) ; demineur_start_timer ( ) ; } debian/patches/series0000644000000000000000000000011512147473570012041 0ustar endgame manpage_section optionmines readme-utf8 minimal-size observe_ldflags debian/patches/manpage_section0000644000000000000000000000043712147473570013712 0ustar Author: Ralf Treinen Description: fix section of manpage --- /home/rt/debian/own/xdemineur/xdemineur-2.1.1/xdemineur.man +++ xdemineur-2.1.1/xdemineur.man @@ -1,4 +1,4 @@ -.TH XDEMINEUR 6 +.TH XDEMINEUR 6x .SH NAME xdemineur \- X11 minesweeper game .SH SYNOPSIS debian/patches/readme-utf80000644000000000000000000000301412147473570012671 0ustar Author: Ralf Treinen Description: convert README to UTF8 encoding Debian-bug: #603103 Index: xdemineur-2.1.1/README =================================================================== --- xdemineur-2.1.1.orig/README 1999-08-10 21:10:19.000000000 +0200 +++ xdemineur-2.1.1/README 2012-06-19 19:58:32.000000000 +0200 @@ -1,7 +1,7 @@ -README file for xdémineur +README file for xdémineur ========================= -Xdémineur is a minesweeper game for the X Window System. +Xdémineur is a minesweeper game for the X Window System. The object of this game is to find the location of the mines hidden in the minefield and to mark their location by placing a @@ -34,7 +34,7 @@ FTP sites --------- -You can get the latest version of xdémineur by anonymous FTP +You can get the latest version of xdémineur by anonymous FTP from: (primary site) @@ -48,7 +48,7 @@ Bugs ---- -Please report any bug you could find in xdémineur to +Please report any bug you could find in xdémineur to . Also, you should tell me the customizations you may have done, such as adding new functions to the game or making modifications to allow the game to run on your @@ -57,7 +57,7 @@ Copyright --------- -Copyright © 1993-1999 Marc Baudoin +Copyright © 1993-1999 Marc Baudoin Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby debian/xdemineur.manpages0000644000000000000000000000001412147473570012710 0ustar xdemineur.6 debian/gbp.conf0000644000000000000000000000003612147473570010616 0ustar [DEFAULT] pristine-tar = True debian/compat0000644000000000000000000000000312147473570010377 0ustar 9 debian/control0000644000000000000000000000132012147473570010577 0ustar Source: xdemineur Section: games Priority: optional Maintainer: Ralf Treinen Standards-Version: 3.9.4 Build-Depends: debhelper(>= 9), xutils-dev, libx11-6, libxpm-dev, libxext-dev Vcs-Git: git://git.debian.org/git/collab-maint/xdemineur.git Vcs-Browser: http://git.debian.org/?p=collab-maint/xdemineur.git;a=summary Package: xdemineur Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Yet another minesweeper for X The object of this game is to find the location of the mines hidden in the minefield and to mark their location by placing a warning flag. . There are many minesweeper clones. This one is the most similar to the Windows one in terms of look and feel. debian/xdemineur.desktop0000644000000000000000000000026612147473570012577 0ustar [Desktop Entry] Name=Xdemineur Comment=Yet another minesweeper for X MimeType= Exec=/usr/games/xdemineur Icon=/usr/share/pixmaps/xdemineur-icon.xpm Path= Type=Application Terminal=0 debian/xdemineur-icon.xpm0000644000000000000000000000065112147473570012656 0ustar /* XPM */ static char * mini-bomb_xpm[] = { "16 14 6 1", " c None s None", ". c black", "X c gray50", "o c gray85", "O c yellow", "# c white", " ... ", " . . ", " . . ", " ... . ", " ..... . ", " .X#o... . ", " X.#X....X . ", " ..oX..... O O", " .......O. O OO ", " ......Xo. OOO ", " X.....X.X O ", " ....... ", " X...X ", " "}; debian/xdemineur.docs0000644000000000000000000000000712147473570012047 0ustar README