--- mathtex-1.03.orig/Makefile +++ mathtex-1.03/Makefile @@ -0,0 +1,13 @@ +TARGET=debian/mathtex/usr/bin/mathtex + + +all: + +install: + mkdir -p debian/mathtex/usr/bin + gcc -DLATEX=\"/usr/bin/latex\" -DDVIPNG=\"/usr/bin/dvipng\" mathtex.c -o ${TARGET} + +clean: + mkdir -p debian/mathtex/usr/bin + touch ${TARGET} + rm ${TARGET} --- mathtex-1.03.orig/mathtex.1 +++ mathtex-1.03/mathtex.1 @@ -0,0 +1,32 @@ +.TH "MATHTEX" "1" +.SH "NAME" +mathtex \(em This program generas a PNG-file from a LaTeX expression +.SH "SYNOPSIS" +.PP +\fBmathtex\fR [\fB-f \fIinput_file\fR\fP] [\fB-o \fIoutput_file\fR\fP] [\fB-m \fImsgfile\fR\fP] [\fB-c \fIcache\fR\fP] +.SH "DESCRIPTION" +.PP +This program is mainly designed to act as a CGI script. By giving it a LaTeX math command, +a picture is generated which can be put on a web site. +.SH "OPTIONS" +.IP "\fB-o \fIoutput_file\fR\fP " 10 +File to write +.IP "\fB-f \fIinput_file\fR\fP " 10 +File to read +.IP "\fB-m \fImsgfile\fR\fP " 10 +Verbosity level. +.IP "\fB-c \fIcache\fR\fP " 10 +Path to cache directory. +.SH "AUTHOR" +.PP +This manual page was written by mahogny mahogny@areta.org for +the \fBDebian\fP system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 3 any +later version published by the Free Software Foundation. + +.PP +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. + +.\" created by instant / docbook-to-man, Tue 01 Dec 2009, 19:59 --- mathtex-1.03.orig/debian/control +++ mathtex-1.03/debian/control @@ -0,0 +1,16 @@ +Source: mathtex +Section: graphics +Priority: optional +Maintainer: Johan Henriksson +Build-Depends: debhelper (>= 7), docbook-to-man +Standards-Version: 3.8.0 +Homepage: http://www.forkosh.dreamhost.com/source_mathtex.html + +Package: mathtex +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, dvipng, texlive +Description: Generate image from LaTeX command + MathTeX is a cgi program that lets you easily embed LaTeX math + in your own html pages, blogs, wikis, etc. It parses a LaTeX + math expression and immediately emits the corresponding gif + (or png) image, rather than the usual TeX dvi. --- mathtex-1.03.orig/debian/changelog +++ mathtex-1.03/debian/changelog @@ -0,0 +1,17 @@ +mathtex (1.03-1) unstable; urgency=high + + * New upstream release. + - Fix "CVE-2009-1383 arbitrary code execution via crafted dpi tag" + (Closes: #537258) + - Fix "CVE-2009-2461 CVE-2009-2460 mult. security issues" (Closes: #537253) + * Fix "manpage inconsistency" (Closes: #535862) + * Fix "package description" (Closes: #520216) + + -- Johan Henriksson Sun, 29 Nov 2009 20:21:54 +0100 + +mathtex (1.01-1) unstable; urgency=low + + * Initial release (Closes: #509626) + + -- Johan Henriksson Tue, 23 Dec 2008 20:04:17 +0100 + --- mathtex-1.03.orig/debian/rules +++ mathtex-1.03/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + docbook-to-man debian/mathtex.sgml > mathtex.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/mathtex. + $(MAKE) DESTDIR=$(CURDIR)/debian/mathtex install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman mathtex.1 + dh_link + 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 install configure --- mathtex-1.03.orig/debian/README.Debian +++ mathtex-1.03/debian/README.Debian @@ -0,0 +1,6 @@ +mathtex for Debian +------------------ + +There are two options, DVIPS and DVIPNG. This package uses DVIPNG. + + -- Johan Henriksson Tue, 23 Dec 2008 20:04:17 +0100 --- mathtex-1.03.orig/debian/docs +++ mathtex-1.03/debian/docs @@ -0,0 +1,2 @@ +README +mathtex.html --- mathtex-1.03.orig/debian/copyright +++ mathtex-1.03/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Johan Henriksson on +Sun, 29 Nov 2009 19:20:02 +0100. + +Upstream Author: + + John Forkosh + +Copyright: + + Copyright (C) 2009 John Forkosh Associates, Inc + +License: + + GPL 3.0 + +The Debian packaging is (C) 2009, Johan Henriksson and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- mathtex-1.03.orig/debian/mathtex.sgml +++ mathtex-1.03/debian/mathtex.sgml @@ -0,0 +1,153 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Johan"> + Henriksson"> + + December 23, 2008"> + + 1"> + mahogny@areta.org"> + + MATHTEX"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + This program generas a PNG-file from a LaTeX expression + + + + &dhpackage; + + + + + + + + + + + + + DESCRIPTION + + + This program is mainly designed to act as a CGI script. By giving it a LaTeX math command, + a picture is generated which can be put on a web site. + + + + + OPTIONS + + + + + + + File to write + + + + + + + File to read + + + + + + + Verbosity level. + + + + + + + Path to cache directory. + + + + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 3 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + --- mathtex-1.03.orig/debian/compat +++ mathtex-1.03/debian/compat @@ -0,0 +1 @@ +7