freebsd-ports/print/ghostscript8-base/files/patch-Resource-Init-gs_statd.ps
Hiroki Sato 27470e1676 - Split ghostscript into X11-independent and -dependent parts:
* print/ghostscript{7,8,9,9-agpl}-base

   Installs Ghostscript binary, libgs, and related files.
   These ports do not depend on X11 libraries (i.e. x11* devices
   are not available).  USES=ghostscript will set dependency on
   one of them depending on GHOSTSCRIPT_DEFAULT.

   The default device is set to "display" or "bbox".

 * print/ghostscript{7,8,9,9-agpl}-x11

   Installs a shared library which provides X11 support to
   the installed Ghostscript binaries.  x11* devices will be
   enabled when the library is available.

   This depends on *-base (RUN_DEPENDS).  USES=ghostscript:x11
   will set dependency on one of them.

- Fix integer overflow reported as CVE-2015-3228.

- Update Uses/ghostscript.mk:

 * Add x11 keyword.  nox11 keyword is now obsolete.

 * Use packagename in *_DEPENDS line to prevent relationship between
   -base and -x11 packages from being broken.

- Fix x11/nox11 keyword and bump PORTREVISION in ports using
  USES=ghostscript to update dependency of pre-compiled packages.
2015-08-22 17:48:35 +00:00

23 lines
1.1 KiB
PostScript

--- Resource/Init/gs_statd.ps.orig 2009-03-16 07:42:53.000000000 +0900
+++ Resource/Init/gs_statd.ps 2009-12-20 01:35:53.000000000 +0900
@@ -111,6 +111,12 @@
/pa4 {595 792 //.setpagesize exec} bind def
% Japanese postcard size, 100mm x 148mm
/hagaki {283 420 //.setpagesize exec} bind def
+ /postcard {284 419 //.setpagesize exec} bind def
+ /dbl_postcard {419 568 //.setpagesize exec} bind def
+ /Executive {522 756 //.setpagesize exec} bind def
+ /jenv_you4 {298 666 //.setpagesize exec} bind def
+ /jenv_you2 {324 460 //.setpagesize exec} bind def
+ /jenv_kaku2 {682 942 //.setpagesize exec} bind def
% /tabloid {792 1224 //.setpagesize exec} bind def % 11x17 portrait
% /csheet {1224 1584 //.setpagesize exec} bind def % ANSI C 17x22
% /dsheet {1584 2448 //.setpagesize exec} bind def % ANSI D 22x34
@@ -127,6 +133,7 @@
[ /letter /note %do not change this line, needed by 'setpagetype'
/legal /lettersmall
/11x17 /ledger
+ /postcard /dbl_postcard /Executive /hagaki /jenv_you4 /jenv_you2 /jenv_kaku2
/a4small /a3 /a4
STRICT { (%END SIZES) .skipeof } if
/a0 /a1 /a2 /a5 /a6 /a7 /a8 /a9 /a10