debian/0000755000000000000000000000000012215771007007170 5ustar debian/watch0000644000000000000000000000010712215770427010224 0ustar version=2 http://shh.thathost.com/pub-unix/ files/snake4-(.*)\.tar\.gz debian/copyright0000644000000000000000000000320712215770427011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: snake4 Upstream-Contact: Sverre H. Huseby Source: http://shh.thathost.com/pub-unix/ Files: * Copyright: 1996-2002 Sverre H. Huseby License: Artistic License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the "Artistic License" which comes with Debian. . THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. Files: debian/* Copyright: 1997 Ole J. Tetlie , 2013 Alexandre Dantas License: GPL-3.0+ License: GPL-3.0+ 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 3 of the License, or (at your option) any later version. . This package 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, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".debian/compat0000644000000000000000000000000212215770427010373 0ustar 9 debian/source/0000755000000000000000000000000012215770427010475 5ustar debian/source/format0000644000000000000000000000001412215770427011703 0ustar 3.0 (quilt) debian/snake4.desktop0000644000000000000000000000032212215770427011752 0ustar [Desktop Entry] Version=1.0 Type=Application Terminal=0 Name=Snake4 Icon=/usr/share/pixmaps/snake4.xpm GenericName=Snake4 Game Exec=/usr/games/snake4 Categories=Game;ActionGame Comment=Fruit-eating snake game debian/snake4scores.60000644000000000000000000000001512215770427011664 0ustar .so snake4.6 debian/rules0000755000000000000000000000253312215770427010260 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS := $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) LDFLAGS += -Wl,-z,defs build-arch: build-stamp build-indep: build-stamp: dh_testdir $(MAKE) INSTLIBDIR=/var/games/snake4 \ INCDIR='$(CPPFLAGS)' \ CFLAGS='$(CFLAGS)' \ LDOPT='$(LDFLAGS)' \ OPTIM='' \ EXTRA_LIBS='' \ COMPILED_BY='Debian' \ COMPILED_DATE="`date '+%Y-%m-%d %H:%M:%S'`" \ HOSTTYPE='Debian' \ all snake4.score touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp snake4 $(MAKE) clean dh_clean binary-indep: binary-arch: build-stamp dh_testdir dh_testroot dh_prep dh_installdirs dh_install dh_installchangelogs ChangeLog dh_installdocs dh_installmenu dh_installdebconf dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms chown root:games debian/snake4/var/games/snake4 chmod 755 debian/snake4/var/games/snake4 chown root:games debian/snake4/usr/games/snake4 chmod 2755 debian/snake4/usr/games/snake4 dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch build: build-arch build-indep .PHONY: build build-arch build-indep clean binary-indep binary-arch binary debian/patches/0000755000000000000000000000000012215770427010624 5ustar debian/patches/series0000644000000000000000000000022712215770427012042 0ustar 0001-Changed-point-from-xpm.h-to-X11-xpm.h-in-score.c-fil.patch 0002-compiler-warnings-removed-in-score.c.patch 0003-fix-minus-hyphen-in-manpage.patch debian/patches/0003-fix-minus-hyphen-in-manpage.patch0000644000000000000000000000412112215770427017445 0ustar From 53315c433061deddf946649284ac1969aad20478 Mon Sep 17 00:00:00 2001 From: Michael Boegl Date: Mon, 17 Jan 2011 09:34:24 +0100 Subject: fix minus/hyphen in manpage --- snake4.6 | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/snake4.6 b/snake4.6 index b8cd47c..b65ecd4 100644 --- a/snake4.6 +++ b/snake4.6 @@ -21,7 +21,7 @@ Move the snake around the screen and eat food. The snake grows in length as you eat. Avoid hitting the fence, eating lethal mushrooms and rotten food, and biting your own tail. -Now and then a slim-pill will bounce around. If you eat this, you will +Now and then a slim\-pill will bounce around. If you eat this, you will get shorter, and you will gain bonus points for every length you loose. The bonus is also given when a round is over. @@ -29,30 +29,30 @@ When food starts blinking, it's about to rot. Rotten food is poisonous, and thus uneatable. As long as it blinks, it can still be eaten. -Oh, yes - I almost forgot: You may be visited by the evil headbanger. +Oh, yes \- I almost forgot: You may be visited by the evil headbanger. Take my advice and run away from him before he hits you in the head! He won't stay long. The keys used to control the game are given at startup. .B snake4 -features a site-wide highscore file. The file contains the top 200 +features a site\-wide highscore file. The file contains the top 200 users. Each user may appear once only in the highscore table. For technical reasons, .B snake4 connects to the X11 server before parsing options. This makes it -impossible to eg. browse the highscore table using -H if no server is +impossible to eg. browse the highscore table using \-H if no server is available. To be able to see the scores in such a case, .B snake4scores produces the same output as .B snake4 -with option -H, but does no attempt on connecting to the X11 server. +with option \-H, but does no attempt on connecting to the X11 server. .SS OPTIONS .TP -.I "-h, \-\-help" +.I "\-h, \-\-help" Print a usage message on standard output, and exit successfully. .TP debian/patches/0001-Changed-point-from-xpm.h-to-X11-xpm.h-in-score.c-fil.patch0000644000000000000000000000106512215770427023423 0ustar From 8f3eab454ea22d4811322bee2d6ff7689d42aec5 Mon Sep 17 00:00:00 2001 From: Jose Carlos Medeiros Date: Fri, 28 Apr 2006 19:10:02 -0300 Subject: Changed point from xpm.h to X11/xpm.h in score.c file. Bug-Debian: http://bugs.debian.org/365165 --- board.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board.c b/board.c index 46df53e..bb7c37d 100644 --- a/board.c +++ b/board.c @@ -32,7 +32,7 @@ #include "board.h" /* must be last to avoid redefinition of Pixel */ -#include +#include debian/patches/0002-compiler-warnings-removed-in-score.c.patch0000644000000000000000000000160412215770427021262 0ustar From 63bf66f4ace9cff709365f2d71545deda57e39f7 Mon Sep 17 00:00:00 2001 From: Michael Boegl Date: Mon, 17 Jan 2011 09:34:24 +0100 Subject: compiler warnings removed in score.c --- score.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/score.c b/score.c index 44506a9..824b148 100644 --- a/score.c +++ b/score.c @@ -509,12 +509,15 @@ scoreMergeScoreFile(char *file) if (fgets(line, sizeof(line), merge) == NULL) goto unlock; n = atoi(line); - for (q = 0; q < n; q++) - if ((hs = scoreReadScoreLine(merge)) != NULL) - if (scorePossiblyAddEntry(hs)) + for (q = 0; q < n; q++) { + if ((hs = scoreReadScoreLine(merge)) != NULL) { + if (scorePossiblyAddEntry(hs)) { changed = 1; - else + } else { scoreFree(hs); + } + } + } /* possibly save new highscore table */ if (changed) { debian/snake4.xpm0000644000000000000000000000437712215770427011123 0ustar /* XPM */ static char * snake4_xpm[] = { "32 32 73 1", " c #000000", ". c #393939", "+ c #838383", "@ c #B7B7B7", "# c #9B9B9B", "$ c #4C4C4C", "% c #1D1D1D", "& c #171700", "* c #A4A400", "= c #717171", "- c #6F6F6F", "; c #A2A2A2", "> c #535353", ", c #3A3A3A", "' c #464600", ") c #757500", "! c #E0E0E0", "~ c #363636", "{ c #121212", "] c #7E7E7E", "^ c #5A5A5A", "/ c #8D8D8D", "( c #393900", "_ c #E7E700", ": c #CFCF00", "< c #D3D300", "[ c #242424", "} c #909090", "| c #AAAA00", "1 c #1D1D00", "2 c #A7A7A7", "3 c #696900", "4 c #BCBCBC", "5 c #777777", "6 c #565656", "7 c #1C1C00", "8 c #555500", "9 c #B8B800", "0 c #777700", "a c #9E9E9E", "b c #008200", "c c #00FF00", "d c #005100", "e c #ABAB00", "f c #ACAC00", "g c #9D9D00", "h c #2B2B00", "i c #0E0E00", "j c #00C300", "k c #0000D3", "l c #1C0000", "m c #550000", "n c #556C00", "o c #1C4800", "p c #005A00", "q c #00A200", "r c #C60000", "s c #FF0000", "t c #C62400", "u c #715A00", "v c #F10E00", "w c #BA4800", "x c #E31200", "y c #E31D00", "z c #C73A00", "A c #F50000", "B c #8E0000", "C c #7A0000", "D c #710000", "E c #D61D00", "F c #890000", "G c #2B0000", "H c #480000", " .+@#$% &*", ".=-;;>,% ')", "!~{]^{~/ (_'", "!~~^~~~/ (:<'", "[};^^;}[ (_<|1", " [2]^^[ (:<<3 ", "~^4566^~ 78_<90 ", ";~-#a6~; bcccd efgghi ", " cjjjjjb ", " ccccccjjjjjjjbb ", " ccjjjjjjjjjjjjjjjb ", " cjjjjjjjjjjkkkkjjjjb ", " cjjjjbjjjjjjjjjjjjjj ", "cjjjjjjbjjjjjjjjjjjjj ", "cjjjjjjjjbjjkkkkjjjjd ", "cjjbjjbjjjjjjjjjjjjd ", "cjjjbjjjddjjjjjjjdd ", "cjjjjjjd djjjjbd ", "cjjjjbjd ddd ", "cjbjjjjd ", "cjjjjjjd ", "cjjbjjjd ", "cjjjbjjd ", "cjjjjjjd ", "cjjjjbjd lmnopqlm", "cjjjjbjd rsstqurs", " jjjjjd vwxuntsy", " bjjbbd vvxxyysy", " bbjd sszyszsA", " bjjd BsyszsAC", " dd DrsyEFG", " lmmH "}; debian/menu0000644000000000000000000000021212215770427010057 0ustar ?package(snake4):needs="X11" section="Games/Action"\ title="Snake4" command="/usr/games/snake4"\ icon="/usr/share/pixmaps/snake4.xpm" debian/changelog0000644000000000000000000001400712215771007011044 0ustar snake4 (1.0.12-15.1) unstable; urgency=low * Non-maintainer upload. * Move package from experimental to unstable. -- Anton Gladky Tue, 17 Sep 2013 08:08:42 +0200 snake4 (1.0.12-15) experimental; urgency=low * New mantainer (Closes: #581387) * debian/copyright: complied to the 3.9.4 format * debhelper compatibility up to 9 * debian/rules: modernized * debian/control: Standards-Version to 3.9.4 -- Alexandre Dantas Wed, 24 Apr 2013 11:20:30 -0300 snake4 (1.0.12-14) unstable; urgency=low * QA upload, incorporating old package found on mentors.debian.org from Michael Boegl * change to format "3.0 (quilt)" * debhelper compatibility up to 7 * modernize debian/rules - add build-arch/build-indep - use dh_install instead of manual cp and heavily patched Makefile - use dpkg-buildflags * install default score file * don't misuse dpkg-statoverride * Standards-Version to 3.9.2 * add Vcs-* -- Bernhard R. Link Wed, 21 Sep 2011 15:43:40 +0200 snake4 (1.0.12-13) unstable; urgency=low * compiler warnings removed in score.c * made lintian clean for 3.9.1 * Uploader removed upon mail request -- Michael Boegl Mon, 17 Jan 2011 09:34:24 +0100 snake4 (1.0.12-12) unstable; urgency=low * New maintainer (Closes: #581387) -- Michael Boegl Sun, 16 Jan 2011 17:12:44 +0100 snake4 (1.0.12-11) unstable; urgency=low * debian/menu: changed section to Games/Action, thanks to Bill Allombert. (Closes: #444893) -- Jose Carlos Medeiros Sat, 03 Nov 2007 01:29:27 +0000 snake4 (1.0.12-10) unstable; urgency=low * Removed "-s" option from install and ldd in Makefile, to complain with nostrip build option (policy 10.1). (Closes: #438031) * Solved debian-rules-ignores-make-clean-error Lintian. * snake4.desktop: removed invalid "Application" category. * snake4.menu: changed section to "Games/Puzzles". -- Jose Carlos Medeiros Fri, 21 Sep 2007 17:34:24 -0300 snake4 (1.0.12-9) unstable; urgency=low * Bump Standards-Version: 3.7.2. * DH_COMPAT = 5 -- Jose Carlos Medeiros Thu, 17 May 2007 23:32:14 -0300 snake4 (1.0.12-8) unstable; urgency=low * Added libxmu-dev and libxpm-dev as Build-Depends. * Changed point from xpm.h to X11/xpm.h in score.c file. (closes: #365165) -- Jose Carlos Medeiros Fri, 28 Apr 2006 19:10:02 -0300 snake4 (1.0.12-7) unstable; urgency=low * Removed debian/compat file and put DH_COMPAT line in rules file. * Updated to DH_COMPAT=5. * Changed depends from Xaw8 to Xaw7. (closes: #359309) -- Jose Carlos Medeiros Mon, 27 Mar 2006 16:43:10 -0300 snake4 (1.0.12-6) unstable; urgency=low * Solved 'FTBFS: build-depends on removed xlibs-dev'. (Closes: #347089) -- Jose Carlos Medeiros Mon, 16 Jan 2006 20:51:09 -0200 snake4 (1.0.12-5) unstable; urgency=low * Updated debian/watch file. * Added Ola as Uploader. * Updated to Standards-Version: 3.6.2. * Added snake4.xpm file, snake4.desktop file and updated menu file. * Added debian/links file. -- Jose Carlos Medeiros Fri, 30 Sep 2005 14:09:26 -0300 snake4 (1.0.12-4) unstable; urgency=low * New maintainer (Closes: #273706) * Added compat, watch and postrm file. * Updated control, rules and postinst files to complain with debhelper 4. * Updated license in debian/copyright file. * Changed var/lib/games to var/games/snake4 in dirs file. * Deleted conffile file. -- Jose Carlos Medeiros Fri, 1 Jul 2005 15:10:16 -0300 snake4 (1.0.12-3) unstable; urgency=low * QA Group upload orphaning this package * debian/menu: quote the unquoted * Incorporate previous NMU (closes: #170013) -- Andrew Pollock Tue, 9 Nov 2004 09:58:45 +1100 snake4 (1.0.12-2.1) unstable; urgency=low * NMU - Moved Build-Depends from libxaw-dev to libxaw6-dev (Closes: #170013) - Added proper information to debian/copyright -- Javier Fernandez-Sanguino Pen~a Fri, 9 Jan 2004 01:02:50 +0100 snake4 (1.0.12-2) unstable; urgency=low * Updated build-depends to libshhmsg1-dev and libshhopt1-dev (Closes: #151100) -- Karl Soderstrom Fri, 28 Jun 2002 19:08:38 +0200 snake4 (1.0.12-1) unstable; urgency=low * New upstream release (with clarified license in README) * Updated debian/copyright with Artistic license (Closes: #130400) * Fixed typo in description (Closes: #125369) -- Karl Soderstrom Sun, 31 Mar 2002 13:35:30 +0200 snake4 (1.0.11-4) unstable; urgency=low * Added sticky bit to /usr/games/snake4, which means it should be possible to write to the high score file. (Closes: #115650) -- Karl Soderstrom Fri, 14 Dec 2001 14:46:04 +0100 snake4 (1.0.11-3) unstable; urgency=low * Moved high score file to /var/games. -- Karl Soderstrom Sat, 10 Mar 2001 11:56:07 +0100 snake4 (1.0.11-2) unstable; urgency=low * Updated maintainer email. * Updated download URL and author contacts. * Removed INSTALL and empty README.Debian. -- Karl Soderstrom Sat, 27 Jan 2001 23:31:01 +0100 snake4 (1.0.11-1) unstable; urgency=low * New upstream release (Closes: #27562) * New maintainer (Closes: #74839) * Compiled against libxpm4 (Closes: #67950) * Changed to debhelper -- Karl Soderstrom Fri, 8 Dec 2000 20:20:04 +0100 snake4 (1.0.10-1.1) unstable; urgency=low * NMU by Branden Robinson . * Recompile against modern xpm4g package to get proper shared library dependency and permit this package to be installed with forthcoming XFree86 4.x packages, which include libXpm. * debian/control: added Build-Depends -- Branden Robinson Mon, 23 Oct 2000 14:28:59 -0500 snake4 (1.0.10-1) unstable; urgency=low * Initial Release. -- Ole J. Tetlie Sun, 7 Dec 1997 17:24:35 +0100 debian/links0000644000000000000000000000005012215770427010233 0ustar usr/games/snake4 usr/games/snake4scores debian/postrm0000644000000000000000000000016012215770427010441 0ustar #! /bin/sh set -e case "$1" in purge) rm -f /var/games/snake4/snake4.score ;; esac #DEBHELPER# exit 0 debian/snake4.lintian-overrides0000644000000000000000000000006212215770427013740 0ustar snake4: statically-linked-binary usr/games/snake4 debian/manpages0000644000000000000000000000003712215770427010713 0ustar snake4.6 debian/snake4scores.6 debian/snake4.install0000644000000000000000000000021612215770427011751 0ustar debian/snake4.xpm /usr/share/pixmaps/ debian/snake4.desktop /usr/share/applications/ snake4 /usr/games/ snake4.score /usr/share/games/snake4/ debian/control0000644000000000000000000000155312136023304010567 0ustar Source: snake4 Section: games Priority: optional Maintainer: Alexandre Dantas Build-Depends: debhelper (>= 9), libx11-dev, libxt-dev, libxaw7-dev, libshhmsg1-dev, libshhopt1-dev, libxmu-dev, libxpm-dev Standards-Version: 3.9.4 Homepage: http://shh.thathost.com/pub-unix/#snake4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/snake4.git Vcs-Git: git://anonscm.debian.org/collab-maint/snake4.git Package: snake4 Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Snake game This is a basic but nice implementation of the snake game. The objective is to "snake around" and eat fruit, while avoiding the evil headbanger and not crashing into your tail. . Features five levels of difficulty and a site-wide high score list. . Screenshot: http://screenshots.debian.net/screenshots/s/snake4/1555_large.png debian/postinst0000644000000000000000000000042712215770427011006 0ustar #! /bin/sh set -e case "$1" in configure) # if score file is empty, create one. if [ ! -f /var/games/snake4/snake4.score ]; then install -o root -g games -m 664 /usr/share/games/snake4/snake4.score /var/games/snake4/snake4.score fi ;; esac #DEBHELPER# exit 0 debian/dirs0000644000000000000000000000010412215770427010054 0ustar usr/games usr/share/pixmaps var/games/snake4 usr/share/applications debian/docs0000644000000000000000000000002412215770427010044 0ustar CREDITS README TODO