Commit graph

66 commits

Author SHA1 Message Date
drochner
fa160e8bb7 apply the patch from poppler to fix MOAB-06-01-2007 (DOS)
bump PKGREVISION
2007-01-17 17:38:05 +00:00
joerg
a2e9765cae Switch to modular buildlinks and prefer OWN_DIRS over PLIST
exec/unexec.
2006-11-06 10:47:18 +00:00
joerg
f75176b39c Flag a number of packages I use as supporting (user-)destdir.
apg is a bit special as it has some hardcoded ownership, so
mark that as "destdir".
2006-10-09 12:52:34 +00:00
tron
d10e997262 Set API dependence for "freetype2" to version 2.2.1 or newer. The new
"xpdf" package works fine with an old "freetype2" library but cannot
be built with the old include files.

This fixes PR pkg/33607 by Brad Harder.
2006-05-31 07:57:17 +00:00
tron
0c89b16782 Add patch provided by the FreeType2 maintaines to make this package
build with version 2.2.1 and newer of the "freetype2" package.
Bump package revision because of this fix.
2006-05-30 20:03:28 +00:00
joerg
9ad2ba16ec Update xpdf to 3.01 patch level 2. The patch level addresses a number of
vulnerabilities reported and adds at least some constraint checks not
done before.
2006-03-29 17:20:09 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
tron
e72e3d6021 Apply security fix for SA18303 taken from Fedora Core 4.
Bump package revision because of this fix.
2006-01-22 23:13:33 +00:00
ghen
99245a1e72 [subst.mk] WARNING: Ignoring non-existent file "./doc/pdftopnm.1".
-> should be "doc/pdftoppm.1".
2006-01-22 22:01:11 +00:00
dillo
46637a5519 Drop maintainership: I don't have the time to chase two vulnerabilities
per month.
2006-01-21 22:31:58 +00:00
ghen
dfdc1e8cb0 Use += instead of = for appending to SUBST_FILES. (btw, Joerg, you could also
have used *.1 *.5 as in the original post-patch target.)
2006-01-12 13:56:12 +00:00
joerg
04daac8ff6 Use SUBST framework. 2006-01-12 02:02:16 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
ghen
7ac0365057 Fix window resizing bug,
from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=324172

