Info2: << Package: tetex%type_pkg[-nox] Type: -nox (boolean) Version: 3.0 Revision: 5 GCC: 3.3 Description: Complete distribution of the TeX typesetting system Depends: %N-base (= %v-%r), texinfo, debianutils, texi2html BuildDepends: << libkpathsea4 (>= 3.5.6-1), t1lib5-nox, libpng3 (>= 1:1.2.8-1), libwww, libncurses5, fink (>= 0.24.12), libjpeg, libiconv-dev, (%type_raw[-nox] = .) t1lib5-x11, (%type_raw[-nox] = .) gd2 (>= 2.0.33-1), (%type_raw[-nox] = .) x11, (%type_raw[-nox] = .) openmotif3 << Conflicts: << system-tetex, tetex, tetex-nox, ptex, ptex-nox, (%type_raw[-nox] = -nox) tetex-base (<= 2.0.2-24), (%type_raw[-nox] = -nox) ptex-base (<= 3.1.3-7) << Replaces: << tetex, tetex-nox, ptex, ptex-nox, (%type_raw[-nox] = -nox) tetex-base (<= 2.0.2-24), (%type_raw[-nox] = -nox) ptex-base (<= 3.1.3-7) << Provides: bundle-tetex Recommends: detex, ifmslide, latex2html, pdfscreen, pdfslide, ppower4, tex4ht, texpower Suggests: foiltex Source: ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib/tetex-src-%v.tar.gz Source-MD5: 944a4641e79e61043fdaf8f38ecbb4b3 Source2: http://hnd.jp.asi.finkmirrors.net/pkgdists/kpathsea-3.5.6-tetex-3.0.patch.gz Source2-MD5: 8c855399616a49e26e411e6ed5db5092 Source3: http://hnd.jp.asi.finkmirrors.net/pkgdists/tetex-3.0-security-200709.tar.bz2 Source3-MD5: 461b069855d8c2852c647ebe44f7e1af Tar3FilesRename: tetex-3.0-security-200709:tetex-3.0-security PatchFile: tetex.patch PatchFile-MD5: b5bc9d386f66b9542970d63adcf8270d PatchScript: << sed 's|@PREFIX@|%p|g' < %{PatchFile} | sed 's|@PACKAGE@|%n-%v-%r|g' | patch -p1 perl -pi -e "s|hardcode_direct=yes|hardcode_direct=no|" texk/configure texk/kpathsea/configure utils/texinfo/configure perl -pi -e 's,-flat_namespace -undefined suppress,-twolevel_namespace -undefined error,g' texk/configure texk/kpathsea/configure utils/texinfo/configure perl -pi -e 's,\*\.obj\),*.obj | *.dSYM),' texk/configure texk/kpathsea/configure utils/texinfo/configure gzip -dc ../kpathsea-3.5.6-tetex-3.0.patch.gz | patch -p1 # Fix dvipdfm buffer overflow (imported from tetex-3.0-20.FC5) patch -p1 < ../tetex-3.0-security/tetex-3.0-dvipdfm.patch # Don't use tmpnam() in dvipdfm. (impoted from tetex-3.0-4.FC4) patch -p1 < ../tetex-3.0-security/tetex-2.0.2-dvipdfm-security.patch # Fix xpdf overflows CVE-2005-3193 (impoted from tetex-3.0-20.fc5) patch -p1 < ../tetex-3.0-security/tetex-3.0-CVE-2005-3193.patch # Fix xpdf integer overflow CVE-2007-3387 (imported from tetex-3.0-40.1.fc7) patch -p1 < ../tetex-3.0-security/tetex-3.0-CVE-2007-3387.patch # http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0104 patch -d libs -p1 < ../tetex-3.0-security/post-3.5.5-kdegraphics-CVE-2007-0104.diff # Don't use PID for temporary file names in scripts. (impoted from FC4) patch -p1 < ../tetex-3.0-security/tetex-3.0-badscript.patch # Fix overflows in makeindex CVE-2007-0650 (impoted from tetex-3.0-34.fc6) patch -p1 < ../tetex-3.0-security/tetex-3.0-CVE-2007-0650.patch << NoSetMAKEFLAGS: true SetMAKEFLAGS: -j1 ConfigureParams: << --without-texi2html --without-texinfo --enable-shared \ --datadir='${prefix}/share' --infodir='${prefix}/share/info' \ --mandir='${prefix}/share/man' --disable-multiplatform --with-system-ncurses \ --with-system-pnglib --with-system-t1lib --with-system-wwwlib \ --with-system-zlib \ (%type_raw[-nox] = .) --with-system-gd (%type_raw[-nox] = -nox) --without-x << InstallScript: << #!/bin/bash -ev make install prefix=%i texmf=%i/share/texmf echo "Removing files that belong to the libkpathsea4 package..." rm -R %i/include rm -R %i/lib rm %i/share/info/kpathsea.info echo "Setting up symlinks ..." export DYLD_LIBRARY_PATH="%b/texk/kpathsea/SHARED" PATH=%i/bin:$PATH TEXMFMAIN=%p/share/texmf-dist ; texlinks --cnffile %i/share/texmf/web2c/fmtutil.cnf --verbose %i/bin echo "Creating a local texmf tree, and symlinking it into place ..." mkdir -p %i/etc/texmf.local %i/bin/mktexlsr %i/etc/texmf.local mkdir -p %i/share ln -s %p/etc/texmf.local %i/share/texmf-local echo "Creating a VARTEXMF tree, including a fonts directory ..." mkdir -p %i/var/lib/texmf/fonts %i/bin/mktexlsr %i/var/lib/texmf echo "Creating a TEXMFCONFIG tree ..." mkdir -p %i/etc/texmf-config %i/bin/mktexlsr %i/etc/texmf-config echo "Removing the ls-R file, which is supplied in the tetex-texmf package ..." rm -f %i/share/texmf-dist/ls-R echo "Removing readlink, which is supplied in the debianutils package ..." rm -f %i/bin/readlink rm -f %i/share/man/man1/readlink.1 if [ "%type_raw[-nox]" == "." ]; then echo "Preparing xdvi for the alternatives system ..." mv %i/bin/xdvi %i/bin/xdvik mv %i/share/man/man1/xdvi.1 %i/share/man/man1/xdvik.1 mv %i/bin/xdvizilla %i/bin/xdvizillak mv %i/share/man/man1/xdvizilla.1 %i/share/man/man1/xdvizillak.1 fi << DocFiles: LICENSE.src README README.fink SplitOff: << Package: %N-base Description: Base programs for a teTeX installation Depends: << t1lib5-nox-shlibs, libpng3-shlibs (>= 1:1.2.8-1), libwww-bin, libncurses5-shlibs, ncurses, fink (>= 0.12.0-1), libkpathsea4-shlibs (>= 3.5.6-1), tetex-texmf (>= 3.0-1), (%type_raw[-nox] = .) t1lib5-x11-shlibs, (%type_raw[-nox] = -nox) ghostscript-nox, (%type_raw[-nox] = .) ghostscript, (%type_raw[-nox] = .) gd2-shlibs (>= 2.0.33-1), (%type_raw[-nox] = .) x11, (%type_raw[-nox] = .) x11-shlibs, (%type_raw[-nox] = .) openmotif3-shlibs << Conflicts: tetex-nox (<= 2.0.2-24), tetex-base (>= 0), tetex-nox-base, ptex-base, ptex-nox-base Replaces: << tetex-base (>= 0), tetex-nox-base, ptex-base, ptex-nox-base, context, dvipdfm, epstopdf, pdftex, tetex-macosx, tetex (<= 2.0-3), (%type_raw[-nox] = .) xdvi (<= 22.70-1), << Provides: context, dvipdfm, epstopdf, pdftex, tetex-macosx, tetex-base, tetex3-base Files: bin etc share/info share/man share/texmf share/texmf-local var InfoDocs: web2c.info dvips.info latex.info DocFiles: ANNOUNCE-3.0 CREDITS INSTALL INSTALL.generic LICENSE.src NEWS PROBLEMS QuickInstall README README.fink teTeX-vs-TeXLive PreInstScript: << echo "Removing any leftover files from obsolete teTeX installations ..." rm -f %p/etc/texmf.local/web2c/* rm -f %p/etc/ls-R/texmf.macosx rm -Rf %p/share/texmf.macosx rm -Rf %p/etc/texmf-var << PostInstScript: << if [ ! -e %p/share/texmf-dist/tex/context ] ; then echo " " echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" echo "+ UPGRADE PROBLEM: We apologize for the inconvenience, but please reinstall +" echo "+ tetex-texmf and then update or install tetex or tetex-base again. +" echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" echo " " exit 1 fi if [ -e %p/bin/xdvik ] ; then update-alternatives --install %p/bin/xdvi xdvi %p/bin/xdvik 30 --slave %p/share/man/man1/xdvi.1 xdvi.1 %p/share/man/man1/xdvik.1 update-alternatives --install %p/bin/xdvizilla xdvizilla %p/bin/xdvizillak 30 --slave %p/share/man/man1/xdvizilla.1 xdvizilla.1 %p/share/man/man1/xdvizillak.1 fi mktexlsr %p/share/texmf texconfig-sys init mktexlsr %p/etc/texmf-config %p/var/lib/texmf echo "Adjusting permissions ..." chmod -R a+rX %p/etc/texmf.local chmod -R a+rwX %p/var/lib/texmf chmod -R a+rwX %p/etc/texmf-config if [ -f ~/Library/texmf/ls-R ]; then chmod a+rw ~/Library/texmf/ls-R; fi << PreRmScript: << if [ $1 != "upgrade" ]; then if [ -e %p/bin/xdvik ]; then update-alternatives --remove xdvi %p/bin/xdvik update-alternatives --remove xdvizilla %p/bin/xdvizillak fi fi << << License: OSI-Approved DescDetail: << TeX takes a text file and a set of formatting commands as input and creates a typesetter independent .dvi (DeVice Independent) file as output. TeTeX includes higher level formatting packages such as LaTeX, since TeX by itself is not very user-friendly. << DescPort: << The Makefile is patched to prevent the mktexlsr, fmtutil, updmap, and texlinks utilities from running during the install phase (although texlinks is run after "make install"). The mktexlsr, fmtutil, and updmap utilities are run in the PostInstall script (the latter two called by texconfig-sys). User files are stored in $HOME/Library/texmf (not $HOME/texmf) for backwards-compatibility with earlier Fink teTeX installations. We also set up a VARTEXMF directory for storing format and font files, and a TEXMFCONFIG directory for storing configuration files. These latter can be modified by running "sudo texconfig-sys". We use update-alternatives for xdvi to allow users to install a different version if they choose. We patch libkpathsea's configure script to prevent it linking against an old copy of the library as it builds. << DescPackaging: << Other TeX related packages should use %p/etc/texmf.local/ as their texmf tree for storing files, rather than %p/share/texmf/. In this way, the original texmf tree will be preserved. Any such package should list tetex-base as a dependency, and take care to run mktexlsr %p/etc/texmf.local in both PostInstScript and PostRmScript. There is a variant tetex-nox package with X11 disabled. texinfo and texi2html are separate packages. readlink and its manpage are removed since they conflict with debianutils, an essential Fink package. Many thanks to the original teTeX maintainer Jeff Whitaker. << Maintainer: Dave Morrison Homepage: http://www.tug.org/teTeX <<