diff -cNr elf-ncurses-1.9.4.orig/aclocal.m4 elf-ncurses-1.9.4/aclocal.m4
*** elf-ncurses-1.9.4.orig/aclocal.m4	Thu Aug  3 00:20:50 1995
--- elf-ncurses-1.9.4/aclocal.m4	Thu Aug 17 21:28:25 1995
***************
*** 292,298 ****
  	case $nc_systype in
  	Linux)
  		CC_SHARED_OPTS='-fPIC'
! 		MK_SHARED_LIB='gcc -o $[@] -shared -Wl,-soname,$[@],-stats'
  		;;
  	NetBSD)
  		CC_SHARED_OPTS='-fpic -DPIC'
--- 292,298 ----
  	case $nc_systype in
  	Linux)
  		CC_SHARED_OPTS='-fPIC'
! 		MK_SHARED_LIB='$(CC) -o $[@] -shared -Wl,-soname,`basename $[@]`,-stats'
  		;;
  	NetBSD)
  		CC_SHARED_OPTS='-fpic -DPIC'
diff -cNr elf-ncurses-1.9.4.orig/configure elf-ncurses-1.9.4/configure
*** elf-ncurses-1.9.4.orig/configure	Mon Aug  7 20:42:56 1995
--- elf-ncurses-1.9.4/configure	Thu Aug 17 21:28:41 1995
***************
*** 966,972 ****
  	case $nc_systype in
  	Linux)
  		CC_SHARED_OPTS='-fPIC'
! 		MK_SHARED_LIB='gcc -o $@ -shared -Wl,-soname,$@,-stats'
  		;;
  	NetBSD)
  		CC_SHARED_OPTS='-fpic -DPIC'
--- 966,972 ----
  	case $nc_systype in
  	Linux)
  		CC_SHARED_OPTS='-fPIC'
! 		MK_SHARED_LIB='$(CC) -o $@ -shared -Wl,-soname,`basename $@`,-stats'
  		;;
  	NetBSD)
  		CC_SHARED_OPTS='-fpic -DPIC'
***************
*** 1634,1639 ****
--- 1634,1642 ----
  #line 1635 "configure"
  #include "confdefs.h"
  
+ /* On Debian, I need this kludge to avoid a header conflict - Bruce */
+ #define _STRING_H
+ 
  #if HAVE_TERMIOS_H
  #include <termios.h>
  #endif
***************
*** 1878,1884 ****
  	SRC_SUBDIRS="$SRC_SUBDIRS $nc_dir"
  done
  SRC_SUBDIRS="$SRC_SUBDIRS misc test"
! test $nc_cxx_library != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
  
  SUB_MAKEFILES=
  for nc_dir in $SRC_SUBDIRS
--- 1881,1887 ----
  	SRC_SUBDIRS="$SRC_SUBDIRS $nc_dir"
  done
  SRC_SUBDIRS="$SRC_SUBDIRS misc test"
! #test $nc_cxx_library != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
  
  SUB_MAKEFILES=
  for nc_dir in $SRC_SUBDIRS
