--- bugsx-1.08.orig/debian/copyright +++ bugsx-1.08/debian/copyright @@ -0,0 +1,72 @@ +bugsx packaged for debian by John Lapeyre . +Debian package maintained by: + - (2001) Adrian Bunk + - (2003-2007) Marcin Owsiany + +Upstream location: ftp://ftp.x.org/contrib/applications + +1) Author & Copyright + + bugsx was written by + + (C) Copyright 1990-1997 Joshua R. Smith (jrs@media.mit.edu) + http://physics.www.media.mit.edu/~jrs + + (C) Copyright 1995-1997 Robert Gasch (Robert_Gasch@peoplesoft.com) + http://www.peoplesoft.com/peoplepages/g/robert_gasch/index.htm + + is copyright by the author(s). + + The debian packaging, including the menu icon is: + (C) Copyright 2007 Marcin Owsiany + +2) Distribution Policy + + bugsx: + + Permission to use, copy, modify and distribute this software for + any purpose and without fee is hereby granted, provided that this + copyright notice appear in all copies as well as supporting + documentation. All work developed as a consequence of the use of + this program should duly acknowledge such use. + + No representations are made about the suitability of this software for + any purpose. This software is provided "as is" without express or + implied warranty. + + See the GNU General Public Licence for more information. + + What does this mean? + This means that you can pretty much do with it what you want as + long as you don't charge substantially more than the distribution + costs for it (of course you have to make the source available). + + This makes software distributions like Walnut Creek or Infomagic + perfectly acceptable. + + It does NOT matter wether you use it at home or in a comercial + environment. + + If you want to include it in a major commercial distribution you + need my permission to do so. + +A copy of the mentioned GNU General Public Licence may be found at +/usr/share/common-licenses/GPL in Debian systems. + + debian packaing and icon: + + The debian packaging and menu icon is free software; you can + redistribute it and/or modify it under the terms of the GNU General + Public License version 2, as published by the Free Software Foundation. + +A copy of the mentioned GNU General Public Licence version 2 may be found at +/usr/share/common-licenses/GPL-2 in Debian systems. + +A comment from the Debian maintainer: + + As noted in the thread starting at + http://lists.debian.org/debian-legal/2006/04/msg00222.html + the license is not clearly stated, but to be safe, I decided to move the + package to non-free. + + -- Marcin Owsiany , Fri, 28 Apr 2006 20:26:12 +0100 --- bugsx-1.08.orig/debian/compat +++ bugsx-1.08/debian/compat @@ -0,0 +1 @@ +5 --- bugsx-1.08.orig/debian/bugsx.desktop +++ bugsx-1.08/debian/bugsx.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=Bugsx +GenericName=Evolve biomorphs +GenericName[pl]=Ewolucja robali +Comment=Evolve biomorphs using genetic algorithms +Comment[pl]=Zabawa w ewolucję owadów z użyciem algorytmów genetycznych +Icon=bugsx.xpm +Exec=bugsx -g +0+0 +Terminal=false +Categories=Game;Amusement --- bugsx-1.08.orig/debian/control +++ bugsx-1.08/debian/control @@ -0,0 +1,14 @@ +Source: bugsx +Section: non-free/math +Priority: optional +Maintainer: Marcin Owsiany +Build-Depends: debhelper (>> 5), libx11-dev, libxext-dev, xutils-dev +Standards-Version: 3.7.3 + +Package: bugsx +Architecture: any +Depends: ${shlibs:Depends} +Description: program to evolve biomorphs using genetic algorithms + bugsx is a program which draws biomorphs based + on parametric plots of Fourier sine and cosine series + and let's you play with them using genetic algorithms. --- bugsx-1.08.orig/debian/bugsx.xpm +++ bugsx-1.08/debian/bugsx.xpm @@ -0,0 +1,37 @@ +/* XPM */ +static char * bugsx_xpm[] = { +"32 32 2 1", +" c None", +". c #101010", +" ", +" ", +" ", +" ", +" ...... ", +" . ... ", +" .. .. .. ", +" . . .. ", +" . . .. ", +" . . . ", +" . . . ... ", +" .. . .. . . ", +" . .. .. . . . . ", +" . . ........ . . ", +" . ....... . ... . ", +" . ... . .. .... . ", +" . . . .. . . ", +" . . . .. .... . ", +" .. ... ....... .. ", +" . . ...... . . . ", +" . .. ... . . ", +" . . . .... ", +" . .. . .. ", +" . .. ", +" . .. .. ", +" . . .. ", +" . . . ", +" .. .. ", +" ..... ", +" ", +" ", +" "}; --- bugsx-1.08.orig/debian/bugsx.menu +++ bugsx-1.08/debian/bugsx.menu @@ -0,0 +1,7 @@ +?package(bugsx):\ + needs="X11"\ + icon="bugsx.xpm"\ + section="Games/Toys"\ + title="Bugsx"\ + longtitle="Evolve biomorphs using genetic algorithms."\ + command="/usr/bin/bugsx -g +0+0" --- bugsx-1.08.orig/debian/rules +++ bugsx-1.08/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f +# debhelperized by Marcin Owsiany + +#export DH_VERBOSE=1 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +export CFLAGS + +# dh_strip will take care of nostrip + +build: build-stamp +build-stamp: + dh_testdir + xmkmf + $(MAKE) CDEBUGFLAGS="-g -Wall" CCOPTIONS="$(CFLAGS)" + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + if [ -e Makefile ] ; then make distclean ; fi + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install install.man DESTDIR=$(CURDIR)/debian/tmp + install -m 0755 -d $(CURDIR)/debian/tmp/usr/share/applications/ + install -m 0644 debian/bugsx.desktop $(CURDIR)/debian/tmp/usr/share/applications/ + install -m 0755 -d $(CURDIR)/debian/tmp/usr/share/pixmaps/ + install -m 0644 debian/bugsx.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps/ + +binary-indep: build install +# We have nothing to do. + +binary-arch: build install + dh_testdir + dh_testroot + dh_install --sourcedir=debian/tmp + dh_installdocs README bugsx.ps.gz + dh_installchangelogs + dh_installmenu + dh_strip + dh_compress + dh_desktop + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + --- bugsx-1.08.orig/debian/watch +++ bugsx-1.08/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/^(.)/$1./" \ + ftp://ftp.x.org/contrib/applications/bugsx(.*)\.tgz --- bugsx-1.08.orig/debian/changelog +++ bugsx-1.08/debian/changelog @@ -0,0 +1,118 @@ +bugsx (1.08-12) unstable; urgency=medium + + * Added a dependency on libxext-dev, which is needed now that libx11-dev + does not depend on it (closes: 475065) + * Bumped Standards-Version to 3.7.3 (no changes needed) + * Capitalized "needs" value and added a longtitle to the menu file + * Changed clean target to run distclean when Makefile exists, instead of + ignoring its exit status + * Fix "dependency" spelling errors in changelog + + -- Marcin Owsiany Wed, 9 Apr 2008 19:53:34 +0100 + +bugsx (1.08-11) unstable; urgency=low + + * Added a desktop file (closes: 432462) and a call to dh_desktop + * Switched from deprecated dh_movefiles to dh_install + * Added a menu icon, just a simple rescaled snapshot of a part of the + screen, with transparent background. + + -- Marcin Owsiany Fri, 10 Aug 2007 16:19:48 +0100 + +bugsx (1.08-10) unstable; urgency=low + + * Patched xbutil.c to avoid a buffer overflow (closes: 431374) + * Fixed the menu file (outdated path, missing quotes). Also changed section + to Games/Toys, since it's not really a math application as such + * Bumped Standards-Version to 3.7.2 (no changes needed) + * Fixed section in manpage to 1x to match filename + * Updated DH compat version and build-dep to 5 + * Updated year in the copyright + * Added a uscan watch file (closes: 377346) + + -- Marcin Owsiany Mon, 2 Jul 2007 10:03:06 +0100 + +bugsx (1.08-9) unstable; urgency=high + + * Transition to xorg 7 (RC, thus high urgency): + - debian/bugsx.files: changed binary and manpage path to match new + standard-FHS X layout + - build-depend on xutils-dev for imake (closes: 364041, 348163) + * A proper review of the license text resulted in: + - added the whole text of "distribution policy" and my comment to + debian/copyright + - moved to non-free + - more details in thread starting at: + http://lists.debian.org/debian-legal/2006/04/msg00221.html + * Improved description synopsis a little bit + + -- Marcin Owsiany Fri, 28 Apr 2006 20:27:24 +0100 + +bugsx (1.08-8) unstable; urgency=low + + * Change build-dependency on xlibs-dev to libx11-dev, since the former was + removed from the archive. (closes: 346628) + + -- Marcin Owsiany Sat, 14 Jan 2006 14:08:50 +0100 + +bugsx (1.08-7) unstable; urgency=low + + * New maintainer. (closes: #86636) + * Now using debhelper: + - corrected update-menu invocation + - don't create/remove the /usr/doc symlink + * Pay attention to DEB_BUILD_OPTIONS + * Upgraded standards-version + * Moved the binary and manpage to /usr/X11R6/{bin,man} (this is + where the imake-generated makefile would put them) and corrected + the path in menu file + + -- Marcin Owsiany Sun, 13 Apr 2003 16:31:18 +0200 + +bugsx (1.08-6) unstable; urgency=low + + * Orphaned this package. + + -- Adrian Bunk Fri, 25 Jan 2002 14:05:00 +0100 + +bugsx (1.08-5) unstable; urgency=low + + * New maintainer. (closes: #68303) + * Remove the Makefile in the clean target. + * Added "-isp" to dpkg-gencontrol in debian/rules. + * Strip bugsx better. + * /usr/doc -> /usr/share/doc + * /usr/man -> /usr/share/man + * Added build dependencies. + * Standards-Version: 3.1.1 + + -- Adrian Bunk Sat, 3 Feb 2001 19:47:08 +0100 + +bugsx (1.08-4) unstable; urgency=low + + * Maintainer set to Debian QA Group. + * Removed README.debian. + * Removed the emacs config directives from debian/changelog. + + -- Martin Michlmayr Fri, 22 Dec 2000 15:51:08 +0100 + +bugsx (1.08-3) unstable; urgency=low + + * link against glibc 2.1.1 + * add to menu-system + + -- John Lapeyre Thu, 25 Mar 1999 00:26:44 -0700 + +bugsx (1.08-2) unstable; urgency=low + + * Fixed description. + * fixed hardcoded egcc. + + -- John Lapeyre Tue, 15 Sep 1998 18:59:44 -0700 + +bugsx (1.08-1) unstable; urgency=low + + * Initial Release. + + -- John Lapeyre Tue, 25 Aug 1998 12:13:45 -0700 + --- bugsx-1.08.orig/debian/bugsx.install +++ bugsx-1.08/debian/bugsx.install @@ -0,0 +1,4 @@ +usr/bin/bugsx +usr/share/man/man1/bugsx.1x +usr/share/applications/bugsx.desktop +usr/share/pixmaps/bugsx.xpm --- bugsx-1.08.orig/xbutil.c +++ bugsx-1.08/xbutil.c @@ -167,9 +167,11 @@ /* *** Load the local app-defaults file. *** */ if (getenv ("XAPPLRESDIR")) { - strcpy(name, getenv ("XAPPLRESDIR")); - strcat(name, "/"); - strcat(name, CLASS_NAME); + if (snprintf(name, sizeof(name), "%s/" CLASS_NAME, getenv("XAPPLRESDIR")) >= sizeof(name)) + { + fprintf(stderr, "snprintf: XAPPLRESDIR too long"); + exit(EXIT_FAILURE); + } resourceDB = XrmGetFileDatabase(name); if (resourceDB) sprintf (msg, --- bugsx-1.08.orig/bugsx.man +++ bugsx-1.08/bugsx.man @@ -1,4 +1,4 @@ -.TH BUGSX 1 X11 +.TH BUGSX 1x X11 .SH NAME bugsx \- display and evolve biomorphs .SH DESCRIPTION