head 1.8; access; symbols pkgsrc-2022Q4:1.7.0.100 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.98 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.96 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.94 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.92 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.90 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.88 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.86 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.84 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.82 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.78 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.58 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.80 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.76 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.74 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.72 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.70 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.68 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.66 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.64 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.62 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.60 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.56 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.54 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.52 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.50 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.48 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.46 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.44 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.42 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.7.0.40 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.7.0.38 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.36 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.34 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.32 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.7.0.30 pkgsrc-2014Q1-base:1.7 pkgsrc-2013Q4:1.7.0.28 pkgsrc-2013Q4-base:1.7 pkgsrc-2013Q3:1.7.0.26 pkgsrc-2013Q3-base:1.7 pkgsrc-2013Q2:1.7.0.24 pkgsrc-2013Q2-base:1.7 pkgsrc-2013Q1:1.7.0.22 pkgsrc-2013Q1-base:1.7 pkgsrc-2012Q4:1.7.0.20 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.18 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.16 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.14 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.12 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.10 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.7.0.8 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.6 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.4 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.2 pkgsrc-2009Q4:1.6.0.4 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.2 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.5.0.36 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.34 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.32 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.30 pkgsrc-2008Q1:1.5.0.28 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.26 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.24 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.22 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.20 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.18 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.16 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.14 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.12 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.10 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.8 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.6 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.4 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.2 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2-base:1.4 netbsd-1-4-RELEASE:1.3 netbsd-1-3-PATCH003:1.3 netbsd-1-3-PATCH002:1.1; locks; strict; comment @# @; 1.8 date 2023.03.13.10.39.29; author wiz; state dead; branches; next 1.7; commitid sK29OznPBjIi1XgE; 1.7 date 2010.10.28.23.21.53; author tron; state Exp; branches 1.7.2.1; next 1.6; 1.6 date 2008.11.10.18.00.34; author wiz; state dead; branches; next 1.5; 1.5 date 2004.12.20.15.02.34; author wiz; state Exp; branches; next 1.4; 1.4 date 99.06.20.15.53.29; author tron; state dead; branches; next 1.3; 1.3 date 98.08.07.11.11.20; author agc; state Exp; branches; next 1.2; 1.2 date 98.07.02.14.04.54; author frueauf; state Exp; branches; next 1.1; 1.1 date 98.05.09.12.01.58; author frueauf; state Exp; branches; next ; 1.7.2.1 date 2010.10.28.23.21.53; author spz; state dead; branches; next 1.7.2.2; 1.7.2.2 date 2010.10.29.21.00.17; author spz; state Exp; branches; next ; desc @@ 1.8 log @a2ps: update to 4.15. * Noteworthy changes in release 4.15 (2023-03-07) [stable] * New maintainer, Reuben Thomas. * Features: - Replace the 'psmandup' utility with simpler 'lp2' to directly print documents to a simplex printer. - Remove the outdated 'psset' and 'fixnt', and simplify 'fixps' to always process its input with Ghostscript. - Use libpaper's paper sizes. This includes user-defined paper sizes when using libpaper 2. It is still possible to define custom margins using "Medium:" specifications in the configuration file, and the one size defined by a2ps that libpaper does not know about, Quarto, is retained for backwards compatiblity, and as an example. * Documentation - Remove some obsolete explanations. - Reformat --help output consistently to 80 columns. - Some English fixes. * Bug fixes: - Avoid a crash when a medium is not specified; instead, use the default libpaper size (configured by the user or sysadmin, or the locale default). - Fix some other potential crashes and compiler warnings. - Fixes for security bugs CVE-2001-1593, CVE-2015-8107 and CVE-2014-0466. - Minor bugs fixed. * Predefined delegations: - Remove support for defunct Netscape and proprietary Acrobat Reader. - Add lpr wrapper for automatic detection of different printing systems, including CUPS support. * Encodings: - Use libre fonts for KOI-8. - Composite fonts support. * Build - Update build system to more recent autotools and gettext versions. - Build man pages in a simpler and more robust way. - Document runtime dependencies. - Minor code quality improvements. - Minor tidy up and removal of obsolete code. - Require libpaper. - Remove OS/2 support. @ text @$NetBSD: patch-ac,v 1.7 2010/10/28 23:21:53 tron Exp $ Fix build problem under Mac OS X where stpcpy() is a macro. --- lib/xstrrpl.c.orig 2007-12-29 01:37:54.000000000 +0000 +++ lib/xstrrpl.c 2010-10-28 23:29:51.000000000 +0100 @@@@ -22,7 +22,9 @@@@ #include #include "xstrrpl.h" +#ifndef stpcpy extern char * stpcpy(); +#endif /* Perform subsitutions in string. Result is malloc'd E.g., result = xstrrrpl ("1234", subst) gives result = "112333" @ 1.7 log @Fix two problem under Mac OS X: 1.) stpcpy() is a macro under at least Mac OS 10.6. Avoid build failures by not defining a dodgy prototype for it. 2.) Don't strip installed binaries to allow the dynamic linker to find symbols required by the shared library but defined by the application. This fixes PR pkg/41827 by Christopher M. Fuhrman. Bump package revision as the package built fine under Mac OS 10.5 before but didn't work. @ text @d1 1 a1 1 $NetBSD$ @ 1.7.2.1 log @file patch-ac was added on branch pkgsrc-2010Q3 on 2010-10-29 21:00:17 +0000 @ text @d1 16 @ 1.7.2.2 log @Pullup ticket 3263 - requested by tron build and portability fix Revisions pulled up: - pkgsrc/print/a2ps/Makefile 1.70 - pkgsrc/print/a2ps/distinfo 1.12 Files added: pkgsrc/print/a2ps/patches/patch-ac ------------------------------------------------------------------------- Module Name: pkgsrc Committed By: tron Date: Thu Oct 28 23:21:53 UTC 2010 Modified Files: pkgsrc/print/a2ps: Makefile distinfo Added Files: pkgsrc/print/a2ps/patches: patch-ac Log Message: Fix two problem under Mac OS X: 1.) stpcpy() is a macro under at least Mac OS 10.6. Avoid build failures by not defining a dodgy prototype for it. 2.) Don't strip installed binaries to allow the dynamic linker to find symbols required by the shared library but defined by the application. This fixes PR pkg/41827 by Christopher M. Fuhrman. Bump package revision as the package built fine under Mac OS 10.5 before but didn't work. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 pkgsrc/print/a2ps/Makefile cvs rdiff -u -r1.11 -r1.12 pkgsrc/print/a2ps/distinfo cvs rdiff -u -r0 -r1.7 pkgsrc/print/a2ps/patches/patch-ac @ text @a0 16 $NetBSD: patch-ac,v 1.7 2010/10/28 23:21:53 tron Exp $ Fix build problem under Mac OS X where stpcpy() is a macro. --- lib/xstrrpl.c.orig 2007-12-29 01:37:54.000000000 +0000 +++ lib/xstrrpl.c 2010-10-28 23:29:51.000000000 +0100 @@@@ -22,7 +22,9 @@@@ #include #include "xstrrpl.h" +#ifndef stpcpy extern char * stpcpy(); +#endif /* Perform subsitutions in string. Result is malloc'd E.g., result = xstrrrpl ("1234", subst) gives result = "112333" @ 1.6 log @Update to 4.14. Security problems cited below were already fixed in pkgsrc. Version 4.14 Dec 29, 2007 * New Maintainer. * No UTF-8 support yet ;-< Basically this is a maintenance release. * License: - Now GNU a2ps is licensed under GPLv3 or later. - Removed or replaced non-free/license-wise vague files (see ChangeLog for detail.) * Build: - Now can be built with the modern GNU Autotools. - Now can be built with gcc 3.4 or later. * Predefined delegations: - Add html2ps delegation if netscape don't run. - Now the configure script check if netscape support remote-command. - Now works with modern GV(PostScript and PDF viewer). Tested with 3.6.2. * Options: - Better description on the default output and the -d option. * Encodings: - CP1251. * Bug Fixes: - `input buffer overflow, can't enlarge buffer because scanner uses REJECT' This should no longer happen. - Now works on IA64, PowerPC and AMD64. - Fixed wrong default values for deskjet printers. - Quote arguments to file(1). - Fixed several security issues (CVE-2004-1377). - PS generated by a2ps is now compatible with Adobe Distiller for Mac OS X. * Style sheets: - specc.ssh, thanks to Hideaki Yokota - csharp.ssh, thanks to Karen Christenson - nasm.ssh & pic16f84.ssh, thanks to Aleksandar Veselinovic - small.ssh, thanks Christophe Continente - matlab4.ssh & matlab.ssh, thanks to Joakim Lubeck - stratego.ssh, thanks to Nicolas Tisserand - rd.ssh, s.ssh and st.ssh, thanks to Torsten Hothorn et.al. - ruby.ssh, thanks to Noritsugu Nakamura. - php.ssh, thanks to Hartmut Holzgraefe - udiff.ssh: Improved highlighting for diffs. - perl.ssh: Improved. - Some rules of sheets.map are improved * Contributions: - pdiff: Now pdiff can accept standard input. * Prologues: - Added diffcolor.pro for diffs * Documentation: - Revised. * Translation: - Japanese translation thanks to Yasuyuki Furukawa. - Revised Dutch translation, thanks to Benno Schlenberg. - Revised French translation. * Many other fixes, but the log is rather spotty ;-< * Part of works done at the Codefest Asia 2007 in ITB Bandung, Indonesia. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.5 2004/12/20 15:02:34 wiz Exp $ d3 7 a9 42 --- src/select.c.orig 1999-12-16 02:04:56.000000000 +0100 +++ src/select.c @@@@ -131,6 +131,36 @@@@ sheets_map_load_main (void) return 1; } +/* escapes the name of a file so that the shell groks it in 'single' q.marks. + The resulting pointer has to be free()ed when not longer used. */ +char * +shell_escape(const char *fn) +{ + size_t len = 0; + const char *inp; + char *retval, *outp; + + for(inp = fn; *inp; ++inp) + switch(*inp) + { + case '\'': len += 4; break; + default: len += 1; break; + } + + outp = retval = malloc(len + 1); + if(!outp) + return NULL; /* perhaps one should do better error handling here */ + for(inp = fn; *inp; ++inp) + switch(*inp) + { + case '\'': *outp++ = '\''; *outp++ = '\\'; *outp++ = '\'', *outp++ = '\''; break; + default: *outp++ = *inp; break; + } + *outp = 0; + + return retval; +} + /* What says file about the type of a file (result is malloc'd). NULL if could not be run. */ @@@@ -144,11 +174,15 @@@@ file_verdict_on (const uchar *filename) if (IS_EMPTY (job->file_command)) return NULL; d11 3 a13 13 + filename = shell_escape(filename); + if(filename == NULL) + return NULL; /* Call file(1) with the correct option */ - command = ALLOCA (char, (2 + command = ALLOCA (char, (4 + strlen (job->file_command) + ustrlen (filename))); - sprintf (command, "%s %s", job->file_command, (const char *) filename); + sprintf (command, "%s '%s'", job->file_command, (const char *) filename); + free(filename); message (msg_tool, (stderr, "Reading pipe: `%s'\n", command)); file_out = popen (command, "r"); d15 2 @ 1.5 log @Apply patch from Rudolf Polzer against CAN-2004-1170. See http://archives.neohapsis.com/archives/fulldisclosure/2004-08/1026.html Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update "a2ps" package to version 4.12. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 1998/08/07 11:11:20 agc Exp $ d3 56 a58 3 --- doc/a2ps.info.orig Tue Jun 23 10:24:50 1998 +++ doc/a2ps.info Wed Jul 1 22:40:03 1998 @@@@ -3,7 +3,6 @@@@ a59 6 INFO-DIR-SECTION Printing Tools START-INFO-DIR-ENTRY -* a2ps:: PostScript Generating Utility * PreScript: (a2ps) PreScript Input language for a2ps * Card: (a2ps) Card Print Reference Card of Programs * psmandup: (a2ps) psmandup Printing Duplex on Simplex Printers @ 1.3 log @Add NetBSD RCS Ids. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to a2ps-4.10.3. @ text @d1 2 @ 1.1 log @Add missing entry for bin/texi2dvi4a2ps, resort PLIST. Fix ldconfig handling and add proper dir info entry to a2ps.info. @ text @d1 3 a3 3 --- doc/a2ps.info-orig Sat May 9 13:35:39 1998 +++ doc/a2ps.info Sat May 9 13:46:20 1998 @@@@ -3,8 +3,7 @@@@ d8 3 a10 5 -* PreScript: (a2ps) PreScript Input language for a2ps +* PreScript: (a2ps). PreScript Input language for a2ps END-INFO-DIR-ENTRY This document describes `a2ps' 4.9.9, a converter from various @