diff -cNr elf-ncurses-1.9.4.orig/debian.README elf-ncurses-1.9.4/debian.README
*** elf-ncurses-1.9.4.orig/debian.README	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/debian.README	Thu Aug 17 20:29:16 1995
***************
*** 0 ****
--- 1,31 ----
+ NOTE: The ncurses package is split into two parts: ncurses-runtime,
+ and ncurses-developer. All systems should have ncurses-runtime installed.
+ Only development systems should have ncurses-developer installed.
+ 
+ This is the Debian GNU/Linux prepackaged version of the ncurses library
+ and terminfo utilities. ncurses/terminfo was written by Pavel Curtis and
+ Zeyd M. Ben-Halim <zmbenhal@netcom.com>. Ncurses is copyright (C) 1992,
+ 1993, 1994 by Zeyd M. Ben-Halim.
+ 
+ This package was put together by Bruce Perens <Bruce@Pixar.com>, from
+ sources found under ftp.netcom.com:/pub/zm/bmbenhal/ncurses .  (This
+ particular release was put together by Ian Jackson, but Bruce is still
+ the package maintainer.)
+ 
+ Changes:
+  13-January-1995 Bruce Perens <Bruce@Pixar.com>
+ 	Added Debian GNU/Linux package maintenance system files, and configured
+ 	for Debian.
+ 
+ Pavel Curtis released his original copyright on this software to the public
+ domain, but Zeyd M. Ben-Halim has retained the copyright on his version of
+ this software.
+ 
+ 	Permission is hereby granted to reproduce and distribute ncurses
+ 	by any means and for any fee, whether alone or as part of a
+ 	larger distribution, in source or in binary form, PROVIDED
+ 	this notice is included with any such distribution, not removed
+ 	from header files, and is reproduced in any documentation
+ 	accompanying it or the applications linked with it.
+ 
+ 	ncurses comes AS IS with no warranty, implied or expressed.
diff -cNr elf-ncurses-1.9.4.orig/debian.control elf-ncurses-1.9.4/debian.control
*** elf-ncurses-1.9.4.orig/debian.control	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/debian.control	Thu Aug 17 21:01:31 1995
***************
*** 0 ****
--- 1,7 ----
+ PACKAGE: elf-ncurses
+ DESCRIPTION: Video terminal manipulation: ELF developer's libraries.
+ MAINTAINER: David Engel <david@ods.com>
+ VERSION: =V
+ PACKAGE_REVISION: =D
+ DEPENDS: ldso (>1.7.5-1), elf-libc (>5.2.4-1), ncurses-runtime
+ RECOMMENDED: ncurses-developer
diff -cNr elf-ncurses-1.9.4.orig/debian.postinst elf-ncurses-1.9.4/debian.postinst
*** elf-ncurses-1.9.4.orig/debian.postinst	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/debian.postinst	Thu Aug 17 20:40:01 1995
***************
*** 0 ****
--- 1,4 ----
+ #! /bin/sh
+ 
+ /sbin/ldconfig
+ 
diff -cNr elf-ncurses-1.9.4.orig/debian.postrm elf-ncurses-1.9.4/debian.postrm
*** elf-ncurses-1.9.4.orig/debian.postrm	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/debian.postrm	Thu Aug 17 20:40:01 1995
***************
*** 0 ****
--- 1,4 ----
+ #! /bin/sh
+ 
+ /sbin/ldconfig
+ 
diff -cNr elf-ncurses-1.9.4.orig/debian.rules elf-ncurses-1.9.4/debian.rules
*** elf-ncurses-1.9.4.orig/debian.rules	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/debian.rules	Thu Aug 17 21:45:18 1995
***************
*** 0 ****
--- 1,111 ----
+ #! /usr/bin/make -f
+ #
+ # Modified for my own packages 22-Dec-1994 by Bruce Perens
+ #	<Bruce@Pixar.com>
+ # 
+ # To make the binary distribution package, the ``Debianized'' source package
+ # and the context diff to the original package, type `./debian.rules dist'.
+ # Make sure that `debian.rules' is executable before the final distribution
+ # is made.
+ #
+ # Invoke each target with `./debian.rules <target>'.  All targets should be
+ # invoked with the package root as the current directory.
+ #
+ # The `binary' target must be run as root, as it needs to install files with
+ # specific ownerships.  The `diff' target assumes that you have the original
+ # source package available, unpacked, in ../$(p)-$(v).orig, or that you have
+ # the previous revision of the ``Debianized'' source package and context diff
+ # in the parent directory.
+ 
+ CC = gcc-elf
+ 
+ # The name of the package (for example, `emacs').
+ p = elf-ncurses
+ # The version of the package (for example, `19.28').
+ v = 1.9.4
+ # The Debian revision of the package (for example, `2').
+ d = 1
+ 
+ D=developer-tmp
+ DIRECTORIES=$D/DEBIAN $D/usr/i486-linuxelf
+ 
+ DIR:=$(shell pwd)
+ 
+ all build:
+ # Builds the binary package.
+ 	CC=$(CC) ./configure --prefix=/usr/i486-linuxelf \
+ 		--with-includedir=/usr/i486-linuxelf/include \
+ 		--with-datadir=/etc/terminfo \
+ 		--with-normal --with-shared --with-debug=no
+ 	make all
+ 	touch stamp-build
+ 
+ clean:
+ # Undoes the effect of `make -f debian.rules build'.
+ 	rm -f stamp-build
+ 	-$(MAKE) distclean
+ 	rm -rf $D *~ ./#*# */*~
+ 	find . \( -name '*~' -o -name '*#*' -o -name '*.orig' \) -print0 | \
+ 		xargs -0r rm --
+ 
+ binary: $(DIRECTORIES)
+ # Makes a binary package.
+ 	test -f stamp-build || make -f debian.rules build
+ 	make	prefix=`pwd`/$D/usr/i486-linuxelf \
+ 		includedir=`pwd`/$D/usr/i486-linuxelf/include \
+ 		datadir=`pwd`/$D/usr/i486-linuxelf/lib/terminfo \
+ 		install
+ 	install -g root -m 644 -o root ncurses.h \
+ 	  $D/usr/i486-linuxelf/include
+ 	ln -sf . $D/usr/i486-linuxelf/include/ncurses
+ 	chmod -R g-sw $D
+ 	sed -e  's/=V/$(v)/' -e 's/=D/$(d)/' \
+ 		< debian.control > $D/DEBIAN/control
+ 	chmod 644 $D/DEBIAN/control
+ 	install -g root -m 755 -o root debian.postinst \
+ 	  $D/DEBIAN/postinst
+ 	 install -g root -m 755 -o root debian.postrm \
+ 	  $D/DEBIAN/postrm
+ 	rm -rf $D/usr/i486-linuxelf/bin $D/usr/i486-linuxelf/man
+ 	dpkg --build $D
+ 	mv $D.deb ../$(p)-$(v)-$(d).deb
+ 
+ source:
+ # Makes a source package.
+ 	-test -f stamp-build && make -f debian.rules clean
+ 	( cd .. && tar cf - $(p)-$(v) | gzip -9f > $(p)-$(v)-$(d).tar.gz )
+ 
+ diff:
+ # Makes a context diff.
+ 	-test -f stamp-build && make -f debian.rules clean
+ 	-test -d ../$(p)-$(v).orig -o -f ../$(p)-$(v)-`expr $(d) - 1`.diff.gz \
+ 	  || ( echo "Original source package is not available." ; false )
+ 	-test -d ../$(p)-$(v).orig || make -f debian.rules orig
+ 	( cd .. && diff -cNr $(p)-$(v).orig $(p)-$(v) | gzip -9f \
+ 	  > $(p)-$(v)-$(d).diff.gz )
+ 	-test -f stamp-orig \
+ 	  && rm -rf ../$(p)-$(v).orig && rm -f stamp-orig
+ 
+ dist: binary source diff
+ # Prepares the package for distribution.
+ 
+ orig:
+ # Prepares the original package from the previous
+ # Debian revision source package and context diff.
+ 	( cd .. \
+ 	  && mkdir $(p).orig \
+ 	  && cd $(p).orig \
+ 	  && tar xzf ../$(p)-$(v)-`expr $(d) - 1`.tar.gz \
+ 	  && cd $(p)-$(v) \
+ 	  && ( zcat ../../$(p)-$(v)-`expr $(d) - 1`.diff.gz \
+ 	    | patch -sER -p1 ) \
+ 	  && find . -name "*.orig" -exec rm -f {} \; \
+ 	  && cd .. \
+ 	  && mv $(p)-$(v) ../$(p)-$(v).orig \
+ 	  && cd .. \
+ 	  && rmdir $(p).orig )
+ 	touch stamp-orig
+ 
+ $(DIRECTORIES):
+ 	install -d -g root -o root -m 755 $@
+ 	chmod g-s $@
diff -cNr elf-ncurses-1.9.4.orig/man/sed.script elf-ncurses-1.9.4/man/sed.script
*** elf-ncurses-1.9.4.orig/man/sed.script	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/man/sed.script	Thu Aug 17 20:29:16 1995
***************
*** 0 ****
--- 1,7 ----
+ s/curs_//g
+ /^\.TH/s/3X/3ncurses/
+ /^\.TH/s/3x/3ncurses/
+ s/(1m)/(1ncurses)/g
+ s/(3x)/(3ncurses)/g
+ s/(3X)/(3ncurses)/g
+ s/(3S)/(3)/g
diff -cNr elf-ncurses-1.9.4.orig/man/tput.1 elf-ncurses-1.9.4/man/tput.1
*** elf-ncurses-1.9.4.orig/man/tput.1	Sun Jul 23 02:27:26 1995
--- elf-ncurses-1.9.4/man/tput.1	Thu Aug 17 20:29:16 1995
***************
*** 84,90 ****
  terminal in the environmental variable \fBTERM\fR.  This
  command should be included in everyone's .profile after
  the environmental variable \fBTERM\fR has been exported, as
