[Reproducible-commits] [texlive-bin] 01/400: starting packaging for 2011/2012

Maria Valentina Marin Rodrigues akira-guest at moszumanska.debian.org
Thu Jul 9 21:39:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

akira-guest pushed a commit to branch master
in repository texlive-bin.

commit d12ac25a96e0417317f0cfc70462ef565544d14e
Author: Norbert Preining <preining at debian.org>
Date:   Thu Feb 2 22:38:48 2012 +0000

    starting packaging for 2011/2012
---
 debian/changelog                 | 748 ++++++++++++++++++++++++++++++++++++
 debian/compat                    |   1 +
 debian/control                   |  52 +++
 debian/copyright                 | 793 +++++++++++++++++++++++++++++++++++++++
 debian/debianize-fmtutil         | 429 +++++++++++++++++++++
 debian/libkpathsea-dev.README    |  24 ++
 debian/libkpathsea-dev.install   |   3 +
 debian/libkpathsea6.install      |   2 +
 debian/libptexenc-dev.install    |   3 +
 debian/libptexenc1.install       |   2 +
 debian/rules                     |  89 +++++
 debian/source/format             |   1 +
 debian/texlive-binaries.install  |   3 +
 debian/texlive-binaries.postinst |  59 +++
 debian/texlive-binaries.preinst  |  18 +
 debian/texlive-binaries.prerm    |  17 +
 16 files changed, 2244 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d427223
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,748 @@
+texlive-bin (2011.20120202-0.1) unreleased; urgency=low
+
+  * first trial
+
+ -- Norbert Preining <preining at debian.org>  Thu, 02 Feb 2012 21:51:14 +0900
+
+texlive-bin (2009-12~1) unreleased; urgency=low
+
+  * Make the error message more user-friendly when texconfig encounters
+    strange paper size definitions in config.ps (closes: #636328)
+
+ -- Frank Küster <frank at debian.org>  Sat, 05 Nov 2011 22:03:03 +0100
+
+texlive-bin (2009-11) unstable; urgency=low
+
+  [ Hilmar Preuße ]
+  * disable the LFS support provided by upstream again, it is
+    really broken (Reopens: #618033). It:
+    - breaks pdflatex on big endian platforms (Closes: #637667)
+    - introduced an ABI change on 32-bit platforms (Closes: #637720)
+
+ -- Frank Küster <frank at debian.org>  Mon, 15 Aug 2011 21:48:13 +0200
+
+texlive-bin (2009-10) unstable; urgency=low
+
+  [ Hilmar Preuße ]
+  * xdvik compilation error with glibc-2.10 and gcc-4.4:
+    xdvik-22.84.16-open-mode.patch (Closes: #614257)
+  * comment the --disable-largefile switch in upstream build script
+    (partial_lfs_support.diff). This hopefully (Closes: #618033). dvips
+    still can't write files > 2GB (see #383781).
+  * we can use gcc-4.5 on armel too
+ 
+  [ Frank Küster ]
+  * Indicate in the description that this package needs a real TeX package
+    to function, and add a Recommends on texlive-base (closes: #593782)
+  * Make various upstream-provided scripts "set -e".  This closes: #136051
+    and is needed by the planned papersize patch to texconfig.
+  * The binaries pdftex, dvips, xdvi and dvipdfmx now respect the
+    system-wide paper setting as their default if there is no papersize
+    information in the input file (see #49149).  It is still highly
+    recommended to specify such information explicitly, e.g. using
+    hyperref.sty with LaTeX.
+
+ -- Frank Küster <frank at debian.org>  Thu, 28 Jul 2011 21:54:49 +0200
+
+texlive-bin (2009-9) unstable; urgency=high
+
+  * Add 73_tex_segfault patch, closes: #633011 (Frank Küster)
+    urgency set to high to fix this RC bug and help with poppler transition
+  * add texlive-binaries.lintian to override embedded lib t1lib
+
+ -- Norbert Preining <preining at debian.org>  Thu, 21 Jul 2011 00:10:10 +0900
+
+texlive-bin (2009-8) unstable; urgency=low
+
+  * add upstream patch from Mathias Kende fixing segfaults on MIPS
+    due to invalid C (Closes: #602566)
+    (debian/patches/upstream-tex-file_arg-passing-fix)
+
+ -- Norbert Preining <preining at debian.org>  Thu, 11 Nov 2010 00:00:35 +0900
+
+texlive-bin (2009-7) unstable; urgency=low
+
+  * add ed (and perl, texlive-common) to the list of dependencies (LP: #577305)
+    (Closes: #580732)
+  * remove texconfig warning/exit (with tlmgr link) statement and rely
+    on fmtutil being debianized (Closes: #588731)
+
+ -- Norbert Preining <preining at debian.org>  Tue, 10 Aug 2010 17:09:47 +0900
+
+texlive-bin (2009-6) unstable; urgency=high
+
+  [ Frank Küster ]
+  * include a patch that allows texconfig to handle more default paper
+    settings.  This is intended to be submitted upstream, and to be used
+    to address #402994 (libpaper integration) [fk]
+
+  [ Norbert Preining ]
+  * include (lost) man pages for texconfig-dialog, devnag, bibtex8,
+    omfonts, otangle, pdfopen (no bug, but see #574796)
+  * add a patch upstream-web2c-tmpfilewithpid that fixes overwriting
+    files with -recorder in parallel builds (Closes: #575731).
+  * bump standards version to 3.8.4, no changes necessary
+  * bump build-dep on libpoppler to 0.12.4 (against my will!!)
+    (Closes: #577684)
+  * Fix CVE-2010-1440: this overrides the incomplete fix for CVE-2010-0793.
+  
+  [ Security Team ]
+  Fixed in 2009-5+nmu1
+  * Fix CVE-2010-0827: buffer overflow in dvips (virtualfont.c).
+
+ -- Norbert Preining <preining at debian.org>  Sat, 01 May 2010 02:17:20 +0900
+
+texlive-bin (2009-5) unstable; urgency=low
+
+  * include a patch (from upstream) to fmtutil so that multiple
+    defined formats are accepted. That is the definitive fix for bug
+    #557091, but the other one is necessary, too.
+  * install synctex.5 man page
+  * manage bibtex with alternatives, code by Андрей Парамонов
+    (Closes: #539482)
+
+ -- Norbert Preining <preining at debian.org>  Sat, 26 Dec 2009 19:06:47 +0900
+
+texlive-bin (2009-4) unstable; urgency=low
+
+  * make texlive-binaries replace the (only in old-stable present)
+    freetype1-tools (Closes: #560975)
+  * take over forgotten patch from TL2007 for building on i386-hurd.
+    The patches are now icu-xetex_hurd.diff and detex-hurd.diff
+    (patches thanks to Samuel Thibault as already in TL2007, and 
+    thanks for Hilmar for tracking that down) (Closes: #560800)
+  * add "-Wl,--no-relax" to LDFLAGS on alpha to fix a FTBFS, thanks to
+    Steve Langasek for the pointer (Closes: #557330) [hilmar-guest]
+  * resurrect etex which was lost (Closes: #561768)
+    - install etex from inst/bin/
+    - add etex.1 to debian as it is shipped in src:texlive-base
+  * include a fix for segfaults in mpost (Closes: #561500)
+
+ -- Norbert Preining <preining at debian.org>  Mon, 21 Dec 2009 23:53:48 +0900
+
+texlive-bin (2009-3) unstable; urgency=low
+
+  * first upload to unstable
+  * replace/conflict/provide dvi2tty to make upgrades smooth (Closes: #559120)
+
+ -- Norbert Preining <preining at debian.org>  Wed, 09 Dec 2009 23:04:26 +0900
+
+texlive-bin (2009-2) experimental; urgency=low
+
+  * add replace texlive-extra-utils (<< 2008) for dvi* (reported in bug
+    #557086)
+
+ -- Norbert Preining <preining at debian.org>  Sat, 21 Nov 2009 15:55:27 +0900
+
+texlive-bin (2009-1) experimental; urgency=low
+
+  [ Frank Küster ]
+  * New upstream (closes: #481060) version (pre-release, but not far from)
+    with lots of internal changes, hence the upload to experimental. This
+    upstream version fixes the following bugs:
+
+    - many manpage typos, with warm thanks and a virtual QA bouquet to
+      A. Costa <agcosta at gis.net>, closes: #450552, #450553, #450554,
+      #450555, #450556, #450557, #450558, #450559, #450560, #464351 (the
+      last was found by Joachim Breitner <nomeata at debian.org>
+
+      [xdvi bugs]
+    - closes: #336807, crashes with (breaklinks) hyperrefs
+    - closes: #357462, shrinkFactor 0 is broken
+    - closes: #361218, dies while printing
+    - closes: #342529, unnecessarily noisy in expert mode
+    - closes: #350292, please use cntl-wheel to zoom  
+    - closes: #351672, please use shift-wheel to scroll left or right
+    - closes: #478176, transition to texlive has lost xdvi 'grid' feature
+    - closes: #461818, typo in oxdvi.1 and xdvi.1 man pages
+
+      [mixed executables]
+    - bibtex: Upstream added a patch that closes: #520920
+  
+    - dvipdfm is now a symlink to dvipdfmx. Among other problems, this
+      closes: #485563
+  
+    - closes: #421464, pdfetex: Not embedding Base-14 fonts creates
+      somewhat broken files
+    - closes: #518536, fresh upstream of pdftex is needed (latest stable
+      pdftex is 1.40.9 available)
+    - closes: #532074, 'man pdftex': missing .ds WB
+
+    - closes: #446617, texlive-metapost: Omits font encoding from output
+    - closes: #457711, texlive-metapost: mpost man page does not match reality
+  
+    - closes: #507652, make math support working in xe(la)tex and lmodern
+      fonts
+    - closes: #489943, mktexpk does not work in directories containing
+      spaces
+    - closes: #536795, 'man texconfig' typos (the fix also affects a
+      Debian-specific patch)
+    - closes: #420836, "texdoc -s" is too slow, should use ls-R database
+  
+    - closes: #459571, please include the TeXcount.pl script to do TeX
+      word count
+    - closes: #413652, a2ping: embedding all fonts
+    - closes: #542463, vlna program missing from texlive-lang-czechslovak
+
+  * The texlive-bin source package is now handled independently from the
+    other TeXLive source packages, i.e. it is not configured in
+    tpm2deb.cfg in our svn repository and the debian directory. Instead,
+    it now looks more like a standard compiled package and should be
+    easier to work on in case of security uploads or NMUs.
+  * This also means that some of it's older binary packages, like
+    texlive-metapost, have moved source package. By chance, this closes:
+    #517600, #517601
+  * Support a create-orig-source target in debian/rules.  The orig.tar.gz
+    is now either wget'ed if we are working on a released version, or
+    automatically created from a svn repository for development
+  * There are now only three binary packages, texlive-binaries and the two
+    library packages.  texlive-binaries Replaces/Conflicts/Provides
+    texlive-base-bin in order to get a working (if not smooth)
+    transition. 
+  * Add Build-Depends: time, since the upstream Build script uses it
+  * Don't install the format links, they will generated by dh_installtex
+    in the other packages, also do not install the man pages for the 
+    links
+  * do not install rungs, it is not necessary
+  * do not install script links, they will be shipped together with
+    the script itself
+  * Add patch 60_unneeded_linking. These needs testing!
+
+  [ أحمد المحمودي (Ahmed El-Mahmoudy) ]
+  * debian/rules: use /usr/share/quilt/quilt.make provided by quilt and remove 
+    patch-stamp & unpatch targets
+  * Install changelog into libkpathsea packages
+  * Add a README.source
+
+  [ Norbert Preining ]
+  * fix postinst update-alternatives, the xdvi-xaw does not have .bin anymore
+  * add texlive-binaries.prerm to remove the alternative
+  * add same version number to libkpathsea-dev deps on libkpathsea5 to make
+    lintian happy
+  * make texlive-binaries replace/conflict/provide dvipdfmx (in accordance
+    with the maintainer of dvipdfmx we will phase out dvipdfmx itself)
+  * new source package format "3.0 (quilt)" can be used (closes: #538557)
+  * Install copyright file
+  * add patch for libpoppler 0.12 (thanks to Ubuntu for inspiration)
+
+ -- Norbert Preining <preining at debian.org>  Fri, 13 Nov 2009 01:20:08 +0900
+
+texlive-bin (2007.dfsg.2-3) unstable; urgency=medium
+
+  * add missing source roadmap.fig of roadmap.eps in fontinst documentation
+    (Closes: #482915) (urgency medium due to RC bug)
+    (new patch add-missing-fontinst-source)
+
+ -- Norbert Preining <preining at debian.org>  Thu, 26 Jun 2008 23:14:59 +0200
+
+texlive-bin (2007.dfsg.2-2) unstable; urgency=low
+
+  * use local keyword in a policy-compliant way (Closes: #488023)
+    (urgency medium since RC bug)
+  * do not install fmtutil.cnf in texmf-texlive/web2c (Closes: #488035)
+
+ -- Norbert Preining <preining at debian.org>  Wed, 25 Jun 2008 21:59:32 +0200
+
+texlive-bin (2007.dfsg.2-1) unstable; urgency=medium
+
+  * Let tl-metapost replace tl-context (closes: #484818). This is a RC
+    bug, hence medium urgency [fk]
+  * Fix shell scripting errors in texlive-base-bin's preinst script (one
+    fix actually is done in common.functions.preinst and affects all
+    packages, but didn't show up there). Closes: #484833 [fk]
+  * include sfd files necessary for other packages, but removed from
+    the archive with the imminent removal of freetype1-tools. That needs
+    a new .orig.tar.gz
+  * bump standards version to 3.8.0:
+    - rename README.Debian-source to README.source an explain how to change
+      something using quilt by refering to the quilt README.source
+    - add homepage field to control
+    - add a patch target to debian/rules
+  * add dversionmangle to debian/watch file to ignore the .dfsg.NN suffix
+
+ -- Norbert Preining <preining at debian.org>  Thu, 12 Jun 2008 18:12:50 +0200
+
+texlive-bin (2007.dfsg.1-4) unstable; urgency=low
+
+  * add mktexlsr-ignore-more-vcs patch that makes mktexlsr ignore not only
+    .svn, but also other VCS directories. Patch taken from upstream
+    (Closes: #481371) [np]
+  * Fix NEWS.Debian of texlive-base-bin to describe the issue of removed
+    conffiles better (closes: #482631) [fk]
+  * add a missing line to the tl2007.2 xetex patch, taken from upstream
+  * add a patch to xdvipdfmx to re-allow inclusion of tagged pdf images
+    (Closes: #483019) (big thanks to Jonathan Kew for tracking all this down)
+  * do not install xdvizilla(.1) (Closes: #477160)
+  * use gcc/g++-4.2 on armel to fix FTBFS (closes: #483939) (thanks Adeodato)
+
+ -- Norbert Preining <preining at debian.org>  Sun, 01 Jun 2008 16:29:49 +0200
+
+texlive-bin (2007.dfsg.1-3) unstable; urgency=low
+
+  * improve manpage of patgen (Closes: #450875)
+  * (really?) fix the watch file (Closes: #449621), thanks Raphael Geissert
+  * bump standards version to 3.7.3, no changes needed
+  * add texlive-common dependency to the -doc splitted packages,
+    otherwise configuration can fail due to missing update-updmap etc
+    (Closes: #457270) (Closes Ubuntu bug: 177674)
+  * include dviconcat and dviutils (orphaned package dviutils/seetex) and
+    provide/replace/conflict with dviutils (extra-utils)
+  * texlive-xetex recommends texlive-latex-base (Closes: #462610)
+  * add copies of supp-pdf.tex and supp-mis.tex from context 2008-01-28
+    to texlive-metapost so inclusion of metapost images in pdf(la)tex does
+    work without installation of context (Closes: #465107)
+  * fix perl warning in thumbpdf (patch: fix-thumbpdf-perlwarning)
+    (Closes: #469294)
+  * fix a segfault in ovp2ovf (patch: fix-ovp2ovf-segfault) (Closes: #470433)
+  * TeX Live 2007.2 release incorporation: fixes for xetex and xdvipdfmx,
+    new patches tl2007.2-xetex and tl2007.2-xdvipdfmx
+    (adapted from Jonathan Kew's original patches to work with poppler)
+  * add the LPPL to debian/copyright
+  * texlive-extra-utils now recommends ghostscript (Closes: #476954)
+  * fix skipping of all trees in mktexlsr with empty $HOME (Closes: #473548)
+  * add a patch for Sinhala support by Anuradha Ratnaweera 
+    <anuradha at taprobane.org>, but keep it disabled until Jonathan gives me
+    the ok. This would close the bug #476957.
+
+ -- Norbert Preining <preining at debian.org>  Sun, 20 Apr 2008 20:14:04 +0200
+
+texlive-bin (2007.dfsg.1-2) unstable; urgency=low
+
+  * Update location of upstream iso.zip file in uscan watch file (closes:
+    #449621), thanks to Raphael Geissert <atomo64 at gmail.com> [fk]
+  * switch to libpoppler-0.5.9 patch, since the new libpoppler (>= 0.6) is in
+    unstable, adjust build deps to libpoppler-dev >= 0.6 (Closes: #451588)
+
+ -- Norbert Preining <preining at debian.org>  Mon, 19 Nov 2007 11:41:11 +0100
+
+texlive-bin (2007.dfsg.1-1) unstable; urgency=low
+
+  * disable pdftex character shifting (option G) in config.pdf
+    (Closes: #434891)
+  * rebuild new orig.tar.gz necessary to blacklist latexmp completely
+    (Closes: #436965)
+  * add patch gcc43-compile-fix to compilation of teckit with newer
+    gcc compilers (Closes: #441605) (patch taken from 007-12ubuntu3,
+    thanks Matthias Klose)
+  * implement doc splitting, so that we can build separate -doc packages
+    for every collection we want to [np]
+    splitting is done for: metapost, base-bin
+  * fix segfault of dvips -z on amd64 (patch applied upstream), thanks to
+    Bastien Roucaries for finding and providing a patch (Closes: #447081)
+    (Fixes: CVE-2007-5935)
+
+ -- Norbert Preining <preining at debian.org>  Mon, 22 Oct 2007 07:35:16 +0200
+
+texlive-bin (2007-14) unstable; urgency=low
+
+  * Really move Philokalia.otf to a fonts directory [fk]
+  * fix FTBFS on hurd-i386, adding patch icu-powerpc-buildfix-patch from
+    Samuel Thibault (Closes: #437949) [np]
+  * set LANG=C for the update-alternatives grepping, thanks Andreas Degert
+    (Closes: #438551) [np]
+  * Add missing quotes around the sed script in
+    texlive-base-bin.postinst(.pre) (Closes parts of #439205) [np]
+  * blacklist latexmp.pdf since no source is present (Closes: #436965) [np]
+
+ -- Norbert Preining <preining at debian.org>  Sat, 01 Sep 2007 11:40:57 +0200
+
+texlive-bin (2007-13) unstable; urgency=low
+
+  * let texlive-xetex depend on dvipdfmx (Closes: #430373)
+  * add xetex patch, included in release texlive 2007.1. This patch fixes
+    xetex crashes on big-endian 64bit archs, and crashes with some OT fonts.
+  * update a2ping script and it's man page (Closes: #412107)
+  * update config.ps from current svn (Closes: #431338)
+  * add lost texlive-extra-utils recommends dvidvi (thanks Lionel for
+    spotting this)
+  * include the fixes to dvilj(k) which are included in the TeX Live
+    security branch, this adds a patch dviljk-security-fixes
+  * Move Philokalia-Regular.otf from the documentation to a fonts
+    directory, thanks to Ralf Stubner (closes: #433138)
+  * duplicate the code to recreate missing conffiles pdftexconfig.tex,
+    config.ps from texlive-base-bin postinst in preinst (Closes: #425803,
+    #435156, #435081, #433889, #436235, #435719, #435081, #433889) [np]
+  * use see in texdoc for displaying of all types of files (Closes: #432037)
+  * adapt the menu entries to new policy
+
+ -- Norbert Preining <preining at debian.org>  Mon, 13 Aug 2007 16:26:41 +0200
+
+texlive-bin (2007-12) unstable; urgency=low
+
+  * Add a debian-specific patch for fmtutil which makes the --enable,
+    --disable and --edit commands work safely.  Furthermore, patch
+    texconfig to use update-texmf (closes: #409798) [fk]
+  * fix manpage of pkfix (Closes: #429587)
+
+ -- Norbert Preining <preining at debian.org>  Wed, 20 Jun 2007 10:09:36 +0200
+
+texlive-bin (2007-11) unstable; urgency=low
+
+  * Refine the code to resurrect pdftexconfig.tex (no version check) and
+    properly document it in NEWS.Debian.
+  * Also resurrect config.ps, thanks to Bruce MacDonald
+    <b.macdonald at auckland.ac.nz> (closes: #427059) [fk]
+
+ -- Frank Küster <frank at debian.org>  Fri,  1 Jun 2007 17:32:35 +0200
+
+texlive-bin (2007-10) unstable; urgency=low
+
+  * don't install libkpathsea.la (Closes: #426006) [np]
+  * do not actually carry out the "preserve deleted conffile" due to the 
+    tetex bug and too many busted installations, and resurrect the
+    critical conffile pdftexconfig.tex for sid users (Closes: #425781)
+    [np,fk] 
+  * Add missing Depends of libkpathsea-dev on libkpathsea4 (closes:
+    #426710) [fk]
+
+ -- Frank Küster <frank at debian.org>  Wed, 30 May 2007 17:58:37 +0200
+
+texlive-bin (2007-9) unstable; urgency=low
+
+  * Make sure --enable-shared is not in effect in the subdirectories for
+    static-only libraries, in particular xetex's teckit.  Thanks to Aaron
+    M. Ucko <amu at alum.MIT.EDU> (closes: #425863) [fk]
+  * Move libkpathsea4 and the -dev package to the correct sections (libs
+    and libdevel, not tex) [np]
+
+ -- Frank Küster <frank at debian.org>  Thu, 24 May 2007 20:12:02 +0200
+
+texlive-bin (2007-8) unstable; urgency=low
+
+  * lang-indic: move bangfont.tex from doc to run files (Closes: #424031)
+  * lang-indic: add missing python header to ebong script (Closes: #423990)
+  * dpkg_md5sum in common-functions.preinst returns now the empty string
+    in case of an unknown conffile (could have been created by touch).
+    This should fix Ubuntu bug 111654. [np]
+  * Build with --enable-ipc to allow piping of output [fk]
+  * Build shared kpathsea library and include it in separate packages [fk]
+  * move bin-thumbpdf to texlive-base-bin (Closes: #424658) [np]
+  * texlive-extra-utils suggests gs-* for epstopdf (Closes: #423988) [np]
+  * replace patches/30_libpoppler with patches/30_libpoppler_new for
+    new libpoppler 0.5, make the build-dep libpoppler-dev (>= 0.5.4)
+    (Closes: #425065, #356079)
+  * add stricter dependencies to all packages: if in the final shipout
+    dep on a texlive package there is no version given, the value of
+    latest-version (from tpm2deb.cfg) of the source package is taken.
+    (Closes: #421969)
+  * remove cruft from control files (cweb, ctie, texdoctk)
+    (Closes: #241089, #249085)
+  * don't leave copies of conffiles in TEXMFDIST (Closes: #420139)
+  * add poppler to the pdftex banner (Closes: #420971)
+  * texlive-lang-indic depends on python
+  * remove the rpath entry in all the binaries
+  * add patch 64_fix_makempx_installation to fix the installation
+    of makempx script instead of the binary (thanks Sanjoy Mahajan)
+  * rework the xdvi conf file handling code to not "preserve removal"
+    when upgrading from older texlive versions (Closes: #425272)
+  * format generation reworked: 
+    - texlive-base-bin does not provide formats anymore since all the
+      respective ini files are in texlive-base
+    - texlive-base takes the format generation
+
+ -- Norbert Preining <preining at debian.org>  Mon, 21 May 2007 14:17:19 +0200
+
+texlive-bin (2007-7) unstable; urgency=low
+
+  * fix typo in texlive-base-bin.postinst (Closes: #422929)
+
+ -- Norbert Preining <preining at debian.org>  Wed, 09 May 2007 00:59:49 +0200
+
+texlive-bin (2007-6) unstable; urgency=low
+
+  * Update patch 62_dvips_absolutepath_doc, it also fixes the manpage
+    now.  Thanks to Eric Cooper <ecc at cmu.edu> [fk].
+  * Add patch 63_texmf.cnf_for_comparison_temp from upstream.  The patched
+    file is only used for comparing with our generated texmf.cnf from
+    tex-common, and the upstream patch has been incorporated there [fk].
+  * remove 31_pdftex_gcc_ICE-on-alpha, recent revision of gcc have
+    fixed the FTBFS bug.
+  * move the debianize-updmap call in updmap after the syncWithTrees
+    function so that this function is also debianized. (Closes: #421184) [np]
+  * apply teTeX texdoctk.defaults patch to get texdoctk to use the right
+    programs (Closes: #421633) [np]
+  * add menu entry of xdvi, texdoctk, texconfig (Closes: #421634) [np]
+  * Bring dvips to version 5.96dev, 2007-05-06 (patch
+    32_dvips_fontbug_fix_upstream).  This fixes a problem with double
+    partial inclusion of fonts, and adds improvements for debugging such
+    problems (closes: #266718) [fk]
+
+ -- Frank Küster <frank at debian.org>  Mon,  7 May 2007 19:38:34 +0200
+
+texlive-bin (2007-5) unstable; urgency=low
+
+  * fix config file handling (Closes: #419826) [np]
+    - fix a bug in tpm2deb-bin.pl which prevented any config file handling
+    - fix another bug in tpm2deb-bin.pl which didn't install the config
+      file handling in the postrm script
+
+ -- Norbert Preining <preining at debian.org>  Wed, 18 Apr 2007 08:13:17 +0200
+
+texlive-bin (2007-4) unstable; urgency=low
+
+  * Add patch 31_pdftex_gcc_ICE-on-alpha to work around a bug in newer
+    gcc, thanks to Falk Hueffner <falk at debian.org> (closes: #419434) [fk]
+  * Since we take over xdvi from tetex-bin, we remove its xdvi alternative
+    in case it is present (closes: #419381) [fk]
+  * Remove any format or log files in /var/lib/texmf/web2c, they must be
+    in $engine subdirs now.  teTeX does not properly remove them (so this
+    closes: #333767), and they cause strange failures with context (see
+    #419059 and #418976) [fk]
+  * Add patch 62_dvips_absolutepath_doc to document the change in dvips'
+    file inclusion behavior in config.ps (closes: #418788)
+
+ -- Norbert Preining <preining at debian.org>  Tue, 17 Apr 2007 13:17:16 +0200
+
+texlive-bin (2007-3) unstable; urgency=low
+
+  * Disable the comparison of texmf.cnf introduced in the last version.
+    It can still be run manually, but doing so at build time would make
+    texlive-bin FTBFS each time tex-common updates its files in texmf.d
+    [fk]
+  * Fix the friday 13 bugs: A bad coincidence combined a serious bug in
+    debhelper (#419060) produces buggy maintainer scripts in most
+    texlive packages. The debhelper bug is fixed, this
+    closes: #418981
+  * add texlive-font-utils replaces tetex-bin << 2007 (Closes: #418995)
+  * Add patch 51_fmtutil_keep_failedlog so that fmtutil will keep log
+    files even if no format file is created at all [fk]
+    (Closes: #419016)
+
+ -- Norbert Preining <preining at debian.org>  Sat, 14 Apr 2007 09:31:47 +0200
+
+texlive-bin (2007-2) unstable; urgency=low
+
+  * first upload of TeX Live 2007 to unstable
+
+  * fix xdvi.cfg config file transfer bug (Closes: #415906) [np]
+
+  * Added two scripts which allow to compare our upstream-provided
+    texmf.cnf (which will not be used) with the texmf.cnf generated from
+    tex-common's snippets, and let the build fail if both show other than
+    the known differences.  This is run in the clean and build targets and
+    allows to track upstream changes.
+
+    In order to build on non-clean systems, export
+    DEBIAN_NOCHECK_TEXMFCNF=true (or, actually, anything nonzero)
+    [fk]
+
+  * replace links of odvicopy.1 and odvitype.1 to the respective
+    man pages without o with a minimal manpage (Closes: #417274) [np]
+
+  * drop updated collection-binextra.tpm and bin-dvipos.tpm
+    into the source package tosolve the missing dvipos problem. [np]
+
+  * Fix missing build dependency on tex-common >= 1.3, thanks to Yannick
+    Roehlly for spotting this. [np]
+
+  * texlive-base-bin now suggests gs (or variants), postscript-viewers and
+    pdf viewers. [np] (Closes: #414473)
+
+  * do not compress documentation pdf files
+
+ -- Norbert Preining <preining at debian.org>  Tue, 10 Apr 2007 18:15:25 +0200
+
+texlive-bin (2007-1) experimental; urgency=low
+
+  * new upstream release
+  * Major changes:
+    - now includes XeTeX (new package texlive-xetex)
+    - pdfTeX 1.40
+    - MetaPost 1.0
+    - the Debian packages no longer include ConTeXt, but depend on the
+      separate context package instead.
+    - Totally reworked Debian packaging, in particular the Perl scripts.
+    - TeX Live now replaces teTeX and provides dummy packages for the
+      transition.
+    - configuration files from /etc/texmf/texlive have been moved to
+      the TDS-locations below /etc/texmf
+  * Patches:
+    - Move from dpatch to quilt
+    - update patch 30_libpoppler to the new pdftex.  This needs to be
+      extended to patch xetex as well!
+    - Drop patches 15_fmtutil_metapost_fix, 20_xpdf3.01pl1,
+      21b_pdftex_cjkfonts_overflow, 51_fmtutil_tempdir_in_texinputs
+      (applied upstream), 52_feynmf-perl-sec-fix (no longer included)
+    - all other patches unfuzzied (sometimes manually)
+  * Add patch 01_tmp_configure_without_installextra to bypass texlinks,
+    fmtutil and updmap invocations at build time [FK]
+  * include teTeXs perl script for /usr/bin/xdvi which supports compressed
+    dvi files (Closes: #412611) [NP]
+
+ -- Norbert Preining <preining at debian.org>  Wed, 21 Mar 2007 17:03:16 +0100
+
+texlive-bin (2005.dfsg.2-12) unstable; urgency=low
+
+  * blacklist dvidvi.tpm and add a recommend tl-extra-utils -> dvidvi
+    (Closes: #411537)
+
+ -- Norbert Preining <preining at debian.org>  Tue, 20 Feb 2007 22:38:54 +0100
+
+texlive-bin (2005.dfsg.2-11) unstable; urgency=low
+
+  * The timezone patch from the last upload was wrong for 64bit
+    architectures.  Applied corrected patch from upstream, thanks to
+    Martin Michlmayr <tbm at cyrius.com> (closes: #409517) [frank]
+
+ -- Frank Küster <frank at debian.org>  Thu, 15 Feb 2007 14:07:50 +0100
+
+texlive-bin (2005.dfsg.2-10) unstable; urgency=low
+
+  * rebuild from old packaging machinery
+
+ -- Norbert Preining <preining at debian.org>  Wed, 10 Jan 2007 14:12:09 +0100
+
+texlive-bin (2005.dfsg.2-9) unstable; urgency=low
+
+  * Apply patch by Julian Gilbey <jdg at debian.org> to prevent mktexlsr from
+    creating ls-R in root's home directory (closes: #402925)
+  * Apply a patch by "Mark A. Wicks" <mwicks at kettering.edu> to fix a crash
+    of dvipdfm in half-hour timezones (Closes: #403267)
+
+ -- Norbert Preining <preining at debian.org>  Thu,  4 Jan 2007 00:47:50 +0100
+
+texlive-bin (2005.dfsg.2-8) unstable; urgency=low
+
+  * move bin-ttfutils to tl-font-utils, blacklist everything but ttf2afm,
+    add bin-ttfutils.tpm and ttf2afm.1 to the source package
+    (Closes: #402983) (Closes also ubuntu #75545)
+  * reinclude pslatex script and its manpage into texlive-base-bin.
+
+ -- Norbert Preining <preining at debian.org>  Thu, 28 Dec 2006 15:04:19 +0100
+
+texlive-bin (2005.dfsg.2-7) unstable; urgency=low
+
+  * change shebang for getnonfreefonts to /bin/bash (Closes: #398112)
+  * fix the texdoctk perl errors (Closes: #402651)
+  * include xdvi upstream fix for segfault on hitting g with -nogrey 
+    (Closes: #369569)
+
+ -- Norbert Preining <preining at debian.org>  Tue, 12 Dec 2006 08:05:45 +0100
+
+texlive-bin (2005.dfsg.2-6) unstable; urgency=low
+
+  * Apply patch from upstream to pdftex that allows it to work properly
+    with CJK fonts with their large number of subfonts.  Many thanks to
+    Thanh Han The <hanthethanh at gmail.com>, Jie Luo
+    <luojie at nlsde.buaa.edu.cn> for the patch and many others for
+    debugging, in particular Danai SAE-HAN (韓達耐)
+    <danai.sae-han at edpnet.be> who reminded me.
+  
+    This allows CJK-related packages to depend on texlive and 
+    closes: #399967.
+  * Patch texdoctk so that it still works if documentation in TeXlive's as
+    well as teTeX's TEXMFDIST is present. Thanks to Braun Gabor
+    <braung at renyi.hu> for reporting and Ralf Stubner <ralf.stubner at web.de>
+    for ideas for fixing this (closes: #401930)
+
+ -- Frank Küster <frank at debian.org>  Wed,  6 Dec 2006 22:40:27 +0100
+
+texlive-bin (2005.dfsg.2-5) unstable; urgency=high
+
+  * Add Conflicts of texlive-omega on the aleph package (closes:
+    #400930), both provide the same binary.  In the long run, aleph should
+    be superseded by AFNIX. 
+
+ -- Frank Küster <frank at debian.org>  Fri,  1 Dec 2006 14:34:22 +0100
+
+texlive-bin (2005.dfsg.2-4) unstable; urgency=low
+
+  * blacklist feynmf in tl-metapost and add a Recommends on the feynmf
+    package (closes: #400657)
+
+ -- Frank Küster <frank at debian.org>  Tue, 28 Nov 2006 14:52:03 +0100
+
+texlive-bin (2005.dfsg.2-3) unstable; urgency=low
+
+  * include fixes for superficially linked in libs
+  * extend texconfig man page and include some fixes from teTeX
+    (Closes: #396904)
+
+ -- Norbert Preining <preining at debian.org>  Tue,  7 Nov 2006 14:37:17 +0100
+
+texlive-bin (2005.dfsg.2-2) unstable; urgency=low
+
+  * update the debian patch for updmap(.1) (Closes: #393189)
+  * adjust built-in search paths of libkpathsea to the Debian defaults
+    (Closes: #392641)
+  * include patch for pdfetex to support newer TTF fonts (Closes: #394028)
+
+ -- Norbert Preining <preining at debian.org>  Thu, 19 Oct 2006 10:27:51 +0200
+
+texlive-bin (2005.dfsg.2-1) unstable; urgency=medium
+
+  * remove magic header of a2ping, thumbpdf, and pdfcrop
+  * report bugs together with tex-common, and report status of the
+    tetex packages. Fix some small things in bug.scripts.
+  * change uploader field to my debian.org email address
+  * blacklist lacheck in tl-extra-utils and add a recommend on lacheck
+  * blacklist dviconcat(.1) and dviselect(.1) files in tl-extra-utils
+    and recommend dviutils
+  * use xdvi.bin in the xdvi shell script, and use alternatives
+    system to set xdvi.bin to xdvi-xaw.bin (Closes: #391437)
+  * move bin-texdoc, ie texdoc and texdoctk, from tl-extra-utils to
+    texlive-base-bin (Closes: #391640)
+  * texlive-bin: include the already unpacked sources instead of the
+    source.tar.bz2. Changes to the clean target:
+    - don't remove unpack-stamp
+    - don't remove the whole build dir, only build/inst and build/Work
+    (Closes: #380227) (Thanks Frank for insisting!)
+  * Use tex-common's (>= 0.33) debianize-updmap (Closes: #391348)
+  * urgency set to medium to get these fixes to testing
+
+ -- Norbert Preining <preining at debian.org>  Mon,  9 Oct 2006 19:01:51 +0200
+
+texlive-bin (2005.dfsg.1-1) unstable; urgency=low
+
+  * remove fmtutil.cnf link (useless) and mktex.cnf link (taken from
+    tex-common) (Closes: #376524)
+  * add lintian override for wrong-name-for-upstream-changelog triggered
+    by CHANGES.packaging
+  * change maintainer to debian-tex-maint at l.d.o
+
+ -- Norbert Preining <preining at logic.at>  Thu,  3 Aug 2006 12:36:56 +0200
+
+texlive-bin (2005-2) unstable; urgency=low
+
+  * first upload to unstable, sponsored by 
+    Frank Küster <frank at debian.org>
+  * texdoc support
+    - let tetex texdoc find documentation of texlive (Closes: #364776)
+    - include tetex texdoc patches (following of symlinks, security
+      fixes) (Closes: #356390)
+  * texlive-lang-polish conflicts with octave-forge as both provide
+    /usr/bin/mex, this is preliminary, a better solution must be
+    sought (Closes: #364059)
+  * change shell for the reportbug script to bash (Closes: #356391)
+  * fix installation of thumbpdf and pdfcrop (Closes: #352092)
+  * improve various descriptions (Closes: #354964)
+  * call the update-* programs in all postinst scripts, so that the
+    config files do not contain left-overs (Closes: #355266)
+  * fix creation of formats which in turn depend on the latex format
+    (Closes: #351707)
+  * remap the ibycus4.map TeX/MF input file from the fonts/map location
+    to the fonts/source location (Closes: #354652)
+  * depend on the updated lmodern package, thus making the fonts
+    available for X (Closes: #351727)
+  * lots of internal changes, important ones being:
+    - texlive packages now do not include files which have been
+      packaged for Debian already (eg cm-super, lmodern, musixtex)
+    - most packages can be used together with teTeX
+    - fix several upstream bugs
+    - generate license information for each file from the
+      TeX Catalogue (ongoing work)
+    for detailed changes see CHANGES.packaging in texlive-common
+
+ -- Norbert Preining <preining at logic.at>  Thu, 11 May 2006 00:12:10 +0200
+
+texlive-bin (2005-1) experimental; urgency=low
+
+  * First upload to experimental (Closes: #312897)
+
+ -- Norbert Preining <preining at logic.at>  Thu, 12 Jan 2006 17:30:22 +0100
+
+# vim:set fileencoding=utf-8: #
+# Local Variables:
+# coding: utf-8
+# mode: debian-changelog
+# End:
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..51c87a4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,52 @@
+Source: texlive-bin
+Section: tex
+Priority: optional
+Maintainer:  Debian TeX Maintainers <debian-tex-maint at lists.debian.org>
+Uploaders: Norbert Preining <preining at debian.org>, Frank Küster <frank at kuesterei.ch>
+Build-Depends: debhelper (>= 7.0.50~), sharutils, ed, libncurses5-dev | libncurses-dev, libxaw7-dev, libpng12-dev | libpng-dev, zlib1g-dev | libz-dev, libgd2-xpm-dev | libgd2-noxpm-dev, flex, bison, libpoppler-dev (>= 0.12.4), chrpath, g++-4.4 [armel], time
+Standards-Version: 3.9.2
+Homepage: http://www.tug.org/texlive
+
+Package: texlive-binaries
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, texlive-common (>= 2011), tex-common (>= 2.00), ed, perl
+Recommends: texlive-base
+Breaks: texlive-base (<< 2010)
+Description: Binaries for TeX Live
+ This package contains all the binaries of TeX Live packages.
+ .
+ Note that this package alone has hardly any functionality.  Rather,
+ choose the texlive-* packages you want to use, e.g.
+ texlive-latex-recommended or context
+
+Package: libkpathsea6
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: TeX Live: path search library for TeX (runtime part)
+ This package contains the runtime part of the Kpathsea[rch] library,
+ which implements generic path searching, configuration, and
+ TeX-specific file searching.
+
+Package: libkpathsea-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libkpathsea6 (= ${binary:Version}), ${shlibs:Depends}
+Description: TeX Live: path search library for TeX (development part)
+ This package contains the static library and header files for the
+ Kpathsea[rch] library.
+
+Package: libptexenc1
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: TeX Live: ptex encoding library
+ library for encoding support in ptex
+
+Package: libptexenc-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libptexenc1 (= ${binary:Version}), ${shlibs:Depends}
+Description: TeX Live: path search library for TeX (development part)
+ This package contains the static library and header files for the
+ ptexenc library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a010dc7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,793 @@
+Copyright information for the texlive bundle
+
+Table of contents:
+
+1. Copyright and License of the debian-specific adaptions
+2. License of the TeX live distribution as a compilation work
+3. Licenses of individual parts
+3.1 Explanation of the format of the following information
+3.2 Packages with license problems
+3.3 Individual license texts
+3.4 (Incomplete) list of licenses of individual parts
+
+
+1. Copyright and License of the debian-specific adaptions
+
+Debian adaptions for these packages are licensed under the GNU General
+Public License, version 2, and are under Copyright by:
+
+   Norbert Preining <preining at logic.at> (2005-)
+   Frank Küster <frank at kuesterei.ch> (2006-)
+
+All code generated for the Debian adaptions is under the GNU General
+Public License.
+
+--------
+
+2. License of the TeX live distribution as a compilation work
+
+COPYING CONDITIONS FOR TeX Live:
+
+To the best of our knowledge, all software in this distribution is
+freely redistributable (libre, that is, not necessarily gratis), within
+the Free Software Foundation's definition and Debian Free Software
+Guidelines.  If you find any non-free files included, please contact us
+(references given below).
+
+That said, TeX Live has neither a single copyright holder nor a single
+license covering its entire contents, since it is a collection of many
+disparate packages.  Therefore, you may copy, modify, and/or
+redistribute software from TeX Live only if you comply with the
+requirements placed thereon by the owners of the respective packages.
+
+To most easily learn these requirements, we suggest checking the TeX
+Catalogue at: http://www.ctan.org/tex-archive/help/Catalogue/ (or any
+CTAN mirror).  The Catalogue is also included in TeX Live in
+./texmf/doc/html/catalogue/, but the online version will have updates.
+Of course the legal statements within the packages themselves are the
+final authority.
+
+In some cases, TeX Live is distributed with a snapshot of the CTAN
+archive, which is entirely independent of and separable from TeX Live
+itself.  (The "live" DVD in the TeX Collection is one example of this.)
+Please be aware that the CTAN snapshot contains many files which are
+*not* freely redistributable; see LICENSE.CTAN for more information.
+
+
+GUIDELINES FOR REDISTRIBUTION:
+
+In general, you may redistribute TeX Live, with or without modification,
+for profit or not, according to the usual free software tenets.  Here
+are some general guidelines for doing this:
+
+- If you make any changes to the TeX Live distribution or any
+package it contains, besides complying with any licensing requirements,
+you must prominently mention such changes in your modified distribution
+so that users do not take your work for ours, and know to contact you,
+not us, in case of questions or problems.  A new top-level
+README.<yourwork> file is a good place to describe the general situation.
+
+- Especially (but not necessarily) if changes or additions are made, we
+recommend a clearly different title, such as "<your work> demo CD",
+based on TeX Live YYYY demo (with updates)", where YYYY is the year of
+TeX Live you are publishing.  This credits both our work and yours.
+
+- You absolutely may *not* place your own copyright on the entire
+distribution, since it is not your work (as stated above, TeX Live is
+not created by any single person or entity).  Statements such as "all
+rights reserved" and "may not be reproduced" are especially
+reprehensible, since they are antithetical to the free software
+principles under which TeX Live is produced.
+
+- You may use any cover or media label designs that you wish.  Such
+packaging and marketing details are not covered by any TeX Live license.
+
+- Finally, we make the following requests (not legal requirements):
+
+a) Acknowledging that TeX Live is developed as a joint effort by all TeX
+   user groups, and encouraging the user/reader to join their user group
+   of choice.
+   
+   The web page http://www.tug.org/usergroups.html may be referenced as
+   a list of TeX user groups.  We also appreciate your explicitly
+   listing all the user groups as given on that page, space permitting.
+
+b) Referencing the TeX Live home page: http://www.tug.org/tex-live/.
+
+c) Crediting the editor of the original TeX Live: Sebastian Rahtz.
+
+Such credits may be placed on the label of your media, your cover,
+and/or in accompanying text (for instance, in the acknowledgements
+section of a book).
+
+Finally, although it is certainly not a requirement, we'd like to invite
+any redistributors to make a donation to the project, whether cash or
+in-kind, for example via https://www.tug.org/donate.html.  Thanks.
+
+
+If you have any questions or comments, *please* contact us.  In general,
+we appreciate being given the chance to review any TeX Live-related
+material in advance of publication, simply to avoid mistakes.  It is
+much better to correct text on a CD label or in a book before thousands
+of copies are made!
+
+We are also happy to keep anyone planning a publication informed as to
+our deadlines and progress.  Just let us know.  However, you should be
+aware that TeX Live is produced entirely by volunteers, and no dates can
+be guaranteed.
+
+
+LICENSING FOR NEW PACKAGES:
+
+Finally, we are often asked what license to use for new work.  To be
+considered for inclusion on TeX Live, a package must use a free software
+license, such as the LaTeX Project Public License, the GNU Public
+License, the X Window System license, the modified BSD license, etc., or
+be put into the public domain.  Please see the url's below for more
+discussion of this.
+
+Thanks for your interest in TeX.
+
+- Sebastian Rahtz, editor, for the TeX Live team
+
+
+TeX Live mailing list: texlive at tug.org
+TeX Live home page: http://www.tug.org/tex-live/
+
+The FSF's free software definition: http://www.gnu.org/philosophy/free-sw.html
+Debian Free Software Guidelines:    http://www.debian.org/intro/free
+FSF commentary on existing licenses:
+  http://www.gnu.org/licenses/license-list.html
+
+LPPL: http://latex-project.org/lppl.html or texmf/doc/latex/base/lppl.txt
+LPPL rationale: texmf/doc/latex/base/modguide.pdf
+
+-------------
+
+3. Reference to an (incomplete) list of licenses of individual parts
+
+Individual parts of this distribution have their own copyright and
+license.
+
+3.1 Explanation of the format of the following information
+
+Since most packages use standard licenses, we have separated the list
+of license texts and the list of packages and individual files with
+their licenses.  In section 3.3 we provide the license texts and their
+abbreviations used in in the file list.  The file list itself is
+generated automatically from the TeX Catalogue and can be found, for
+each binary package, in /usr/share/doc/texlive-<name>/Licenses.
+
+The information in the TeX Catalogue is checked by the Debian TeX
+maintainers and the CTAN maintainers.  If you find any contradiction
+in the listing with the reality please inform us.
+
+In the case of gpl and lppl, the string without a number means that
+the license statement contains a "or any later version" statement.  In
+the list in Licenses, each package has a header line like this:
+
+% ccfonts: lppl (verification data:1.1:1.1:2006-03-14:frank:readme)
+
+indicating that the package ccfonts is under LPPL, exists in version
+1.1, the license has been checked in version 1.1 on 2006-03-14 by
+"frank" (the username among the Catalogue developers, actually Frank
+Küster), and the license information is in a file "readme".  After
+that follows the list of files, 
+
+ tex/latex/ccfonts/t1ccr.fd
+ tex/latex/ccfonts/ccfonts.sty
+ tex/latex/ccfonts/ts1ccr.fd
+ doc/latex/ccfonts/*
+
+where the * indicates that all ordinary files in that directory belong
+to that package (but not necessarily subdirectories and files
+therein).
+
+3.2 TODO: Packages with licensing problems
+
+[ this is copied over from teTeX, and some problems might already be
+solved ]
+
+3.2.1 Serious problems
+
+- euler: LPPL according changelog, but no indication in file.
+
+- adrconv: No license at all for the documentation
+
+- antp: PD according to catalogue, no statement in the files, no
+  sources; contacted upstream
+
+- bbm: no license statement at all, bug filed
+
+- cite:  chapterbib.sty is missing a license statement in the header
+
+- Problematic files by Donald Arseneau:
+
+  * chapterbib.sty: no license information
+  * tabls.sty: no license information
+  * import.sty: "this software is free of any restrictions"
+  * relsize.sty: "public domain", nothing else
+  * shapepar.sty: noncommercial
+  * version.sty: no license information, not only by D.A.
+  * selectp.sty: no license information
+  *./source/latex/shapepar/README.shapepar
+   ./source/latex/shapepar/shapepar.sty
+   ./source/latex/shapepar/shapepar.ltx
+   ./source/latex/hyphenat/hyphenat.dtx: no license information
+
+
+- citesort.sty: no license statement
+
+- index.doc: no license statement - probably unused
+
+- dinbrief: lppl 1.1+, but with additional restrictions which are non-free
+
+- eepic: The style files are public domain, but all the documentation
+  has no license at all.
+
+- extsizes: extsizes.sty, extarticle.cls and extreport.cls, and the
+  size*.clo files have a correct LPPL notice, the others have none.
+  The author seems to be active on Wikipedia, tried to contact him
+
+- beamericon*: no license statement. beamerexample-seminar: just like
+  seminar, which has not been investigated yet.  Filed bug against beamer.
+
+- one file in the psnfss directory with unclear license:
+
+    tex/latex/psnfss/8r.sty
+
+3.2.2 Normal :-) problems
+
+- listings: LPPL, plus: 
+
+,----
+| *Modification*advice* 
+| 
+| Permission is granted to modify the listings package as well as
+| lstdrvrs.dtx. You are not allowed to distribute a modified version of
+| the listings package or lstdrvrs.dtx unless you change the file names
+| and provide the original files. In any case it is better to contact
+| the address below; other users will welcome removed bugs, new
+| features, and additional programming languages.
+
+This is more restrictive than LPPL 1.3 (6.a and 6.d.2). The title is advice... 
+
+- ae: Just a formal problem, the GPL is included, but nowhere is it
+      explicitly stated that this license applies to the package.
+
+      contacted upstream
+
+- antt: gust font license, unclear which files % contacted upstream
+
+
+3.3 Individual license texts
+
+The actual text of the licenses can either be found in
+/usr/share/common-licenses (for artistic,bsd,gpl) or in "3.2 Text of
+the licenses" below.  For BSD-like licenses that just exchange the
+name of the copyright holder, we do not list the license text.
+
+A. gpl (GNU General Public License)
+
+The full text of the GPL is given in /usr/share/common-licenses/GPL.
+
+B. lppl (LaTeX Project Public License)
+
+The LaTeX Project Public License
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+LPPL Version 1.3c  2006-05-20
+
+Copyright 1999 2002-2006 LaTeX3 Project
+    Everyone is allowed to distribute verbatim copies of this
+    license document, but modification of it is not allowed.
+
+
+PREAMBLE
+========
+
+The LaTeX Project Public License (LPPL) is the primary license under
+which the the LaTeX kernel and the base LaTeX packages are distributed.
+
+You may use this license for any work of which you hold the copyright
+and which you wish to distribute.  This license may be particularly
+suitable if your work is TeX-related (such as a LaTeX package), but 
+it is written in such a way that you can use it even if your work is 
+unrelated to TeX.
+
+The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE',
+below, gives instructions, examples, and recommendations for authors
+who are considering distributing their works under this license.
+
+This license gives conditions under which a work may be distributed
+and modified, as well as conditions under which modified versions of
+that work may be distributed.
+
+We, the LaTeX3 Project, believe that the conditions below give you
+the freedom to make and distribute modified versions of your work
+that conform with whatever technical specifications you wish while
+maintaining the availability, integrity, and reliability of
+that work.  If you do not see how to achieve your goal while
+meeting these conditions, then read the document `cfgguide.tex'
+and `modguide.tex' in the base LaTeX distribution for suggestions.
+
+
+DEFINITIONS
+===========
+
+In this license document the following terms are used:
+
+   `Work'
+    Any work being distributed under this License.
+    
+   `Derived Work'
+    Any work that under any applicable law is derived from the Work.
+
+   `Modification' 
+    Any procedure that produces a Derived Work under any applicable
+    law -- for example, the production of a file containing an
+    original file associated with the Work or a significant portion of
+    such a file, either verbatim or with modifications and/or
+    translated into another language.
+
+   `Modify'
+    To apply any procedure that produces a Derived Work under any
+    applicable law.
+    
+   `Distribution'
+    Making copies of the Work available from one person to another, in
+    whole or in part.  Distribution includes (but is not limited to)
+    making any electronic components of the Work accessible by
+    file transfer protocols such as FTP or HTTP or by shared file
+    systems such as Sun's Network File System (NFS).
+
+   `Compiled Work'
+    A version of the Work that has been processed into a form where it
+    is directly usable on a computer system.  This processing may
+    include using installation facilities provided by the Work,
+    transformations of the Work, copying of components of the Work, or
+    other activities.  Note that modification of any installation
+    facilities provided by the Work constitutes modification of the Work.
+
+   `Current Maintainer'
+    A person or persons nominated as such within the Work.  If there is
+    no such explicit nomination then it is the `Copyright Holder' under
+    any applicable law.
+
+   `Base Interpreter' 
+    A program or process that is normally needed for running or
+    interpreting a part or the whole of the Work.    
+
+    A Base Interpreter may depend on external components but these
+    are not considered part of the Base Interpreter provided that each
+    external component clearly identifies itself whenever it is used
+    interactively.  Unless explicitly specified when applying the
+    license to the Work, the only applicable Base Interpreter is a
+    `LaTeX-Format' or in the case of files belonging to the 
+    `LaTeX-format' a program implementing the `TeX language'.
+
+
+
+CONDITIONS ON DISTRIBUTION AND MODIFICATION
+===========================================
+
+1.  Activities other than distribution and/or modification of the Work
+are not covered by this license; they are outside its scope.  In
+particular, the act of running the Work is not restricted and no
+requirements are made concerning any offers of support for the Work.
+
+2.  You may distribute a complete, unmodified copy of the Work as you
+received it.  Distribution of only part of the Work is considered
+modification of the Work, and no right to distribute such a Derived
+Work may be assumed under the terms of this clause.
+
+3.  You may distribute a Compiled Work that has been generated from a
+complete, unmodified copy of the Work as distributed under Clause 2
+above, as long as that Compiled Work is distributed in such a way that
+the recipients may install the Compiled Work on their system exactly
+as it would have been installed if they generated a Compiled Work
+directly from the Work.
+
+4.  If you are the Current Maintainer of the Work, you may, without
+restriction, modify the Work, thus creating a Derived Work.  You may
+also distribute the Derived Work without restriction, including
+Compiled Works generated from the Derived Work.  Derived Works
+distributed in this manner by the Current Maintainer are considered to
+be updated versions of the Work.
+
+5.  If you are not the Current Maintainer of the Work, you may modify
+your copy of the Work, thus creating a Derived Work based on the Work,
+and compile this Derived Work, thus creating a Compiled Work based on
+the Derived Work.
+
+6.  If you are not the Current Maintainer of the Work, you may
+distribute a Derived Work provided the following conditions are met
+for every component of the Work unless that component clearly states
+in the copyright notice that it is exempt from that condition.  Only
+the Current Maintainer is allowed to add such statements of exemption 
+to a component of the Work. 
+
+  a. If a component of this Derived Work can be a direct replacement
+     for a component of the Work when that component is used with the
+     Base Interpreter, then, wherever this component of the Work
+     identifies itself to the user when used interactively with that
+     Base Interpreter, the replacement component of this Derived Work
+     clearly and unambiguously identifies itself as a modified version
+     of this component to the user when used interactively with that
+     Base Interpreter.
+     
+  b. Every component of the Derived Work contains prominent notices
+     detailing the nature of the changes to that component, or a
+     prominent reference to another file that is distributed as part
+     of the Derived Work and that contains a complete and accurate log
+     of the changes.
+  
+  c. No information in the Derived Work implies that any persons,
+     including (but not limited to) the authors of the original version
+     of the Work, provide any support, including (but not limited to)
+     the reporting and handling of errors, to recipients of the
+     Derived Work unless those persons have stated explicitly that
+     they do provide such support for the Derived Work.
+
+  d. You distribute at least one of the following with the Derived Work:
+
+       1. A complete, unmodified copy of the Work; 
+          if your distribution of a modified component is made by
+          offering access to copy the modified component from a
+          designated place, then offering equivalent access to copy
+          the Work from the same or some similar place meets this
+          condition, even though third parties are not compelled to
+          copy the Work along with the modified component;
+
+       2. Information that is sufficient to obtain a complete,
+          unmodified copy of the Work.
+
+7.  If you are not the Current Maintainer of the Work, you may
+distribute a Compiled Work generated from a Derived Work, as long as
+the Derived Work is distributed to all recipients of the Compiled
+Work, and as long as the conditions of Clause 6, above, are met with
+regard to the Derived Work.
+
+8.  The conditions above are not intended to prohibit, and hence do not
+apply to, the modification, by any method, of any component so that it
+becomes identical to an updated version of that component of the Work as
+it is distributed by the Current Maintainer under Clause 4, above.
+
+9.  Distribution of the Work or any Derived Work in an alternative
+format, where the Work or that Derived Work (in whole or in part) is
+then produced by applying some process to that format, does not relax or
+nullify any sections of this license as they pertain to the results of
+applying that process.
+     
+10. a. A Derived Work may be distributed under a different license
+       provided that license itself honors the conditions listed in
+       Clause 6 above, in regard to the Work, though it does not have
+       to honor the rest of the conditions in this license.
+      
+    b. If a Derived Work is distributed under a different license, that
+       Derived Work must provide sufficient documentation as part of
+       itself to allow each recipient of that Derived Work to honor the 
+       restrictions in Clause 6 above, concerning changes from the Work.
+
+11. This license places no restrictions on works that are unrelated to
+the Work, nor does this license place any restrictions on aggregating
+such works with the Work by any means.
+
+12.  Nothing in this license is intended to, or may be used to, prevent
+complete compliance by all parties with all applicable laws.
+
+
+NO WARRANTY
+===========
+
+There is no warranty for the Work.  Except when otherwise stated in
+writing, the Copyright Holder provides the Work `as is', without
+warranty of any kind, either expressed or implied, including, but not
+limited to, the implied warranties of merchantability and fitness for a
+particular purpose.  The entire risk as to the quality and performance
+of the Work is with you.  Should the Work prove defective, you assume
+the cost of all necessary servicing, repair, or correction.
+
+In no event unless required by applicable law or agreed to in writing
+will The Copyright Holder, or any author named in the components of the
+Work, or any other party who may distribute and/or modify the Work as
+permitted above, be liable to you for damages, including any general,
+special, incidental or consequential damages arising out of any use of
+the Work or out of inability to use the Work (including, but not limited
+to, loss of data, data being rendered inaccurate, or losses sustained by
+anyone as a result of any failure of the Work to operate with any other
+programs), even if the Copyright Holder or said author or said other
+party has been advised of the possibility of such damages.
+
+
+MAINTENANCE OF THE WORK
+=======================
+
+The Work has the status `author-maintained' if the Copyright Holder
+explicitly and prominently states near the primary copyright notice in
+the Work that the Work can only be maintained by the Copyright Holder
+or simply that it is `author-maintained'.
+
+The Work has the status `maintained' if there is a Current Maintainer
+who has indicated in the Work that they are willing to receive error
+reports for the Work (for example, by supplying a valid e-mail
+address). It is not required for the Current Maintainer to acknowledge
+or act upon these error reports.
+
+The Work changes from status `maintained' to `unmaintained' if there
+is no Current Maintainer, or the person stated to be Current
+Maintainer of the work cannot be reached through the indicated means
+of communication for a period of six months, and there are no other
+significant signs of active maintenance.
+
+You can become the Current Maintainer of the Work by agreement with
+any existing Current Maintainer to take over this role.
+
+If the Work is unmaintained, you can become the Current Maintainer of
+the Work through the following steps:
+
+ 1.  Make a reasonable attempt to trace the Current Maintainer (and
+     the Copyright Holder, if the two differ) through the means of
+     an Internet or similar search.
+
+ 2.  If this search is successful, then enquire whether the Work
+     is still maintained.
+
+  a. If it is being maintained, then ask the Current Maintainer
+     to update their communication data within one month.
+     
+  b. If the search is unsuccessful or no action to resume active
+     maintenance is taken by the Current Maintainer, then announce
+     within the pertinent community your intention to take over
+     maintenance.  (If the Work is a LaTeX work, this could be
+     done, for example, by posting to comp.text.tex.)
+
+ 3a. If the Current Maintainer is reachable and agrees to pass
+     maintenance of the Work to you, then this takes effect
+     immediately upon announcement.
+     
+  b. If the Current Maintainer is not reachable and the Copyright
+     Holder agrees that maintenance of the Work be passed to you,
+     then this takes effect immediately upon announcement.  
+    
+ 4.  If you make an `intention announcement' as described in 2b. above
+     and after three months your intention is challenged neither by
+     the Current Maintainer nor by the Copyright Holder nor by other
+     people, then you may arrange for the Work to be changed so as
+     to name you as the (new) Current Maintainer.
+     
+ 5.  If the previously unreachable Current Maintainer becomes
+     reachable once more within three months of a change completed
+     under the terms of 3b) or 4), then that Current Maintainer must
+     become or remain the Current Maintainer upon request provided
+     they then update their communication data within one month.
+
+A change in the Current Maintainer does not, of itself, alter the fact
+that the Work is distributed under the LPPL license.
+
+If you become the Current Maintainer of the Work, you should
+immediately provide, within the Work, a prominent and unambiguous
+statement of your status as Current Maintainer.  You should also
+announce your new status to the same pertinent community as
+in 2b) above.
+
+
+WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE
+======================================================
+
+This section contains important instructions, examples, and
+recommendations for authors who are considering distributing their
+works under this license.  These authors are addressed as `you' in
+this section.
+
+Choosing This License or Another License
+----------------------------------------
+
+If for any part of your work you want or need to use *distribution*
+conditions that differ significantly from those in this license, then
+do not refer to this license anywhere in your work but, instead,
+distribute your work under a different license.  You may use the text
+of this license as a model for your own license, but your license
+should not refer to the LPPL or otherwise give the impression that
+your work is distributed under the LPPL.
+
+The document `modguide.tex' in the base LaTeX distribution explains
+the motivation behind the conditions of this license.  It explains,
+for example, why distributing LaTeX under the GNU General Public
+License (GPL) was considered inappropriate.  Even if your work is
+unrelated to LaTeX, the discussion in `modguide.tex' may still be
+relevant, and authors intending to distribute their works under any
+license are encouraged to read it.
+
+A Recommendation on Modification Without Distribution
+-----------------------------------------------------
+
+It is wise never to modify a component of the Work, even for your own
+personal use, without also meeting the above conditions for
+distributing the modified component.  While you might intend that such
+modifications will never be distributed, often this will happen by
+accident -- you may forget that you have modified that component; or
+it may not occur to you when allowing others to access the modified
+version that you are thus distributing it and violating the conditions
+of this license in ways that could have legal implications and, worse,
+cause problems for the community.  It is therefore usually in your
+best interest to keep your copy of the Work identical with the public
+one.  Many works provide ways to control the behavior of that work
+without altering any of its licensed components.
+
+How to Use This License
+-----------------------
+
+To use this license, place in each of the components of your work both
+an explicit copyright notice including your name and the year the work
+was authored and/or last substantially modified.  Include also a
+statement that the distribution and/or modification of that
+component is constrained by the conditions in this license.
+
+Here is an example of such a notice and statement:
+
+  %% pig.dtx
+  %% Copyright 2005 M. Y. Name
+  %
+  % This work may be distributed and/or modified under the
+  % conditions of the LaTeX Project Public License, either version 1.3
+  % of this license or (at your option) any later version.
+  % The latest version of this license is in
+  %   http://www.latex-project.org/lppl.txt
+  % and version 1.3 or later is part of all distributions of LaTeX
+  % version 2005/12/01 or later.
+  %
+  % This work has the LPPL maintenance status `maintained'.
+  % 
+  % The Current Maintainer of this work is M. Y. Name.
+  %
+  % This work consists of the files pig.dtx and pig.ins
+  % and the derived file pig.sty.
+
+Given such a notice and statement in a file, the conditions
+given in this license document would apply, with the `Work' referring
+to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being
+generated from `pig.dtx' using `pig.ins'), the `Base Interpreter'
+referring to any `LaTeX-Format', and both `Copyright Holder' and
+`Current Maintainer' referring to the person `M. Y. Name'.
+
+If you do not want the Maintenance section of LPPL to apply to your
+Work, change `maintained' above into `author-maintained'.  
+However, we recommend that you use `maintained', as the Maintenance
+section was added in order to ensure that your Work remains useful to
+the community even when you can no longer maintain and support it
+yourself.
+
+Derived Works That Are Not Replacements
+---------------------------------------
+
+Several clauses of the LPPL specify means to provide reliability and
+stability for the user community. They therefore concern themselves
+with the case that a Derived Work is intended to be used as a
+(compatible or incompatible) replacement of the original Work. If
+this is not the case (e.g., if a few lines of code are reused for a
+completely different task), then clauses 6b and 6d shall not apply.
+
+
+Important Recommendations
+-------------------------
+
+ Defining What Constitutes the Work
+
+   The LPPL requires that distributions of the Work contain all the
+   files of the Work.  It is therefore important that you provide a
+   way for the licensee to determine which files constitute the Work.
+   This could, for example, be achieved by explicitly listing all the
+   files of the Work near the copyright notice of each file or by
+   using a line such as:
+
+    % This work consists of all files listed in manifest.txt.
+   
+   in that place.  In the absence of an unequivocal list it might be
+   impossible for the licensee to determine what is considered by you
+   to comprise the Work and, in such a case, the licensee would be
+   entitled to make reasonable conjectures as to which files comprise
+   the Work.
+
+
+
+
+C. Artistic
+D. PD (Public domain):
+
+The file or package contains a statement equivalent to 
+
+"This file is in the public domain. You may freely use, modify and
+distribute it".
+
+E. Non-standard licenses, by package name:
+
+(1) eepic.sty, eepicemu.sty:
+    The macros are in public domain.
+    You may distribute or modify it in any ways you like.
+    epic.sty:
+    You may use this file in whatever way you wish. You are requested to 
+    leave this notice intact, and report any bugs, enhancements, comments,
+    suggestions, etc. to:
+    ...
+
+(2) The Computer Modern fonts by Donald E. Knuth have a special
+    license; essentially, they are public domain, but no modified
+    version may use the same name, and the names "TeX" and "MetaFont"
+    for the resulting programs, unless they pass the TRIP and TRAP
+    tests.  The complete license statement can be found in a text at
+    http://www.tug.org/TUGboat/Articles/tb11-4/tb30knut.pdf, and the
+    relevant parts are:
+
+   ,----
+   | My work on developing TEX, METAFONT, and Computer
+   | Modern has come to an end. I willmake no further
+   | changes except to correct extremely serious bugs.
+   | 
+   | I have put these systems into the public domain so that
+   | people everywhere can use the ideas freely if they wish.
+   | 
+   | [...]
+   | As stated on the copyright pages of Volumes B, D, and
+   | E, anybody can make use of my programs in whatever
+   | way they wish, as long as they do not use the names
+   | TEX, METAFONT, or Computer Modern. In particular,
+   | any person or group who wants to produce a program
+   | superior to mine is free to do so. However, nobody is
+   | allowed to call a system TEX or METAFONT unless that
+   | system conforms 100% to my own programs, as I have
+   | specified in the manuals for the TRIP and TRAP tests.
+   | And nobody is allowed to use the names of the Computer
+   | Modern fonts in Volume E for any fonts that do not
+   | produce identical tfm files. This prohibition applies to
+   | all people or machines, whether appointed by TUG or
+   | by any other organization. I do not intend to delegate the
+   | responsibility formaintainance of TEX, METAFONT, or
+   | Computer Modern to anybody else, ever.
+   `----
+
+   For those who believe more in texts written on paper, we reproduce
+   here the copyright page of Volume $of "Computers and Typesetting"
+   by Donald E. Knuth, which present the commented code for the 
+   Computer Modern fonts:
+
+   ,----
+   | The quotations on pages 7 and 351 have been excerpted [...].
+   | 
+   | METAFONT is a trademark of th Addison Wesley Publishing Company.
+   | 
+   | TeX is a trademark of the American Mathematical Society.
+   | 
+   | The programs for computer Modern are in the public domain, and readers
+   | may freely generate and hand-tune their own fonts using the algorithms
+   | of this book.  However, use of the names is restricted:  Any fonts
+   | whose names cmr10 or cmbx12 or ... are identical to the standard font
+   | names of this book should be fully compatible with the fonts defined
+   | here; i.e., fonts with the same names are supposed to have precisely
+   | the same character coding schemes and precisely the same font metric
+   | files. 
+   `----
+
+
+
+   *****
+
+F. Individual files, not belonging to any package: 
+
+%  cahyph.tex: LPPL 1+
+%  gahyph.tex: GPL 2+
+%  icehyph.tex: LPPL 1.2+
+%  ruhyphas.tex: LPPL 1.2+
+%  ruhyphzn.tex: LPPL 1.2+
+%  sehyph.tex: LPPL 1.2+
+
+
+
+3.4 Reference to an (incomplete) list of licenses of individual parts
+
+The file list for each binary package has the format explained above
+and can be found, for each binary package, in
+
+/usr/share/doc/texlive-<name>/Licenses.
+
+$Id: copyright 3943 2009-05-22 12:11:09Z preining $
diff --git a/debian/debianize-fmtutil b/debian/debianize-fmtutil
new file mode 100644
index 0000000..cbca14e
--- /dev/null
+++ b/debian/debianize-fmtutil
@@ -0,0 +1,429 @@
+# This file, debianize-fmtutil, is meant to be sourced by fmtutil and
+# enhance the --enable and --disable options with the functionality
+# needed to deal with Debian's generated fmtutil.cnf.
+# $Id$
+
+# This is the planned scheme how it works
+# 
+# A for disablefmt:
+#   1. create a list of files to act on (either in sysconfdir only, or in user dirs too)
+#   2. grep for not-commented lines in these files that contain $fmt
+#   3. if in syswide-mode, for each of these files, run configReplace appropriately;
+#      if not in syswide mode, for each of these files,
+#             test whether it is in the syswide dir
+#   3.a if not, run configReplace appropriately
+#   3b. if yes, create copy in user dir and run configReplace appropriately
+#
+# B for enableMap:
+#   1. create a list of files to act on (either in sysconfdir only, or in user dirs too)
+#   2. grep for commented lines in these files that contain $map
+#   2.1. if any are found, check whether it is only one
+#   2.1.1 if there is only one, run configReplace on that file appropriately
+#   2.1.2 if there is more than one, the precedence is 
+#         20tetex-extra.cfg > XX*local*.cfg > 10tetex-base.cfg > any
+#	  (extra has maximum priority because 
+#   2.1.2.1 if it's clear on which file to act, run configReplace on that file
+#           appropriately
+#   2.1.2.2 if unclear (i.e. only "any"), exit with an error
+#   2.2 if none are found, act on 10local.cfg (could be made configurable)
+#       - if 10local.cfg does not exist, create it (with an explanatory comment)
+#       - run configReplace on it appropriately
+#
+# C for syncwithtrees (and even more?)
+# ?
+#
+# After that, update-fmtutil must be run (in the appropriate mode!), and then fmtutil
+# must reexecute itself.  Since disableMap is called by enableMap, we need a wrapper
+# for it.  
+
+###############################################################################
+# verboseMsg(msg)
+#   print `msg' to stderr is $verbose is true
+###############################################################################
+verboseMsg() {
+  $verboseFlag && verbose echo ${1+"$@"} >&2
+}
+
+###############################################################################
+#  enablefmt(format)
+#    enables format in configuration file
+###############################################################################
+enablefmt()
+{
+  enableFmtInner $1
+  runUpdate
+}
+
+###############################################################################
+# disablefmt(format)
+#   disables format in configuration file
+###############################################################################
+disablefmt()
+{
+  disableFmtInner $1
+  runUpdate
+}
+
+###############################################################################
+# debianEditWarnAndShow()
+#   warn that this won't work
+###############################################################################
+debianEditWarnAndShow(){
+  echo "Warning!"
+  echo ""
+  echo "In Debian, fmtutil.cnf, the format configuration file, is a generated file."
+  echo "The actual configuration files are in /etc/texmf/fmt.d."
+  echo "Please read the update-fmtutil(1) manpage and edit those files."
+  echo ""
+  echo "Instead of editing, you will now be shown fmtutil.cnf in a pager."
+  echo ""
+  echo "Press enter to continue."
+  read dummy
+  
+  sensible-pager $cnf_file
+
+}
+
+###############################################################################
+# DebianSyswideMode ()
+#   determine whether we are running in syswide mode (or user-specific)
+###############################################################################
+DebianSyswideMode(){
+  test "$(id -u)" -eq 0 && return 0 || return 1
+}
+
+###############################################################################
+# FindDebianUserdir ()
+#   find the directory containing user-specific fmt.d snippets
+###############################################################################
+FindDebianUserdir(){
+#  verboseMsg "entering FindDebianUserdir"
+
+  texmfconfig=$(kpsewhich --expand-path '$TEXMFCONFIG')
+  OLDIFS="$IFS"
+  IFS=:
+  count=0
+  for d in "$texmfconfig"; do
+    count=$(($count+1))
+    : ${cnfdir:=$d}
+    if [ -d "$d/fmt.d" ]; then
+      defaultuserdir="$d/fmt.d"
+      break
+    fi
+  done
+  IFS="$OLDIFS"
+  # still empty?  Pick one
+  if [ -z "$defaultuserdir" ]; then
+    if [ $count -eq 1 ]; then
+      defaultuserdir="$cnfdir/fmt.d"
+    else
+      echo "TEXMFCONFIG contains more than one directory, and none of them" >&2
+      echo "already contains a fmt.d/ subdirectory." >&2
+      echo "I don't know how to proceed here, stopping." >&2
+      return 
+    fi
+  fi
+
+  /usr/share/texmf/web2c/mktexdir $defaultuserdir
+  if [ -d $defaultuserdir ]; then
+    echo $defaultuserdir
+  fi
+}
+
+###############################################################################
+# createDebianConffilelist
+#   create a list of configuration files containing fmtutil snippets;
+#   we are going to act on these
+###############################################################################
+createDebianConffilelist(){
+#  verboseMsg "entering createDebianConffilelist"
+
+  userFiles=""
+  local DebianConffilelist=""
+  syswideFiles=`find /etc/texmf/fmt.d -maxdepth 1 -type f -name '*.cnf'`
+  if ! DebianSyswideMode; then
+    debianuserdir=`FindDebianUserdir`
+    if [ -n "$debianuserdir" ]; then
+      userFiles=`find "$debianuserdir" -maxdepth 1 -type f -name '*.cnf'`
+    fi
+  fi
+  if [ -n "$userFiles" ]; then
+    for sysfile in $syswideFiles; do
+      for userfile in $userFiles; do
+	if [ ! "`basename $userfile`" = "`basename $sysfile`" ]; then
+	  DebianConffilelist="$DebianConffilelist $sysfile"
+	fi
+      done
+    done
+    DebianConffilelist="$DebianConffilelist $userFiles"
+  else
+    DebianConffilelist="$syswideFiles"
+  fi
+  echo $DebianConffilelist
+}
+
+###############################################################################
+# snippetFileIsWritable (debCnfFile)
+#   checks whether we are (supposed to be) able to write to a file
+###############################################################################
+snippetFileIsWritable(){
+  local file=$1
+
+  if DebianSyswideMode; then
+    return 0
+  else
+    # /etc/texmf/fmt.d shouldn't be hardcoded
+    if [ "${file#/etc/texmf}" = "${file}" ]; then
+      # file is not in systemwide dir
+      return 0
+    else
+      return 1
+    fi
+  fi
+}
+
+###############################################################################
+# makeUserCopy (filename)
+#   create a copy in the user dir
+###############################################################################
+makeUserCopy(){
+  local debCnfFile="$1"
+
+  # create a copy of that file in the user dir
+  debianuserdir=`FindDebianUserdir`
+  newdebCnfFile="$debianuserdir/`basename $debCnfFile`"
+  verboseMsg "I'm not allowed to handle $fmt in $debCnfFile." >&2
+  verboseMsg "Creating copy in $debianuserdir instead." >&2
+  cp $debCnfFile $newdebCnfFile
+  echo "$newdebCnfFile"
+}
+
+###############################################################################
+# findUserfiles (filelist)
+#   pick user-specific files out of a filelist of configuration files
+###############################################################################
+findUserfiles(){
+  userfiles=""
+  while [ $# -gt 0 ]; do
+    file="$1"
+    if [ "$file" = "${file#/etc/texmf/}" ]; then
+      # doesn't start with /etc/texmf/: must be user-specific
+      userfiles="$userfiles $file"
+    fi
+    shift;
+  done
+  echo $userfiles
+}
+
+###############################################################################
+# findRightMatchfile (format,filelist)
+#   find the right file from filelist to enable mapname 
+###############################################################################
+findRightMatchfile(){
+  fmt=$1; shift
+  matchfiles="$@"
+  local debCnfFile=""
+
+  if [ $# -eq 1 ]; then
+    # it is only one, enable map in it.  May we write it?
+    debCnfFile=$matchfiles
+    if ! snippetFileIsWritable $debCnfFile; then
+      debCnfFile=`makeUserCopy $debCnfFile`
+    fi
+    echo $debCnfFile
+    verboseMsg "Enabling format in $debCnfFile."
+    return 0
+  else
+    # there are more than one; 
+    if ! DebianSyswideMode; then
+      # can only change files in the user's dir
+      usermatchfiles=`findUserfiles $matchfiles`
+      if [ `(set $usermatchfiles; echo $#)` -eq 1 ]; then
+        # exactly one of them is a user-specific file
+	echo $usermatchfiles
+	verboseMsg "Enabling format in user-specific file $usermatchfiles."
+	return 0
+      else
+        # two files in the user directory (as bad as two in the site-wide
+        # dir), or no user-specific files.  If there are two user-specific
+	# files, report about them:
+	test -n "$usermatchfiles" && matchfiles="$usermatchfiles" || true
+      fi
+    fi
+    # for now, we exit with an error.  Any sensible choice would have to 
+    # check whether teTeX or texlive is installed, and I want to save me
+    # that hazzle.
+    cat >&2 <<EOF
+Entries for format $fmt found in several files:
+$matchfiles
+
+Since fmtutil.cnf is a generated file in Debian, I don't know how to proceed.
+Please refer to the manpage of update-fmtutil(1)
+
+EOF
+  fi
+}
+
+###############################################################################
+# pickLocalFile (mapname,directory)
+#   pick the right local file in directory
+###############################################################################
+pickLocalFile(){
+  fmt=$1
+  debDirname=$2
+  debDirname=${debDirname%/}
+  # Is there a file with "local" in the name?
+  localfile="`ls $debDirname/*local*cfg 2>/dev/null`"
+  if [ -n "$localfile" ]; then
+    # there is at least one
+    if [ `(set $localfile; echo $#)` -eq 1 ]; then
+      # exactly one
+      verboseMsg "Using local configuration file $localfile"
+      echo $localfile
+      return 0
+    else
+      # more than one local file? Brrrr.
+      cat >&2 <<EOF
+While trying to enable $fmt locally, I found several user-specific config files:
+$localfile
+
+I don't know how to proceed here. Please refer to the manpage of update-fmtutil(1)
+
+EOF
+    fi
+  else
+    # no user config file yet
+    echo $debDirname/10local.cfg
+    return 0
+  fi
+}
+
+###############################################################################
+# findRightLocalfile (fmt)
+#   find the right file to enable fmt, site-wide or user-specific
+###############################################################################
+findRightLocalfile(){
+  fmt=$1
+  # Do we know about a user-specific directory?
+  if DebianSyswideMode; then
+    DebCnfFile=`pickLocalFile $fmt /etc/texmf/fmt.d`
+  else
+    debianuserdir=`FindDebianUserdir`
+    test -w $debianuserdir || (
+      echo "Target directory $debianuserdir not writable." >&2
+      echo "Exiting" >&2
+      exit 0
+    )
+    DebCnfFile=`pickLocalFile $fmt $debianuserdir`
+  fi
+#   # configReplace will try to grep in the file: touch it to prevent a error message
+#   touch $DebCnfFile
+  verboseMsg "Using local configuration file $DebCnfFile"
+  echo $DebCnfFile
+}
+
+###############################################################################
+# runUpdate
+#   run update-fmtutil
+###############################################################################
+runUpdate(){
+  updOptions=""
+  if [ -n "$cfgparam" ]; then
+    # --conffile option was given on the command line
+      updOptions="--output-file $orig"
+  fi
+  # here we could check for an alternative user dir, or output file
+  # but as long as FindDebianUserdir only reports the default location, 
+  # it doesn't make sense
+
+  verboseMsg "Running update-fmtutil to merge the changed files"
+  update-fmtutil --quiet $updOptions
+}
+
+###############################################################################
+# disableFmtInner (map)
+#   disables fmt in config file (any type) (real command)
+###############################################################################
+disableFmtInner()
+{
+  fmt=$1
+  noverbose="$2"
+
+  local debCnfFile
+
+  oldverbose="$verbose"
+  if [ -n "$noverbose" ]; then
+    # don't confuse users with disable messages when they called --enable
+#     verboseMsg "disabling verbosity"
+    verbose=false
+  fi
+
+
+  if [ -z "$DebianConffilelist" ]; then
+    DebianConffilelist=`createDebianConffilelist`
+  fi
+
+  # create list of all files that contain an entry
+  for debCnfFile in $DebianConffilelist; do
+    if grep -q "^$fmt" $debCnfFile; then
+      if ! snippetFileIsWritable $debCnfFile; then
+	debCnfFile=`makeUserCopy $debCnfFile`
+      fi
+      verboseMsg "Disabling $fmt in $debCnfFile."
+      ed $debCnfFile >/dev/null 2>&1 <<-eof
+	g/^$fmt[ 	]/s/^/#! /
+	w
+	q
+eof
+    fi
+  done
+  
+  verbose="$oldverbose"
+  return 0
+}
+
+###############################################################################
+# enableFmtInner (fmt)
+#   enables fmt in config file (any type) (real command)
+###############################################################################
+enableFmtInner(){
+  fmt=$1
+  local debCnfFile=""
+
+  if [ -z "$DebianConffilelist" ]; then
+    DebianConffilelist=`createDebianConffilelist`
+  fi
+
+  # a format should only be defined once, so we carefully disable
+  # everything about it here:
+  disableFmtInner "$fmt" noverbose
+
+  # now enable with the right type.
+  # But we have to determine where to enable.
+  # is there already a file that contains a (commented) entry?
+  matchfiles=""
+  for file in $DebianConffilelist; do
+    if grep -q "^#![ 	]*$fmt[ 	]" "$file"; then
+      matchfiles="$matchfiles $file"
+    fi
+  done
+  if [ -n "$matchfiles" ]; then
+    # there is already (at least) one file that has a commented entry for our map
+    debCnfFile=`findRightMatchfile $fmt $matchfiles`
+    test -w "$debCnfFile" || debCnfFile=""
+  fi
+  if [ -z "$debCnfFile" ]; then
+    # still none, there is no (commented) entry in any writable file yet. 
+    debCnfFile=`findRightLocalfile $fmt`
+    test -n "$debCnfFile" || abort "Cannot proceed. Exiting"
+    verboseMsg "Creating new entry for format $fmt in $debCnfFile"
+  fi
+
+  ed $debCnfFile >/dev/null 2>&1 <<-eof
+	g/^#![ 	]*$fmt[ 	]/s/..[ 	]*//
+	w
+	q
+eof
+}
+
+
diff --git a/debian/libkpathsea-dev.README b/debian/libkpathsea-dev.README
new file mode 100644
index 0000000..4eda55e
--- /dev/null
+++ b/debian/libkpathsea-dev.README
@@ -0,0 +1,24 @@
+Why a new soname of libkpathsea in teTeX 3.0?
+---------------------------------------------
+
+We're just quoting Olaf Weber, the author of web2c. The full message can be
+found on:
+http://lists.debian.org/debian-tetex-maint/2004/03/msg00181.html
+
+"libkpathsea moved from using klibtool (a web2c-specific libtool-like hack)
+to libtool. As a result it acquired a new soname.
+libkpathsea was not designed to work well as a shared library, and has
+numerous flaws in that area -- in particular, too many internals are
+exposed, and too much is hard-coded."
+
+Olaf does not expect too many changes in the API of the libkpathsea between
+teTeX 2.0.2 and 3.0 so just relinking the programs should be sufficient.
+However that is not really predictable.
+
+"So at present my advice is that it's better to be safe than sorry, and
+enforce that the version of libkpathsea matches the program's version."
+
+A new redesigned libkpathsea, which is really a shared lib, is on his TODO
+list, but he can't say when it will be released.
+
+ -- Frank K�ster <frank at debian.org>, Wed Aug 24 12:54:11 2005
diff --git a/debian/libkpathsea-dev.install b/debian/libkpathsea-dev.install
new file mode 100644
index 0000000..4b59e9d
--- /dev/null
+++ b/debian/libkpathsea-dev.install
@@ -0,0 +1,3 @@
+usr/lib/libkpathsea.a
+usr/lib/libkpathsea.so
+usr/include/kpathsea/*
diff --git a/debian/libkpathsea6.install b/debian/libkpathsea6.install
new file mode 100644
index 0000000..4c833d6
--- /dev/null
+++ b/debian/libkpathsea6.install
@@ -0,0 +1,2 @@
+usr/lib/libkpathsea.so.6.*.*
+usr/lib/libkpathsea.so.6
diff --git a/debian/libptexenc-dev.install b/debian/libptexenc-dev.install
new file mode 100644
index 0000000..f710153
--- /dev/null
+++ b/debian/libptexenc-dev.install
@@ -0,0 +1,3 @@
+usr/lib/libptexenc.a
+usr/lib/libptexenc.so
+usr/include/ptexenc/*
diff --git a/debian/libptexenc1.install b/debian/libptexenc1.install
new file mode 100644
index 0000000..1b5b27c
--- /dev/null
+++ b/debian/libptexenc1.install
@@ -0,0 +1,2 @@
+usr/lib/libptexenc.so.1.*.*
+usr/lib/libptexenc.so.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..597bfc2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,89 @@
+#!/usr/bin/make -f
+# debian/rules file for texlive-bin
+
+export SHELL=/bin/bash
+export CONFIG_SHELL=/bin/sh
+
+%:
+	dh $@ --builddirectory Work
+
+override_dh_auto_configure:
+	dh_auto_configure -- --prefix=/usr \
+	--disable-native-texlive-build		\
+	--disable-largefile			\
+	--disable-missing			\
+	--with-banner-add=/Debian		\
+	--enable-shared				\
+	--with-system-zlib			\
+	--with-system-libpng			\
+	--with-system-zzlib			\
+	--with-system-gd			\
+	--with-system-freetype2			\
+	--with-system-xpdf			\
+	--with-system-poppler			\
+	--with-freetype2-include=/usr/include/freetype2 \
+	--with-x				\
+	--with-mf-x-toolkit			\
+	--with-xdvi-x-toolkit=xaw		\
+	--disable-lcdf-typetools		\
+	--disable-dvipng			\
+	--disable-musixflx			\
+	--disable-ps2eps			\
+	--disable-psutils			\
+	--disable-luatex			\
+	--disable-t1utils			\
+	--disable-cjkutils			\
+	--disable-dvidvi			\
+	--disable-lacheck			\
+	--disable-tex4htk			\
+	--enable-ipc				
+
+override_dh_auto_build:
+	(cd $(CURDIR)/Work ; $(MAKE) )
+
+override_dh_auto_install:
+	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp
+	(cd $(CURDIR)/debian/tmp/usr/bin ; \
+		for f in `find . -type f` ; do \
+		  chrpath -d $$f 2>/dev/null ;\
+		done )
+
+override_dh_intall:
+	dh_instal --sourcedir=$(CURDIR)/debian/tmp
+	# for alternatives treatment we rename usr/bin/bibtex to
+	# usr/bin/bibtex.original
+	mv debian/texlive-binaries/usr/bin/bibtex \
+	   debian/texlive-binaries/usr/bin/bibtex.original
+	mv debian/texlive-binaries/usr/share/man/man1/bibtex.1 \
+	   debian/texlive-binaries/usr/share/man/man1/bibtex.original.1
+
+override_dh_installdocs:
+	dh_installdocs
+	dh_installdocs -plibptexenc1 -plibptexenc-dev \
+		texk/ptexenc/COPYRIGHT texk/ptexenc/README
+	dh_installdocs -plibkpathsea6 -plibkpathsea-dev \
+		texk/kpathsea/AUTHORS texk/kpathsea/BUGS \
+		texk/kpathsea/NEWS texk/kpathsea/PROJECTS \
+		texk/kpathsea/README
+
+override_dh_installchangelogs:
+	dh_installchangelogs
+	dh_installchangelogs -plibkpathsea6 -plibkpathsea-dev \
+		texk/kpathsea/ChangeLog
+	dh_installchangelogs -plibptexenc1 -plibptexenc-dev \
+		texk/ptexenc/ChangeLog
+
+override_dh_compress:
+	dh_compress -X.pdf
+
+override_dh_makeshlibs:
+	dh_makeshlibs -plibkpathsea6
+	dh_makeshlibs -plibptexenc1
+
+override_dh_shlibdeps:
+	dh_shlibdeps \
+		-l debian/libkpathsea6/usr/lib \
+		-l debian/libptexenc1/usr/lib
+
+override_dh_clean:
+	dh_clean -X.orig
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/texlive-binaries.install b/debian/texlive-binaries.install
new file mode 100644
index 0000000..d619bbf
--- /dev/null
+++ b/debian/texlive-binaries.install
@@ -0,0 +1,3 @@
+debian/debianize-fmtutil usr/share/texlive-bin
+usr/bin
+usr/share
diff --git a/debian/texlive-binaries.postinst b/debian/texlive-binaries.postinst
new file mode 100644
index 0000000..a2680a7
--- /dev/null
+++ b/debian/texlive-binaries.postinst
@@ -0,0 +1,59 @@
+#!/bin/sh -e
+# texlive-binaries postinst, created 2008 by Frank K�ster
+# probably not copyrightable as it looks now, but anyway the code maybe 
+# freely copied, distributed and/or modified
+
+
+# activate the xdvi.bin alternative
+case "$1" in 
+  configure|reconfigure)
+    update-alternatives --install /usr/bin/xdvi.bin xdvi.bin /usr/bin/xdvi-xaw 30
+    update-alternatives --install /usr/bin/bibtex bibtex \
+    		/usr/bin/bibtex.original 100	\
+		--slave /usr/share/man/man1/bibtex.1.gz bibtex.1.gz \
+			/usr/share/man/man1/bibtex.original.1.gz
+    ;;
+esac
+
+#
+# if fmtutil-sys is available rebuild all available formats
+#
+dhit_libkpathsea_configured ()
+{
+    kpsewhich --version >/dev/null 2>&1
+}
+dhit_build_format ()
+{
+
+    tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
+    printf "Building format(s) $*.\n\tThis may take some time... "
+    if fmtutil-sys "$@" > $tempfile 2>&1 ; then
+        rm -f $tempfile
+        echo "done."
+    else
+        exec >&2
+        echo
+        echo "fmtutil-sys failed. Output has been stored in"
+        echo "$tempfile"
+        echo "Please include this file if you report a bug."
+        echo
+        exit 1
+    fi
+}
+
+case "$1" in
+  configure|reconfigure)
+    update-texmf
+    update-fmtutil
+    if dhit_libkpathsea_configured; then
+      # we are shipping mktexlsr, so it must be there!
+      mktexlsr /usr/share/texmf /usr/share/texmf-texlive /var/lib/texmf
+      if [ -r /usr/share/texmf/texconfig/tcfmgr ] ; then
+        dhit_build_format --refresh
+      fi
+    fi
+    ;;
+esac
+
+#DEBHELPER#
+
diff --git a/debian/texlive-binaries.preinst b/debian/texlive-binaries.preinst
new file mode 100644
index 0000000..cf73c90
--- /dev/null
+++ b/debian/texlive-binaries.preinst
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+# texlive-binaries preinst, created 2008 by the Debian TeX Task Force
+# probably not copyrightable as it looks now, but anyway the code maybe 
+# freely copied, distributed and/or modified
+
+# remove any format or log files in /var/lib/texmf/web2c, they must be
+# in $engine subdirs now.  tetex does not properly remove them, and
+# they cause strange failures with context.
+for ext in fmt mem log base; do
+  rm -f /var/lib/texmf/web2c/*.$ext
+done
+
+#DEBHELPER#
+
+# texlive-binaries.preinst end
+# Local Variables:
+# mode: shell-script
+# End:
diff --git a/debian/texlive-binaries.prerm b/debian/texlive-binaries.prerm
new file mode 100644
index 0000000..0ca813b
--- /dev/null
+++ b/debian/texlive-binaries.prerm
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+# texlive-binaries postinst, created 2009 by Norbert Preining
+# probably not copyrightable as it looks now, but anyway the code maybe 
+# freely copied, distributed and/or modified
+
+# deactivate the xdvi.bin alternative
+case "$1" in 
+  upgrade)
+    ;;
+  *)
+    update-alternatives --remove xdvi.bin /usr/bin/xdvi-xaw
+    update-alternatives --remove bibtex /usr/bin/bibtex.original
+    ;;
+esac
+
+#DEBHELPER#
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/texlive-bin.git



More information about the Reproducible-commits mailing list