pkgsrc/print/dvipsk/Makefile
minskim 36e3416da0 Fix CVE-2010-1440. Patch from TeX Live repository.
Multiple integer overflows in dvipsk/dospecial.c in dvips in TeX
  Live 2009 and earlier, and teTeX, allow remote attackers to cause a
  denial of service (application crash) or possibly execute arbitrary
  code via a special command in a DVI file, related to the (1)
  predospecial and (2) bbdospecial functions, a different
  vulnerability than CVE-2010-0739.
2010-06-08 15:17:04 +00:00

65 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2010/06/08 15:17:04 minskim Exp $
DISTNAME= texlive-20091011-source
PKGNAME= dvipsk-5.98
PKGREVISION= 2
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://www.radicaleye.com/dvips.html
COMMENT= DVI-to-PostScript translator
CONFLICTS+= teTeX-bin<3.0nb24
CONFLICTS+= teTeX-texmf<3.0nb9
BUILD_DEPENDS+= texlive-tetex-[0-9]*:../../print/texlive-tetex
DEPENDS+= tex-dvips>=2009.16376:../../print/tex-dvips
EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \
${DISTNAME}/texk/dvipsk
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
INFO_FILES= yes
USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/dvipsk
CONFIGURE_ARGS+= --with-system-kpathsea \
--with-kpathsea-includes=${BUILDLINK_PREFIX.kpathsea}/include \
--with-kpathsea-libdir=${BUILDLINK_PREFIX.kpathsea}/lib
PKG_SYSCONFSUBDIR= texmf
MAKE_DIRS+= ${PKG_SYSCONFDIR}/dvips/config
CONF_FILES= ${PREFIX}/share/texmf-dist/dvips/config/config.ps \
${PKG_SYSCONFDIR}/dvips/config/config.ps
BUILD_DEFS+= PAPERSIZE
LOWER_PAPERSIZE_cmd= ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'
LOWER_PAPERSIZE= ${LOWER_PAPERSIZE_cmd:sh}
INSTALLATION_DIRS+= share/texmf-dist/dvips/config
TEX_TEXMF_DIRS+= ${PKG_SYSCONFDIR}
TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf
TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf-dist
.include "../../print/kpathsea/buildlink3.mk"
.include "../../print/kpathsea/texmf.mk"
post-build:
${MKDIR} -p ${WRKSRC}/texmf/dvips/config
${CP} ${LOCALBASE}/share/texmf/dvips/config/config.ps \
${WRKSRC}/texmf/dvips/config
env TEXMFCONFIG=${LOCALBASE}/share/texmf \
TFC_TEXMFCONFIG=${WRKSRC}/texmf \
configPsFile=${WRKSRC}/config.ps \
${LOCALBASE}/bin/texconfig dvips paper ${LOWER_PAPERSIZE}
post-install:
${INSTALL_DATA} ${WRKSRC}/texmf/dvips/config/config.ps \
${DESTDIR}${PREFIX}/share/texmf-dist/dvips/config
.include "../../mk/bsd.pkg.mk"