! illustrated on the \fBprofile\fR(4) manual page.
  .TP 5
  \fBtput -T5620 reset\fR
  Reset an AT&T 5620 terminal, overriding the type of
--- 84,90 ----
  terminal in the environmental variable \fBTERM\fR.  This
  command should be included in everyone's .profile after
  the environmental variable \fBTERM\fR has been exported, as
! illustrated on the \fBprofile\fR(5) manual page.
  .TP 5
  \fBtput -T5620 reset\fR
  Reset an AT&T 5620 terminal, overriding the type of
***************
*** 152,161 ****
  appropriate to be output to the terminal (escape
  sequences that set margins and tabs); for more
  information, see the "Tabs and Initialization"
! section of \fBterminfo\fR(4)
  .SH SEE ALSO
  \fBclear\fR(1), \fBstty\fR(1), \fBtabs\fR(\*n).  \fBprofile\fR(\*n),
! \fBterminfo\fR(4) in the \fISystem\fR \fIAdministrator\fR'\fIs\fR
  \fIReference\fR \fIManual\fR.  Chapter 10 of the
  \fIProgrammer\fR'\fIs\fR \fIGuide\fR.
  .SH EXIT CODES
--- 152,161 ----
  appropriate to be output to the terminal (escape
  sequences that set margins and tabs); for more
  information, see the "Tabs and Initialization"
