brother-laser-cups-driver-2.0.1-1/0040755000000000000000000000000010610572024015361 5ustar rootrootbrother-laser-cups-driver-2.0.1-1/scripts/0040755000000000000000000000000010610571764017062 5ustar rootrootbrother-laser-cups-driver-2.0.1-1/scripts/cupswrapperDCP7010-2.0.10100755000000000000000000004265310610571764022665 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x DCP7010 rm -f /usr/share/cups/model/DCP7010.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP7010 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP7010 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x DCP7010 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterDCP7010" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/DCP7010.ppd ppd_file_name=/usr/share/cups/model/DCP7010.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother DCP7010 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "DCP7010.PPD" *Product: "(Brother DCP7010 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP7010" *PSVersion: "(3010.106) 3" *ModelName: "DCP7010" *NickName: "Brother DCP7010 for CUPS" *ShortNickName: "Brother DCP7010 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperDCP7010 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP7010 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP7010 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/DCP7010.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brDCP7010rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/DCP-7010' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p DCP7010 -E -v $port -P /usr/share/cups/model/DCP7010.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperDCP7020-2.0.10100755000000000000000000004265310610571764022666 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x DCP7020 rm -f /usr/share/cups/model/DCP7020.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP7020 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP7020 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x DCP7020 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterDCP7020" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/DCP7020.ppd ppd_file_name=/usr/share/cups/model/DCP7020.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother DCP7020 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "DCP7020.PPD" *Product: "(Brother DCP7020 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP7020" *PSVersion: "(3010.106) 3" *ModelName: "DCP7020" *NickName: "Brother DCP7020 for CUPS" *ShortNickName: "Brother DCP7020 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperDCP7020 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP7020 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP7020 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/DCP7020.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brDCP7020rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/DCP-7020' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p DCP7020 -E -v $port -P /usr/share/cups/model/DCP7020.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperDCP7025-2.0.10100755000000000000000000004265310610571764022673 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x DCP7025 rm -f /usr/share/cups/model/DCP7025.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP7025 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP7025 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x DCP7025 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterDCP7025" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/DCP7025.ppd ppd_file_name=/usr/share/cups/model/DCP7025.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother DCP7025 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "DCP7025.PPD" *Product: "(Brother DCP7025 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP7025" *PSVersion: "(3010.106) 3" *ModelName: "DCP7025" *NickName: "Brother DCP7025 for CUPS" *ShortNickName: "Brother DCP7025 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperDCP7025 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP7025 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP7025 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/DCP7025.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brDCP7025rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/DCP-7025' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p DCP7025 -E -v $port -P /usr/share/cups/model/DCP7025.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperDCP8060-2.0.10100755000000000000000000004457110610571764022674 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x DCP8060 rm -f /usr/share/cups/model/DCP8060.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP8060 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP8060 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x DCP8060 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterDCP8060" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/DCP8060.ppd ppd_file_name=/usr/share/cups/model/DCP8060.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother DCP8060 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "DCP8060.PPD" *Product: "(Brother DCP8060 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP8060" *PSVersion: "(3010.106) 3" *ModelName: "DCP8060" *NickName: "Brother DCP8060 for CUPS" *ShortNickName: "Brother DCP8060 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperDCP8060 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP8060 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP8060 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/DCP8060.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brDCP8060rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/DCP-8060' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p DCP8060 -E -v $port -P /usr/share/cups/model/DCP8060.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperDCP8065DN-2.0.10100755000000000000000000004522210610571764023115 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x DCP8065DN rm -f /usr/share/cups/model/DCP8065DN.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP8065DN rm -f /usr/lib64/cups/filter/brlpdwrapperDCP8065DN rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x DCP8065DN if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterDCP8065DN" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/DCP8065DN.ppd ppd_file_name=/usr/share/cups/model/DCP8065DN.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother DCP8065DN for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "DCP8065.PPD" *Product: "(Brother DCP8065DN series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP8065DN" *PSVersion: "(3010.106) 3" *ModelName: "DCP8065DN" *NickName: "Brother DCP8065DN for CUPS" *ShortNickName: "Brother DCP8065DN for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *OpenUI *Duplex: PickOne *OrderDependency: 25 AnySetup *Duplex *DefaultDuplex: None *Duplex DuplexTumble: " " *Duplex DuplexNoTumble: " " *Duplex None: " " *CloseUI: *Duplex *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperDCP8065DN brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP8065DN rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP8065DN if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/DCP8065DN.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brDCP8065DNrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/DCP-8065DN' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p DCP8065DN -E -v $port -P /usr/share/cups/model/DCP8065DN.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperFAX2810-2.0.10100755000000000000000000004265310610571764022700 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x FAX2810 rm -f /usr/share/cups/model/FAX2810.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX2810 rm -f /usr/lib64/cups/filter/brlpdwrapperFAX2810 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x FAX2810 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterFAX2810" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/FAX2810.ppd ppd_file_name=/usr/share/cups/model/FAX2810.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother FAX2810 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "FAX2810.PPD" *Product: "(Brother FAX2810 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX2810" *PSVersion: "(3010.106) 3" *ModelName: "FAX2810" *NickName: "Brother FAX2810 for CUPS" *ShortNickName: "Brother FAX2810 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperFAX2810 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX2810 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX2810 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/FAX2810.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brFAX2810rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/FAX-2810' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p FAX2810 -E -v $port -P /usr/share/cups/model/FAX2810.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperFAX2820-2.0.10100755000000000000000000004265310610571764022701 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x FAX2820 rm -f /usr/share/cups/model/FAX2820.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX2820 rm -f /usr/lib64/cups/filter/brlpdwrapperFAX2820 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x FAX2820 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterFAX2820" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/FAX2820.ppd ppd_file_name=/usr/share/cups/model/FAX2820.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother FAX2820 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "FAX2820.PPD" *Product: "(Brother FAX2820 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX2820" *PSVersion: "(3010.106) 3" *ModelName: "FAX2820" *NickName: "Brother FAX2820 for CUPS" *ShortNickName: "Brother FAX2820 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperFAX2820 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX2820 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX2820 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/FAX2820.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brFAX2820rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/FAX-2820' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p FAX2820 -E -v $port -P /usr/share/cups/model/FAX2820.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperFAX2920-2.0.10100755000000000000000000004265310610571764022702 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x FAX2920 rm -f /usr/share/cups/model/FAX2920.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX2920 rm -f /usr/lib64/cups/filter/brlpdwrapperFAX2920 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x FAX2920 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterFAX2920" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/FAX2920.ppd ppd_file_name=/usr/share/cups/model/FAX2920.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother FAX2920 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "FAX2920.PPD" *Product: "(Brother FAX2920 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX2920" *PSVersion: "(3010.106) 3" *ModelName: "FAX2920" *NickName: "Brother FAX2920 for CUPS" *ShortNickName: "Brother FAX2920 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperFAX2920 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX2920 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX2920 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/FAX2920.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brFAX2920rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/FAX-2920' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p FAX2920 -E -v $port -P /usr/share/cups/model/FAX2920.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperHL2030-2.0.10100755000000000000000000004262410610571764022555 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x HL2030 rm -f /usr/share/cups/model/HL2030.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL2030 rm -f /usr/lib64/cups/filter/brlpdwrapperHL2030 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x HL2030 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterHL2030" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/HL2030.ppd ppd_file_name=/usr/share/cups/model/HL2030.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother HL2030 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "HL2030.PPD" *Product: "(Brother HL2030 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL2030" *PSVersion: "(3010.106) 3" *ModelName: "HL2030" *NickName: "Brother HL2030 for CUPS" *ShortNickName: "Brother HL2030 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperHL2030 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL2030 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL2030 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/HL2030.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brHL2030rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/HL-2030' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p HL2030 -E -v $port -P /usr/share/cups/model/HL2030.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperHL2040-2.0.10100755000000000000000000004262410610571764022556 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x HL2040 rm -f /usr/share/cups/model/HL2040.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL2040 rm -f /usr/lib64/cups/filter/brlpdwrapperHL2040 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x HL2040 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterHL2040" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/HL2040.ppd ppd_file_name=/usr/share/cups/model/HL2040.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother HL2040 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "HL2040.PPD" *Product: "(Brother HL2040 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL2040" *PSVersion: "(3010.106) 3" *ModelName: "HL2040" *NickName: "Brother HL2040 for CUPS" *ShortNickName: "Brother HL2040 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperHL2040 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL2040 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL2040 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/HL2040.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brHL2040rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/HL-2040' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p HL2040 -E -v $port -P /usr/share/cups/model/HL2040.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperHL2070N-2.0.10100755000000000000000000004265210610571764022700 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x HL2070N rm -f /usr/share/cups/model/HL2070N.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL2070N rm -f /usr/lib64/cups/filter/brlpdwrapperHL2070N rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x HL2070N if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterHL2070N" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/HL2070N.ppd ppd_file_name=/usr/share/cups/model/HL2070N.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother HL2070N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "HL2070.PPD" *Product: "(Brother HL2070N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL2070N" *PSVersion: "(3010.106) 3" *ModelName: "HL2070N" *NickName: "Brother HL2070N for CUPS" *ShortNickName: "Brother HL2070N for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperHL2070N brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL2070N rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL2070N if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/HL2070N.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brHL2070Nrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/HL-2070N' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p HL2070N -E -v $port -P /usr/share/cups/model/HL2070N.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperHL5240-2.0.10100755000000000000000000004454210610571764022564 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x HL5240 rm -f /usr/share/cups/model/HL5240.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5240 rm -f /usr/lib64/cups/filter/brlpdwrapperHL5240 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x HL5240 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterHL5240" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/HL5240.ppd ppd_file_name=/usr/share/cups/model/HL5240.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother HL5240 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "HL5240.PPD" *Product: "(Brother HL5240 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5240" *PSVersion: "(3010.106) 3" *ModelName: "HL5240" *NickName: "Brother HL5240 for CUPS" *ShortNickName: "Brother HL5240 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperHL5240 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5240 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5240 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/HL5240.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brHL5240rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/HL-5240' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p HL5240 -E -v $port -P /usr/share/cups/model/HL5240.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperHL5250DN-2.0.10100755000000000000000000004517310610571764023010 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x HL5250DN rm -f /usr/share/cups/model/HL5250DN.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5250DN rm -f /usr/lib64/cups/filter/brlpdwrapperHL5250DN rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x HL5250DN if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterHL5250DN" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/HL5250DN.ppd ppd_file_name=/usr/share/cups/model/HL5250DN.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother HL5250DN for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "HL5250.PPD" *Product: "(Brother HL5250DN series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5250DN" *PSVersion: "(3010.106) 3" *ModelName: "HL5250DN" *NickName: "Brother HL5250DN for CUPS" *ShortNickName: "Brother HL5250DN for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *OpenUI *Duplex: PickOne *OrderDependency: 25 AnySetup *Duplex *DefaultDuplex: None *Duplex DuplexTumble: " " *Duplex DuplexNoTumble: " " *Duplex None: " " *CloseUI: *Duplex *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperHL5250DN brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5250DN rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5250DN if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/HL5250DN.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brHL5250DNrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/HL-5250DN' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p HL5250DN -E -v $port -P /usr/share/cups/model/HL5250DN.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperHL5270DN-2.0.10100755000000000000000000004517310610571764023012 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x HL5270DN rm -f /usr/share/cups/model/HL5270DN.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5270DN rm -f /usr/lib64/cups/filter/brlpdwrapperHL5270DN rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x HL5270DN if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterHL5270DN" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/HL5270DN.ppd ppd_file_name=/usr/share/cups/model/HL5270DN.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother HL5270DN for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "HL5270.PPD" *Product: "(Brother HL5270DN series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5270DN" *PSVersion: "(3010.106) 3" *ModelName: "HL5270DN" *NickName: "Brother HL5270DN for CUPS" *ShortNickName: "Brother HL5270DN for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *OpenUI *Duplex: PickOne *OrderDependency: 25 AnySetup *Duplex *DefaultDuplex: None *Duplex DuplexTumble: " " *Duplex DuplexNoTumble: " " *Duplex None: " " *CloseUI: *Duplex *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperHL5270DN brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5270DN rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5270DN if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/HL5270DN.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brHL5270DNrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/HL-5270DN' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p HL5270DN -E -v $port -P /usr/share/cups/model/HL5270DN.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperHL5280DW-2.0.10100755000000000000000000004517310610571764023024 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x HL5280DW rm -f /usr/share/cups/model/HL5280DW.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5280DW rm -f /usr/lib64/cups/filter/brlpdwrapperHL5280DW rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x HL5280DW if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterHL5280DW" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/HL5280DW.ppd ppd_file_name=/usr/share/cups/model/HL5280DW.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother HL5280DW for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "HL5280.PPD" *Product: "(Brother HL5280DW series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5280DW" *PSVersion: "(3010.106) 3" *ModelName: "HL5280DW" *NickName: "Brother HL5280DW for CUPS" *ShortNickName: "Brother HL5280DW for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *OpenUI *Duplex: PickOne *OrderDependency: 25 AnySetup *Duplex *DefaultDuplex: None *Duplex DuplexTumble: " " *Duplex DuplexNoTumble: " " *Duplex None: " " *CloseUI: *Duplex *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperHL5280DW brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5280DW rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5280DW if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/HL5280DW.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brHL5280DWrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/HL-5280DW' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p HL5280DW -E -v $port -P /usr/share/cups/model/HL5280DW.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC7220-2.0.10100755000000000000000000004265310610571764022667 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC7220 rm -f /usr/share/cups/model/MFC7220.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC7220 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC7220 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC7220 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC7220" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC7220.ppd ppd_file_name=/usr/share/cups/model/MFC7220.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC7220 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC7220.PPD" *Product: "(Brother MFC7220 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC7220" *PSVersion: "(3010.106) 3" *ModelName: "MFC7220" *NickName: "Brother MFC7220 for CUPS" *ShortNickName: "Brother MFC7220 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC7220 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC7220 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC7220 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC7220.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC7220rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-7220' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC7220 -E -v $port -P /usr/share/cups/model/MFC7220.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC7225N-2.0.10100755000000000000000000004270110610571764023004 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC7225N rm -f /usr/share/cups/model/MFC7225N.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC7225N rm -f /usr/lib64/cups/filter/brlpdwrapperMFC7225N rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC7225N if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC7225N" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC7225N.ppd ppd_file_name=/usr/share/cups/model/MFC7225N.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC7225N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC7225.PPD" *Product: "(Brother MFC7225N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC7225N" *PSVersion: "(3010.106) 3" *ModelName: "MFC7225N" *NickName: "Brother MFC7225N for CUPS" *ShortNickName: "Brother MFC7225N for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC7225N brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC7225N rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC7225N if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC7225N.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC7225Nrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-7225N' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC7225N -E -v $port -P /usr/share/cups/model/MFC7225N.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC7420-2.0.10100755000000000000000000004265310610571764022671 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC7420 rm -f /usr/share/cups/model/MFC7420.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC7420 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC7420 rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC7420 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC7420" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC7420.ppd ppd_file_name=/usr/share/cups/model/MFC7420.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC7420 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC7420.PPD" *Product: "(Brother MFC7420 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC7420" *PSVersion: "(3010.106) 3" *ModelName: "MFC7420" *NickName: "Brother MFC7420 for CUPS" *ShortNickName: "Brother MFC7420 for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC7420 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC7420 rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC7420 if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC7420.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC7420rc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-7420' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC7420 -E -v $port -P /usr/share/cups/model/MFC7420.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC7820N-2.0.10100755000000000000000000004270110610571764023005 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC7820N rm -f /usr/share/cups/model/MFC7820N.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC7820N rm -f /usr/lib64/cups/filter/brlpdwrapperMFC7820N rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC7820N if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC7820N" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC7820N.ppd ppd_file_name=/usr/share/cups/model/MFC7820N.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC7820N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC7820.PPD" *Product: "(Brother MFC7820N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC7820N" *PSVersion: "(3010.106) 3" *ModelName: "MFC7820N" *NickName: "Brother MFC7820N for CUPS" *ShortNickName: "Brother MFC7820N for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: " " *InputSlot TRAY1/Tray1: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 1200x600dpi/HQ1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC7820N brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC7820N rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC7820N if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC7820N.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC7820Nrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-7820N' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC7820N -E -v $port -P /usr/share/cups/model/MFC7820N.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC8460N-2.0.10100755000000000000000000004461710610571764023016 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC8460N rm -f /usr/share/cups/model/MFC8460N.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8460N rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8460N rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC8460N if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC8460N" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC8460N.ppd ppd_file_name=/usr/share/cups/model/MFC8460N.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC8460N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC8460.PPD" *Product: "(Brother MFC8460N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8460N" *PSVersion: "(3010.106) 3" *ModelName: "MFC8460N" *NickName: "Brother MFC8460N for CUPS" *ShortNickName: "Brother MFC8460N for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC8460N brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8460N rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8460N if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC8460N.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC8460Nrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-8460N' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC8460N -E -v $port -P /usr/share/cups/model/MFC8460N.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC8660DN-2.0.10100755000000000000000000004522210610571764023115 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC8660DN rm -f /usr/share/cups/model/MFC8660DN.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8660DN rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8660DN rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC8660DN if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC8660DN" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC8660DN.ppd ppd_file_name=/usr/share/cups/model/MFC8660DN.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC8660DN for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC8660.PPD" *Product: "(Brother MFC8660DN series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8660DN" *PSVersion: "(3010.106) 3" *ModelName: "MFC8660DN" *NickName: "Brother MFC8660DN for CUPS" *ShortNickName: "Brother MFC8660DN for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *OpenUI *Duplex: PickOne *OrderDependency: 25 AnySetup *Duplex *DefaultDuplex: None *Duplex DuplexTumble: " " *Duplex DuplexNoTumble: " " *Duplex None: " " *CloseUI: *Duplex *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC8660DN brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8660DN rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8660DN if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC8660DN.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC8660DNrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-8660DN' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC8660DN -E -v $port -P /usr/share/cups/model/MFC8660DN.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC8860DN-2.0.10100755000000000000000000004522210610571764023117 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC8860DN rm -f /usr/share/cups/model/MFC8860DN.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8860DN rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8860DN rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC8860DN if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC8860DN" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC8860DN.ppd ppd_file_name=/usr/share/cups/model/MFC8860DN.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC8860DN for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC8860.PPD" *Product: "(Brother MFC8860DN series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8860DN" *PSVersion: "(3010.106) 3" *ModelName: "MFC8860DN" *NickName: "Brother MFC8860DN for CUPS" *ShortNickName: "Brother MFC8860DN for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *OpenUI *Duplex: PickOne *OrderDependency: 25 AnySetup *Duplex *DefaultDuplex: None *Duplex DuplexTumble: " " *Duplex DuplexNoTumble: " " *Duplex None: " " *CloseUI: *Duplex *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC8860DN brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8860DN rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8860DN if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC8860DN.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC8860DNrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-8860DN' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC8860DN -E -v $port -P /usr/share/cups/model/MFC8860DN.ppd exit 0 brother-laser-cups-driver-2.0.1-1/scripts/cupswrapperMFC8870DW-2.0.10100755000000000000000000004522210610571764023131 0ustar rootroot#! /bin/sh # # Brother Print filter # Copyright (C) 2005 Brother. Industries, Ltd. # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # if [ "$1" = '-e' ]; then lpadmin -x MFC8870DW rm -f /usr/share/cups/model/MFC8870DW.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8870DW rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8870DW rm -f /usr/local/Brother/cupswrapper/brcupsconfig3 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x MFC8870DW if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi exit 0 fi if [ "$1" = "help" ] || [ "$1" = "-h" ]; then echo 'option -h : help' echo ' -i : install' echo ' -e : uninstall' echo ' -r : remove printer' exit 0 fi mkdir -p /usr/local/Brother/filter mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/lpd/filterMFC8870DW" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/MFC8870DW.ppd ppd_file_name=/usr/share/cups/model/MFC8870DW.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother MFC8870DW for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *Manufacturer: "Brother" *PCFileName: "MFC8870.PPD" *Product: "(Brother MFC8870DW series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8870DW" *PSVersion: "(3010.106) 3" *ModelName: "MFC8870DW" *NickName: "Brother MFC8870DW for CUPS" *ShortNickName: "Brother MFC8870DW for CUPS" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *TTRasterizer: Type42 *ColorDevice: False *DefaultColorSpace: Gray *FileSystem: True *?FileSystem:" save /devname (%disk0%) def /ret false def 0 1 7{ devname exch 48 add 5 exch put devname devstatus { 0 ne {/ret true def}if pop pop pop pop pop pop pop }if }for ret {(True)}{(False)} ifelse = flush restore " *End *Throughput: "18" *FreeVM: "1700000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 2Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *OptionTrays 3Trays/ 3: "" *?OptionTrays:" save <>setpagedevice currentpagedevice/BRFeeder get 1 eq{(2Trays)}{(1Trays)}ifelse = flush restore " *End *CloseUI: *OptionTrays *CloseGroup: InstallableOptions *UIConstraints: *OptionTrays 1Trays *InputSlot Tray2 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 1Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray3 *UIConstraints: *OptionTrays 2Trays *InputSlot Tray4 *UIConstraints: *OptionTrays 3Trays *InputSlot Tray4 *%==== Media Selection ====================== *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: A4 *PageSize Letter/Letter: " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize A4/A4: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvDL/DL: " " *PageSize EnvC5/C5: " " *PageSize EnvISOB5/B5: " " *PageSize EnvISOB6/B6: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: A4 *PageRegion Letter/Letter: " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion A4/A4: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvDL/DL: " " *PageRegion EnvC5/C5: " " *PageRegion EnvISOB5/B5: " " *PageRegion EnvISOB6/B6: " " *CloseUI: *PageRegion *DefaultImageableArea: A4 *ImageableArea Letter/Letter: "18 12 594 780" *ImageableArea Legal/Legal: "18 12 594 996" *ImageableArea Executive/Executive: "18 12 504 744" *ImageableArea A4/A4: "18 12 577 830" *ImageableArea A5/A5: "18 12 403 583" *ImageableArea A6/A6: "18 12 279 408" *ImageableArea Env10/Com-10: "18 12 279 672" *ImageableArea EnvMonarch/Monarch: "18 12 261 528" *ImageableArea EnvDL/DL: "18 12 294 612" *ImageableArea EnvC5/C5: "18 12 441 637" *ImageableArea EnvISOB5/B5: "18 12 463 697" *ImageableArea EnvISOB6/B6: "18 12 336 487" *%==== Information About Media Sizes ======== *DefaultPaperDimension: A4 *PaperDimension Letter/Letter: "612 792" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "297 420" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvDL/DL: "312 624" *PaperDimension EnvC5/C5: "459 649" *PaperDimension EnvISOB5/B5: "499 709" *PaperDimension EnvISOB6/B6: "354 499" *%==== 5.13 Media Handling Features ============================ *OpenUI *BrMediaType/BrMediaType: PickOne *OrderDependency: 28 AnySetup *BrMediaType *DefaultBrMediaType: PLAIN *BrMediaType PLAIN/Plain Paper: " " *BrMediaType THIN/Thin Paper: " " *BrMediaType THICK/Thick Paper: " " *BrMediaType THICKERPAPER2/Thicker Paper: " " *BrMediaType BOND/Bond Paper: " " *BrMediaType TRANSPARENCIES/Transparencies: " " *BrMediaType ENV/Envelopes: " " *BrMediaType ENVTHICK/Env. Thick: " " *BrMediaType ENVTHIN/Env. Thin: " " *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: " " *InputSlot MPTRAY/MP Tray: " " *InputSlot TRAY1/Tray1: " " *InputSlot TRAY2/Tray2: " " *InputSlot TRAY3/Tray3: " " *InputSlot AUTO/Auto Select: " " *CloseUI: *InputSlot *RequiresPageRegion All:True *%=== Duplex ================================ *OpenUI *Duplex: PickOne *OrderDependency: 25 AnySetup *Duplex *DefaultDuplex: None *Duplex DuplexTumble: " " *Duplex DuplexNoTumble: " " *Duplex None: " " *CloseUI: *Duplex *%=== Output Bin ============================= *% === Collate ========== *%==== 5.14 Finishing Features ================================= *%%%%% Resolution and Appearance Control %%%%% *OpenUI *Resolution: PickOne *OrderDependency: 11 AnySetup *Resolution *DefaultResolution: 600dpi *Resolution 300dpi: " " *Resolution 600dpi: " " *Resolution 2400x600dpi/HQ1200dpi: " " *Resolution 1200dpi: " " *CloseUI: *Resolution *OpenUI *TonerSaveMode/Toner Save: PickOne *DefaultTonerSaveMode: Off *OrderDependency: 10 AnySetup *TonerSaveMode *TonerSaveMode Off/Off: "statusdict begin false tonersave end" *TonerSaveMode On/On: "statusdict begin true tonersave end" *CloseUI: *TonerSaveMode *OpenUI *Sleep/Sleep Time [Min.]: PickOne *DefaultSleep: PrinterDefault *OrderDependency: 10 AnySetup *Sleep *Sleep PrinterDefault/Printer Default: "" *Sleep 2minutes/2: "statusdict begin 2 powersavetime end" *Sleep 10minutes/10: "statusdict begin 10 powersavetime end" *Sleep 30minutes/30: "statusdict begin 30 powersavetime end" *CloseUI: *Sleep *%==== 5.20 Font Related Keywords ============================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Special ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Alaska: Standard "(001.005)" Standard ROM *Font AlaskaExtrabold: Standard "(001.005)" Standard ROM *Font AntiqueOakland: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Bold: Standard "(001.005)" Standard ROM *Font AntiqueOakland-Oblique: Standard "(001.005)" Standard ROM *Font ClevelandCondensed: Standard "(001.005)" Standard ROM *Font Connecticut: Standard "(001.005)" Standard ROM *Font Guatemala-Antique: Standard "(001.005)" Standard ROM *Font Guatemala-Bold: Standard "(001.005)" Standard ROM *Font Guatemala-Italic: Standard "(001.005)" Standard ROM *Font Guatemala-BoldItalic: Standard "(001.005)" Standard ROM *Font LetterGothic: Standard "(001.005)" Standard ROM *Font LetterGothic-Bold: Standard "(001.005)" Standard ROM *Font LetterGothic-Oblique: Standard "(001.005)" Standard ROM *Font Maryland: Standard "(001.005)" Standard ROM *Font Oklahoma: Standard "(001.005)" Standard ROM *Font Oklahoma-Bold: Standard "(001.005)" Standard ROM *Font Oklahoma-Oblique: Standard "(001.005)" Standard ROM *Font Oklahoma-BoldOblique: Standard "(001.005)" Standard ROM *Font Utah: Standard "(001.005)" Standard ROM *Font Utah-Bold: Standard "(001.005)" Standard ROM *Font Utah-Oblique: Standard "(001.005)" Standard ROM *Font Utah-BoldOblique: Standard "(001.005)" Standard ROM *Font UtahCondensed: Standard "(001.005)" Standard ROM *Font UtahCondensed-Bold: Standard "(001.005)" Standard ROM *Font UtahCondensed-Oblique: Standard "(001.004)" Standard ROM *Font UtahCondensed-BoldOblique: Standard "(001.005)" Standard ROM *Font BermudaScript: Standard "(001.005)" Standard ROM *Font Germany: Standard "(001.005)" Standard ROM *Font SanDiego: Standard "(001.005)" Standard ROM *Font US-Roman: Standard "(001.005)" Standard ROM *?FontQuery: " save count 1 gt {exch dup dup =string cvs (/) print print (:) print FontDirectory exch known {pop(Yes)} {(fonts/)AppendName exch pop mark exch {}=string filenameforall counttomark 0 gt {cleartomark(Yes)} {cleartomark(No)}ifelse }ifelse = }if (*) = flush restore " *End *?FontList: " save FontDirectory{pop ==}forall (fonts/*) {dup length 6 sub 6 exch getinterval cvn == }=string filenameforall (*) = flush restore " *End ENDOFPPDFILE brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC8870DW brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8870DW rm -f $brotherlpdwrapper cat <$brotherlpdwrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.00 # 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., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA # LOGFILE="/dev/null" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 ENABLECOPY=0 LOG_LATESTONLY=1 errorcode=0 set +o noclobber if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then DEBUG=1 fi if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then DEBUG=2 fi if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then DEBUG=3 fi if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8870DW if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/MFC8870DW.ppd" fi if [ \$LOGFILE != "/dev/null" ]; then if [ \$LOG_LATESTONLY == "1" ]; then rm -f \$LOGFILE date >\$LOGFILE else if [ -e \$LOGFILE ]; then date >>\$LOGFILE else date >\$LOGFILE fi fi echo "arg0 = \$0" >>\$LOGFILE echo "arg1 = \$1" >>\$LOGFILE echo "arg2 = \$2" >>\$LOGFILE echo "arg3 = \$3" >>\$LOGFILE echo "arg4 = \$4" >>\$LOGFILE echo "arg5 = \$5" >>\$LOGFILE echo "arg6 = \$6" >>\$LOGFILE echo "PPD = \$PPD" >>\$LOGFILE fi INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\` nup="cat" if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then if [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then nup="psnup -64" elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then nup="psnup -32" elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then nup="psnup -25" elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then nup="psnup -16" elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then nup="psnup -8" elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then nup="psnup -6" elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then nup="psnup -4" elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then nup="psnup -2" elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then nup="cat" fi echo "NUP=\$nup" >>\$LOGFILE if [ -e /usr/bin/psnup ]; then if [ \$# -ge 7 ]; then cat \$6 | \$nup > \$INPUT_TEMP_PS else cat | \$nup > \$INPUT_TEMP_PS fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi else if [ \$# -ge 7 ]; then cp \$6 \$INPUT_TEMP_PS else cat > \$INPUT_TEMP_PS fi fi if [ "\$ENABLECOPY" != 0 ];then if [ "\$4" -ge 2 ];then options="\$5"" ""Copies=\$4" else options="\$5" fi else options="\$5" fi if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then : else echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi fi rm -f \$INPUT_TEMP_PS exit \$errorcode !ENDOFWFILTER! chmod a+x $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/inf/brMFC8870DWrc chmod a+w /usr/local/Brother/inf if [ -e /etc/init.d/lpd ]; then /etc/init.d/lpd stop fi if [ -e /etc/init.d/lprng ]; then /etc/init.d/lprng stop fi if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart fi if [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/MFC-8870DW' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p MFC8870DW -E -v $port -P /usr/share/cups/model/MFC8870DW.ppd exit 0 brother-laser-cups-driver-2.0.1-1/Copying0100744000000000000000000004365710610570732016735 0ustar rootroot GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. brother-laser-cups-driver-2.0.1-1/brcupsconfig3/0040755000000000000000000000000010610570732020134 5ustar rootrootbrother-laser-cups-driver-2.0.1-1/brcupsconfig3/brcupsconfig.c0100544000000000000000000003643010610601642022761 0ustar rootroot//* Brother CUPS wrapper tool //* Copyright (C) 2005 Brother. Industries, Ltd.//* //* Ver1.00 //* 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., 59 Temple //* Place, Suite 330, Boston, MA 02111-1307 USA //* #include #include #include #include #include "brcups_commands.h" //#include "brcups_setting.h" CMDLINELIST standard_side_commandlinelist[]; int divide_media_token(char *input,char output[5][30]); #if 0 #define DEBUGPRINT(a) fprintf(stderr,a);fflush(stdout) #define DEBUGPRINT1(a1,a2) fprintf(stderr,a1,a2);fflush(stdout) #define DEBUGPRINT2(a1,a2,a3) fprintf(stderr,a1,a2,a3);fflush(stdout) #define DEBUGPRINT3(a1,a2,a3,a4) fprintf(stderr,a1,a2,a3,a4);fflush(stdout) #define DEBUGPRINT4(a1,a2,a3,a4,a5) fprintf(stderr,a1,a2,a3,a4,a5);fflush(stdout) #define DEBUGPRINT5(a1,a2,a3,a4,a5,a6) fprintf(stderr,a1,a2,a3,a4,a5,a6);fflush(stdout) #else #define DEBUGPRINT(a) #define DEBUGPRINT1(a1,a2) #define DEBUGPRINT2(a1,a2,a3) #define DEBUGPRINT3(a1,a2,a3,a4) #define DEBUGPRINT4(a1,a2,a3,a4,a5) #define DEBUGPRINT5(a1,a2,a3,a4,a5,a6) #endif #define SETTINGFILE "/usr/local/Brother/cupswrapper/cupswrapperc" int log_level = 0; typedef struct { char value[50]; char option[50]; } SETCOMMAND; SETCOMMAND command_array[100]; // // local functions // int initialize_command_list(); int add_command_list(char *option,char *command); int add_command_list_brcommand(char *command); int exec_brprintconf(char *brprintconf,char *printer); char *strstr_ex(char *data , char *serch_data); char *delete_ppd_comment(char *line); char *chk_ppd_default_setting_line(char *ppd_line); char *get_token(char *input,char *output); void write_log_file(int level,char *format,...); int main(int argc,char * argv[]) { char *printer; char ppd_line[500],tmp[500],*p_tmp,tmp_n[10],tmp_op[500]; FILE *fp_ppd; char *p; char *commandline,*ppdfile; int i,ii; DEBUGPRINT("main:start\n"); if(argc < 1){ return 0; } printer = argv[1]; if(argc > 2){ ppdfile= argv[2]; } else{ ppdfile=""; } if(argc > 3){ if(argv[3][0] >= '0' && argv[3][0] <= '9'){ log_level = argv[3][0] -'0'; } else{ log_level = 0; } } else{ log_level = 0; } if(argc > 4){ commandline = argv[4]; } else{ commandline = "NULL COMMAND LINE"; } fp_ppd = fopen(ppdfile , "r"); if( fp_ppd == NULL) return 0; initialize_command_list(); //************************************ // set default setting //************************************ DEBUGPRINT("main:set default setting\n"); write_log_file(5,"DEFAULT SETTING\n"); for ( i = 0; default_setting[i] != NULL; i ++){ p = strstr_ex(default_setting[i],"BROTHERPRINTER_XXX"); if(p){ p = strchr(p,'-'); if(p){ add_command_list_brcommand(p); } } } //************************************ // set PPD option //************************************ DEBUGPRINT("main:set PPD option (string)\n"); write_log_file(5,"PPD SETTING\n"); while(fgets(ppd_line,sizeof(ppd_line),fp_ppd)){ if(NULL == delete_ppd_comment(ppd_line))continue; if(NULL == chk_ppd_default_setting_line(ppd_line))continue; //************************************ // set PPD option (string) //************************************ for ( i = 0; ppdcommand_all_list[i]!= NULL; i ++){ //DEBUGPRINT2( "main: set PPD option (string) [%s] [%s]\n", // ppd_line,ppdcommand_all_list[i]->label); p = strstr_ex(ppd_line,ppdcommand_all_list[i]->label); if(p){ //DEBUGPRINT2( "main: set PPD option (string) [%s] [%s]\n", // ppdcommand_all_list[i]->label,ppd_line); for (ii = 0; ppdcommand_all_list[i]->ppdcommandlist[ii].value != NULL; ii++){ //DEBUGPRINT3( "main: set PPD option (string) [%s] [%s] [%s]\n", // ppdcommand_all_list[i]->label,ppdcommand_all_list[i]->ppdcommandlist[ii].value , ppd_line); p = strstr_ex(ppd_line,ppdcommand_all_list[i]->ppdcommandlist[ii].value); if(p){ add_command_list_brcommand(ppdcommand_all_list[i]->ppdcommandlist[ii].brcommand); break; } } } } //************************************ // set PPD option (numerical) //************************************ for ( i = 0; PPDdefaultN[i].option!= NULL; i ++){ strcpy(tmp,PPDdefaultN[i].option); p_tmp = tmp; if(tmp[0] == '^')p_tmp ++; p = strstr_ex(ppd_line,p_tmp); if(p){ //DEBUGPRINT2( "main: set PPD option (numerical) [%s] [%s]\n", // ppd_line,p_tmp); sprintf(tmp,"%s %s",PPDdefaultN[i].value, p + strlen(PPDdefaultN[i].option)); //DEBUGPRINT1("set commandline option(n) ********** : [%s]\n",tmp); get_token(PPDdefaultN[i].value ,tmp_op); get_token(p + strlen(PPDdefaultN[i].option) ,tmp_n); add_command_list(tmp_op,tmp_n); } } } //************************************ // set brother command line option (string) //************************************ DEBUGPRINT("main:set brother command line option (string)\n"); write_log_file(5,"BROTHER COMMAND LINE SETTING(S)\n"); for ( i = 0; commandlinelist[i].value != NULL; i ++){ //DEBUGPRINT2("main:set command line option (string) Loop [%s] [%s]\n", // commandline,commandlinelist[i].value ); p = strstr_ex(commandline,commandlinelist[i].option); if(p){ add_command_list_brcommand(commandlinelist[i].value); } } //************************************ // set brother command line option (string) // PPD // M-LNX-62 //************************************ { char label[300],*p,*str; for ( i = 0; ppdcommand_all_list[i]!= NULL; i ++){ strncpy(label, ppdcommand_all_list[i]->label + sizeof("Default") -1, sizeof(label)); strcat(label , "="); str = label + strlen(label); for (ii = 0; ppdcommand_all_list[i]->ppdcommandlist[ii].value; ii++){ strcpy(str,ppdcommand_all_list[i]->ppdcommandlist[ii].value); p = strstr_ex(commandline,label); if(p){ add_command_list_brcommand( ppdcommand_all_list[i]->ppdcommandlist[ii].brcommand); break; } } } } //************************************ // set cups standard command line option (duplex) //************************************ DEBUGPRINT("main:set standard command line option (duplex)\n"); write_log_file(5,"STANDARD COMMAND LINE SETTING(DUPLEX)\n"); for ( i = 0; standard_side_commandlinelist[i].value != NULL; i ++){ //DEBUGPRINT2("main:set command line option (duplex) Loop [%s] [%s]\n", // commandline,standard_side_commandlinelist[i].option ); p = strstr_ex(commandline,standard_side_commandlinelist[i].option); if(p){ add_command_list_brcommand(standard_side_commandlinelist[i].value); } } //************************************ // set cups standard command line option (media ) //************************************ DEBUGPRINT("main:set standard command line option (media)\n"); write_log_file(5,"STANDARD COMMAND LINE SETTING(MEDIA)\n"); { char output[5][30]; int max; max = divide_media_token(commandline,output); //DEBUGPRINT2("main:set command line option (media) Loop count %d %s \n", // max,commandline); for ( ii=0; ii < max; ii++){ for ( i = 0; standard_media_commandlinelist[i].value != NULL; i ++){ //DEBUGPRINT2("main:set command line option (media) Loop [%s] [%s]\n", // output[ii],standard_media_commandlinelist[i].option); p = strstr_ex(output[ii],standard_media_commandlinelist[i].option); if(p){ add_command_list_brcommand(standard_media_commandlinelist[i].value); } } } } //************************************ // set command line option (numerical) //************************************ DEBUGPRINT("main:set command line option (numerical)\n"); write_log_file(5,"COMMAND LINE SETTING(N)\n"); for(i = 0; commandlinelist2[i].option != NULL; i ++){ p = strstr_ex(commandline,commandlinelist2[i].option); //DEBUGPRINT3("set commandline option(n) : [%s] [%s] [%s]\n" // ,commandline,commandlinelist2[i].option,p); if(p){ //DEBUGPRINT3("set commandline option(n) 1 ********** : [%s] [%s] [%s]\n" // ,tmp_n,p + strlen(commandlinelist2[i].option),p); get_token(commandlinelist2[i].value ,tmp_op); get_token(p + strlen(commandlinelist2[i].option) ,tmp_n); sprintf(tmp,"%s %s",tmp_op,tmp_n ); //DEBUGPRINT2("set commandline option(n) 2 ********** : [%s] [%s]\n" // ,tmp_op,tmp_n); add_command_list(tmp_op,tmp_n); } } //************************************ // call brprintconf //************************************ exec_brprintconf(brprintconf,printer); return 0; } int initialize_command_list(){ int i; char *p; //DEBUGPRINT("initialize_command_list:start\n"); p = (char *)command_array; for ( i = 0; i < sizeof(command_array) ; i ++){ *p = 0; p ++; } return i; } int exec_brprintconf(char *brprintconf,char *printer){ int i; char exec[300]; DEBUGPRINT("exec_brprintconf:start\n"); for ( i = 0; command_array[i].value[0] != 0; i ++ ){ sprintf(exec,"%s -P %s %s %s",brprintconf,printer, command_array[i].option, command_array[i].value); write_log_file(1,"%s\n",exec); system(exec); //DEBUGPRINT1("exec: %s\n",exec); } return 1; } int add_command_list(char *option,char *value){ char *p; int i; //DEBUGPRINT2(" add_command_list:start [%s] [%s]\n",option,value); if(!option || !value || !option[0] || !value[0]){ //DEBUGPRINT2(" add_command_list:start ERROR [%d] [%s]\n",option,value); return 0; } for ( i = 0; command_array[i].option[0] != 0; i ++ ){ //DEBUGPRINT4(" add_command_list:[%s] [%s] [%s] %d\n" // ,command_array[i].value,option,value,i); p = strstr_ex(command_array[i].option , option); if(p){ //DEBUGPRINT2(" add_command_list chg element %s %s\n",option,value); write_log_file(3," C %s %s\n",option,value); strcpy(command_array[i].value, value); break; } } if(command_array[i].option[0] == 0){ //DEBUGPRINT2(" add_command_list add element %s %s\n",option,value); strcpy( command_array[i].option ,option); strcpy( command_array[i].value ,value); write_log_file(3," A %s %s\n",option,value); } return 1; } int add_command_list_brcommand_sub(char *command){ char option[100],*p1,*p2; char value[100]; //DEBUGPRINT1(" add_command_list_brcommand:start %s\n",command); strncpy(option,command,sizeof(option)-1); option[sizeof(option)] = 0; p1 = strchr(option, ' '); p2 = strchr(option, '\t'); if(p1 > p2 && p2 != NULL)p1 = p2; if(p1 == NULL){ return 0; } *p1 = 0; p1 ++; while(*p1 == ' ' || *p1 == '\t') p1 ++; strcpy(value , p1); //DEBUGPRINT2("call add_command_list %s %s",option,value); return add_command_list(option,value); } int add_command_list_brcommand(char *command){ char multi_brcommands[500]; char *p,*start; int i; strcpy(multi_brcommands,command); start = multi_brcommands; while((p = strchr(start+1,'-'))){ if(p > multi_brcommands+1){ if(*(p-1) == ' ' || *(p-1) == '\t'){ *(p-1) = 0; } } add_command_list_brcommand_sub(start); start = p; } add_command_list_brcommand_sub(start); return i; } char *get_next_element(char *data,char *search_word){ char *p; p = strstr(data,search_word); if(!p)return p; p += strlen(search_word); while(*p == ' '|| *p == '\t' || *p == ';' || *p == ':')p++; return p; } char *strstr_ex(char *data , char *search_data){ char *p , *pp; p = strstr(data,search_data); if(!p)return p; pp = p; p += strlen(search_data); if(p > search_data){ if ( ! ((*(p-1) == ' '|| *(p-1) == '\t' || *(p-1) == ';' || *(p-1) == ':' || *(p-1) == 0 || *(p-1) == '\n' || *(p-1) == '*') || *(p-1) == '=' )){ if( ! (*p == ' '|| *p == '\t' || *p == ';' || *p == ':' || *p == 0 || *p == '\n' || *p == '*')) return NULL; } } if(pp > data){ p = pp-1; if( ! (*p == ' '|| *p == '\t' || *p == ';' || *p == ':' || *p == 0 || *p == '\n' || *p == '*')) return NULL; } return pp; } char *delete_ppd_comment(char *line){ char *p; p = strchr(line , '%'); if(p)*p = 0; p = strchr(line , 0x0a); if(p)*p = 0; p = strchr(line , 0x0d); if(p)*p = 0; p = strchr(line , 0x0c); if(p)*p = 0; if(line[0] == 0)return NULL; return line; } char *chk_ppd_default_setting_line(char *ppd_line){ char *p; p=strstr(ppd_line,"*Default"); if(p != ppd_line)return NULL; return p; } char *get_token(char *input,char *output){ char c,*pi,*po; po = output; pi = input; while((c = *pi)){ switch(c){ case ' ': case '\t': case '=': case 0x0d: case 0x0a: case 0x0c: pi++; continue; case 0x00: break; } break; } while((c = *pi)){ switch(c){ case ' ': case '\t': case '=': case 0x0d: case 0x0a: case 0x0c: case 0x00: *po = 0; //DEBUGPRINT2("get_token2A: [%s] [%s] \n", input,output); return output; break; } *po = c; po ++; pi ++; } *po = 0; // DEBUGPRINT2("get_token2B : [%s] [%s] \n", input,output); return output; } //--------------------for debug log------------------- void write_log_file(int level,char *format,...){ char logdata[300]; va_list argp; va_start(argp,format); if(log_level == 0)return; if(level > log_level)return; vsprintf(logdata,format,argp); fputs(logdata , stdout); fflush(stdout); return ; } #define MEDIAEQ "media=" int divide_media_token(char *input,char output[5][30]){ char media_command[100]; char *p,*pp; int i; p = strstr(input,MEDIAEQ); if(p){ strcpy(media_command,p+strlen(MEDIAEQ)); } else{ return 0; } media_command[sizeof(media_command)-1] = 0; media_command[sizeof(media_command)-2] = 0; media_command[sizeof(media_command)-3] = 0; p = strchr(media_command,' '); if(p)*p =0; p = strchr(media_command,'\t'); if(p)*p =0; p = strchr(media_command,'\n'); if(p)*p =0; p = media_command; for (i = 0; i < 5; ){ if(*p == 0)break; pp = strchr(p , ','); if(pp) *pp = 0; strcpy(output[i],p); i ++; if(pp == NULL)break; p = pp+1; } return i; } CMDLINELIST standard_side_commandlinelist[] = { { "sides=two-sided-long-edge" , "-dx ON -dxt LONG" }, { "sides=two-sided-short-edge" , "-dx ON -dxt SHORT" }, { "sides=one-side" , "-dx OFF" }, { NULL , NULL } }; brother-laser-cups-driver-2.0.1-1/brcupsconfig3/brcups_commands.h0100544000000000000000000003224610610601704023461 0ustar rootroot //* Brother CUPS wrapper tool //* Copyright (C) 2005 Brother. Industries, Ltd.//* //* Ver1.00 //* //* 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., 59 Temple //* Place, Suite 330, Boston, MA 02111-1307 USA //* char brprintconf[30]="brprintconflsr2"; // +++++++++++++++++++++++++++ // set default // +++++++++++++++++++++++++++ char *default_setting[] = { "brprintconflsr2 -P BROTHERPRINTER_XXX -res 600" , "brprintconflsr2 -P BROTHERPRINTER_XXX -ps AUTO" , "brprintconflsr2 -P BROTHERPRINTER_XXX -dx OFF" , "brprintconflsr2 -P BROTHERPRINTER_XXX -dxt LONG" , "brprintconflsr2 -P BROTHERPRINTER_XXX -pt A4" , "brprintconflsr2 -P BROTHERPRINTER_XXX -md PLAIN" , "brprintconflsr2 -P BROTHERPRINTER_XXX -cp 1" , "brprintconflsr2 -P BROTHERPRINTER_XXX -sp PRINTER" , "brprintconflsr2 -P BROTHERPRINTER_XXX -ts OFF" , NULL }; typedef struct { char *option; char *value; } CMDLINELIST; // +++++++++++++++++++++++++++ // command line (Brother command) // +++++++++++++++++++++++++++ CMDLINELIST commandlinelist[] = { { "Resolution=300" , "-res 300" }, { "Resolution=600" , "-res 600" }, { "Resolution=1200" , "-res 1200" }, { "Resolution=HQ1200" , "-res HQ1200" }, { "PaperSource=Manual" , "-ps MANUAL" }, { "PaperSource=MPTray" , "-ps MP" }, { "PaperSource=Tray1" , "-ps T1" }, { "PaperSource=Tray2" , "-ps T2" }, { "PaperSource=Tray3" , "-ps T3" }, { "PaperSource=AutoSelect" , "-ps AUTO" }, { "Duplex=Simplex" , "-dx OFF" }, { "Duplex=Duplex" , "-dx ON" }, { "DuplexType=Long" , "-dx ON -dxt LONG" }, { "DuplexType=Short" , "-dx ON -dxt SHORT" }, { "PaperType=A4" , "-pt A4" }, { "PaperType=Letter" , "-pt LT" }, { "PaperType=Legal" , "-pt LGL" }, { "PaperType=Exective" , "-pt EXE" }, { "PaperType=Executive" , "-pt EXE" }, { "PaperType=A5" , "-pt A5" }, { "PaperType=A6" , "-pt A6" }, { "PaperType=B5" , "-pt B5" }, { "PaperType=B6" , "-pt B6" }, { "PaperType=C5" , "-pt C5" }, { "PaperType=EnvC5" , "-pt C5" }, { "PaperType=DL" , "-pt DL" }, { "PaperType=EnvDL" , "-pt DL" }, { "PaperType=Com10" , "-pt COM-10" }, { "PaperType=COM10" , "-pt COM-10" }, { "PaperType=Com-10" , "-pt COM-10" }, { "PaperType=COM-10" , "-pt COM-10" }, { "PaperType=EnvCOM10" , "-pt COM-10" }, { "PaperType=Env10" , "-pt COM-10" }, { "PaperType=Monarch" , "-pt MONARCH" }, { "PaperType=EnvMonarch" , "-pt MONARCH" }, { "Media=PlainPaper" , "-md PLAIN" }, { "Media=ThinPaper" , "-md THIN" }, { "Media=ThickPaper" , "-md THICK" }, { "Media=ThickerPaper" , "-md THICKER" }, { "Media=BondPaper" , "-md BOND" }, { "Media=Transparencies" , "-md TRANS" }, { "Media=Envelopes" , "-md ENV" }, { "Media=Env.Thick" , "-md ENV-THICK" }, { "Media=Env.Thin" , "-md ENV-THIN" }, { "Sleep=PrinterDefault" , "-sp PRINTER" }, { NULL , NULL }, }; // +++++++++++++++++++++++++++ // command line (Standard command) // +++++++++++++++++++++++++++ CMDLINELIST standard_commandlinelist[] = { { "media=A4" , "-pt A4" }, { "media=Letter" , "-pt LT" }, { "media=Legal" , "-pt LGL" }, { "media=Exective" , "-pt EXE" }, { "media=Executive" , "-pt EXE" }, { "media=A5" , "-pt A5" }, { "media=A6" , "-pt A6" }, { "media=B5" , "-pt B5" }, { "media=B6" , "-pt B6" }, { "media=C5" , "-pt C5" }, { "media=EnvC5" , "-pt C5" }, { "media=DL" , "-pt DL" }, { "media=EnvDL" , "-pt DL" }, { "media=Com10" , "-pt COM-10" }, { "media=COM10" , "-pt COM-10" }, { "media=Com-10" , "-pt COM-10" }, { "media=COM-10" , "-pt COM-10" }, { "media=EnvCOM10" , "-pt COM-10" }, { "media=Env10" , "-pt COM-10" }, { "media=Monarch" , "-pt MONARCH" }, { "media=EnvMonarch" , "-pt MONARCH" }, { "media=PlainPaper" , "-md PLAIN" }, { "media=ThinPaper" , "-md THIN" }, { "media=ThickPaper" , "-md THICK" }, { "media=ThickerPaper" , "-md THICKER" }, { "media=BondPaper" , "-md BOND" }, { "media=Transparencies" , "-md TRANS" }, { "media=Envelopes" , "-md ENV" }, { "media=Env.Thick" , "-md ENV-THICK" }, { "media=Env.Thin" , "-md ENV-THIN" }, { "media=Manual" , "-ps MANUAL" }, { "media=MPTray" , "-ps MP" }, { "media=Tray1" , "-ps T1" }, { "media=Tray2" , "-ps T2" }, { "media=Tray3" , "-ps T3" }, { "media=AutoSelect" , "-ps AUTO" }, { "media=.*,A4" , "-pt A4" }, { "media=.*,Letter" , "-pt LT" }, { "media=.*,Legal" , "-pt LGL" }, { "media=.*,Exective" , "-pt EXE" }, { "media=.*,Executive" , "-pt EXE" }, { "media=.*,A5" , "-pt A5" }, { "media=.*,A6" , "-pt A6" }, { "media=.*,B5" , "-pt B5" }, { "media=.*,B6" , "-pt B6" }, { "media=.*,C5" , "-pt C5" }, { "media=.*,EnvC5" , "-pt C5" }, { "media=.*,DL" , "-pt DL" }, { "media=.*,EnvDL" , "-pt DL" }, { "media=.*,Com10" , "-pt COM-10" }, { "media=.*,COM10" , "-pt COM-10" }, { "media=.*,Com-10" , "-pt COM-10" }, { "media=.*,COM-10" , "-pt COM-10" }, { "media=.*,EnvCOM10" , "-pt COM-10" }, { "media=.*,Env10" , "-pt COM-10" }, { "media=.*,Monarch" , "-pt MONARCH" }, { "media=.*,EnvMonarch" , "-pt MONARCH" }, { "media=.*,PlainPaper" , "-md PLAIN" }, { "media=.*,ThinPaper" , "-md THIN" }, { "media=.*,ThickPaper" , "-md THICK" }, { "media=.*,ThickerPaper" , "-md THICKER" }, { "media=.*,BondPaper" , "-md BOND" }, { "media=.*,Transparencies" , "-md TRANS" }, { "media=.*,Envelopes" , "-md ENV" }, { "media=.*,Env.Thick" , "-md ENV-THICK" }, { "media=.*,Env.Thin" , "-md ENV-THIN" }, { "media=.*,Manual" , "-ps MANUAL" }, { "media=.*,MPTray" , "-ps MP" }, { "media=.*,Tray1" , "-ps T1" }, { "media=.*,Tray2" , "-ps T2" }, { "media=.*,Tray3" , "-ps T3" }, { "media=.*,AutoSelect" , "-ps AUTO" }, { "sides=sides=two-sided-long-edge" , "-dx ON -dxt LONG" }, { "sides=sides=two-sided-short-edge" , "-dx ON -dxt SHORT" }, { "sides=sides=one-side" , "-dx OFF" }, { NULL , NULL }, }; // +++++++++++++++++++++++++++ // command line numerical value // +++++++++++++++++++++++++++ CMDLINELIST commandlinelist2[] = { { "Copies=" , "-cp " }, { "Sleep=" , "-sp " }, { "TonerSaveMode=" , "-ts " }, { NULL , NULL }, }; /* PPD Default */ // +++++++++++++++++++++++++++ // PPD setting list // +++++++++++++++++++++++++++ typedef struct { char *value; char *brcommand; } PPDCOMMANDLIST; typedef struct { char *label; PPDCOMMANDLIST ppdcommandlist[]; } PPDCOMMAND; // ***** DefaultResolution ***** PPDCOMMAND DefaultResolution={ "DefaultResolution", { { "300dpi" , "-res 300" }, { "600dpi" , "-res 600" }, { "1200dpi" , "-res 1200" }, { "HQ1200dpi" , "-res HQ1200" }, { "1200x600dpi" , "-res HQ1200" }, { "2400x600dpi" , "-res HQ1200" }, { NULL , NULL } } }; // ***** DefaultPageSize ***** PPDCOMMAND DefaultPageSize={ "DefaultPageSize", { { "A4" , "-pt A4" }, { "Letter" , "-pt LT" }, { "Legal" , "-pt LGL" }, { "Executive" , "-pt EXE" }, { "A5" , "-pt A5" }, { "A6" , "-pt A6" }, { "B5" , "-pt B5" }, { "EnvISOB5" , "-pt B5" }, { "B6" , "-pt B6" }, { "EnvISOB6" , "-pt B6" }, { "C5" , "-pt C5" }, { "EnvC5" , "-pt C5" }, { "DL" , "-pt DL" }, { "EnvDL" , "-pt DL" }, { "Env10" , "-pt COM-10" }, { "EnvMonarch" , "-pt MONARCH" }, { NULL , NULL } } }; // ***** DefaultBrMediaType ***** PPDCOMMAND DefaultBrMediaType={ "DefaultBrMediaType", { { "PLAIN" , "-md PLAIN" }, { "THIN" , "-md THIN" }, { "THICK" , "-md THICK" }, { "THICKERPAPER2" , "-md THICKER" }, { "BOND" , "-md BOND" }, { "TRANSPARENCIES" , "-md TRANS" }, { "ENV" , "-md ENV" }, { "ENVTHICK" , "-md ENV-THICK" }, { "ENVTHIN" , "-md ENV-THIN" }, { NULL , NULL } } }; // ***** DefaultInputSlot ***** PPDCOMMAND DefaultInputSlot={ "DefaultInputSlot", { { "MANUAL" , "-ps MANUAL" }, { "MPTRAY" , "-ps MP" }, { "TRAY1" , "-ps T1" }, { "TRAY2" , "-ps T2" }, { "TRAY3" , "-ps T3" }, { "AUTO" , "-ps AUTO" }, { NULL , NULL } } }; // ***** DefaultDuplex ***** PPDCOMMAND DefaultDuplex={ "DefaultDuplex", { { "DuplexTumble" , "-dx ON -dxt LONG" }, { "DuplexNoTumble" , "-dx ON -dxt SHORT" }, { "None" , "-dx OFF" }, { NULL , NULL } } }; // ***** DefaultTonerSaveMode ***** PPDCOMMAND DefaultTonerSaveMode={ "DefaultTonerSaveMode", { { "Off" , "-ts OFF" }, { "On" , "-ts ON" }, { NULL , NULL } } }; // ***** DefaultSleep ***** PPDCOMMAND DefaultSleep={ "DefaultSleep", { { "PrinterDefault" , "-sp PRINTER" }, { "2minutes" , "-sp 2" }, { "10minutes" , "-sp 10" }, { "30minutes" , "-sp 30" }, { NULL , NULL } } }; PPDCOMMAND *ppdcommand_all_list[] = { &DefaultResolution, &DefaultPageSize, &DefaultBrMediaType, &DefaultInputSlot, &DefaultDuplex, &DefaultTonerSaveMode, &DefaultSleep, NULL }; /* PPD Default end*/ // +++++++++++++++++++++++++++ // PPD numerical value // +++++++++++++++++++++++++++ CMDLINELIST PPDdefaultN[] = { { NULL , NULL }, }; // +++++++++++++++++++++++++++ // command line (Standard command) // +++++++++++++++++++++++++++ CMDLINELIST standard_media_commandlinelist[] = { { "A4" , "-pt A4" }, { "Letter" , "-pt LT" }, { "Legal" , "-pt LGL" }, { "Exective" , "-pt EXE" }, { "Executive" , "-pt EXE" }, { "A5" , "-pt A5" }, { "A6" , "-pt A6" }, { "B5" , "-pt B5" }, { "B6" , "-pt B6" }, { "C5" , "-pt C5" }, { "EnvC5" , "-pt C5" }, { "DL" , "-pt DL" }, { "EnvDL" , "-pt DL" }, { "Com10" , "-pt COM-10" }, { "COM10" , "-pt COM-10" }, { "Com-10" , "-pt COM-10" }, { "COM-10" , "-pt COM-10" }, { "EnvCOM10" , "-pt COM-10" }, { "Env10" , "-pt COM-10" }, { "Monarch" , "-pt MONARCH" }, { "EnvMonarch" , "-pt MONARCH" }, { "PlainPaper" , "-md PLAIN" }, { "ThinPaper" , "-md THIN" }, { "ThickPaper" , "-md THICK" }, { "ThickerPaper" , "-md THICKER" }, { "BondPaper" , "-md BOND" }, { "Transparencies" , "-md TRANS" }, { "Envelopes" , "-md ENV" }, { "Env.Thick" , "-md ENV-THICK" }, { "Env.Thin" , "-md ENV-THIN" }, { "Manual" , "-ps MANUAL" }, { "MPTray" , "-ps MP" }, { "Tray1" , "-ps T1" }, { "Tray2" , "-ps T2" }, { "Tray3" , "-ps T3" }, { "AutoSelect" , "-ps AUTO" }, { NULL , NULL } };