Bump PKGREVISION.  Ok by joerg, wiz, dillo.
2005-12-20 16:00:16 +00:00
dillo
a31cd3b54d Fix vulnerability CAN-2005-3191. Patch provided by jlam.
Bump PKGREVISION to 2.
2005-12-18 20:05:32 +00:00
joerg
6e4a0dd799 Bump all motif packages for recent openmotif update. The major version
of the shared libXm has changed.
2005-12-12 21:36:54 +00:00
dillo
d4239c0005 Fix subdirectory on sunsite mirrors, noted by reed. 2005-12-08 18:53:24 +00:00
uebayasi
0f61f01e89 Fix a patch for "Xpdf Multiple Buffer Overflow Vulnerabilities"
(http://secunia.com/advisories/17897/).
2005-12-07 09:26:58 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
adam
ab930d51b1 Changes 3.01:
------------------
Added the continuous view mode, including the '-cont' switch and the
  'continuousView' config file option.
At high zoom levels, don't rasterize the entire page - this avoids
  problems running out of memory.
Added "search backward" and "match case" options to the find dialog.
Support explicitly masked images and soft masked images.
Add support to DCTStream for 16-bit quant tables.
Don't segfault if the user clicks on an outline entry with a broken
  destination.
Changed the makefiles and configure script to skip building pdftoppm
  (in addition to xpdf) if X, Motif, or FreeType is not found; changed
  the error message in the configure script to match.
Move an inline function in JArithmeticDecoder.cc to avoid compiler
  errors.
Fixed a bug in the rasterizer that was sometimes causing infinite
  loops with round line caps on vertical lines.
Various rasterizer optimizations.
Look for intermediate resize events - try to avoid lagging when the
  user is doing an opaque resize.
The FormType key in Form XObjects is optional.
Handle external 16-bit TrueType fonts correctly, using the Unicode
  cmap.
Add class declarations to TextOutputDev.h to work with stricter C++
  compilers.
More...
2005-09-07 15:19:08 +00:00
salo
ec0630dd50 Security fix for CAN-2005-2097.
"A vulnerability has been reported in Xpdf, which can be exploited by
malicious people to cause a DoS (Denial of Service) on a vulnerable system."

http://secunia.com/advisories/16374/

Patches from Ubuntu and RedHat.
2005-08-12 12:27:30 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
d81d19f8e0 Add RMD160 digests. 2005-02-24 12:51:41 +00:00
drochner
ceaf2394df the daily security patch: update to 3.00pl3, fixes:
http://www.idefense.com/application/poi/display?id=186&type=vulnerabilities
2005-01-19 10:01:03 +00:00
adrianp
a850d933c5 - Update to 3.00pl2 to address recent security issue:
http://www.idefense.com/application/poi/display?id=172&type=vulnerabilities
2004-12-22 21:24:44 +00:00
dillo
a8a73a60c1 on second thought, let's call it pl1, as was done before 2004-11-25 13:26:16 +00:00
dillo
b2f8eab280 update to 3.00.1 (pl1): fix various buffer overflows 2004-11-25 13:20:36 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
wiz
996e7fb25f Add a MASTER_SITE. 2004-07-28 11:06:43 +00:00
adam
b6f62fb3fe Fixed buildling with the new FreeType2 rules 2004-04-27 19:45:32 +00:00
wiz
5362fbfddd Convert to bl3. 2004-04-18 23:58:29 +00:00
adam
570b52b64e Changes 3.00:
* New PDF rasterizer ("Splash").
* Added support for PDF 1.5.
* Replaced pdftopbm with pdftoppm (which can generate PBM, PGM, and PPM
  files).
2004-03-03 10:50:09 +00:00
jlam
17d1ca394e These packages need a C++ compiler. 2004-02-02 13:02:49 +00:00
gavan
e49cfa955c Set USE_GCC_SHLIB. Fixes linking on Solaris. 2003-11-07 16:34:41 +00:00
dillo
bf301a2b98 take over maintainership 2003-11-03 00:36:02 +00:00
xtraeme
8f83c35134 Updated to 2.03. PR pkg/23165, Greg Troxel <gdt@ir.bbn.com>.
Changelog:

2.03 (2003-oct-10)
------------------
Rewrote the text extractor to:
  - do a better job with rotated text;
  - handle right-to-left scripts;
  - be faster.
Changed the zoom setting to use a percentage (relative to 72 dpi)
  instead of a zoom "factor".
If the PDF file has an outline, open the outline pane initially.
Added -f and -l options to pdfinfo; print multiple page sizes.
The HAVE_XTAPPSETEXITFLAG test in XPDFApp.cc was backwards.
The BitsPerComponent entry is optional in image mask objects.
Render any annotation with an appearance stream, instead of just
  Widget and Stamp annotations.
Fix a bug in the TrueType font checker: the test for an unsorted
  'loca' table was wrong.
Modify the TrueType cmap selection algorithm yet again to try to match
  Adobe's behavior.
Changed sqrt(2) to sqrt(2.0) in pdfinfo.cc to make various compilers
  happy.
Fixed a deadlock problem (when MULTITHREADING is set); cleaned up some
  other problems with the locking code.
Fixed a bug in the interpolation code for type 0 (sampled) functions.
Implemented type 1 (function-based) shaded fills.
Fixed some stupid bugs in the JBIG2 decoder (introduced with the
  previous optimization work).
Fixed a typo in the code that parses vertical font metrics for CID
  fonts that was causing a seg fault.
Fixed a couple of bugs that were causing seg faults with badly damaged
  PDF files.
Limit the number of nested Forms to avoid infinite recursion (in buggy
  PDF files).
Add a special case for rectangular clip regions - make sure these
  don't drop pixels on the right and bottom edges.
Tell FreeType not to use glyph bitmaps when in anti-aliased mode.
Read all of the border style info for links.
All of the shaded fill types now do at least one bisection to avoid
  problems when the colors at the endpoints of the domain are the
  same.
If the Length2 parameter for an embedded Type 1 font was incorrect
  (too small), pdftops was losing font data.
Deal with (broken) DCT streams that use the same component ID number
  for different components.
The MediaBox page attribute was not being inherited correctly.
Fixed a bug in the Type 1C font converter related to local
  subroutines.
The Type 1C -> Type 1 font converter was allocating the font dictionary
  one slot too small.
Added a missing private dictionary entry to Type 1 fonts generated by
  the Type 1C converter.  [Thanks to Michael Shell.]
Fixed bugs in the tiling pattern fill code.
Try the TrueType 0xf000 char code offset hack for the MacRoman
  encoding too (in addition to MS Symbol).
Update the font metrics info for the Base 14 fonts to include the Euro
  character.
SECURITY HOLE: Escape various characters in URLs before running a web
  browser (or movie viewer).  [Fixed in 2.02p11]
SECURITY HOLE: In the dialog used to verify "launch" links, provide a
  scrolling view if the command to be run is excessively long.  [Fixed
  in 2.02p11]
Added an option to disable insertion of page breaks (form feed
  characters) in extracted text (pdftotext -nopgbrk; xpdfrc
  "textPageBreaks" option).
Check for 8-bit fonts that specify an out-of-range FirstChar or
  LastChar.
Correctly handle an obsolete Type 2 charstring op (in the Type
  1C-to-Type 1 font converter).  [Thanks to Helge Blischke.]
Use the font encoding info to fill in holes in the ToUnicode map.
Added character names for Bulgarian (in the Cyrillic support pacakage)
  and Greek.
Handle clipping to text in xpdf and pdftops.
Fix color space detection in DCT decoder.  [Thanks to Dwight Kelly.]
Added the "unicodeToUnicode" xpdfrc option, intended (initially) for
  Arabic support.
Handle the case in PSOutputDev where two font objects refer to the
  same embedded TrueType font, but with different encodings.  [Thanks
  to Frank Siegert.]
Kill any pre-existing path before drawing a form (or annotation).
Save state before rendering page content; restore state afterward.
Fix Stream::reset/close to work correctly with encoder streams; fix
  PSOutputDev to use Stream::close consistently.
Fix a seg fault when hitting the 'back' button after closing a file.
GfxState::getStrokeGray was returning the fill gray value (this only
  affected Level 1 PS output).
Change PSOutputDev to reuse dictionaries in Level 1 mode (since Level
  1 PS interpreters don't do garbage collection).  [Thanks to Frank
  Siegert.]
PSOutputDev was generating incorrect translations for landscape-mode
  pages.
Implemented shading pattern color spaces.
PSOutputDev wasn't correctly handling Type 3 fonts which used image
  resources (as opposed to inline images).  [Thanks to Frank Siegert.]
The fix from 1.00 which clipped out-of-bounds points was a bit too
  aggressive.
Do proper Floyd-Steinberg dithering in XOutputDev.
Don't automatically check for a null owner password (to match Adobe's
  behavior).