! section of \fBterminfo\fR(5)
  .SH SEE ALSO
  \fBclear\fR(1), \fBstty\fR(1), \fBtabs\fR(\*n).  \fBprofile\fR(\*n),
! \fBterminfo\fR(5) in the \fISystem\fR \fIAdministrator\fR'\fIs\fR
  \fIReference\fR \fIManual\fR.  Chapter 10 of the
  \fIProgrammer\fR'\fIs\fR \fIGuide\fR.
  .SH EXIT CODES
diff -cNr elf-ncurses-1.9.4.orig/menu/Makefile.in elf-ncurses-1.9.4/menu/Makefile.in
*** elf-ncurses-1.9.4.orig/menu/Makefile.in	Thu Aug  3 00:20:00 1995
--- elf-ncurses-1.9.4/menu/Makefile.in	Thu Aug 17 21:41:58 1995
***************
*** 62,68 ****
  	@for lib in $(LIBRARIES); do \
  		echo installing $${lib} as $(libdir)/$${lib}; \
  		$(INSTALL_DATA) $${lib} $(libdir)/$${lib}; \
- 		$(RANLIB) $(libdir)/$${lib}; \
  	done
  
  $(includedir) \
--- 62,67 ----
diff -cNr elf-ncurses-1.9.4.orig/misc/dotic.sh elf-ncurses-1.9.4/misc/dotic.sh
*** elf-ncurses-1.9.4.orig/misc/dotic.sh	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/misc/dotic.sh	Thu Aug 17 22:03:36 1995
***************
*** 0 ****
--- 1,7 ----
+ #! /bin/sh
+ 
+ TERMINFO=/etc/terminfo
+ rm -fr /etc/terminfo/[0-9A-Za-z]
+ sed -n <./terminfo.src -e '1,/SPLIT HERE/w tsplit01' -e '/SPLIT HERE/,$w tsplit02' 2>/dev/null
+ for x in tsplit*; do /.1/src/elf-ncurses-1.9.4/developer-tmp/usr/i486-linuxelf/bin/tic -v $x; done
+ rm tsplit*
diff -cNr elf-ncurses-1.9.4.orig/misc/terminfo.src elf-ncurses-1.9.4/misc/terminfo.src
*** elf-ncurses-1.9.4.orig/misc/terminfo.src	Wed Jul 19 22:53:10 1995
--- elf-ncurses-1.9.4/misc/terminfo.src	Thu Aug 17 20:29:16 1995
***************
*** 454,459 ****
--- 454,471 ----
  linux-nic|linux with ich/ich1 suppressed for non-curses programs, 
  	ich@, ich1@, use=linux,
  
+ # Debian-specific additions.
+ console|Linux console,
+ 	use=linux,
+ 
+ con80x25|Linux console,
+ 	use=linux,
+ 
+ con132x25|Linux console,
+ 	use=linux,
+ 
+ #end of Debian-specific additions.
+ 
  # SCO console and SOS-Syscons console for 386bsd
  # (scoansi: had unknown capabilities
  #	:Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
diff -cNr elf-ncurses-1.9.4.orig/ncurses.h elf-ncurses-1.9.4/ncurses.h
*** elf-ncurses-1.9.4.orig/ncurses.h	Wed Dec 31 18:00:00 1969
--- elf-ncurses-1.9.4/ncurses.h	Thu Aug 17 21:56:53 1995
***************
*** 0 ****
--- 1,4 ----
+ #ifndef	_NCURSES_INDIRECT_H_
+ #define	_NCURSES_INDIRECT_H_
+ #include <curses.h>
+ #endif
diff -cNr elf-ncurses-1.9.4.orig/panel/Makefile.in elf-ncurses-1.9.4/panel/Makefile.in
*** elf-ncurses-1.9.4.orig/panel/Makefile.in	Sun Jul  9 23:08:56 1995
--- elf-ncurses-1.9.4/panel/Makefile.in	Thu Aug 17 20:40:14 1995
***************
*** 64,70 ****
  	@for lib in $(LIBRARIES); do \
  		echo installing $${lib} as $(libdir)/$${lib}; \
  		$(INSTALL_DATA) $${lib} $(libdir)/$${lib}; \
- 		$(RANLIB) $(libdir)/$${lib}; \
  	done
  	@echo "Make sure you delete any old header files!"
  
--- 64,69 ----
