Package list rastertosag-gdi / 15f2ca6
Imported Ubuntu patch 0.1-0ubuntu1 Till Kamppeter authored 10 years ago Didier Raboud committed 10 years ago
11 changed file(s) with 159 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 rastertosag-gdi (0.1-0ubuntu1) oneiric; urgency=low
1
2 * Initial release (LP: #700141).
3
4 -- Till Kamppeter <till.kamppeter@gmail.com> Sat, 5 Aug 2011 16:11:00 +0200
0 Source: rastertosag-gdi
1 Section: text
2 Priority: optional
3 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
4 Build-Depends: debhelper (>= 7.0.50~)
5 Homepage: http://www.openprinting.org/driver/rastertosag-gdi/
6 Standards-Version: 3.9.2
7
8 Package: rastertosag-gdi
9 Architecture: all
10 Depends: ${misc:Depends}, ${shlibs:Depends}, python, cups, cups-client, ghostscript
11 Description: Driver for Ricoh Aficio SP1100s/SP1100s
12 The rastertosag-gdi driver is an open source Linux driver for the Ricoh Aficio
13 SP1100s/SP1100s printers. These are some of the few Ricoh printers which do not
14 understand PostScript or PCL, but only a proprietary raster format.
0 Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174
1 Upstream-Name: rastertosag-gdi
2 Upstream-Contact: http://forums.linux-foundation.org/read.php?30,13489,13557
3 Source: http://www.openprinting.org/download/printing/rastertosag-gdi/
4
5 Files: rastertosag-gdi rastertosag-gdi.drv README ppd/*
6 Copyright: 2011 palz <paalzza@gmail.com>
7 License: GPL
8
9 Files: debian/*
10 Copyright: 2011 Till Kamppeter <till.kamppeter@gmail.com>
11 License: GPL
12
13 Files: debian/ubuntu/apport-hook.py
14 Copyright: 2009 Canonical Ltd.
15 Author: Brian Murray <brian@ubuntu.com>
16 License: GPL
17
18 License: GPL
19 CUPS raster filter for Ricoh Aficio SP1000s
20 this printer uses SAG-GDI raster format by Sagem Communication
21 licence: GPL
22 created by palz <paalzza@gmail.com>
23 Feb 2011, Moscow, Russia
24 .
25 On Debian systems, the full text of the GNU General Public
26 License can be found in the file
27 `/usr/share/common-licenses/GPL'.
0 usr/lib/cups/filter/*
1 usr/share/ppd/*
0 #!/bin/sh
1 # postinst script for rastertosag-gdi
2 #
3 # see: dh_installdeb(1)
4
5 set -e
6
7 # summary of how this script can be called:
8 # * <postinst> `configure' <most-recently-configured-version>
9 # * <old-postinst> `abort-upgrade' <new version>
10 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
11 # <new-version>
12 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
13 # <failed-install-package> <version> `removing'
14 # <conflicting-package> <version>
15 # for details, see http://www.debian.org/doc/debian-policy/ or
16 # the debian-policy package
17 #
18 # quoting from the policy:
19 # Any necessary prompting should almost always be confined to the
20 # post-installation script, and should be protected with a conditional
21 # so that unnecessary prompting doesn't happen if a package's
22 # installation fails and the `postinst' is called with `abort-upgrade',
23 # `abort-remove' or `abort-deconfigure'.
24
25 if [ "$1" = "configure" ]; then
26 # Do the following only if CUPS is running and the needed CUPS tools
27 # are available
28 if which lpstat > /dev/null 2>&1 && \
29 which lpinfo > /dev/null 2>&1 && \
30 which lpadmin > /dev/null 2>&1 && \
31 LC_ALL=C lpstat -h /var/run/cups/cups.sock -r | grep -v not > /dev/null 2>&1; then
32 # Update the PPD files of all already installed print queues
33 driverregexp='lsb/usr/rastertosag-gdi/'
34 gennicknameregexp=''
35 [ ! -z "$gennicknameregexp" ] && \
36 gennicknameregexp="; $gennicknameregexp"
37 gennicknameregexp='s/\s*\(recommended\)//'"$gennicknameregexp"
38 tempfiles=
39 trap 'rm -f $tempfiles; exit 0' 0 HUP INT QUIT ILL ABRT PIPE TERM
40 tmpfile1=`mktemp -t updateppds.XXXXXX`
41 tempfiles="$tempfiles $tmpfile1"
42 lpinfo -h /var/run/cups/cups.sock -m | grep -E $driverregexp > $tmpfile1
43 cd /etc/cups/ppd
44 for ppd in *.ppd; do
45 [ -r "$ppd" ] || continue
46 queue=${ppd%.ppd}
47 lpstat -h /var/run/cups/cups.sock -p "$queue" >/dev/null 2>&1 || continue
48 nickname=`grep '\*NickName:' "$ppd" | cut -d '"' -f 2 | perl -p -e 's/\n$//' | perl -p -e "$gennicknameregexp" | perl -p -e 's/(\W)/\\\\$1/g'`
49 lang=`grep '\*LanguageVersion:' "$ppd" | cut -d ' ' -f 2 | perl -e 'print lc(<>)' | perl -p -e 's/[\r\n]//gs'`
50 ppdfound="0"
51 englishppduri=""
52 tmpfile2=`mktemp -t updateppds.XXXXXX`
53 tempfiles="$tempfiles $tmpfile2"
54 cat $tmpfile1 | perl -p -e "$gennicknameregexp" | grep -E '^\S+\s+.*'"$nickname"'$' | cut -d ' ' -f 1 > $tmpfile2
55 while read newppduri; do
56 [ "$ppdfound" = "0" ] && lpadmin -h /var/run/cups/cups.sock -p "$queue" -m $newppduri 2>/dev/null || continue
57 newlang=`grep '\*LanguageVersion:' "$ppd" | cut -d ' ' -f 2 | perl -e 'print lc(<>)' | perl -p -e 's/[\r\n]//gs'`
58 [ "$newlang" = "$lang" ] && ppdfound="1"
59 [ "$newlang" = "english" ] && englishppduri="$newppduri"
60 done < $tmpfile2
61 [ "$ppdfound" = "0" ] && [ ! -z "$englishppduri" ] && lpadmin -h /var/run/cups/cups.sock -p "$queue" -m $englishppduri 2>/dev/null && ppdfound="1"
62 [ "$ppdfound" = "1" ] && echo PPD for printer $queue updated >&2
63 done
64 fi
65 elif [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remove" ] || [ "$1" = "abort-deconfigure" ]; then
66 :
67 else
68 echo "postinst called with unknown argument \`$1'" >&2
69 exit 0
70 fi
71
72
73 #DEBHELPER#
74 exit 0
0 #!/usr/bin/make -f
1
2 derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")
3
4 %:
5 dh $@
6
7 override_dh_auto_install:
8 install -D -m 755 rastertosag-gdi $(CURDIR)/debian/tmp/usr/lib/cups/filter/rastertosag-gdi
9 install -D -m 644 ppd/rsp1000s.ppd $(CURDIR)/debian/tmp/usr/share/ppd/rastertosag-gdi/Ricoh/Ricoh-Aficio_SP_1000S-rastertosag-gdi.ppd
10 install -D -m 644 ppd/rsp1100s.ppd $(CURDIR)/debian/tmp/usr/share/ppd/rastertosag-gdi/Ricoh/Ricoh-Aficio_SP_1100S-rastertosag-gdi.ppd
11
12 override_dh_install:
13 dh_install
14 ifeq ($(derives_from_ubuntu),yes)
15 # Install the apport hook on Ubuntu and derivatives
16 install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/rastertosag-gdi/usr/share/apport/package-hooks/source_rastertosag-gdi.py
17 endif
0 3.0 (quilt)
0 '''apport package hook for rastertosag-gdi
1
2 (c) 2009 Canonical Ltd.
3 Author: Brian Murray <brian@ubuntu.com>
4 '''
5
6 from apport.hookutils import *
7
8 def add_info(report):
9 attach_hardware(report)
10 attach_printing(report)
0 version=3
1 http://www.openprinting.org/download/printing/rastertosag-gdi/rastertosag-gdi(.*)\.tar\.gz