--- mgt-2.31.orig/debian/README.source +++ mgt-2.31/debian/README.source @@ -0,0 +1,3 @@ +Uses quilt; see /usr/share/doc/quilt/README.source. + + -- Steve M. Robbins , Sun, 10 Jul 2016 01:26:02 -0500 --- mgt-2.31.orig/debian/changelog +++ mgt-2.31/debian/changelog @@ -0,0 +1,108 @@ +mgt (2.31-7) unstable; urgency=medium + + * [ef0250f] Set debhelper compat to 9. Closes: #829221 + * [579a8e3] Avoid removing wrapmgt and debian/compat in clean rule. + * [8e7f488] Build-depend on debhelper >=9. + * control: Update standards version. Add ${misc:Depends}. Remove leading article from description. + * Add README.source. + + -- Steve M. Robbins Sun, 10 Jul 2016 01:32:16 -0500 + +mgt (2.31-6) unstable; urgency=low + + * debian/rules: include patchsys-quilt.mk. + * debian/control: build-depend on quilt. + + * debian/patches/cdbs-prep.patch: New. Move the 2007-08-18 changes from + the diff.gz to here. + + * debian/patches/modernize-code.patch: New. Move the remaining debian + diff changes here. + + * debian/patches/manpages.patch: New. Fix bugs in mgt.6 and mailgo.6. + + * debian/patches/secure-tmpfile-creation.patch: New. Use "mktemp" to + securely create a temp file. Thanks to Thijs Kinkhorst for the patch. + Closes: #496434. + + * debian/control: Set Standards-Version to 3.8.0.0; no changes. + + -- Steve M. Robbins Mon, 25 Aug 2008 21:06:47 -0500 + +mgt (2.31-5) unstable; urgency=low + + * Makefile: Move $(DEFS) out of CFLAGS definition into rule .c.o. This + is needed because cdbs sets CFLAGS on the make invocation. + + * debian/rules: Rewrite using cdbs. Now honours nostrip option. + Closes: #437562. + + -- Steve M. Robbins Sat, 18 Aug 2007 01:26:03 -0500 + +mgt (2.31-4) unstable; urgency=low + + * Remove postinst and prerm scripts that set up obsolete /usr/doc/mgt + symlink. See: #322762. + + -- Steve M. Robbins Sat, 13 Aug 2005 14:05:43 -0400 + +mgt (2.31-3) unstable; urgency=low + + * Do not define true and false, include stdbool.h instead. + Closes: #133705,133754. + Thanks to Junichi Uekawa. One bug report is sufficient! + + -- Steve M. Robbins Wed, 13 Feb 2002 09:21:33 -0500 + +mgt (2.31-2) unstable; urgency=low + + * New maintainer (closes: #89959). + + -- Steve M. Robbins Sat, 14 Jul 2001 10:37:46 -0400 + +mgt (2.31-1.3) unstable; urgency=low + + * Non-Maintainer Upload, during Bug Squashing Party. + * debian/copyright: add download URL and author name. + * Built against libncurses5 (closes: #52336). Die, ncurses3.4, die! + * debian/control: + + added Build-Depends + + updated Standards-Version to 3.5.2.0. + + Maintainer: Debian QA Group . One unique + upload in four years just sucks + * debian/README.Debian: removed, it was obsolete and redundant. + * debian/rules: + + FHS transition: install manpages and docs in /usr/share. + + call dpkg-gencontrol with "-isp". + + install Spec.io with the other docs. + + install debian/changelog as changelog.Debian + + removed .note and .comment sections from binaries. + * debian/{postinst,prerm}: add usr/doc -> usr/share/doc links. + + -- Jordi Mallach Fri, 16 Mar 2001 22:24:12 +0100 + +mgt (2.31-1.2) unstable; urgency=low + + * Non-maintainer release with source after waiting 8 months for the + maintainer to do something; fixes: #22886 + * sprinkled a couple of stdlib.h includes for malloc prototypes + * ditto string.h includes for strcpy/strlen prototypes + * remove debian/files and debian/substvars in clean target + + -- Paul Slootman Tue, 15 Dec 1998 13:24:28 +0100 + +mgt (2.31-1.1) unstable; urgency=low + + * Non-maintainer release. + * Libc6 compile. + * Updated from pre 2.0.0.0 package format. + + -- Martin Mitchell Wed, 12 Nov 1997 20:04:48 +1100 + +mgt (2.31-1); priority=LOW + + * Initial release + + -- Brian Sulcer Tue, 30 Jul 1996 17:52:59 + + --- mgt-2.31.orig/debian/compat +++ mgt-2.31/debian/compat @@ -0,0 +1 @@ +9 --- mgt-2.31.orig/debian/control +++ mgt-2.31/debian/control @@ -0,0 +1,17 @@ +Source: mgt +Section: games +Priority: optional +Maintainer: Steve M. Robbins +Build-Depends: libncurses5-dev, cdbs, debhelper (>= 9), quilt +Standards-Version: 3.9.8 + +Package: mgt +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: game record display/editor for the oriental game of go + Mgt allows the user to examine Go game tree files in the SmartGo format. + Mgt also has basic Go game tree editing capabilities and may be used + to create or edit game tree files. + . + Mailgo is a utility which manages E-mail Go games using mgt as the Go + board editor. It is included in the mgt package. --- mgt-2.31.orig/debian/copyright +++ mgt-2.31/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Brian Sulcer on +Tue, 30 Jul 1996 17:52:59. +Jordi Mallach updated the package to the current Standards on +Sat Mar 17 00:06:56 CET 2001, and transfered maintainership to Debian QA. + +It was downloaded from ftp://ftp.nuri.net/Go/mgt. + +Upstream Author is: Greg Hale . + +The following copyright was taken directly from the README file in the +source distribution: + +----------------------------------------------------------------------- + + "mgt" Copyright 1991 Shodan + All Rights Reserved. + Program by Greg Hale + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that this entire comment and copyright notice appear in all +copies and that both that copyright notice and this permission notice +appear in supporting documentation. No representations are made about +the suitability of this software for any purpose. It is provided "as +is" without express or implied warranty. --- mgt-2.31.orig/debian/patches/cdbs-prep.patch +++ mgt-2.31/debian/patches/cdbs-prep.patch @@ -0,0 +1,20 @@ +--- cvs.orig/Makefile ++++ cvs/Makefile +@@ -52,7 +52,7 @@ + O = .o + + CC = cc +-CFLAGS = -O $(DEFS) ++CFLAGS = -O + + LD = cc + LDFLAGS = +@@ -92,6 +92,8 @@ + + HDRS = mgt.h proto.h mou.h + ++.c.o: ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c -o $@ $< + + all : begin curses wrapmgt man end + --- mgt-2.31.orig/debian/patches/manpages.patch +++ mgt-2.31/debian/patches/manpages.patch @@ -0,0 +1,30 @@ +--- cvs.orig/mailgo.6 ++++ cvs/mailgo.6 +@@ -55,8 +55,8 @@ + also supports go board sizes of 9x9, 13x13 and 19x19. Handicaps + maybe set to values of 2-4 for 9x9 games, 2-5 for 13x13 games and 2-9 + for 19x19 games. Any other board size or handicap must be set behind +-.B mailgo +-'s back. ++.BR mailgo 's ++back. + .SH FILE FORMAT + .LP + .sp +--- cvs.orig/mgt.6 ++++ cvs/mgt.6 +@@ -1,12 +1,12 @@ + .\" Define keep macros as poor (wo)man's substitute for broken .DS/.DE macros +-.deKS \" start keep ++.de KS \" start keep + .sp \" make a little head room + .ev 1 \" collect text in new environment + .in 0n \" set zero indent relative to previous environment + .nf \" assume no-fill mode + .di GO \" start diversion called GO + .. +-.deKE \" end keep ++.de KE \" end keep + .br \" get last partial line + .di \" end diversion + .ne \\n(dn \" declare space needed for GO --- mgt-2.31.orig/debian/patches/modernize-code.patch +++ mgt-2.31/debian/patches/modernize-code.patch @@ -0,0 +1,129 @@ +--- cvs.orig/ascii.c ++++ cvs/ascii.c +@@ -1,6 +1,8 @@ + /* ascii.c test version 9/2/92 wclrtoeol */ + /* "mgt" Copyright (c) 1991 Shodan */ + ++#include ++#include + #include + #include "mgt.h" + +--- cvs.orig/comment.c ++++ cvs/comment.c +@@ -1,6 +1,7 @@ + /* "mgt" Copyright (c) 1991 Shodan */ + + #include "mgt.h" ++#include + #include + #include + +--- cvs.orig/doit.c ++++ cvs/doit.c +@@ -1,6 +1,8 @@ + /* "mgt" Copyright (c) 1991 Shodan */ + + #include "mgt.h" ++#include ++#include + + int xcur, ycur; + Token curPlayer; +--- cvs.orig/edit.c ++++ cvs/edit.c +@@ -1,6 +1,8 @@ + /* "mgt" Copyright (c) 1991 Shodan */ + + #include "mgt.h" ++#include ++#include + + int first; + nodep buffer = 0; +--- cvs.orig/mgt.c ++++ cvs/mgt.c +@@ -1,6 +1,7 @@ + /* "mgt" Copyright (c) 1991 Shodan */ + + ++#include + #include + #include "mgt.h" + +@@ -48,7 +49,7 @@ + }; + + +-FUNCTION main(argc, argv) ++FUNCTION int main(argc, argv) + int argc; + char **argv; + { +--- cvs.orig/mgt.h ++++ cvs/mgt.h +@@ -1,5 +1,7 @@ + /* "mgt" Copyright (c) 1991 Shodan */ + ++#include ++ + #define VERSION "2.31" + + #ifdef DEBUG +@@ -9,8 +11,6 @@ + #endif + + #define FUNCTION +-#define false 0 +-#define true 1 + + #define MAX(a,b) ((a)>(b)?a:b) + #define MIN(a,b) ((a)<(b)?a:b) +@@ -183,7 +183,7 @@ + extern char *saveName; + extern int retVal; + extern char name_buf[512]; +-extern filecount, currentfile; ++extern int filecount, currentfile; + extern char *files[MAX_FILES]; + + #ifdef DEBUG +--- cvs.orig/parse.c ++++ cvs/parse.c +@@ -1,5 +1,6 @@ + /* "mgt" Copyright (c) 1991 Shodan */ + ++#include + #include + #include "mgt.h" + +--- cvs.orig/proto.h ++++ cvs/proto.h +@@ -36,7 +36,7 @@ + extern void deleteNode(); + extern void makeName(); + extern void replaceComment(); +-extern main(); ++extern int main(); + extern void die(); + extern void myexit(); + extern void openfile(); +--- cvs.orig/tree.c ++++ cvs/tree.c +@@ -1,5 +1,7 @@ + /* "mgt" Copyright (c) 1991 Shodan */ + ++#include ++#include + #include "mgt.h" + + +--- cvs.orig/wrapmgt.c ++++ cvs/wrapmgt.c +@@ -1,4 +1,5 @@ +-#include ++#include ++#include + + main(argc, argv) + int argc; --- mgt-2.31.orig/debian/patches/secure-tmpfile-creation.patch +++ mgt-2.31/debian/patches/secure-tmpfile-creation.patch @@ -0,0 +1,23 @@ +--- cvs.orig/mailgo ++++ cvs/mailgo +@@ -27,6 +27,8 @@ + + MAILER=mail + ++set -e ++ + if [ $# -eq 0 ] + then + echo ' ' +@@ -349,8 +351,9 @@ + fi + if [ $1 = -- ] + then +- cat >/tmp/mailgo$$ +- set /tmp/mailgo$$ ++ MAILGOTEMP=`mktemp` ++ cat >$MAILGOTEMP ++ set $MAILGOTEMP + exec