From f894f11ad3300a6fbf3544e5acd0c79e4dfdee47 Mon Sep 17 00:00:00 2001 From: Gergely Madarasz Date: Tue, 10 Mar 1998 22:32:59 +0100 Subject: [PATCH] Imported Debian patch 0.4-3 --- .depend | 1 + Configure | 2 +- Makefile | 199 +++++++++++++++++++++++++++++++++++++++++++ config.h | 8 ++ debian/README.debian | 6 ++ debian/changelog | 25 ++++++ debian/control | 24 ++++++ debian/copyright | 28 ++++++ debian/dirs | 2 + debian/menu | 1 + debian/rules | 62 ++++++++++++++ 11 files changed, 357 insertions(+), 1 deletion(-) create mode 100644 .depend create mode 100644 Makefile create mode 100644 config.h create mode 100644 debian/README.debian create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/menu create mode 100755 debian/rules diff --git a/.depend b/.depend new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.depend @@ -0,0 +1 @@ + diff --git a/Configure b/Configure index 7fe293e..605ed41 100755 --- a/Configure +++ b/Configure @@ -73,7 +73,7 @@ CFLAGS="$COPT $CEXTRA" echo "Checking for libraries" echo 'main(){}' > test.c LFLAGS="" -for lib in -lsocket -lnsl -lcurses -ltermcap +for lib in -lsocket -lnsl -lncurses -ltermcap do if $CC $CFLAGS $LEXTRA test.c $lib > /dev/null 2>&1; then LFLAGS="$LFLAGS $lib" diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..76692f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,199 @@ +# +# Automatically generated by ./Configure -- DO NOT EDIT! +# + +CC = gcc +COPT = -O2 +CEXTRA = -DNDEBUG +LEXTRA = +LFLAGS = -lnsl -lncurses +CFLAGS = $(CEXTRA) $(COPT) + +PROG = netris +HEADERS = netris.h + +SRCS = game.c curses.c shapes.c board.c util.c inet.c robot.c version.c +OBJS = game.o curses.o shapes.o board.o util.o inet.o robot.o version.o +DISTFILES = README FAQ COPYING VERSION Configure netris.h sr.c robot_desc game.c curses.c shapes.c board.c util.c inet.c robot.c + +all: Makefile config.h proto.h $(PROG) sr + +$(PROG): $(OBJS) + $(CC) -o $(PROG) $(OBJS) $(LFLAGS) + +sr: sr.o + $(CC) -o sr sr.o $(LFLAGS) + +.c.o: + $(CC) $(CFLAGS) -c $< + +Makefile config.h: Configure + @echo "Makefile and/or config.h is out of date" + @echo "Run ./Configure now" + @false + +version.c: VERSION + @echo "Creating version.c" + @sed -e 's/^\(.*\)$$/char *version_string = "\1";/' VERSION > $@ + +proto.h: $(SRCS) + @touch $@ + @mv $@ $@.old + @cat $(SRCS) | grep '^ExtFunc[ ]' | sed -e 's/)$$/);/' > $@ + @if diff $@.old $@ > /dev/null 2>&1; then :; else \ + echo "proto.h changed"; \ + touch proto.chg; \ + fi + @rm -f $@.old + +depend: proto.h $(SRCS) + @echo "Checking dependencies" + @sed -n -e '1,/make depend #####$$/p' Makefile > Makefile.new + @$(CC) -M $(SRCS) | sed -e 's/proto\.h/proto.chg/g' >> Makefile.new + @mv -f Makefile.new Makefile + +dist: $(DISTFILES) + @vers=`cat VERSION`; \ + dir="netris-$$vers"; \ + echo "Creating $$dir directory"; \ + rm -rf $$dir; \ + mkdir $$dir; \ + cp $(DISTFILES) $$dir; \ + chmod 755 $$dir; \ + chmod 644 $$dir/*; \ + chmod 755 $$dir/Configure; \ + echo "Creating $$dir.tar.gz"; \ + tar -cvzof $$dir.tar.gz $$dir + +clean: + rm -f proto.h proto.chg $(PROG) $(OBJS) version.c test.c a.out sr sr.o + +cleandir: clean + rm -f .depend Makefile config.h + +##### DO NOT EDIT OR DELETE THIS LINE, it's needed by make depend ##### +game.o: game.c netris.h config.h /usr/include/getopt.h \ + /usr/include/memory.h /usr/include/features.h \ + /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ + /usr/include/string.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h \ + /usr/include/sys/time.h /usr/include/time.h /usr/include/timebits.h \ + /usr/include/gnu/types.h /usr/include/sys/select.h \ + /usr/include/selectbits.h /usr/include/assert.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h \ + /usr/include/stdio_lim.h /usr/include/signal.h /usr/include/sigset.h \ + /usr/include/signum.h /usr/include/sigaction.h \ + /usr/include/sigcontext.h /usr/include/asm/sigcontext.h proto.chg \ + /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \ + /usr/include/bytesex.h /usr/include/alloca.h /usr/include/ctype.h \ + /usr/include/netinet/in.h /usr/include/sys/socket.h \ + /usr/include/socketbits.h /usr/include/sockaddrcom.h \ + /usr/include/asm/socket.h /usr/include/asm/sockios.h +curses.o: curses.c netris.h config.h /usr/include/getopt.h \ + /usr/include/memory.h /usr/include/features.h \ + /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ + /usr/include/string.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h \ + /usr/include/sys/time.h /usr/include/time.h /usr/include/timebits.h \ + /usr/include/gnu/types.h /usr/include/sys/select.h \ + /usr/include/selectbits.h /usr/include/assert.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h \ + /usr/include/stdio_lim.h /usr/include/signal.h /usr/include/sigset.h \ + /usr/include/signum.h /usr/include/sigaction.h \ + /usr/include/sigcontext.h /usr/include/asm/sigcontext.h proto.chg \ + /usr/include/sys/types.h /usr/include/endian.h /usr/include/bytesex.h \ + /usr/include/unistd.h /usr/include/posix_opt.h \ + /usr/include/confname.h /usr/include/curses.h /usr/include/unctrl.h \ + /usr/include/stdlib.h /usr/include/alloca.h +shapes.o: shapes.c netris.h config.h /usr/include/getopt.h \ + /usr/include/memory.h /usr/include/features.h \ + /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ + /usr/include/string.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h \ + /usr/include/sys/time.h /usr/include/time.h /usr/include/timebits.h \ + /usr/include/gnu/types.h /usr/include/sys/select.h \ + /usr/include/selectbits.h /usr/include/assert.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h \ + /usr/include/stdio_lim.h /usr/include/signal.h /usr/include/sigset.h \ + /usr/include/signum.h /usr/include/sigaction.h \ + /usr/include/sigcontext.h /usr/include/asm/sigcontext.h proto.chg \ + /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \ + /usr/include/bytesex.h /usr/include/alloca.h +board.o: board.c netris.h config.h /usr/include/getopt.h \ + /usr/include/memory.h /usr/include/features.h \ + /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ + /usr/include/string.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h \ + /usr/include/sys/time.h /usr/include/time.h /usr/include/timebits.h \ + /usr/include/gnu/types.h /usr/include/sys/select.h \ + /usr/include/selectbits.h /usr/include/assert.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h \ + /usr/include/stdio_lim.h /usr/include/signal.h /usr/include/sigset.h \ + /usr/include/signum.h /usr/include/sigaction.h \ + /usr/include/sigcontext.h /usr/include/asm/sigcontext.h proto.chg \ + /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \ + /usr/include/bytesex.h /usr/include/alloca.h +util.o: util.c netris.h config.h /usr/include/getopt.h \ + /usr/include/memory.h /usr/include/features.h \ + /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ + /usr/include/string.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h \ + /usr/include/sys/time.h /usr/include/time.h /usr/include/timebits.h \ + /usr/include/gnu/types.h /usr/include/sys/select.h \ + /usr/include/selectbits.h /usr/include/assert.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h \ + /usr/include/stdio_lim.h /usr/include/signal.h /usr/include/sigset.h \ + /usr/include/signum.h /usr/include/sigaction.h \ + /usr/include/sigcontext.h /usr/include/asm/sigcontext.h proto.chg \ + /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \ + /usr/include/bytesex.h /usr/include/alloca.h /usr/include/unistd.h \ + /usr/include/posix_opt.h /usr/include/confname.h /usr/include/netdb.h \ + /usr/include/rpc/netdb.h /usr/include/errno.h /usr/include/errnos.h \ + /usr/include/linux/errno.h /usr/include/asm/errno.h +inet.o: inet.c netris.h config.h /usr/include/getopt.h \ + /usr/include/memory.h /usr/include/features.h \ + /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ + /usr/include/string.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h \ + /usr/include/sys/time.h /usr/include/time.h /usr/include/timebits.h \ + /usr/include/gnu/types.h /usr/include/sys/select.h \ + /usr/include/selectbits.h /usr/include/assert.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h \ + /usr/include/stdio_lim.h /usr/include/signal.h /usr/include/sigset.h \ + /usr/include/signum.h /usr/include/sigaction.h \ + /usr/include/sigcontext.h /usr/include/asm/sigcontext.h proto.chg \ + /usr/include/sys/types.h /usr/include/endian.h /usr/include/bytesex.h \ + /usr/include/unistd.h /usr/include/posix_opt.h \ + /usr/include/confname.h /usr/include/stdlib.h /usr/include/alloca.h \ + /usr/include/sys/socket.h /usr/include/socketbits.h \ + /usr/include/sockaddrcom.h /usr/include/asm/socket.h \ + /usr/include/asm/sockios.h /usr/include/netinet/in.h \ + /usr/include/netdb.h /usr/include/rpc/netdb.h /usr/include/errno.h \ + /usr/include/errnos.h /usr/include/linux/errno.h \ + /usr/include/asm/errno.h +robot.o: robot.c netris.h config.h /usr/include/getopt.h \ + /usr/include/memory.h /usr/include/features.h \ + /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ + /usr/include/string.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h \ + /usr/include/sys/time.h /usr/include/time.h /usr/include/timebits.h \ + /usr/include/gnu/types.h /usr/include/sys/select.h \ + /usr/include/selectbits.h /usr/include/assert.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h \ + /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h \ + /usr/include/stdio_lim.h /usr/include/signal.h /usr/include/sigset.h \ + /usr/include/signum.h /usr/include/sigaction.h \ + /usr/include/sigcontext.h /usr/include/asm/sigcontext.h proto.chg \ + /usr/include/unistd.h /usr/include/posix_opt.h \ + /usr/include/confname.h /usr/include/stdlib.h \ + /usr/include/sys/types.h /usr/include/endian.h /usr/include/bytesex.h \ + /usr/include/alloca.h /usr/include/ctype.h /usr/include/fcntl.h \ + /usr/include/fcntlbits.h /usr/include/errno.h /usr/include/errnos.h \ + /usr/include/linux/errno.h /usr/include/asm/errno.h +version.o: version.c diff --git a/config.h b/config.h new file mode 100644 index 0000000..42056fd --- /dev/null +++ b/config.h @@ -0,0 +1,8 @@ +/* + * Automatically generated by ./Configure -- DO NOT EDIT! + */ + +#include +#include +#define HAS_ON_EXIT +#define HAS_SIGPROCMASK diff --git a/debian/README.debian b/debian/README.debian new file mode 100644 index 0000000..3f232d8 --- /dev/null +++ b/debian/README.debian @@ -0,0 +1,6 @@ +netris for DEBIAN +---------------------- + +So far nothing to say. + +Gergely Madarasz , Wed, 6 Aug 1997 22:10:42 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..46d373f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,25 @@ +netris (0.4-3) unstable; urgency=low + + * Fix spelling mistake in extended description (Closes: #18922) + * Fix most lintian errors and warnings + * Switch to debhelper + + -- Gergely Madarasz Tue, 10 Mar 1998 22:32:59 +0100 + +netris (0.4-2) unstable; urgency=low + + * move sr.c.gz to /usr/doc/netris/examples (#16920) + + -- Gergely Madarasz Sun, 11 Jan 1998 00:55:16 +0100 + +netris (0.4-1) unstable; urgency=low + + * Changed Configure to use ncurses + * Initial Release. + + -- Gergely Madarasz Wed, 6 Aug 1997 22:10:42 +0200 + +Local variables: +mode: debian-changelog +add-log-mailing-address: "gorgo@caesar.elte.hu" +End: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..525acc8 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: netris +Section: games +Priority: extra +Maintainer: Gergely Madarasz +Standards-Version: 2.1.2.2 + +Package: netris +Architecture: any +Depends: ${shlibs:Depends} +Description: A free, networked version of T*tris + Netris is a free, networked variant of Tetris. + . + One-player mode is a tad boring at the moment, because it never + gets any faster, and there's no scoring. This will be rectified + at some point. + . + Two players can play against each other. If you fill two or three + lines with one piece, your opponent gets respectively one or two + unfilled lines at the bottom of his screen. If you fill four lines + with one piece, your opponent will get four unfilled lines. + . + This version at least partially supports robots. You can find the + protocol description in the documentation, and a sample robot in + the examples. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..670cfd4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Gergely Madarasz on +Wed, 6 Aug 1997 22:10:42 +0200. + +It was downloaded from ftp://ftp.netris.org/pub/netris/ + +Changes: + * added Debian GNU/Linux package maintenance system files + * modified Configure script for use with ncurses + +Copyright (C) 1994,1995,1996 Mark H. Weaver + +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, 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/doc/copyright/GPL'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..4a75622 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/games +usr/doc/netris/examples diff --git a/debian/menu b/debian/menu new file mode 100644 index 0000000..d2e21a2 --- /dev/null +++ b/debian/menu @@ -0,0 +1 @@ +text Games/Tetris-like netris none "netris" /usr/games/netris diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d2110ad --- /dev/null +++ b/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + ./Configure -O2 + make + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +# Build architecture-independent files here. +binary-indep: build +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build +# dh_testversion + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the files into debian/tmp + install -s netris debian/tmp/usr/games + install -s sr debian/tmp/usr/games/netris-sample-robot + + dh_installdocs FAQ robot_desc + dh_installexamples sr.c + dh_installmenu + dh_installmanpages + dh_undocumented netris.1 netris-sample-robot.1 + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary -- 2.39.2