--- freesweep-0.90.orig/debian/freesweep.dirs +++ freesweep-0.90/debian/freesweep.dirs @@ -0,0 +1,3 @@ +usr/games +etc +var/games --- freesweep-0.90.orig/debian/changelog +++ freesweep-0.90/debian/changelog @@ -0,0 +1,179 @@ +freesweep (0.90-2) unstable; urgency=low + + [ Ansgar Burchardt ] + * Add watch file + * New patch `fsf-address': Correct FSF address in gpl.c + * Remove article from start of short description + + [ Paul Wise ] + * Add /var/games dir, since it is used in the postinst (Closes: #489700) + + -- Ansgar Burchardt Wed, 27 Aug 2008 23:35:19 +0200 + +freesweep (0.90-1) unstable; urgency=low + + * New Maintainer: Debian Games Team (Closes: #465927) + * Add myself to Uploaders + * Add VCS fields to debian/control + * Use quilt for patch management + * New upstream release (Closes: #249771) + * Handle nostrip build option (Closes: #436862) + * Create global high score file + * Do not crash when using global high score (Closes: #210644) + * Do not try to place too many mines (Closes: #249896) + * debian/copyright: + + Correct FSF address + + Refer to GPL-2 + * debian/freesweep.menu: Quote strings + + -- Ansgar Burchardt Sat, 23 Feb 2008 14:03:57 +0100 + +freesweep (0.88-4.3) unstable; urgency=low + + * Non-maintainer upload. + * debian/rules: + + Fix bashism (Closes: #459065). + + Remove DH_COMPAT. + * debian/control: + + Bump Standards-Version to 3.7.3 (no changes needed). + + Add Homepage field. + * Add compat file. + + -- Marco Rodrigues Thu, 24 Jan 2008 22:36:41 +0000 + +freesweep (0.88-4.2) unstable; urgency=low + + * Porter NMU. + * Update config.guess/config.sub at build time (closes: #345221, #299277) + + -- Aurelien Jarno Sun, 10 Dec 2006 22:25:23 +0100 + +freesweep (0.88-4.1) unstable; urgency=high + + * NMU + * Urgency high due to security fixes. + * Apply patch from Steve Kemp to fix buffer overflow in + environmental variable handling which allowed local GID games attack + (CAN-2003-0828). + * This NMU will allow the security update for Woody to go in by the + sheer fact of increasing the version number (closes: #242616); + security updates can't go in if the versions in unstable and stable + are identical (hence the 0-day NMU). + * Remove duplicate conffile entry. + + -- Romain Francoise Wed, 7 Apr 2004 21:38:19 +0200 + +freesweep (0.88-4) unstable; urgency=low + + * debian/control: Standards-Version: 3.5.5 + * debian/copyright: cleaned up copyright + * config.{guess,sub}: updated files to version from libtool package + (Closes: Bug#103374) + + -- Edward Betts Wed, 4 Jul 2001 11:26:34 +0200 + +freesweep (0.88-3) unstable; urgency=low + + * configure.in: quick hack to reduce the severity of Bug#98053. + I will endeavor to find a more long term solution in the near future. + + -- Edward Betts Mon, 21 May 2001 11:15:46 +0100 + +freesweep (0.88-2) unstable; urgency=low + + * debian/control: added build-depends on autoconf + * debian/rules: make config.h.in (Closes: Bug#94550) + + -- Edward Betts Thu, 19 Apr 2001 17:56:57 -0600 + +freesweep (0.88-1) unstable; urgency=low + + * New upstream release + * debian/control: Standards-Version: 3.5.2 + * debian/rules: Changed to debhelper 3 + * debian/rules: Changed dh_installmanpages to dh_installman + * debian/rules: configure --disable-debug-log (Closes: Bug#88475) + * debian/rules: Removed dh_suidregister + * debian/rules: Removed dh_testversion + * debian/rules: Support DEB_BUILD_OPTIONS + * Makefile.in: remove config.h.in from list of files to delete on clean + + -- Edward Betts Wed, 11 Apr 2001 14:52:46 -0600 + +freesweep (0.87-7) unstable; urgency=low + + * Update config.{guess,sub} to versions from the automake package. + Should now compile better on ARM (closes: Bug#56548). + + -- Edward Betts Thu, 3 Feb 2000 09:26:01 +0000 + +freesweep (0.87-6) unstable; urgency=low + + * recompile against libncurses5. + * debian/control: updated Standards-Version to 3.1.1 + * debian/control: added Build-Depends. + * debian/copyright: updated to reflect change of debian maintainer. + * debian/dirs: removed dirs created by other dh_* tools. + * debian/rules: rewritten. + + -- Edward Betts Thu, 6 Jan 2000 23:05:30 +0000 + +freesweep (0.87-5) unstable; urgency=low + + * debian/rules: changed to debhelper. + + -- Edward Betts Sat, 13 Nov 1999 14:25:53 +0000 + +freesweep (0.87-4) unstable; urgency=low + + * New maintainer. + + -- Edward Betts Sat, 13 Nov 1999 14:25:53 +0000 + +freesweep (0.87-3) unstable; urgency=low + + * sweep.h.in.orig: removed. + + -- Antti-Juhani Kaijanaho Fri, 22 Oct 1999 18:59:12 +0300 + +freesweep (0.87-2) unstable; urgency=low + + * debian/{prerm,postinst}: Implement the /usr/doc transition. + * debian/rules: Install DEBIAN/conffiles as nonex, not script. + + -- Antti-Juhani Kaijanaho Thu, 7 Oct 1999 23:17:00 +0300 + +freesweep (0.87-1) unstable; urgency=low + + * New upstream release + * debian/rules: Use the new preferences and scores options to ./configure. + * debian/rules: Install a manual page. + * debian/{postinst,prerm}: Manage the scorefile, treating it as if it was + part of the package, but don't overwrite on upgrade. + * debian/{postinst,prerm}: Use suidmanager to handle the sgid executable. + * debian/rules: Install debian/prerm. + * debian/rules: Modernized + + Factorize the install program into a variable + + Use target-specific variables to handle the package names. + + Don't use $(install_zipped); use $(GZIP) instead + + Use stamp files. + + Remove $(rootdir) at the start of a binary rule. + + Don't test for rootness. + + Use pre- and post-binary variables. + + Split the clean target into clean-build and clean-binary. + + -- Antti-Juhani Kaijanaho Sun, 5 Sep 1999 04:34:26 +0300 + +freesweep (0.86-2) unstable; urgency=low + + * Added Debian menu support. + * Moved the binary to /usr/games as required by FHS 2.0. + * debian/control: Fixed a typo in description. + + -- Antti-Juhani Kaijanaho Wed, 4 Aug 1999 23:59:28 +0300 + +freesweep (0.86-1) unstable; urgency=low + + * Initial packaging. + + -- Antti-Juhani Kaijanaho Fri, 23 Jul 1999 21:45:10 +0300 --- freesweep-0.90.orig/debian/freesweep.docs +++ freesweep-0.90/debian/freesweep.docs @@ -0,0 +1 @@ +README --- freesweep-0.90.orig/debian/postrm +++ freesweep-0.90/debian/postrm @@ -0,0 +1,13 @@ +#! /bin/sh +# postrm script for freesweep + +set -e + +if [ "$1" = purge ] ; then + rm -f /var/games/sweeptimes +fi + +#DEBHELPER# + +exit 0 + --- freesweep-0.90.orig/debian/rules +++ freesweep-0.90/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# debian/rules for freesweep +# modifications by Edward Betts +# Based on: +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +CFLAGS = -O2 +ifeq "$(findstring debug,$(DEB_BUILD_OPTIONS))" "debug" + CFLAGS += -g +endif + +configure: configure-stamp +configure-stamp: $(QUILT_STAMPFN) + dh_testdir + + cp /usr/share/misc/config.sub . + cp /usr/share/misc/config.guess . + $(MAKE) config.h.in + CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --bindir=/usr/games \ + --mandir='$${prefix}/share/man' \ + --with-prefsdir=/etc --with-scoresdir=/var/games \ + --with-ncurses=/usr + + touch $@ + +build: build-stamp +build-stamp: configure + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: clean-patched unpatch +clean-patched: $(QUILT_STAMPFN) + dh_testdir + dh_testroot + rm -f build-stamp + rm -f config.guess + rm -f config.sub + + [ ! -f Makefile ] || $(MAKE) clean + + dh_clean freesweep.6 + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) DESTDIR=$(CURDIR)/debian/freesweep install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu + dh_installcron + dh_installinfo +# dh_undocumented + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + chmod 2755 $(CURDIR)/debian/freesweep/usr/games/freesweep + chown root:games $(CURDIR)/debian/freesweep/usr/games/freesweep +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- freesweep-0.90.orig/debian/freesweep.menu +++ freesweep-0.90/debian/freesweep.menu @@ -0,0 +1,6 @@ +?package(freesweep):\ + needs="text"\ + section="Games/Puzzles"\ + title="Freesweep"\ + command="/usr/games/freesweep" + --- freesweep-0.90.orig/debian/compat +++ freesweep-0.90/debian/compat @@ -0,0 +1 @@ +4 --- freesweep-0.90.orig/debian/postinst +++ freesweep-0.90/debian/postinst @@ -0,0 +1,16 @@ +#! /bin/sh +# postinst script for freesweep + +set -e + +scores=/var/games/sweeptimes +if [ ! -e $scores ] ; then + touch $scores + chown root:games $scores + chmod 0664 $scores +fi + +#DEBHELPER# + +exit 0 + --- freesweep-0.90.orig/debian/copyright +++ freesweep-0.90/debian/copyright @@ -0,0 +1,38 @@ +This package has been Debianised by Antti-Juhani Kaijanaho +from sources fetched at 1999-09-05 03:30 UTC from + + +The sources for version 0.90 were fetched from +http://www.upl.cs.wisc.edu/~hartmann/sweep/freesweep-0.90.tar.gz +on Sat, 23 Feb 2008. + +It was taken over by Edward Betts on +Sat, 13 Nov 1999 14:25:53 +0000 + +It was taken over by the Debian Games Team + on Sat, 23 Feb 2008. + +Upstream Authors: Gus Hartmann + Pete Keller + +Copyright: + + freesweep - a curses minesweeper-style game + Copyright (C) 1999 Gus Hartmann & Peter Keller + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. --- freesweep-0.90.orig/debian/control +++ freesweep-0.90/debian/control @@ -0,0 +1,21 @@ +Source: freesweep +Maintainer: Debian Games Team +Uploaders: Ansgar Burchardt +Section: games +Priority: optional +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 4.0.0), libncurses5-dev, autoconf, autotools-dev, quilt +Homepage: http://www.upl.cs.wisc.edu/~hartmann/sweep/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/freesweep/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/freesweep/?op=log + + +Package: freesweep +Architecture: any +Depends: ${shlibs:Depends} +Description: text-based minesweeper + Freesweep is an implementation of the popular minesweeper game, where + one tries to find all the mines without igniting any, based on hints given + by the computer. Unlike most implementations of this game, Freesweep + works in any visual text display - in Linux console, in an xterm, and in + most text-based terminals currently in use. --- freesweep-0.90.orig/debian/watch +++ freesweep-0.90/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://www.upl.cs.wisc.edu/~hartmann/sweep/ freesweep-(.*)\.tar\.gz + --- freesweep-0.90.orig/debian/patches/fix-install +++ freesweep-0.90/debian/patches/fix-install @@ -0,0 +1,21 @@ +Index: freesweep-0.90/Makefile.in +=================================================================== +--- freesweep-0.90.orig/Makefile.in ++++ freesweep-0.90/Makefile.in +@@ -59,11 +59,11 @@ + @make "PURIFY=$(PURE_ARGS)" + + install: $(TARGET) $(TARGET).6 +- touch sweeptimes +- ./install-sh -c -m 2555 -o root -g games $(TARGET) $(bindir)/$(TARGET) +- ./install-sh -c -m 0664 -o root -g games sweeptimes @SCORESDIR@/sweeptimes +- ./install-sh -c -m 0644 -o root -g games sweeprc @PREFSDIR@/sweeprc +- ./install-sh -c -m 0444 -o root -g games $(TARGET).6 @mandir@/man6/$(TARGET).6 ++# touch sweeptimes ++ ./install-sh -c -m 2555 -o root -g games $(TARGET) $(DESTDIR)$(bindir)/$(TARGET) ++# ./install-sh -c -m 0664 -o root -g games sweeptimes $(DESTDIR)@SCORESDIR@/sweeptimes ++ ./install-sh -c -m 0644 -o root -g games sweeprc $(DESTDIR)@PREFSDIR@/sweeprc ++ ./install-sh -c -m 0444 -o root -g games $(TARGET).6 $(DESTDIR)@mandir@/man6/$(TARGET).6 + + distclean: + @make sterile --- freesweep-0.90.orig/debian/patches/series +++ freesweep-0.90/debian/patches/series @@ -0,0 +1,5 @@ +fsf-address +use-safe-string-functions +do-not-strip +fix-install +do-not-create-too-many-mines --- freesweep-0.90.orig/debian/patches/use-safe-string-functions +++ freesweep-0.90/debian/patches/use-safe-string-functions @@ -0,0 +1,59 @@ +Index: freesweep-0.90/files.c +=================================================================== +--- freesweep-0.90.orig/files.c ++++ freesweep-0.90/files.c +@@ -104,9 +104,7 @@ + perror("SourceHomeFile::getenv"); + return 1; + } +- strcpy(Pathname,Buffer); +- strcat(Pathname,"/"); +- strcat(Pathname,DFL_PREFS_FILE); ++ snprintf(Pathname, MAX_LINE-1, "%s/%s", Buffer, DFL_PREFS_FILE); + + if ((PrefsFile=fopen(Pathname,"r"))==NULL) + { +@@ -167,9 +165,7 @@ + return 1; + } + +- strcpy(Pathname,Buffer); +- strcat(Pathname,"/"); +- strcat(Pathname,DFL_PREFS_FILE); ++ snprintf(Pathname, MAX_LINE-1, "%s/%s", Buffer, DFL_PREFS_FILE); + + if ((PrefsFile=fopen(Pathname,"w"))==NULL) + { +Index: freesweep-0.90/pbests.c +=================================================================== +--- freesweep-0.90.orig/pbests.c ++++ freesweep-0.90/pbests.c +@@ -382,7 +382,7 @@ + SweepError("You do not have a username!"); + buf = "unknown"; + } +- strcpy(b->name, buf); ++ strncpy(b->name, buf, sizeof(b->name)-1); + + /* get the real time it was completed */ + time(&now); +@@ -436,16 +436,9 @@ + /* full path to group best times file */ + char* FPTGBTF(void) + { +- char *fp = NULL; +- +- /* get me some memory for the string */ +- fp = (char*)xmalloc(strlen(mkstr(SCORESDIR)) + 11); +- +- /* make the full path */ +- strcpy(fp, mkstr(SCORESDIR)); +- strcat(fp, "/sweeptimes"); +- +- return fp; ++#define xmkstr(x) mkstr(x) ++ return strdup(xmkstr(SCORESDIR) "/sweeptimes"); ++#undef xmkstr + } + #endif /* USE_GROUP_BEST_FILE */ + --- freesweep-0.90.orig/debian/patches/do-not-create-too-many-mines +++ freesweep-0.90/debian/patches/do-not-create-too-many-mines @@ -0,0 +1,39 @@ +freesweep enters an infinite loop when placing mines if the user's +configuration has it creating more than (boardsize - 9) mines. This is +caused by game.c:510 not allowing mines to be created within a 3x3 block +at the centre of the field, while the initial configuration allows for +more than (boardsize - 9) mines to be created. This patch makes a board +size of 3x3 invalid because no mines can be placed and lowers the +maximum allowable number of mines on a board to (boardsize - 9). + +Patch provided by Seneca for freesweep-0.88 +see http://bugs.debian.org/249896 + +Index: freesweep-0.90/game.c +=================================================================== +--- freesweep-0.90.orig/game.c ++++ freesweep-0.90/game.c +@@ -14,12 +14,12 @@ + + int CheckHeight(int NewVal) + { +- return (((NewVal>2)&&(NewVal<=MAX_H))?1:-1); ++ return (((NewVal>3)&&(NewVal<=MAX_H))?1:-1); + } + + int CheckWidth(int NewVal) + { +- return (((NewVal>2)&&(NewVal<=MAX_W))?1:-1); ++ return (((NewVal>3)&&(NewVal<=MAX_W))?1:-1); + } + + int CheckPercent(int NewVal) +@@ -53,7 +53,7 @@ + */ + int CheckNumMines(int NewVal,int Height,int Width) + { +- return (((NewVal>0)&&(NewVal<(Height*Width)))?1:-1); ++ return (((NewVal>0)&&(NewVal<(Height*Width-8)))?1:-1); + } + + int InitGame(GameStats* Game) --- freesweep-0.90.orig/debian/patches/fsf-address +++ freesweep-0.90/debian/patches/fsf-address @@ -0,0 +1,23 @@ +Index: freesweep-0.90/gpl.c +=================================================================== +--- freesweep-0.90.orig/gpl.c ++++ freesweep-0.90/gpl.c +@@ -22,7 +22,7 @@ + " Version 2, June 1991", + "", + " Copyright (C) 1989, 1991 Free Software Foundation, Inc.", +-" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA", ++" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA", + " Everyone is permitted to copy and distribute verbatim copies", + " of this license document, but changing it is not allowed.", + "", +@@ -326,7 +326,8 @@ + "", + " You should have received a copy of the GNU General Public License", + " along with this program; if not, write to the Free Software", +-" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA", ++" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,", ++" MA 02110-1301 USA.", + "", + "", + "Also add information on how to contact you by electronic and paper mail.", --- freesweep-0.90.orig/debian/patches/do-not-strip +++ freesweep-0.90/debian/patches/do-not-strip @@ -0,0 +1,13 @@ +Index: freesweep-0.90/Makefile.in +=================================================================== +--- freesweep-0.90.orig/Makefile.in ++++ freesweep-0.90/Makefile.in +@@ -60,7 +60,7 @@ + + install: $(TARGET) $(TARGET).6 + touch sweeptimes +- ./install-sh -c -m 2555 -o root -g games -s $(TARGET) $(bindir)/$(TARGET) ++ ./install-sh -c -m 2555 -o root -g games $(TARGET) $(bindir)/$(TARGET) + ./install-sh -c -m 0664 -o root -g games sweeptimes @SCORESDIR@/sweeptimes + ./install-sh -c -m 0644 -o root -g games sweeprc @PREFSDIR@/sweeprc + ./install-sh -c -m 0444 -o root -g games $(TARGET).6 @mandir@/man6/$(TARGET).6