Allow the FlateDecode filter in Level 3 PostScript output.
Fixed small bugs in the Type 1C -> Type 1 converter and Type 1C ->
  Type 0 converter.  [Thanks to Tom Kacvinsky.]
Work around another weird Motif problem with the right button menu
  (which was sometimes causing the menu to not be displayed).
Make the code that handles fonts defined directly in the resource dict
  more robust.
Add a brief description of the outline pane to the xpdf man page.
Ignore extra operands to content stream operators.
Fixed a bug in the CCITTFax decoder.
Allow the Count entry in a Pages dictionary to be a real number
  (because some PDF generators actually do this).
Shading pattern fills weren't being clipped correctly.
Incorrect shallow copies in GfxRadialShading and StitchingFunction.
The StitchingFunction destructor wasn't checking for funcs being
  NULL.
Change the TrueType code-to-GID mapping code so it looks at the
  TrueType 'post' table.
Set the print command in the print dialog once at startup, don't
  change it each time a file is (re)loaded.
Generate the %%BoundingBox comment in regular PostScript files (not
  just EPS files).
Fixed a bug in the Unicode CMap parser.
2003-10-24 01:12:52 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
tron
0c72d1e068 Undo last change and use "2.02pl1" as version number again because the
package tools can handle it properly.
2003-06-19 06:49:47 +00:00
itojun
2b6a7e3a43 align PKGNAME with pkg-vulnerabilities (which one is more correct?) 2003-06-19 04:59:54 +00:00
simonb
d4c140a6ef Update to version 2.02pl1. From the xpdf website:
This version includes a small patch that fixes a security hole in
  version 2.02. It was possible to construct a malicious URL link in a
  PDF file which would cause an arbitrary command to be run. The patch
  changes things to that the various characters which can cause trouble
  are escaped (%xx) before calling system(). This patch also changes the
  "launch" link verification dialog to provde a scrolling view of the
  command about to be run when the command string is excessively long.
2003-06-18 14:47:20 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
salo
efc036a5df Updated to version 2.02.
Changes:

- s/USE_X11BASE/USE_X11/
- fix paths in manual pages
- install shared directory for supplemental packages

2.02:
=====
- Rewrote the text extractor code that assembles words into lines to
  better handle vertically overlapping lines.
- Add the "match" option for paper size (in PostScript output).
- Added support for external 16-bit TrueType fonts; added the
  displayCIDFontTT and displayNamedCIDFontTT commands to the xpdfrc
  file.
- Added an Arabic language support package.
- Added the Windows-1255 encoding to the Hebrew language package.
- A missing NULL check was causing a crash when closing the file in a
  single window (which clears out the window, but leaves it open).
- Deal with TrueType fonts whose glyph data is out of order - this
  affected both FreeType rasterization and PostScript generation.
- Munge font names in PSOutputDev to avoid names that are problematic
  for ghostscript because they start with an out-of-limits number
  (e.g., 1e999foo).
