--- mimetex-1.50.orig/debian/install
+++ mimetex-1.50/debian/install
@@ -0,0 +1 @@
+mimetex usr/bin/
--- mimetex-1.50.orig/debian/changelog
+++ mimetex-1.50/debian/changelog
@@ -0,0 +1,15 @@
+mimetex (1.50-1.1) unstable; urgency=high
+
+  * Non-maintainer upload by the testing Security Team.
+  * mimetex.c: replace strcpy with strninit macro that uses strncpy, adjust
+    some buffer sizes. (CVE-2009-1382)
+  * mimetex.c: disable input and counter tags. (CVE-2009-2459)
+    Thanks to Marc Deslauriers (Closes: 537254)
+
+ -- Giuseppe Iuculano <iuculano@debian.org>  Sat, 10 Oct 2009 12:26:58 +0200
+
+mimetex (1.50-1) unstable; urgency=low
+
+  * New upstream release, closes: #276687
+
+ -- Isaac Clerencia <isaac@sindominio.net>  Fri, 15 Oct 2004 18:57:01 +0200
--- mimetex-1.50.orig/debian/mimetex.1
+++ mimetex-1.50/debian/mimetex.1
@@ -0,0 +1,48 @@
+.TH MIMETEX 1 "April  7, 2004" "Mimetex"
+.SH NAME
+mimetex \- LaTeX math expressions to anti-aliased GIF images converter
+.SH SYNOPSIS
+.B mimetex
+\fI[options]\fR
+\fI[expression]\fR
+.SH DESCRIPTION
+This manual page documents briefly the
+.B mimetex
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fBmimetex\fP is a program that parses LaTeX math expressions emmiting directly
+anti-aliased GIF images without intermediate dvi-to-gif conversion.
+.TP
+.BR -d
+dump gif image on stdout [default]
+
+.TP
+.BR -e\ export_file
+write gif image to export_file
+
+.TP
+.BR -f\ input_file
+read expression from input_file
+
+.TP
+.BR -m\ msglevel
+verbosity of debugging output
+
+.TP
+.BR -o
+render image with opaque background
+
+.TP
+.BR -s\ fontsize
+default fontsize, 0-5
+
+.TP
+.BR -m\ 0-99
+controls verbosity level for debugging output
+(usually used only while testing code).
+
+.SH AUTHOR
+This manual page was written by Isaac Clerencia <isaac@sindominio.net>,
+for the Debian project (but may be used by others).
--- mimetex-1.50.orig/debian/docs
+++ mimetex-1.50/debian/docs
@@ -0,0 +1 @@
+README
--- mimetex-1.50.orig/debian/control
+++ mimetex-1.50/debian/control
@@ -0,0 +1,16 @@
+Source: mimetex
+Section: utils
+Priority: optional
+Maintainer: Isaac Clerencia <isaac@sindominio.net>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: mimetex
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: LaTeX math expressions to anti-aliased GIF images converter
+ mimeTex parses LaTeX math expressions emitting directly GIF images
+ without intermediate dvi-to-gif conversion.
+ .
+ mimeTex is a standalone program that doesn't use TeX in any way, a kind
+ of lightweight alternative to MathML
--- mimetex-1.50.orig/debian/copyright
+++ mimetex-1.50/debian/copyright
@@ -0,0 +1,22 @@
+This package was debianized by Isaac Clerencia <isaac@sindominio.net> on
+Wed,  7 Apr 2004 10:17:19 +0200.
+
+It was downloaded from http://moodle.org/download/mimetex/source/
+
+Upstream Author: John Forkosh <john@forkosh.com>
+
+Copyright: 2002-2004 John Forkosh Associates, Inc.
+
+License:
+	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 of the License, 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 <http://www.opensource.org/gpl-license.html>
+	for more details.
+
+	On Debian systems, the complete text of the GNU General Public
+	License can be found in /usr/share/common-licenses/GPL file.
--- mimetex-1.50.orig/debian/rules
+++ mimetex-1.50/debian/rules
@@ -0,0 +1,78 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+#doesn't compile with -O2
+#ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+#	CFLAGS += -O0
+#else
+#	CFLAGS += -O2
+#endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+build: build-stamp
+
+build-stamp:
+	dh_testdir
+
+	make
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	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_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
--- mimetex-1.50.orig/debian/compat
+++ mimetex-1.50/debian/compat
@@ -0,0 +1 @@
+4
--- mimetex-1.50.orig/debian/dirs
+++ mimetex-1.50/debian/dirs
@@ -0,0 +1 @@
+usr/bin
