debian/0000755000000000000000000000000012250455434007172 5ustar debian/changelog0000644000000000000000000001613112250453453011045 0ustar m2300w (0.51-11) unstable; urgency=low [ Didier Raboud ] * Add cups-filters >= 1.0.42 as first alternative dependency to foomatic-filters, also replace it in build-depends * Drop m2300w transitional package which reached stable * Bump Standards-Version to 3.9.5 without changes needed * Add patch to make sure CPPFLAGS and LDFLAGS are dpkg-buildflags' * Add patch to search foomatic-rip in cups filters, not in system binaries * Use dh-autoreconf to let the above patch apply to the build * Add patch to fix bashism in m2300-wrapper (Closes: #690634) [ Bart Martens ] * Update debian/watch -- Didier Raboud Fri, 06 Dec 2013 23:59:37 +0100 m2300w (0.51-10) unstable; urgency=low * Rebuild against pyppd >= 1.0.1 -- Didier Raboud Fri, 13 Sep 2013 12:48:28 +0200 m2300w (0.51-9) unstable; urgency=low * Upload to unstable. -- Didier Raboud Sun, 19 May 2013 11:00:25 +0200 m2300w (0.51-8) experimental; urgency=low [ Till Kamppeter ] * Removed unneeded build dependencies on Foomatic packages. [ Didier Raboud ] * Bump Standards-Version to 3.9.4 without changes needed. -- Didier Raboud Wed, 26 Sep 2012 14:30:41 +0200 m2300w (0.51-7) unstable; urgency=low * Bump Build-Dependency on pyppd to ensure that the compressed PPDs archive is correctly named. -- Didier Raboud Mon, 24 Oct 2011 21:12:45 +0200 m2300w (0.51-6) unstable; urgency=low * Use << and not >> for the transitional relationships. -- Didier Raboud Fri, 21 Oct 2011 17:22:52 +0200 m2300w (0.51-5) unstable; urgency=low * Refactoring, action 1: - rename m2300w to printer-driver-m2300w, add transitional package. * Fix short description typo, thanks to Vincent Blut (Closes: 639180) * Slightly rewrite descriptions. * Bump debhelper compat to 9 for auto- buildflags. - Bump debhelper B-D. - Add source lintian override. * Only recommend cups-ppdc. -- Didier Raboud Fri, 21 Oct 2011 17:04:16 +0200 m2300w (0.51-4) unstable; urgency=low [ Till Kamppeter ] * Update the ppd-updater driver regexp. * Added "Build-Conflicts: foomatic-db-compressed-ppds" to assure that the Foomatic XML database is present during package build and not only the compressed archive of the Foomatic PPD files. * debian/patches/20_use_ghostscript_with_nointerpolate.dpatch: Added "-dNOINTERPOLATE" to the Ghostscript command line. This makes the page rendering by Ghostscript significantly faster. * Add PPD files for the KONICA MINOLTA versions of the magicolor 2300W/2400W. (LP: #250583) -- Didier Raboud Wed, 24 Aug 2011 17:45:37 +0200 m2300w (0.51-3) unstable; urgency=low * Use the new dh_pyppd. - Drop the explicit pyppd call. - Install the PPDs before dh_pyppd. - Version Build-Depends on pyppd. - Drop the explicit depends due to pyppd usage. * Drop the PPD-updater postinst and use CUPS' trigger instead. -- Didier Raboud Sat, 20 Aug 2011 13:49:51 +0200 m2300w (0.51-2) unstable; urgency=low * Compress PPDs using pyppd. -- Didier Raboud Fri, 17 Jun 2011 23:12:13 +0200 m2300w (0.51-1) unstable; urgency=low * Initial upload to Debian (Closes: #629906) - Put under Debian Printing Team umbrella and add myself as Uploader. - Start from Ubuntu packaging; thanks! * Demote cups and cups-client to Recommends. * Remove cups Build-Depends. * Convert to source format 3.0 (quilt), convert dpatch'es to quilt patches. * Move homepage URL to its proper field. * Convert rules to dh7 tiny style; bump dh compat to 7 and B-D on debhelper to >= 7.0.50~. * Add misc:Depends to the binary package dependencies. * Update debian/copyright; fix GPL version symlink. * Use Breaks+Replaces instead of Provides+Replaces+Conflicts. * Install the apport hook depending on the target distribution. * Add Vcs-* fields. * Bump Standards-Version to 3.9.2 without more changes needed. -- Didier Raboud Thu, 09 Jun 2011 15:25:04 +0200 m2300w (0.51-0ubuntu10) natty; urgency=low * debian/control: Fix build deps: gs → ghostscript. -- Martin Pitt Mon, 24 Jan 2011 11:13:34 +0100 m2300w (0.51-0ubuntu9) lucid; urgency=low * rebuild rest of main for armel armv7/thumb2 optimization; UbuntuSpec:mobile-lucid-arm-gcc-v7-thumb2 -- Alexander Sack Sun, 07 Mar 2010 00:56:52 +0100 m2300w (0.51-0ubuntu8) karmic; urgency=low * debian/m2300w.postinst: Fixed "lpstat -r" check for the auto update of PPDs of existing queues. "lpstat -r" exits always with status 0, we must check the actual output. Call lpstat, lpadmin, and cupsctl with "-h /var/run/cups/cups.sock" to avoid querying remote servers set up in /etc/cups/client.conf, and asking for passwords. Thanks to Martin-Éric Racine for tracking this down and the solution! See Debian bug #543468. Use signal names instead of numbers for trap. Quiesces a lintian bashism warning. * debian/control: Added dependency on cups and cups-client, to assure that automatic update of the PPDs of existing print queues. -- Till Kamppeter Fri, 18 Sep 2009 16:04:23 +0200 m2300w (0.51-0ubuntu7) jaunty; urgency=low * debian/m2300w.postinst: Silenced non-fatal error messages when post-install script updates PPDs and there are PPDs not belonging to a CUPS queue in /etc/cups/ppd/ (LP: #345866). * debian/local/apport-hook.py, debian/rules: Added apport hook (LP: #338442). -- Till Kamppeter Thu, 26 Mar 2009 16:57:50 +0100 m2300w (0.51-0ubuntu6) jaunty; urgency=low * debian/m2300w.postinst: Added automatic updating of the PPD files of the already existing CUPS queues which use this driver. -- Till Kamppeter Wed, 18 Feb 2008 10:57:50 +0100 m2300w (0.51-0ubuntu5) intrepid; urgency=low * debian/rules: Add "*cupsFilter" line to accept PDF input data to the PPDs * debian/control: Require foomatic-filters 4.x, replaced "cupsys" by "cups". -- Till Kamppeter Wed, 13 Aug 2008 16:20:50 +0200 m2300w (0.51-0ubuntu4) feisty; urgency=low * 10_ppd_for_2400w_fails_cupstestppd.dpatch: PPD for the Minolta magicolor 2400W was not passing cupstestppd. -- Till Kamppeter Wed, 14 Mar 2007 19:30:00 +0000 m2300w (0.51-0ubuntu3) feisty; urgency=low * debian/control, debian/rules: Let PPDs go into the main package, drop m2300w-ppds package; compressed the PPDs (see also LP#88224). -- Till Kamppeter Thu, 8 Mar 2007 14:30:00 +0000 m2300w (0.51-0ubuntu2) feisty; urgency=low * debian/control: Added "gs", "cupsys", "foomatic-db", "foomatic-db-engine", and "foomatic-filters" to Build-Depends. They are all needed by the ./configure script. -- Till Kamppeter Wed, 31 Jan 2007 12:00:00 +0000 m2300w (0.51-0ubuntu1) feisty; urgency=low * Initial Release. -- Till Kamppeter Mon, 15 Jan 2007 12:00:00 +0000 debian/local/0000755000000000000000000000000011650305236010261 5ustar debian/local/apport-hook.py0000644000000000000000000000032611650305236013077 0ustar '''apport package hook for m2300w (c) 2009 Canonical Ltd. Author: Brian Murray ''' from apport.hookutils import * def add_info(report): attach_hardware(report) attach_printing(report) debian/rules0000755000000000000000000000207612250440447010255 0ustar #!/usr/bin/make -f derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no") %: dh $@ --with pyppd,autoreconf override_dh_auto_install: dh_auto_install -- INSTROOT=$(CURDIR)/debian/tmp override_dh_install: dh_install # Install the two PPDs and their second version counterpart. mkdir -p $(CURDIR)/debian/printer-driver-m2300w/usr/share/ppd/m2300w for n in 2300 2400; do \ mv $(CURDIR)/debian/tmp/usr/share/cups/model/Minolta/magicolor_$${n}W-m$${n}w.ppd $(CURDIR)/debian/printer-driver-m2300w/usr/share/ppd/m2300w/Minolta-magicolor_$${n}W-m$${n}w.ppd ; \ perl -p -e 's/Minolta/KONICA MINOLTA/g' $(CURDIR)/debian/printer-driver-m2300w/usr/share/ppd/m2300w/Minolta-magicolor_$${n}W-m$${n}w.ppd > $(CURDIR)/debian/printer-driver-m2300w/usr/share/ppd/m2300w/KONICA_MINOLTA-magicolor_$${n}W-m$${n}w.ppd ; \ done ifeq ($(derives_from_ubuntu),yes) # Install the apport hook on Ubuntu and derivatives install -D -m 644 debian/local/apport-hook.py $(CURDIR)/debian/printer-driver-m2300w/usr/share/apport/package-hooks/source_m2300w.py endif debian/patches/0000755000000000000000000000000012250453055010616 5ustar debian/patches/30_find_foomatic-rip_in_cups_filters.patch0000644000000000000000000000165012250437601021003 0ustar Description: Search foomatic-rip in /usr/lib/cups/filter as this is the needed filter, not the binary in /usr/bin. Author: Didier Raboud Last-Update: 2013-12-06 --- a/configure.in +++ b/configure.in @@ -87,10 +87,10 @@ dnl check for FOOMATIC dnl -------------------------------------------------------------------------- -AC_PATH_PROG(FOOMATIC_RIP,foomatic-rip,,[/usr/bin:/bin:/usr/local/bin:/opt/bin:$PATH]) +AC_PATH_PROG(FOOMATIC_RIP,foomatic-rip,,[/usr/lib/cups/filter:/usr/bin:/bin:/usr/local/bin:/opt/bin:$PATH]) if test -z "$FOOMATIC_RIP"; then echo "ERROR: This driver requires foomatic-rip." - echo "Please install the 'foomatic-filters' package first." + echo "Please install the 'foomatic-filters' or 'cups-filters' (>= 1.0.42) package first." echo "See http://www.linuxprinting.org/foomatic.html" echo "(Some distributions, e.g. SuSE, deliver foomatic-rip with CUPS)" exit 1 debian/patches/10_ppd_for_2400w_fails_cupstestppd.diff0000644000000000000000000000211211650305236020045 0ustar Description: PPD for the Minolta magicolor 2400W was not passing cupstestppd. Author: Till Kamppeter Last-Update: 2007-03-14 --- a/ppd/magicolor_2400W-m2400w.ppd +++ b/ppd/magicolor_2400W-m2400w.ppd @@ -139,11 +139,11 @@ *OpenUI *Resolution/Resolution: PickOne *FoomaticRIPOption Resolution: enum CmdLine A *OrderDependency: 100 AnySetup *Resolution -*DefaultResolution: 1200x600 -*Resolution 1200x600/1200x600 dpi: "%% FoomaticRIPOptionSetting: Resolution=1200x600" -*FoomaticRIPOptionSetting Resolution=1200x600: "-r 2 " -*Resolution 2400x600/2400x600 dpi: "%% FoomaticRIPOptionSetting: Resolution=2400x600" -*FoomaticRIPOptionSetting Resolution=2400x600: "-r 3 " +*DefaultResolution: 1200x600dpi +*Resolution 1200x600dpi/1200x600 dpi: "%% FoomaticRIPOptionSetting: Resolution=1200x600dpi" +*FoomaticRIPOptionSetting Resolution=1200x600dpi: "-r 2 " +*Resolution 2400x600dpi/2400x600 dpi: "%% FoomaticRIPOptionSetting: Resolution=2400x600dpi" +*FoomaticRIPOptionSetting Resolution=2400x600dpi: "-r 3 " *CloseUI: *Resolution *OpenUI *Multipage/Multipage: PickOne debian/patches/01_use_all_FLAGS.patch0000644000000000000000000000056512250436753014513 0ustar Description: Include CPPFLAGS in CFLAGS, as well as LDFLAGS in LIBS to ensure dpkg-buildflags is respected Author: Didier Raboud Last-Update: 2013-12-06 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -19,8 +19,8 @@ # CC = @CC@ -CFLAGS = @CFLAGS@ -LIBS = @LIBS@ +CFLAGS = @CFLAGS@ @CPPFLAGS@ +LIBS = @LDFLAGS@ @LIBS@ INSTALL = @INSTALL@ @SET_MAKE@ debian/patches/20_use_ghostscript_with_nointerpolate.patch0000644000000000000000000000076511650305236021373 0ustar Description: Adds "-dNOINTERPOLATE" to the Ghostscript command line. This makes the page rendering by Ghostscript significantly faster. Author: Till Kamppeter Last-Update: 2009-06-24 --- a/src/m2300w-wrapper.in +++ b/src/m2300w-wrapper.in @@ -465,7 +465,7 @@ GSBIN=gs fi -GS="$GSBIN -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -dMaxBitmap=134217728" +GS="$GSBIN -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -dNOINTERPOLATE -dMaxBitmap=134217728" cat >> /tmp/m2300w.log < Last-Update: 2013-12-06 --- a/src/m2300w-wrapper.in +++ b/src/m2300w-wrapper.in @@ -375,7 +375,7 @@ *) error "Unknown paper code $PAPER";; esac -let resX=$resX*$RESMUL; +$((resX*=$RESMUL)); PAPERSIZE="-g$resX"x"$resY"; PAPERCODE="-p $paper"; debian/source/0000755000000000000000000000000011650305236010467 5ustar debian/source/format0000644000000000000000000000001411650305236011675 0ustar 3.0 (quilt) debian/control0000644000000000000000000000241312250440447010573 0ustar Source: m2300w Section: text Priority: optional Maintainer: Debian Printing Team Uploaders: Didier Raboud , Till Kamppeter Build-Depends: debhelper (>= 8.9.0~), groff, ghostscript, cups-filters (>= 1.0.42), pyppd (>= 1.0.1), dh-autoreconf Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/collab-maint/m2300w.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/m2300w.git Homepage: http://m2300w.sf.net/ Package: printer-driver-m2300w Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, cups-filters (>= 1.0.42) | foomatic-filters (>= 4.0.0~bzr156) Recommends: cups-ppdc Suggests: psutils Replaces: m2300w-ppds, m2300w (<< 0.51-5~) Breaks: m2300w-ppds, m2300w (<< 0.51-5~) Description: printer driver for Minolta magicolor 2300W/2400W color laser printers The m2300w driver is a driver for the Konica Minolta magicolor 2300W and 2400W color laser printers. . The driver is basically intended for being used in conjunction with "foomatic" (see http://www.openprinting.org/foomatic.html), which is a database-driven system for integrating free software printer drivers with common spoolers under Unix, like CUPS, LPRng, LPD, GNUlpr, PPR, PDQ, CPS, and direct printing. debian/printer-driver-m2300w.docs0000644000000000000000000000003211650305236013736 0ustar README README.ghostscript debian/copyright0000644000000000000000000000244611650305236011130 0ustar This package was debianized by Till Kamppeter on Mon, 15 Jan 2007. It was downloaded from http://sourceforge.net/projects/m2300w/ Upstream Authors: Leif Birkenfeld Copyright: Copyright 2004 Leif Birkenfeld 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 of the License, 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is: Copyright (C) 2007,2008,2009 Till Kamppeter Copyright (C) 2011 Didier Raboud and is licensed under the GPLv2+, as m2300w itself, see above. debian/source.lintian-overrides0000644000000000000000000000013111650305236014042 0ustar # This is needed for "auto-buildflags" package-needs-versioned-debhelper-build-depends 9 debian/printer-driver-m2300w.ppd-updater0000644000000000000000000000005711650305236015242 0ustar DRIVER_REGEXP='^m2300w:' GENNICKNAME_REGEXP='' debian/compat0000644000000000000000000000000211650305236010365 0ustar 9 debian/printer-driver-m2300w.install0000644000000000000000000000015511650305236014462 0ustar usr/share/m2300w/0.51/psfiles/* usr/bin debian/printer-driver-m2300w.ppd-updater usr/share/cups/ppd-updaters debian/watch0000644000000000000000000000020312250430235010206 0ustar version=3 http://qa.debian.org/watch/sf.php/m2300w/ \ (?:|.*/)m2300w(?:[_\-]v?|)(\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)