rpms/cups/devel pstopdf,NONE,1.1 cups.spec,1.238,1.239
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Aug 2 14:26:09 UTC 2006
- Previous message (by thread): rpms/emacs/FC-5 ispell-german-utf-8.patch, NONE, 1.1 emacs.spec, 1.69, 1.70
- Next message (by thread): rpms/nautilus/FC-5 .cvsignore, 1.37, 1.38 nautilus.spec, 1.99, 1.100 sources, 1.41, 1.42
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: twaugh
Update of /cvs/dist/rpms/cups/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv29717
Modified Files:
cups.spec
Added Files:
pstopdf
Log Message:
- Ship pstopdf filter for LSPP.
--- NEW FILE pstopdf ---
#!/bin/sh
#
# CUPS filter script for Ghostscript.
#
# Copyright 2001-2002 by Easy Software Products.
# Copyright 2006 by Hewlett-Packard Development Company, L.P.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# Installation directories...
prefix=/usr
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
# Set the library/font path...
GS_FONTPATH="$CUPS_FONTPATH"
export GS_FONTPATH
# Options we use with Ghostscript...
gsopts="-dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH "
gsopts="$gsopts -dNOMEDIAATTRS -sDEVICE=pdfwrite -sstdout=%stderr"
# See if we have a profile=n,n,n,n,n,n,n,n,n,n,n option...
profile=""
for option in $5; do
case $option in
profile=*)
profile="-scupsProfile=`echo $option | awk -F= '{print $2}'`"
;;
esac
done
# See if we have a filename on the command-line...
if test -z "$6"; then
ifile="-"
else
ifile="$6"
fi
# Now run Ghostscript...
$bindir/gs $gsopts -sOUTPUTFILE="%stdout" $profile $ifile
Index: cups.spec
===================================================================
RCS file: /cvs/dist/rpms/cups/devel/cups.spec,v
retrieving revision 1.238
retrieving revision 1.239
diff -u -r1.238 -r1.239
--- cups.spec 2 Aug 2006 09:37:31 -0000 1.238
+++ cups.spec 2 Aug 2006 14:26:07 -0000 1.239
@@ -13,6 +13,7 @@
Source1: cups.init
Source2: cupsprinter.png
Source3: snmp-str1737.c
+Source4: pstopdf
Source5: cups-lpd
Source6: pstoraster
Source7: pstoraster.convs
@@ -239,6 +240,11 @@
install -c -m 755 %{SOURCE6} $RPM_BUILD_ROOT%{cups_serverbin}/filter
install -c -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/cups
+# Ship pstopdf for LSPP systems to deal with malicious postscript
+%if %lspp
+install -c -m 755 %{SOURCE14} $RPM_BUILD_ROOT%{cups_serverbin}/filter
+%endif
+
# Ship a generic postscript PPD file (#73061)
install -c -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/cups/model
@@ -411,6 +417,7 @@
%changelog
* Wed Aug 2 2006 Tim Waugh <twaugh at redhat.com> 1:1.2.2-7
- Updated LSPP patch from Matt Anderson.
+- Ship pstopdf filter for LSPP.
* Fri Jul 28 2006 Tim Waugh <twaugh at redhat.com> 1:1.2.2-6
- Use replacement snmp.c from STR #1737 (bug #193093).
- Previous message (by thread): rpms/emacs/FC-5 ispell-german-utf-8.patch, NONE, 1.1 emacs.spec, 1.69, 1.70
- Next message (by thread): rpms/nautilus/FC-5 .cvsignore, 1.37, 1.38 nautilus.spec, 1.99, 1.100 sources, 1.41, 1.42
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list