- Modify the TrueType font encoding deciphering algorithm in yet another
  attempt to match up with Acrobat's behavior.
- Bounds check the indexHigh value in indexed color spaces.
- The text extractor no longer bothers trying to get an average
  character width for Type 3 fonts, since it generally doesn't work
  very well (because Type 3 metrics are unreliable).
- Don't crash if the user hits ctrl-G ("find again") before doing a
  find.
- Set the button pixmap foreground color correctly.
- Handle text drawn backward on 180 degree rotated pages.
- Added a magic call to XtUngrabButton after calling XmCreatePopupMenu
  which appears to prevent some very odd problems (idea taken from the
  DDD source code).
- Fix the MacOS X fix (needed to include <AvailabilityMacros.h>).
- Fixed a bunch of Motif 1.x / X11R5 incompatibilities.  [Thanks to
  William Bader and Albert Chin-A-Young.]
- Fixed various bugs in previously untested code in the JBIG2 decoder.
- Modify the XPDFCore destructor to avoid a bogus warning message from
  OpenMotif 2.2.
- Modified the Type 1C font parser to do proper bounds checking.
- Fixed the bounds checking in the TrueType font parser.
- Text extractor shouldn't do block merging in physical layout mode.
- Fixed a problem in PSOutputDev in level2sep mode with images in a
  Separation color space and with a non-default Decode array.
- Text extraction with "-raw" was concatenating lines from the bottom
  of one column and the top of the next.
- Handle Type 1C subroutines in the font converters.
- Correctly handle progressive JPEG images whose scans are slightly
  different sizes (e.g., the Y scan rounds up to a multiple of 8
  pixels and the Cb/Cr scans round up to 16 pixels).
- Avoid a potential divide-by-zero problem in TextOutputDev.
- Modified the T1Font and FTFont modules to correctly handle glyphs that
  are larger than the font's claimed bounding box.
- Tweak dupMaxDeltaX parameter in TextOutputDev to avoid triggering on
  double characters.
- Improved detection in pdfinfo for ISO paper sizes.  [Thanks to Hartmut
  Henkel.]
- Xpdf wasn't responding to the TARGETS atom, which prevented pasting
  the selection into various applications.  [Thanks to Phillip Ezolt.]
- Handle XObjects with recursive references in their Resources
  dictionaries (in PSOutputDev).
- Change PSOutputDev to deal with invalid PDF files that use
  non-embedded TrueType fonts with no encoding.
- Check for undersized Widths arrays in fonts.
- Add bounds checking code to Array class.
- Updated VMS build scripts.  [Thanks to Martin Zinser.]
- Tweak the TrueType font handling code (again):
  - char codes in symbolic fonts may or may not be offset by 0xf000
  - discard empty tables because they sometimes confuse FreeType
- Fixed bounds checking in the Flate decoder.
- Removed a bogus error message for exponential functions without
  explicit C0/C1 values.  [Thanks to Hartmut Henkel.]
- Handle the other Unicode cmap type (platform=0) in TrueType fonts.
- Added support for the SGI Motif horizontal paned window widget.
  [Thanks to Felix Ritter.]
- Ignore extra elements in link destination arrays.
- Accept external Type 1 font files with a suffix of ".ps" or no suffix
  at all.
- Add a bounds check in the DCT decoder.
- Added instructions for building xpdf.exe under cygwin/XFree86.
2003-03-25 14:02:37 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
uebayasi
9891ea0a33 Fix an integer overflow vulnerability, which may cause arbitrary code
to be executed.

Bump PKGREVISION to nb2.
2002-12-31 02:31:53 +00:00
wiz
d8262452c1 Bump PKGREVISION because of dependency on latest freetype2 or glib2
package and library major bumps therein.
Also match dependency in corresponding buildlink2.mk's for the same reason.
Mmmm, binary packages.
2002-12-24 06:09:44 +00:00
drochner
a86669188d update to 2.01
changes:
Redesigned the text extraction process:
  - process the text into "reading order"
  - added a "-layout" flag to pdftotext to switch back to the old
    style, where physical layout is maintained
  - use of the "-raw" flag is no longer recommended
Added the -reload option for xpdf (in remote mode).
Added support for external CID fonts; added the displayCIDFontT1 and
  displayNamedCIDFontT1 commands to the xpdfrc file.
Handle the case of moveto/newpath/clip, which defines an empty
  clipping region (just like moveto/closepath/clip).
Accept XYZ link destinations with missing array elements.
Accept bogus font names based on "Symbol": Symbol,{Bold,Italic,
  BoldItalic}.
Set the busy cursor in the find dialog while searching.
Allow ToUnicode CMaps to use fewer than four hex digits in the Unicode
  char indexes.
+bugfixes
2002-12-07 17:49:43 +00:00