--- mimetex-1.73.orig/Makefile +++ mimetex-1.73/Makefile @@ -0,0 +1,13 @@ +all: mimetex + +mimetex: mimetex.o gifsave.o + gcc -DAA mimetex.o gifsave.o -lm -o mimetex `dpkg-buildflags --get LDFLAGS` + +mimetex.o: + gcc -DAA -c mimetex.c `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` + +gifsave.o: + gcc -DAA -c gifsave.c `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` + +clean: + rm -f mimetex mimetex.o gifsave.o --- mimetex-1.73.orig/debian/copyright +++ mimetex-1.73/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Isaac Clerencia on +Wed, 7 Apr 2004 10:17:19 +0200. + +It was downloaded from http://www.forkosh.com/mimetex.html + +Upstream Author: John Forkosh + +Copyright: 2002-2012 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 3 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 + 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.73.orig/debian/mimetex.1 +++ mimetex-1.73/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 , +for the Debian project (but may be used by others). --- mimetex-1.73.orig/debian/changelog +++ mimetex-1.73/debian/changelog @@ -0,0 +1,43 @@ +mimetex (1.73-2) unstable; urgency=low + + * Enable hardened buildflags (Closes: #656646), Thanks to Moritz + Mühlenhoff + + -- Hilmar Preuße Fri, 20 Jan 2012 21:42:31 +0100 + +mimetex (1.73-1) unstable; urgency=low + + * New maintainer (Closes: #656186) + * New upstream release + + patch for CVE-2009-1382 and CVE-2009-2459 not needed any more + * mimetex.html included in package (Closes: #350153) + * upstream URI fixed + * link /usr/lib/cgi-bin/mimetex.cgi pointing to /usr/bin/mimetex + (Closes: #440337) + * package is lintian clean + + -- Hilmar Preuße Wed, 18 Jan 2012 10:36:48 +0100 + +mimetex (1.50-1.2) unstable; urgency=low + + * QA upload. + * Isaac retired from Debian, setting maintainer to Debian QA Group + * Update packaging + + -- Moritz Muehlenhoff Sun, 15 Jan 2012 21:14:08 +0100 + +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 Sat, 10 Oct 2009 12:26:58 +0200 + +mimetex (1.50-1) unstable; urgency=low + + * New upstream release, closes: #276687 + + -- Isaac Clerencia Fri, 15 Oct 2004 18:57:01 +0200 --- mimetex-1.73.orig/debian/dirs +++ mimetex-1.73/debian/dirs @@ -0,0 +1 @@ +usr/bin --- mimetex-1.73.orig/debian/docs +++ mimetex-1.73/debian/docs @@ -0,0 +1,2 @@ +README +mimetex.html --- mimetex-1.73.orig/debian/install +++ mimetex-1.73/debian/install @@ -0,0 +1 @@ +mimetex usr/bin/ --- mimetex-1.73.orig/debian/rules +++ mimetex-1.73/debian/rules @@ -0,0 +1,57 @@ +#!/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 + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build-arch: build +build-indep: build + +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_install + dh_installman debian/mimetex.1 + dh_link /usr/bin/mimetex /usr/lib/cgi-bin/mimetex.cgi + dh_strip + dh_compress + 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 --- mimetex-1.73.orig/debian/compat +++ mimetex-1.73/debian/compat @@ -0,0 +1 @@ +8 --- mimetex-1.73.orig/debian/control +++ mimetex-1.73/debian/control @@ -0,0 +1,16 @@ +Source: mimetex +Section: utils +Priority: optional +Maintainer: Hilmar Preuße +Build-Depends: debhelper (>= 8) +Standards-Version: 3.9.2 + +Package: mimetex +Architecture: any +Depends: ${shlibs:Depends}, ${misc: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