debian/0000755000000000000000000000000012141257145007170 5ustar debian/watch0000644000000000000000000000012012140604653010211 0ustar version=3 http://www.gedanken.demon.co.uk/download-xbomb/xbomb-(.*)\.(.*)\.tgz debian/copyright0000644000000000000000000000223212140604536011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: XBomb Upstream-Contact: Andrew M. Bishop Source: http://www.gedanken.org.uk/software/xbomb/ Files: * Copyright: 1994-2009 Andrew M. Bishop License: GPL-2+ Files: debian/* Copyright: 1996-1997 Billy C.-M. Chow 1997 Martin Mitchell 1998 James Troup 1999-2005 Chris Waters 2006 Marc 'HE' Brockschmidt 2007-2009 Chris Waters 2010-2011 Tony Mancill , Jari Aalto 2012 Ricardo Mones 2013 Alexandre Dantas License: GPL-2+ License: GPL-2+ Written by Andrew M. Bishop . This file Copyright 1994-2009 Andrew M. Bishop It may be distributed under the GNU Public License, version 2, or any higher version. See section COPYING of the GNU Public license for conditions under which this file may be redistributed. . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/compat0000644000000000000000000000000212140576252010370 0ustar 9 debian/source/0000755000000000000000000000000012140576252010472 5ustar debian/source/format0000644000000000000000000000001412140576252011700 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000042212140603156010242 0ustar #!/usr/bin/make -f %: dh $@ --parallel override_dh_auto_install: $(MAKE) install INSTDIR=$(CURDIR)/debian/tmp/usr override_dh_fixperms: chown 'root:games' debian/xbomb/usr/games/xbomb chmod 2755 debian/xbomb/usr/games/xbomb dh_fixperms -Xdebian/xbomb/usr/games/xbombdebian/patches/0000755000000000000000000000000012141256764010625 5ustar debian/patches/hardening_flags.patch0000644000000000000000000000132312141256727014757 0ustar Description: Applied hardening flags to build process. Author: Alexandre Dantas Last-Update: 2013-05-02 --- a/Makefile +++ b/Makefile @@ -13,7 +13,10 @@ # CC=gcc -CFLAGS=-O2 +CFLAGS = -O2 $(CDEBUG) -Wall -Wextra $(shell dpkg-buildflags --get CFLAGS) +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) + INCLUDES= @@ -32,12 +35,12 @@ ######## xbomb : $(OBJ) - $(LINK) $(OBJ) -o $@ $(LIB) $(XLIB) + $(LINK) $(OBJ) -o $@ $(LIB) $(XLIB) $(LDFLAGS) ######## %.o : %.c - $(COMPILE) $< -o $@ $(INCLUDES) + $(COMPILE) $(CPPFLAGS) $(CFLAGS) $< -o $@ $(INCLUDES) xbomb.o : xbomb.c xbomb.h xwindow.o : xwindow.c xbomb.h icon.h debian/patches/series0000644000000000000000000000013412140606121012021 0ustar fix_hiscore_dir.patch fix_manpage.patch hardening_flags.patch removed_useless_linkage.patch debian/patches/removed_useless_linkage.patch0000644000000000000000000000054612141256764016551 0ustar Description: Removed unnecessary linkage with libXmu (-lXmu) - executable wasn't using any of the symbols. Author: Alexandre Dantas Last-Update: 2013-05-02 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ LIB= -XLIB=-L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 +XLIB=-L/usr/X11R6/lib -lXaw -lXt -lX11 COMPILE=$(CC) -c $(CFLAGS) debian/patches/fix_manpage.patch0000644000000000000000000000124712140576252014124 0ustar Subject: Make manpage more whatis friendly and fix page section Author: Chris Waters , Ricardo Mones --- xbomb-2.1a.orig/xbomb.6 1995-07-18 22:58:24.000000000 +0200 +++ xbomb-2.1a/xbomb.6 2012-05-13 00:06:47.000000000 +0200 @@ -6,9 +6,9 @@ .\" XBOMB manual page .\" By Andrew M. Bishop November 94 + January 95 + January 2008 .\" -.TH XBomb 1 "January 5, 2008" +.TH XBomb 6 "January 5, 2008" .SH NAME -xbomb Version 2 \- a version of the popular minesweeper program with some novel features. +xbomb \- a version of the popular minesweeper program with some novel features. .SH SYNOPSIS .B xbomb .BR [\-hexagon | \-square | \-triangle] debian/patches/fix_hiscore_dir.patch0000644000000000000000000000215512140576252015005 0ustar Subject: Don't change file mode and make hiscore file FHS compliant Author: Billy C.-M. Chow , Chris Waters --- xbomb-2.2a.orig/hiscore.c 2008-01-05 20:23:07.000000000 +0100 +++ xbomb-2.2a/hiscore.c 2012-05-13 01:34:01.000000000 +0200 @@ -50,7 +50,7 @@ nbombs[NLEVELS]; /*+ number of bombs. +*/ /*+ The names of the high score tables. +*/ -static char *filenames[NTYPES]={"/var/tmp/xbomb6.hi","/var/tmp/xbomb4.hi","/var/tmp/xbomb3.hi"}; +static char *filenames[NTYPES]={"/var/games/xbomb/xbomb6.hi","/var/games/xbomb/xbomb4.hi","/var/games/xbomb/xbomb3.hi"}; /*+ The names of the positions in the high score tables. +*/ static char pos[11][5]={"Top","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","Lost"}; @@ -280,7 +280,10 @@ fclose(f); - chmod(filenames[grid_type-GAME_TYPE],S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); +/* Do not change modes of the hiscore files! + -Billy Fri Jan 10 11:56:39 HKT 1997 */ + +/* chmod(filenames[grid_type-GAME_TYPE],S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); */ } Only in xbomb-2.2a: hiscore.c.orig debian/menu0000644000000000000000000000021512140576252010057 0ustar ?package(xbomb):needs="X11" \ section="Games/Puzzles" \ icon="/usr/share/pixmaps/xbomb.xpm" \ title="XBomb" command="/usr/games/xbomb" debian/changelog0000644000000000000000000002025712140606234011044 0ustar xbomb (2.2a-2) unstable; urgency=low * New mantainer (Closes: #664100) * Bump Standards-Version to 3.9.4 (no other changes) * debian/patches/* - Added hardening flags to compilation - Removed useless linkage against libXmu * debian/rules - Added override steps on fixperms * debian/control - Using Git as VCS -- Alexandre Dantas Thu, 02 May 2013 20:59:35 -0300 xbomb (2.2a-1) unstable; urgency=low * QA upload: new upstream release * debian/control, debian/compat - Changed maintainer to QA group - Bump Standards-Version to 3.9.3 (no other changes) - Remove homepage from description into a proper field - Bump debhelper compatibility level to 9 - Added ${misc:Depends} to binary package - Remove initial article from short description - Remove conflict with non-existing package * debian/small.xpm -> xbomb.xpm - Rename to final name for installing with debhelper * debian/source/format, debian/patches/* - Switch to source package format '3.0 (quilt)' - Improve manpage patch to fix page section too - Regenerate hiscore patch for new upstream * debian/install, debian/manpages, debian/rules - Switch to debhelper sequencer * debian/copyright - Rewritten into Copyright Format 1.0 * debian/watch - Added watch file -- Ricardo Mones Sun, 13 May 2012 01:37:18 +0200 xbomb (2.1a-7.1) unstable; urgency=low [Jari Aalto] * Non-maintainer upload. * debian/control - (Build-Depends): update obsolete x-dev to x11proto-core-dev. (important RC bug; Closes: #515479). [tony mancill] * debian/control - Apply patch for description. (Closes: #490174) * debian/copyright - Refer to GPL-2 (addresses lintian error) -- tony mancill Mon, 19 Apr 2010 08:13:54 -0700 xbomb (2.1a-7) unstable; urgency=low * Updated standards version (no actual changes required). * Fixed an oversight on my part which resulted in the high-score files being left behind even after a purge (closes: #455057). * As a consequence of the previous fix, the package no longer owns /var/games/xbomb, which is now manually created in the postinst. * Removed the "-s" from the install command in debian/rules, so that the package can be built with the nostrip option (closes: #438288). The normal package will still have the binary stripped by dh_strip. * Pass "-g" to compiler so we have something worth stripping in the first place. :) * Updated min debhelper version to 4. * Don't ignore Makefile errors during clean. * Patch to man page to make it more whatis friendly. * Change postinst to use "chown root:games" instead of "root.games". * Updated FSF address in debian/copyright * Added proper quoting to debian/menu. * Made some minor adjustments to the package description in debian/control. * Added to hi-score.c to pick up some required prototypes. -- Chris Waters Sun, 09 Dec 2007 15:06:18 -0800 xbomb (2.1a-6.1) unstable; urgency=low * Non-maintainer upload to do xlibs-dev transition * debian/control: Replaced xlibs-dev build-dep (Closes: #346792) -- Marc 'HE' Brockschmidt Thu, 19 Jan 2006 18:26:32 +0100 xbomb (2.1a-6) unstable; urgency=low * Updated standards version, rebuilt w/o /usr/doc link. * Replaced my ugly icon with a nicer one stolen from fvwm. * Added upstream URL to package description. -- Chris Waters Mon, 4 Nov 2002 02:58:22 -0800 xbomb (2.1a-5) unstable; urgency=low * Updated standards-version (no actual changes required, tho). * Did some general modernizing of the packaging anyway. * Moved icon to /usr/share/pixmaps. -- Chris Waters Fri, 15 Mar 2002 13:46:50 -0800 xbomb (2.1a-4) unstable; urgency=low * Took dh_suidregister back out, since apparently there isn't going to be a smooth upgrade path for packages using it. (closes:#84836) Also made package conflict with older suidmanager, as required. * Made app-defaults file into a conffile, despite the fact that lintian (currently) complains, because policy is just about to change here. -- Chris Waters Mon, 5 Feb 2001 12:28:48 -0800 xbomb (2.1a-3) unstable; urgency=low * Updated standards-version (again). * Added Build-depends. * Updated the description a little. * Finally started using dh_suidregister. Some minor related changes. * Built against XF86-4 system. Moved app-defaults file to /etc/X11/app-defaults, which seems to be the correct new location, although it is in advance of policy. * Did a little cleanup on postinst and postrm, added "set -e" to all. * /var/games/xbomb now 755 root.root instead of 775 root.games. Only the (existing) contents of this directory need to be writable. * High-score files now purged in prerm, not postrm, so that the directory can be properly removed too. * Added a README.Debian to talk about the high-score files. -- Chris Waters Wed, 3 Jan 2001 00:01:13 -0800 xbomb (2.1a-2) unstable; urgency=low * New standards version 3.0.0.0 * changed ref to GPL in copyright file (new standard) * moved man page to usr/share (new standard, FHS) * moved high score files to /var/games (new standard, FHS) * added icon for debian menus -- Chris Waters Sun, 21 Nov 1999 03:05:22 -0800 xbomb (2.1a-1) unstable; urgency=low * app-defaults/xbomb.ad renamed to XBomb, closes: #35831 * new upstream version, has fix for resize problem, closes: #34840 -- Chris Waters Mon, 12 Apr 1999 03:55:39 -0700 xbomb (2.1-2) unstable; urgency=low * hi score files removed from package, now created by postinst. * suidregister support added * debian menu support added * debian/rules: rewritten completely with debhelper * new maintainer -- Chris Waters Sun, 14 Feb 1999 13:53:11 -0800 xbomb (2.1-1) unstable; urgency=low * Orphaned the package. * New upstream version. [#17991] * Pristine upstream source. * debian/control (Standards-Version): updated to 2.5.0.0. * debian/copyright: update the address of the FSF. * debian/rules (binary-arch): chmod u+w,g=rX rather than g-ws to fix permissions on files. * debian/rules (binary-arch): install high score files as foo.default rather than foo. * debian/postinst: If the high score directory does not exist; create it and copy default score files over. * debian/postrm: new file; remove /var/lib/games/xbomb on purge. * debian/conffiles: removed. * debian/rules (binary-arch): don't use {,}; use install with an explicit mode rather than cp, compress all files in /usr/doc/xbomb/ except the copyright, pass -isp to dpkg-gencontrol and other minor clean ups. * debian/control: reformatted long description. * debian/rules (binary-arch): don't make scorefiles and their directory world-unreadable. * debian/rules (clean): also remove debian/substvars. -- James Troup Tue, 24 Nov 1998 03:30:03 +0000 xbomb (2.0-4.2) unstable; urgency=low * Non-maintainer release. * Change architecture from i386 to any. -- Martin Mitchell Wed, 12 Nov 1997 15:20:20 +1100 xbomb (2.0-4.1) unstable; urgency=low * Non-maintainer release. * Libc6 compile. -- Martin Mitchell Wed, 12 Nov 1997 04:08:32 +1100 xbomb (2.0-4) unstable; urgency=low * Remove reference of debian/tmp in postinst script (Bug#6579) -- Billy C.-M. Chow Tue, 14 Jan 1997 09:57:22 +0800 xbomb (2.0-3) unstable; urgency=low * Write permission for user is not given after saving a hiscore (hiscore.c) * Score files are now conffiles (Bug#6500) * Added postinst script to fix the ownership & permission of * /var/lib/games/xbomb if upgraded from 2.0-1 (Bug#6500) -- Billy C.-M. Chow Fri, 10 Jan 1997 09:41:21 +0800 xbomb (2.0-2) unstable; urgency=low * Fixed Bug#6480: hi score files writability. -- Billy C.-M. Chow Thu, 9 Jan 1997 11:25:50 +0800 xbomb (2.0-1) unstable; urgency=low * Initial release. -- Billy C.-M. Chow Mon, 9 Dec 1996 17:11:30 +0800 debian/xbomb.xpm0000644000000000000000000000056112140576252011031 0ustar /* XPM */ static char * image_name[] = { "14 14 5 1", " c None", ". c yellow", "X c red", "o c gray", "O c black", " . . ", " . .X . ", " X . X", " ooooo . ", " o X X ", " OO . . ", " OOOO ", " OOOOOO ", "OOOO OO ", "OOOOOo O ", "OOOOOo O ", "OOOOOO O ", " OOOOOOO ", " OOOO "}; debian/install0000644000000000000000000000014712140576252010565 0ustar usr/bin/xbomb usr/games usr/lib/app-defaults/* etc/X11/app-defaults debian/xbomb.xpm usr/share/pixmaps debian/xbomb.lintian-overrides0000644000000000000000000000006012140605271013647 0ustar xbomb: statically-linked-binary usr/games/xbomb debian/postrm0000644000000000000000000000012612140576252010440 0ustar #!/bin/sh -e if [ "$1" = "purge" ]; then rm -rf /var/games/xbomb fi #DEBHELPER# debian/manpages0000644000000000000000000000001012140576252010677 0ustar xbomb.6 debian/control0000644000000000000000000000143312140604664010575 0ustar Source: xbomb Section: games Priority: optional Maintainer: Alexandre Dantas Standards-Version: 3.9.4 Build-depends: debhelper (>= 9), libx11-dev, libxt-dev, x11proto-core-dev, libxaw7-dev Homepage: http://www.gedanken.org.uk/software/xbomb/ Vcs-Git: git://github.com/alexdantas/xbomb.git Vcs-Browser: https://github.com/alexdantas/xbomb Package: xbomb Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: 'minesweeper' game with squares, hexagons or triangles A test of speed and logic to find the location of bombs hidden in a grid. It offers the standard grid of squares, plus grids of hexagons or triangles, each in 3 difficulty levels. All games are played against the clock with a high-score table for each combination. debian/README.Debian0000644000000000000000000000204712140576252011236 0ustar Note on the high score files: The high-score files are kept in /var/games/xbomb and are named xbomb3.hi, xbomb4.hi and xbomb6.hi (for triangles, squares, and hexagons, respectively). These files are all writable by group "games", and xbomb is sgid "games" so that it can write to them. If you want to change the permissions on xbomb, you should be aware that these files must match -- they must somehow be writable by xbomb. If they aren't, you're on your own. In earlier versions of xbomb, the /var/games/xbomb directory was owned by root:games, and was group-writable. This is no longer the case, so xbomb cannot recreate these files if they disappear (assuming it ever could, which I've never tested). You may also want to know that these files are not technically part of the xbomb package. They are created by the post-install script if they don't already exist, and removed by the pre-remove script when you purge the package. If you're trying to install this Debian package on a RPM or Slackware system, this may be important information for you. debian/postinst0000644000000000000000000000125112140576252010777 0ustar #!/bin/sh set -e #DEBHELPER# # none of the following checks script arguments because it's all # harmless and can be done repeatedly without danger. # create the new high-scores directory if needed mkdir -p /var/games/xbomb # clean up any existing files in the old location, /var/lib/games if [ -d /var/lib/games/xbomb ]; then mv /var/lib/games/xbomb/* /var/games/xbomb || true rm -rf /var/lib/games/xbomb || true fi # Create empty hi-score files if needed cd /var/games/xbomb/ for i in xbomb6.hi xbomb4.hi xbomb3.hi; do if [ ! -e $i ]; then touch $i chown root:games $i fi # Set permissions (fixes permissions of pre 2.0-3 files) chmod 664 $i done debian/dirs0000644000000000000000000000006112140576252010053 0ustar usr/games etc/X11/app-defaults usr/share/pixmaps debian/docs0000644000000000000000000000000712140576252010042 0ustar README