--- brother-cups-wrapper-extra-1.2.1.orig/debian/control +++ brother-cups-wrapper-extra-1.2.1/debian/control @@ -0,0 +1,21 @@ +Source: brother-cups-wrapper-extra +Section: text +Priority: optional +Homepage: http://solutions.brother.com/linux/en_us/ +Maintainer: Ubuntu MOTU Team +XSBC-Original-Maintainer: Saïvann Carignan +Build-Depends: debhelper (>= 5), csh +Standards-Version: 3.7.3 + +Package: brother-cups-wrapper-extra +Architecture: i386 amd64 +Depends: ${shlibs:Depends}, csh, brother-cups-wrapper-common, brother-lpr-drivers-extra, ${misc:Depends} +Conflicts: cupswrapperdcp110c, cupswrappermfc3240c, cupswrapperdcp310cn, cupswrappermfc3320cn, cupswrapperfax1815c, cupswrappermfc3340cn, cupswrapperfax1820c, cupswrappermfc3420c, cupswrapperfax1835c, cupswrappermfc3820cn, cupswrapperfax1840c, cupswrappermfc410cn, cupswrapperfax1920cn, cupswrappermfc420cn, cupswrapperfax1940cn, cupswrappermfc5440cn, cupswrapperfax2440c, cupswrappermfc5840cn, cupswrappermfc210c, cupswrappermfc620cn, cupswrappermfc3220c, dcp135ccupswrapper, dcp153ccupswrapper, dcp353ccupswrapper, dcp770cwcupswrapper, mfc235ccupswrapper, mfc465cncupswrapper, mfc685cwcupswrapper, dcp150ccupswrapper, dcp350ccupswrapper, dcp560cncupswrapper, mfc230ccupswrapper, mfc260ccupswrapper, mfc680cncupswrapper, mfc885cwcupswrapper +Replaces: cupswrapperdcp110c, cupswrappermfc3240c, cupswrapperdcp310cn, cupswrappermfc3320cn, cupswrapperfax1815c, cupswrappermfc3340cn, cupswrapperfax1820c, cupswrappermfc3420c, cupswrapperfax1835c, cupswrappermfc3820cn, cupswrapperfax1840c, cupswrappermfc410cn, cupswrapperfax1920cn, cupswrappermfc420cn, cupswrapperfax1940cn, cupswrappermfc5440cn, cupswrapperfax2440c, cupswrappermfc5840cn, cupswrappermfc210c, cupswrappermfc620cn, cupswrappermfc3220c, dcp135ccupswrapper, dcp153ccupswrapper, dcp353ccupswrapper, dcp770cwcupswrapper, mfc235ccupswrapper, mfc465cncupswrapper, mfc685cwcupswrapper, dcp150ccupswrapper, dcp350ccupswrapper, dcp560cncupswrapper, mfc230ccupswrapper, mfc260ccupswrapper, mfc680cncupswrapper, mfc885cwcupswrapper +Description: Cups Wrapper drivers for extra brother printers + This package provides all cups wrapper drivers for models FAX-1815C FAX-1820C + FAX-1835C FAX-1840C FAX-1920CN FAX-1940CN FAX-2440C MFC-210C MFC-3220C + MFC-3240C MFC-3320CN MFC-3340CN MFC-3420C MFC-3820CN MFC-410CN MFC-420CN + MFC-5440CN MFC-5840CN MFC-620CN DCP-110C DCP-310CN DCP-560CN DCP-770CW + DCP-350C DCP-353C MFC-465CN MFC-680CN MFC-685CW MFC-885CW MFC-230C MFC-235C + MFC-260C DCP-135C DCP-150C DCP-153C --- brother-cups-wrapper-extra-1.2.1.orig/debian/rules +++ brother-cups-wrapper-extra-1.2.1/debian/rules @@ -0,0 +1,159 @@ +#!/usr/bin/make -f + +CC = gcc +CFLAGS = -g -Wall + +#export DH_VERBOSE=1 + + +install: build + dh_testdir + dh_testroot + mkdir -p debian/tmp/usr/Brother/Printer/ + mkdir -p debian/tmp/usr/lib/cups/filter + mkdir -p debian/tmp/usr/share/ppd/Brother + mkdir -p debian/tmp/scripts + + # Remove stuff that cause problems or outputs when brother scripts are used to create ppd files. + cp usr/local/Brother/cupswrapper/* debian/tmp/scripts/ + cp usr/local/Brother/Printer/*/cupswrapper/cupswrapper* debian/tmp/scripts/ + for i in debian/tmp/scripts/* ; do \ + sed -i s_'/usr/local'_'/usr'_g $$i ; \ + sed -i s/'ppd_file_name=\/usr'/'ppd_file_name=debian\/tmp\/usr'/g $$i ; \ + sed -i s/'brotherlpdwrapper=\/usr'/'brotherlpdwrapper=debian\/tmp\/usr'/g $$i ; \ + sed -i s/' echo "ERROR : Brother LPD filter is not installed."'/'echo ""'/ $$i ; \ + sed -i s/'mkdir -p \/usr\/Brother\/filter'// $$i ; \ + sed -i s/'mkdir -p \/usr\/lib\/cups\/filter'// $$i ; \ + sed -i s/'chmod a+w'/'#chmod a+w'/g $$i ; \ + sed -i s/'sleep 2s'// $$i ; \ + sed -i s/'lpinfo -v'/'echo ""'/g $$i ; \ + sed -i s/' cp $brotherlpdwrapper $brotherlpdwrapper64'// $$i ; \ + sed -i '/^lpadmin/d' $$i ; \ + sed -i s/'lib64'/'lib'/g $$i ; \ + sed -i s/'\/etc\/init.d\/cups restart'/'echo ""'/g $$i ; \ + sed -i s_'usr/share/cups/model'_'usr/share/ppd/Brother'_g $$i ; \ + done + for i in `ls debian/tmp/scripts/` ; do \ + ./debian/tmp/scripts/$$i ; \ + done + ## Patch PPDs and brlpdwrapper-scripts + ## because the original drivers are not ideal (Launchpad Bug #206365) + for i in debian/tmp/usr/share/ppd/Brother/*.ppd ; do \ + # Most PPDs have bi-directional printing option in OrderDependency: 18 ; \ + # but a few have it in OrderDependency: 15 ; \ + sed -i '/OrderDependency: 18 AnySetup \*BRColorPaperThick/s/BRColorPaperThick/BRBiDir/g' $$i ; \ + sed -i '/OrderDependency: 15 AnySetup \*BRColorPaperThick/s/BRColorPaperThick/BRBiDir/g' $$i ; \ + # set higher resolution for photo quality and remove an unnecessary option for some older printers ; \ + sed -i '/S.Fine/d' $$i ; \ + sed -i 's_Photo/Photo: "< /dev/null ; \ + if test $$? -eq 1 ; then \ + # older printer modell with less settings ; \ + sed -i 's/set brcommands = ( \\/\set brcommands = ( \\\ + Resolution=Normal "-reso 300" \\\ + Resolution=Fine "-reso 600" \\\ + Resolution=Photo "-reso 1200" \\/g' $$i ; \ + else \ + # some more settings for newer printers ; \ + # to avoid problems with whitespaces DON'T INDENT THE FOLLOWING COMMAND! ; \ + sed -i 's/set brcommands = ( \\/\set brcommands = ( \\\ + Resolution=Fast0 "-reso 300 -md PLAIN -doc GRAPH" \\\ + Resolution=Normal0 "-reso 600 -md PLAIN -doc GRAPH" \\\ + Resolution=EnhNormal0 "-reso 750 -md PLAIN -doc GRAPH" \\\ + Resolution=Fine0 "-reso 1200 -md PLAIN -doc GRAPH" \\\ + Resolution=Fine1 "-reso 1200x600 -md INKJET -doc GRAPH" \\\ + Resolution=Photo1 "-reso 1200 -md INKJET -doc PHOTO" \\\ + Resolution=Fine2 "-reso 1200 -md GLOSSY -doc GRAPH" \\\ + Resolution=Photo2 "-reso 1200 -md GLOSSY -doc PHOTO" \\\ + Resolution=Highest2 "-reso 1200x6000 -md GLOSSY -doc PHOTO" \\\ + Resolution=Normal3 "-reso 600 -md TRANS" \\\ + Resolution=EnhNormal3 "-reso 750 -md TRANS" \\\ + Resolution=Fine3 "-reso 1200 -md TRANS" \\\ + Resolution=Fast4 "-reso 300 -md SLOWDRY" \\\ + Resolution=Normal4 "-reso 600 -md SLOWDRY" \\\ + Resolution=EnhNormal4 "-reso 750 -md SLOWDRY" \\\ + Resolution=Fine4 "-reso 1200 -md SLOWDRY" \\/g' $$i ; \ + fi \ + # align some expression with them in the PPD ; \ + sed -i 's/Bi-DirPrinting/BiDir/g' $$i ; \ + sed -i 's/MirrorPrint/Mirror/g' $$i ; \ + sed -i 's/PaperType/PageSize/g' $$i ; \ + sed -i 's/PaperThickness/PaperThick/g' $$i ; \ + sed -i 's/ColorOrMono/MonoColor/g' $$i ; \ + sed -i 's/HalfTone=/HalfTonePattern=/g' $$i ; \ + sed -i 's/ColorEnhance=/ColorEnhancement=/g' $$i ; \ + sed -i 's/RedKey/Red/g' $$i ; \ + sed -i 's/BlueKey/Blue/g' $$i ; \ + sed -i 's/GreenKey/Green/g' $$i ; \ + # paper format is misspelled ; \ + sed -i 's/Exective/Executive/g' $$i ; \ + # obviously a mistake in quality settings ; \ + sed -i 's/Highest2 "-reso 1200x600 -md GLOSSY -doc GRAPH"/Highest2 "-reso 1200x6000 -md GLOSSY -doc PHOTO"/g' $$i ; \ + # correction of misspelled *DefaultBRBrightness ; \ + sed -i 's/\*Default\*BRBrightness/*DefaultBRBrightness/g' $$i ; \ + # the 2nd occurence of "" has to include a tab ; \ + sed -i '/sed s\/" "\/\/g |sed s\/" "/s/" "/" "/2' $$i ; \ + # fix some mistakes to let the cupswrapper give valid arguments ; \ + sed -i 's/tr " " n/tr " " "\\n"/g' $$i ; \ + sed -i '/grep $$brcommands/s/grep/grep -i/g' $$i ; \ + sed -i 's/sed s\/"$$brcommands2/sed s\/"BR""$$brcommands2/g' $$i ; \ + done + ## End patching PPDs and brlpdwrapper-scripts + cp -R usr/local/Brother/Printer/* debian/tmp/usr/Brother/Printer/ + rm debian/tmp/usr/Brother/Printer/*/cupswrapper/* + for i in `ls debian/tmp/usr/Brother/Printer/` ; do \ + ln -sf /usr/Brother/Printer/brcupsconfpt1 debian/tmp/usr/Brother/Printer/$$i/cupswrapper/brcupsconfpt1 ; \ + done + dh_install --autodest debian/tmp/usr + +build: + for i in `ls *.deb` ; do \ + dpkg -x $$i ./ ; \ + done + +binary-indep: build install + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installdocs -a + dh_installchangelogs -a + dh_strip -a + dh_compress -a + dh_fixperms -a + chmod a+x debian/brother-cups-wrapper-extra/usr/lib/cups/filter/brlpdwrapper* + dh_installdeb -a + dh_link -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean checkroot + +clean: + dh_testdir + dh_clean + rm -f build --- brother-cups-wrapper-extra-1.2.1.orig/debian/compat +++ brother-cups-wrapper-extra-1.2.1/debian/compat @@ -0,0 +1 @@ +6 --- brother-cups-wrapper-extra-1.2.1.orig/debian/changelog +++ brother-cups-wrapper-extra-1.2.1/debian/changelog @@ -0,0 +1,41 @@ +brother-cups-wrapper-extra (1.2.1-0ubuntu4) quantal; urgency=low + + * debian/control: added ${misc:Depends} to dependencies line. + + -- Chris Schmidt Tue, 18 Sep 2012 16:40:13 +0200 + +brother-cups-wrapper-extra (1.2.1-0ubuntu3) intrepid; urgency=low + + * debian/rules: Fix PPD files and brlpdwrapper* scripts. (LP: #206365) + + -- Dominic Lyons Sat, 24 May 2008 16:21:32 +0100 + +brother-cups-wrapper-extra (1.2.1-0ubuntu2) intrepid; urgency=low + + * debian/control: Change "provide" to "provides" (LP: #229346). + + -- Saïvann Carignan Tue, 13 May 2008 15:34:41 -0400 + +brother-cups-wrapper-extra (1.2.1-0ubuntu1) hardy; urgency=low + + * Update orig tarball to contains real debian binary packages + (fixes all issues related to modifications introduced by mistake). + * debian/control: Drop transitional packages. + * debian/compat: Update debhelper version to 6. + * debian/rules: Fix wrong PPD path in cupswrapper scripts. + + -- Saïvann Carignan Fri, 21 Mar 2008 02:45:21 -0400 + +brother-cups-wrapper-extra (1.2.0-0ubuntu2) hardy; urgency=low + + * debian/rules: Fix wrong PPDC= fields in filter files. + * debian/rules: Remove all references to /usr/local. + * debian/control: Add transitional packages. + + -- Saïvann Carignan Thu, 28 Feb 2008 22:00:24 -0500 + +brother-cups-wrapper-extra (1.2.0-0ubuntu1) hardy; urgency=low + + * Initial release + + -- Saïvann Carignan Fri, 15 Feb 2008 06:42:57 -0500 --- brother-cups-wrapper-extra-1.2.1.orig/debian/copyright +++ brother-cups-wrapper-extra-1.2.1/debian/copyright @@ -0,0 +1,50 @@ +This package was debianized by Saïvann Carignan on +Fri, 15 Feb 2008 10:07:22 -0500 + +http://solutions.brother.com/linux/en_us/ +Upstream Author: Brother Industries, LTD + +License: Brother Software Open License Agreement + +This Agreement provides terms and conditions for license grant from Brother +Industries, Ltd ("Broher"). Brother, who owns all copyrights to the software +that is distributed with this Agreement ("Software") to recipients thereof +("User"), for use of the Software. User shall have the right to use the +Software only in accordance with the terms and conditions of this Agreement. +Any use by User of the Software shall be deemed as its agreement hereto. + +Brother retains any and all copyrights to the Software. In no case this +Agreement shall be construed to assign or otherwise transfer from Brother +to User any copyrights or other intellectual property rights to whole or +any part of the Software. + +Brother grants User a non-exclusive license: to reproduce and/or distribute +(via Internet or in any other manner) the Software. Further, Brother grants +User a non-exclusive license to modify, alter, translate or otherwise prepare +derivative works of the Software and to reproduce and distribute (via Internet +or in any other manner) such modification, alteration, translation or other +derivative works for any purpose. + +The license of the Software from Brother hereunder is granted "AS IS." BROTHER +HEREBY DISCLAIMS ANY WARRANTIES WITH RESPECT TO THE SOFTWARE, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTY FOR THE QUALITY, +MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE OR NON-INFRINGEMENT. + +Brother shall have no liability in contract, tort (including negligence or +breach of statutory duty) or otherwise for any interruption of use, loss of +data, or for any indirect, incidental, punitive or consequential loss or +damage, or for any loss of profit, revenue, data, goodwill or anticipated +savings that arises under, out of, or in contemplation of this Agreement or +otherwise arises due to any error, inaccuracy or defect in the Software even +if Brother has been advised of the possibility of such loss or damage. + +Further, Brother shall have no liability to disclose and/or distribute the +source cord of the Software to User under any circumstances. In no case shall +the above license by Brother to modify, alter, translate or otherwise prepare +derivative works of the Software be construed as Brother's implied agreement or +undertakings to disclose and/or distribute the source cord of the Software. + +The Debian packaging is © 2008, Saïvann Carignan +and is licensed under the Brother Software Open License Agreement + +Copyright (C) 2005 Brother. Industries, Ltd.