SRC/Copying0100744000000000000000000004365710262363621011560 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. SRC/PARTS/0040755000000000000000000000000010262365300011075 5ustar rootrootSRC/PARTS/cupswrapperDCP1000-1.0.20100644000000000000000000003675110262363160014672 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 DCP1000 rm -f /usr/share/cups/model/brdcp1000_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP1000 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP1000 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 DCP1000 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/filterDCP1000" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brdcp1000_cups.ppd ppd_file_name=/usr/share/cups/model/brdcp1000_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother DCP-1000 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRDCP1000_CUPS.PPD" *Product: "(Brother DCP-1000 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 37 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP1000" *PSVersion: "(3010.106) 3" *ModelName: "DCP-1000" *NickName: "Brother DCP-1000 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperDCP1000 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP1000 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperDCP1000' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP1000 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brdcp1000_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brDCP1000rc 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 lpadmin -p DCP1000 -E -v usb:/dev/usb/lp0 -m brdcp1000_cups.ppd exit 0 SRC/PARTS/cupswrapperDCP1400-1.0.20100644000000000000000000003716010262363160014671 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 DCP1400 rm -f /usr/share/cups/model/brdcp1400_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP1400 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP1400 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 DCP1400 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/filterDCP1400" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brdcp1400_cups.ppd ppd_file_name=/usr/share/cups/model/brdcp1400_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother DCP-1400 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRDCP1400_CUPS.PPD" *Product: "(Brother DCP-1400 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 40 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP1400" *PSVersion: "(3010.106) 3" *ModelName: "DCP-1400" *NickName: "Brother DCP-1400 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperDCP1400 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP1400 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperDCP1400' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP1400 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brdcp1400_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brDCP1400rc 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 lpadmin -p DCP1400 -E -v usb:/dev/usb/lp0 -m brdcp1400_cups.ppd exit 0 SRC/PARTS/cupswrapperDCP8020-1.0.20100644000000000000000000004060410262363160014673 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 DCP8020 rm -f /usr/share/cups/model/brdcp8020_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP8020 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP8020 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 DCP8020 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/filterDCP8020" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brdcp8020_cups.ppd ppd_file_name=/usr/share/cups/model/brdcp8020_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother DCP-8020 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRDCP8020_CUPS.PPD" *Product: "(Brother DCP-8020 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 75 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP8020" *PSVersion: "(3010.106) 3" *ModelName: "DCP-8020" *NickName: "Brother DCP-8020 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperDCP8020 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP8020 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperDCP8020' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP8020 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brdcp8020_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brDCP8020rc 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 lpadmin -p DCP8020 -E -v usb:/dev/usb/lp0 -m brdcp8020_cups.ppd exit 0 SRC/PARTS/cupswrapperDCP8025D-1.0.20100644000000000000000000004107410262363160015006 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 DCP8025D rm -f /usr/share/cups/model/brdcp8025d_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP8025D rm -f /usr/lib64/cups/filter/brlpdwrapperDCP8025D rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 DCP8025D 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/filterDCP8025D" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brdcp8025d_cups.ppd ppd_file_name=/usr/share/cups/model/brdcp8025d_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother DCP-8025D for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRDCP8025D_CUPS.PPD" *Product: "(Brother DCP-8025D series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 76 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP8025D" *PSVersion: "(3010.106) 3" *ModelName: "DCP-8025D" *NickName: "Brother DCP-8025D 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperDCP8025D brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP8025D rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperDCP8025D' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP8025D PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brdcp8025d_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brDCP8025Drc 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 lpadmin -p DCP8025D -E -v usb:/dev/usb/lp0 -m brdcp8025d_cups.ppd exit 0 SRC/PARTS/cupswrapperDCP8040-1.0.20100644000000000000000000004060410262363160014675 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 DCP8040 rm -f /usr/share/cups/model/brdcp8040_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP8040 rm -f /usr/lib64/cups/filter/brlpdwrapperDCP8040 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 DCP8040 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/filterDCP8040" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brdcp8040_cups.ppd ppd_file_name=/usr/share/cups/model/brdcp8040_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother DCP-8040 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRDCP8040_CUPS.PPD" *Product: "(Brother DCP-8040 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 75 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP8040" *PSVersion: "(3010.106) 3" *ModelName: "DCP-8040" *NickName: "Brother DCP-8040 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperDCP8040 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP8040 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperDCP8040' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP8040 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brdcp8040_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brDCP8040rc 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 lpadmin -p DCP8040 -E -v usb:/dev/usb/lp0 -m brdcp8040_cups.ppd exit 0 SRC/PARTS/cupswrapperDCP8045D-1.0.20100644000000000000000000004107410262363160015010 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 DCP8045D rm -f /usr/share/cups/model/brdcp8045d_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperDCP8045D rm -f /usr/lib64/cups/filter/brlpdwrapperDCP8045D rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 DCP8045D 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/filterDCP8045D" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brdcp8045d_cups.ppd ppd_file_name=/usr/share/cups/model/brdcp8045d_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother DCP-8045D for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRDCP8045D_CUPS.PPD" *Product: "(Brother DCP-8045D series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 76 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperDCP8045D" *PSVersion: "(3010.106) 3" *ModelName: "DCP-8045D" *NickName: "Brother DCP-8045D 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperDCP8045D brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperDCP8045D rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperDCP8045D' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=DCP8045D PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brdcp8045d_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brDCP8045Drc 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 lpadmin -p DCP8045D -E -v usb:/dev/usb/lp0 -m brdcp8045d_cups.ppd exit 0 SRC/PARTS/cupswrapperFAX2850-1.0.20100644000000000000000000003675110262363160014720 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 FAX2850 rm -f /usr/share/cups/model/brfax2850_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX2850 rm -f /usr/lib64/cups/filter/brlpdwrapperFAX2850 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 FAX2850 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/filterFAX2850" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brfax2850_cups.ppd ppd_file_name=/usr/share/cups/model/brfax2850_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother FAX-2850 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRFAX2850_CUPS.PPD" *Product: "(Brother FAX-2850 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 49 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX2850" *PSVersion: "(3010.106) 3" *ModelName: "FAX-2850" *NickName: "Brother FAX-2850 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperFAX2850 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX2850 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperFAX2850' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX2850 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brfax2850_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brFAX2850rc 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 lpadmin -p FAX2850 -E -v usb:/dev/usb/lp0 -m brfax2850_cups.ppd exit 0 SRC/PARTS/cupswrapperFAX2900-1.0.20100644000000000000000000003675110262363160014714 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 FAX2900 rm -f /usr/share/cups/model/brfax2900_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX2900 rm -f /usr/lib64/cups/filter/brlpdwrapperFAX2900 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 FAX2900 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/filterFAX2900" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brfax2900_cups.ppd ppd_file_name=/usr/share/cups/model/brfax2900_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother FAX-2900 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRFAX2900_CUPS.PPD" *Product: "(Brother FAX-2900 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 54 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX2900" *PSVersion: "(3010.106) 3" *ModelName: "FAX-2900" *NickName: "Brother FAX-2900 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperFAX2900 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX2900 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperFAX2900' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX2900 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brfax2900_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brFAX2900rc 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 lpadmin -p FAX2900 -E -v usb:/dev/usb/lp0 -m brfax2900_cups.ppd exit 0 SRC/PARTS/cupswrapperFAX3800-1.0.20100644000000000000000000003675110262363160014714 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 FAX3800 rm -f /usr/share/cups/model/brfax3800_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX3800 rm -f /usr/lib64/cups/filter/brlpdwrapperFAX3800 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 FAX3800 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/filterFAX3800" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brfax3800_cups.ppd ppd_file_name=/usr/share/cups/model/brfax3800_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother FAX-3800 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRFAX3800_CUPS.PPD" *Product: "(Brother FAX-3800 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 55 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX3800" *PSVersion: "(3010.106) 3" *ModelName: "FAX-3800" *NickName: "Brother FAX-3800 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperFAX3800 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX3800 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperFAX3800' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX3800 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brfax3800_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brFAX3800rc 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 lpadmin -p FAX3800 -E -v usb:/dev/usb/lp0 -m brfax3800_cups.ppd exit 0 SRC/PARTS/cupswrapperFAX4100-1.0.20100644000000000000000000003716010262363160014701 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 FAX4100 rm -f /usr/share/cups/model/brfax4100_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX4100 rm -f /usr/lib64/cups/filter/brlpdwrapperFAX4100 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 FAX4100 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/filterFAX4100" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brfax4100_cups.ppd ppd_file_name=/usr/share/cups/model/brfax4100_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother FAX-4100 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRFAX4100_CUPS.PPD" *Product: "(Brother FAX-4100 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 57 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX4100" *PSVersion: "(3010.106) 3" *ModelName: "FAX-4100" *NickName: "Brother FAX-4100 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperFAX4100 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX4100 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperFAX4100' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX4100 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brfax4100_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brFAX4100rc 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 lpadmin -p FAX4100 -E -v usb:/dev/usb/lp0 -m brfax4100_cups.ppd exit 0 SRC/PARTS/cupswrapperFAX4750E-1.0.20100644000000000000000000003720610262363160015022 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 FAX4750E rm -f /usr/share/cups/model/brfax4750e_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX4750E rm -f /usr/lib64/cups/filter/brlpdwrapperFAX4750E rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 FAX4750E 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/filterFAX4750E" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brfax4750e_cups.ppd ppd_file_name=/usr/share/cups/model/brfax4750e_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother FAX-4750E for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRFAX4750E_CUPS.PPD" *Product: "(Brother FAX-4750E series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 58 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX4750E" *PSVersion: "(3010.106) 3" *ModelName: "FAX-4750E" *NickName: "Brother FAX-4750E 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperFAX4750E brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX4750E rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperFAX4750E' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX4750E PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brfax4750e_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brFAX4750Erc 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 lpadmin -p FAX4750E -E -v usb:/dev/usb/lp0 -m brfax4750e_cups.ppd exit 0 SRC/PARTS/cupswrapperFAX5750E-1.0.20100644000000000000000000003720610262363160015023 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 FAX5750E rm -f /usr/share/cups/model/brfax5750e_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperFAX5750E rm -f /usr/lib64/cups/filter/brlpdwrapperFAX5750E rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 FAX5750E 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/filterFAX5750E" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brfax5750e_cups.ppd ppd_file_name=/usr/share/cups/model/brfax5750e_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother FAX-5750E for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRFAX5750E_CUPS.PPD" *Product: "(Brother FAX-5750E series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 59 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperFAX5750E" *PSVersion: "(3010.106) 3" *ModelName: "FAX-5750E" *NickName: "Brother FAX-5750E 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperFAX5750E brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperFAX5750E rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperFAX5750E' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=FAX5750E PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brfax5750e_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brFAX5750Erc 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 lpadmin -p FAX5750E -E -v usb:/dev/usb/lp0 -m brfax5750e_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1030-1.0.20100644000000000000000000003751710262363160014573 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 HL1030 rm -f /usr/share/cups/model/brhl1030_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1030 rm -f /usr/lib64/cups/filter/brlpdwrapperHL1030 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1030 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/filterHL1030" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1030_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1030_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1030 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1030_CUPS.PPD" *Product: "(Brother HL-1030 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 79 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1030" *PSVersion: "(3010.106) 3" *ModelName: "HL-1030" *NickName: "Brother HL-1030 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1030 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1030 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1030' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1030 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1030_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1030rc 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 lpadmin -p HL1030 -E -v usb:/dev/usb/lp0 -m brhl1030_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1230-1.0.20100644000000000000000000003751710262363160014575 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 HL1230 rm -f /usr/share/cups/model/brhl1230_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1230 rm -f /usr/lib64/cups/filter/brlpdwrapperHL1230 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1230 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/filterHL1230" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1230_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1230_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1230 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1230_CUPS.PPD" *Product: "(Brother HL-1230 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 80 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1230" *PSVersion: "(3010.106) 3" *ModelName: "HL-1230" *NickName: "Brother HL-1230 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1230 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1230 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1230' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1230 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1230_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1230rc 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 lpadmin -p HL1230 -E -v usb:/dev/usb/lp0 -m brhl1230_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1240-1.0.20100644000000000000000000004074710262363160014575 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 HL1240 rm -f /usr/share/cups/model/brhl1240_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1240 rm -f /usr/lib64/cups/filter/brlpdwrapperHL1240 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1240 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/filterHL1240" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1240_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1240_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1240 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1240_CUPS.PPD" *Product: "(Brother HL-1240 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 1 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1240" *PSVersion: "(3010.106) 3" *ModelName: "HL-1240" *NickName: "Brother HL-1240 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: "14" *FreeVM: "1002000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 1Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *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 *UIConstraints: *Resolution 1200dpi *TonerSaveMode On *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1240 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1240 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1240' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1240 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1240_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1240rc 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 lpadmin -p HL1240 -E -v usb:/dev/usb/lp0 -m brhl1240_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1250-1.0.20100644000000000000000000004074710262363160014576 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 HL1250 rm -f /usr/share/cups/model/brhl1250_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1250 rm -f /usr/lib64/cups/filter/brlpdwrapperHL1250 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1250 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/filterHL1250" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1250_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1250_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1250 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1250_CUPS.PPD" *Product: "(Brother HL-1250 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 2 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1250" *PSVersion: "(3010.106) 3" *ModelName: "HL-1250" *NickName: "Brother HL-1250 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: "14" *FreeVM: "1002000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 1Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *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 *UIConstraints: *Resolution 1200dpi *TonerSaveMode On *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1250 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1250 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1250' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1250 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1250_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1250rc 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 lpadmin -p HL1250 -E -v usb:/dev/usb/lp0 -m brhl1250_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1270N-1.0.20100644000000000000000000004077510262363160014717 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 HL1270N rm -f /usr/share/cups/model/brhl1270n_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1270N rm -f /usr/lib64/cups/filter/brlpdwrapperHL1270N rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1270N 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/filterHL1270N" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1270n_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1270n_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1270N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1270N_CUPS.PPD" *Product: "(Brother HL-1270N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 3 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1270N" *PSVersion: "(3010.106) 3" *ModelName: "HL-1270N" *NickName: "Brother HL-1270N 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: "14" *FreeVM: "1002000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 1Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *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 *UIConstraints: *Resolution 1200dpi *TonerSaveMode On *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1270N brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1270N rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1270N' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1270N PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1270n_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1270Nrc 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 lpadmin -p HL1270N -E -v usb:/dev/usb/lp0 -m brhl1270n_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1430-1.0.20100644000000000000000000003751710262363160014577 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 HL1430 rm -f /usr/share/cups/model/brhl1430_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1430 rm -f /usr/lib64/cups/filter/brlpdwrapperHL1430 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1430 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/filterHL1430" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1430_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1430_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1430 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1430_CUPS.PPD" *Product: "(Brother HL-1430 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 77 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1430" *PSVersion: "(3010.106) 3" *ModelName: "HL-1430" *NickName: "Brother HL-1430 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1430 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1430 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1430' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1430 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1430_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1430rc 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 lpadmin -p HL1430 -E -v usb:/dev/usb/lp0 -m brhl1430_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1440-1.0.20100644000000000000000000003751710262363160014600 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 HL1440 rm -f /usr/share/cups/model/brhl1440_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1440 rm -f /usr/lib64/cups/filter/brlpdwrapperHL1440 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1440 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/filterHL1440" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1440_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1440_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1440 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1440_CUPS.PPD" *Product: "(Brother HL-1440 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 30 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1440" *PSVersion: "(3010.106) 3" *ModelName: "HL-1440" *NickName: "Brother HL-1440 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1440 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1440 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1440' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1440 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1440_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1440rc 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 lpadmin -p HL1440 -E -v usb:/dev/usb/lp0 -m brhl1440_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1450-1.0.20100644000000000000000000004075010262363160014572 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 HL1450 rm -f /usr/share/cups/model/brhl1450_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1450 rm -f /usr/lib64/cups/filter/brlpdwrapperHL1450 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1450 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/filterHL1450" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1450_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1450_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1450 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1450_CUPS.PPD" *Product: "(Brother HL-1450 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 31 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1450" *PSVersion: "(3010.106) 3" *ModelName: "HL-1450" *NickName: "Brother HL-1450 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: "14" *FreeVM: "1002000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 1Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *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 *UIConstraints: *Resolution 1200dpi *TonerSaveMode On *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1450 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1450 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1450' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1450 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1450_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1450rc 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 lpadmin -p HL1450 -E -v usb:/dev/usb/lp0 -m brhl1450_cups.ppd exit 0 SRC/PARTS/cupswrapperHL1470N-1.0.20100644000000000000000000004077610262363160014722 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 HL1470N rm -f /usr/share/cups/model/brhl1470n_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL1470N rm -f /usr/lib64/cups/filter/brlpdwrapperHL1470N rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL1470N 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/filterHL1470N" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl1470n_cups.ppd ppd_file_name=/usr/share/cups/model/brhl1470n_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1470N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL1470N_CUPS.PPD" *Product: "(Brother HL-1470N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 32 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL1470N" *PSVersion: "(3010.106) 3" *ModelName: "HL-1470N" *NickName: "Brother HL-1470N 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: "14" *FreeVM: "1002000" *%==== Installable Options =================== *OpenGroup: InstallableOptions/Options Installed *OpenUI *OptionTrays/Number of Input Trays: PickOne *DefaultOptionTrays: 1Trays *OptionTrays 1Trays/ 1: "" *OptionTrays 2Trays/ 2: "" *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 *UIConstraints: *Resolution 1200dpi *TonerSaveMode On *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL1470N brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL1470N rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL1470N' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL1470N PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl1470n_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL1470Nrc 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 lpadmin -p HL1470N -E -v usb:/dev/usb/lp0 -m brhl1470n_cups.ppd exit 0 SRC/PARTS/cupswrapperHL16_2-1.0.20100644000000000000000000004141510262363160014647 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 HL16_2 rm -f /usr/share/cups/model/brhl16_2_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL16_2 rm -f /usr/lib64/cups/filter/brlpdwrapperHL16_2 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL16_2 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/filterHL16_2" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl16_2_cups.ppd ppd_file_name=/usr/share/cups/model/brhl16_2_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1650/70N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL16_2_CUPS.PPD" *Product: "(Brother HL-1650_1670N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 29 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL16_2" *PSVersion: "(3010.106) 3" *ModelName: "HL-1650/70N" *NickName: "Brother HL-1650/70N 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:" 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: *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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL16_2 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL16_2 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL16_2' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL16_2 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl16_2_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL16_2rc 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 lpadmin -p HL16_2 -E -v usb:/dev/usb/lp0 -m brhl16_2_cups.ppd exit 0 SRC/PARTS/cupswrapperHL18_2-1.0.20100644000000000000000000004155310262363160014654 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 HL18_2 rm -f /usr/share/cups/model/brhl18_2_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL18_2 rm -f /usr/lib64/cups/filter/brlpdwrapperHL18_2 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL18_2 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/filterHL18_2" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl18_2_cups.ppd ppd_file_name=/usr/share/cups/model/brhl18_2_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-1850/70N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL18_2_CUPS.PPD" *Product: "(Brother HL-1850_1870N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL18_2" *PSVersion: "(3010.106) 3" *ModelName: "HL-1850/70N" *NickName: "Brother HL-1850/70N 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL18_2 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL18_2 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL18_2' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL18_2 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl18_2_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL18_2rc 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 lpadmin -p HL18_2 -E -v usb:/dev/usb/lp0 -m brhl18_2_cups.ppd exit 0 SRC/PARTS/cupswrapperHL2030-1.0.20100644000000000000000000003765710262363160014601 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/brhl2030_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL2030 rm -f /usr/lib64/cups/filter/brlpdwrapperHL2030 rm -f /usr/local/Brother/cupswrapper/brcupsconfig2 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/brhl2030_cups.ppd ppd_file_name=/usr/share/cups/model/brhl2030_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-2030 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL2030_CUPS.PPD" *Product: "(Brother HL-2030 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL2030" *PSVersion: "(3010.106) 3" *ModelName: "HL-2030" *NickName: "Brother HL-2030 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 *DefaultOutputBin: OnlyOne *%=== 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: *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 echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL2030' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL2030 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl2030_cups.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 [ -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/brcupsconfig2" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig2 \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig2 \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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 lpadmin -p HL2030 -E -v usb:/dev/usb/lp0 -m brhl2030_cups.ppd exit 0 SRC/PARTS/cupswrapperHL2040-1.0.20100644000000000000000000003765710262363160014602 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/brhl2040_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL2040 rm -f /usr/lib64/cups/filter/brlpdwrapperHL2040 rm -f /usr/local/Brother/cupswrapper/brcupsconfig2 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/brhl2040_cups.ppd ppd_file_name=/usr/share/cups/model/brhl2040_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-2040 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL2040_CUPS.PPD" *Product: "(Brother HL-2040 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL2040" *PSVersion: "(3010.106) 3" *ModelName: "HL-2040" *NickName: "Brother HL-2040 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 *DefaultOutputBin: OnlyOne *%=== 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: *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 echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL2040' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL2040 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl2040_cups.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 [ -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/brcupsconfig2" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig2 \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig2 \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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 lpadmin -p HL2040 -E -v usb:/dev/usb/lp0 -m brhl2040_cups.ppd exit 0 SRC/PARTS/cupswrapperHL2070N-1.0.20100644000000000000000000003770510262363160014715 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/brhl2070n_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL2070N rm -f /usr/lib64/cups/filter/brlpdwrapperHL2070N rm -f /usr/local/Brother/cupswrapper/brcupsconfig2 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/brhl2070n_cups.ppd ppd_file_name=/usr/share/cups/model/brhl2070n_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-2070N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL2070N_CUPS.PPD" *Product: "(Brother HL-2070N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL2070N" *PSVersion: "(3010.106) 3" *ModelName: "HL-2070N" *NickName: "Brother HL-2070N 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 *DefaultOutputBin: OnlyOne *%=== 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: *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 echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL2070N' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL2070N PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl2070n_cups.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 [ -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/brcupsconfig2" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig2 \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig2 \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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 lpadmin -p HL2070N -E -v usb:/dev/usb/lp0 -m brhl2070n_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5030-1.0.20100644000000000000000000003765310262363160014600 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 HL5030 rm -f /usr/share/cups/model/brhl5030_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5030 rm -f /usr/lib64/cups/filter/brlpdwrapperHL5030 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5030 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/filterHL5030" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5030_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5030_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5030 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5030_CUPS.PPD" *Product: "(Brother HL-5030 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5030" *PSVersion: "(3010.106) 3" *ModelName: "HL-5030" *NickName: "Brother HL-5030 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 *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5030 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5030 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5030' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5030 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5030_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5030rc 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 lpadmin -p HL5030 -E -v usb:/dev/usb/lp0 -m brhl5030_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5040-1.0.20100644000000000000000000003765310262363160014601 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 HL5040 rm -f /usr/share/cups/model/brhl5040_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5040 rm -f /usr/lib64/cups/filter/brlpdwrapperHL5040 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5040 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/filterHL5040" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5040_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5040_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5040 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5040_CUPS.PPD" *Product: "(Brother HL-5040 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 69 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5040" *PSVersion: "(3010.106) 3" *ModelName: "HL-5040" *NickName: "Brother HL-5040 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 *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5040 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5040 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5040' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5040 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5040_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5040rc 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 lpadmin -p HL5040 -E -v usb:/dev/usb/lp0 -m brhl5040_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5050-1.0.20100644000000000000000000004126610262363160014575 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 HL5050 rm -f /usr/share/cups/model/brhl5050_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5050 rm -f /usr/lib64/cups/filter/brlpdwrapperHL5050 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5050 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/filterHL5050" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5050_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5050_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5050 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5050_CUPS.PPD" *Product: "(Brother HL-5050 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 70 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5050" *PSVersion: "(3010.106) 3" *ModelName: "HL-5050" *NickName: "Brother HL-5050 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5050 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5050 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5050' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5050 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5050_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5050rc 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 lpadmin -p HL5050 -E -v usb:/dev/usb/lp0 -m brhl5050_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5070N-1.0.20100644000000000000000000004131410262363160014707 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 HL5070N rm -f /usr/share/cups/model/brhl5070n_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5070N rm -f /usr/lib64/cups/filter/brlpdwrapperHL5070N rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5070N 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/filterHL5070N" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5070n_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5070n_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5070N for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5070N_CUPS.PPD" *Product: "(Brother HL-5070N series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 71 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5070N" *PSVersion: "(3010.106) 3" *ModelName: "HL-5070N" *NickName: "Brother HL-5070N 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5070N brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5070N rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5070N' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5070N PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5070n_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5070Nrc 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 lpadmin -p HL5070N -E -v usb:/dev/usb/lp0 -m brhl5070n_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5130-1.0.20100644000000000000000000003765310262363160014601 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 HL5130 rm -f /usr/share/cups/model/brhl5130_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5130 rm -f /usr/lib64/cups/filter/brlpdwrapperHL5130 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5130 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/filterHL5130" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5130_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5130_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5030 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5030_CUPS.PPD" *Product: "(Brother HL-5030 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 68 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5130" *PSVersion: "(3010.106) 3" *ModelName: "HL-5030" *NickName: "Brother HL-5030 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 *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5130 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5130 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5130' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5130 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5130_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5130rc 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 lpadmin -p HL5130 -E -v usb:/dev/usb/lp0 -m brhl5130_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5140-1.0.20100644000000000000000000003765310262363160014602 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 HL5140 rm -f /usr/share/cups/model/brhl5140_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5140 rm -f /usr/lib64/cups/filter/brlpdwrapperHL5140 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5140 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/filterHL5140" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5140_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5140_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5040 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5040_CUPS.PPD" *Product: "(Brother HL-5040 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 69 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5140" *PSVersion: "(3010.106) 3" *ModelName: "HL-5040" *NickName: "Brother HL-5040 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 *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5140 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5140 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5140' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5140 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5140_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5140rc 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 lpadmin -p HL5140 -E -v usb:/dev/usb/lp0 -m brhl5140_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5150D-1.0.20100644000000000000000000004155710262363160014705 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 HL5150D rm -f /usr/share/cups/model/brhl5150d_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5150D rm -f /usr/lib64/cups/filter/brlpdwrapperHL5150D rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5150D 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/filterHL5150D" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5150d_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5150d_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5150D for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5150D_CUPS.PPD" *Product: "(Brother HL-5150D series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5150D" *PSVersion: "(3010.106) 3" *ModelName: "HL-5150D" *NickName: "Brother HL-5150D 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5150D brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5150D rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5150D' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5150D PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5150d_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5150Drc 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 lpadmin -p HL5150D -E -v usb:/dev/usb/lp0 -m brhl5150d_cups.ppd exit 0 SRC/PARTS/cupswrapperHL5170DN-1.0.20100644000000000000000000004160510262363160015017 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 HL5170DN rm -f /usr/share/cups/model/brhl5170dn_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL5170DN rm -f /usr/lib64/cups/filter/brlpdwrapperHL5170DN rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL5170DN 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/filterHL5170DN" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl5170dn_cups.ppd ppd_file_name=/usr/share/cups/model/brhl5170dn_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-5170DN for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL5170DN_CUPS.PPD" *Product: "(Brother HL-5170DN series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 72 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL5170DN" *PSVersion: "(3010.106) 3" *ModelName: "HL-5170DN" *NickName: "Brother HL-5170DN 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL5170DN brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL5170DN rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL5170DN' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL5170DN PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl5170dn_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL5170DNrc 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 lpadmin -p HL5170DN -E -v usb:/dev/usb/lp0 -m brhl5170dn_cups.ppd exit 0 SRC/PARTS/cupswrapperHL6050-1.0.20100644000000000000000000004126410262363160014574 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 HL6050 rm -f /usr/share/cups/model/brhl6050_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL6050 rm -f /usr/lib64/cups/filter/brlpdwrapperHL6050 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL6050 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/filterHL6050" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl6050_cups.ppd ppd_file_name=/usr/share/cups/model/brhl6050_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-6050 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL6050_CUPS.PPD" *Product: "(Brother HL-6050 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 81 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL6050" *PSVersion: "(3010.106) 3" *ModelName: "HL-6050" *NickName: "Brother HL-6050 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:" 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 ENVTHIN/Env. Thin: *BrMediaType RECYCLED/Recycled: *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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL6050 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL6050 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL6050' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL6050 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl6050_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL6050rc 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 lpadmin -p HL6050 -E -v usb:/dev/usb/lp0 -m brhl6050_cups.ppd exit 0 SRC/PARTS/cupswrapperHL6050D-1.0.20100644000000000000000000004155510262363160014703 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 HL6050D rm -f /usr/share/cups/model/brhl6050d_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperHL6050D rm -f /usr/lib64/cups/filter/brlpdwrapperHL6050D rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 HL6050D 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/filterHL6050D" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brhl6050d_cups.ppd ppd_file_name=/usr/share/cups/model/brhl6050d_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother HL-6050D for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRHL6050D_CUPS.PPD" *Product: "(Brother HL-6050D series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 82 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperHL6050D" *PSVersion: "(3010.106) 3" *ModelName: "HL-6050D" *NickName: "Brother HL-6050D 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:" 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 ENVTHIN/Env. Thin: *BrMediaType RECYCLED/Recycled: *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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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/brlpdwrapperHL6050D brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperHL6050D rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperHL6050D' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=HL6050D PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brhl6050d_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brHL6050Drc 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 lpadmin -p HL6050D -E -v usb:/dev/usb/lp0 -m brhl6050d_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC4800-1.0.20100644000000000000000000003675110262363160014704 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 MFC4800 rm -f /usr/share/cups/model/brmfc4800_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC4800 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC4800 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC4800 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/filterMFC4800" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc4800_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc4800_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-4800 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC4800_CUPS.PPD" *Product: "(Brother MFC-4800 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 34 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC4800" *PSVersion: "(3010.106) 3" *ModelName: "MFC-4800" *NickName: "Brother MFC-4800 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC4800 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC4800 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC4800' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC4800 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc4800_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC4800rc 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 lpadmin -p MFC4800 -E -v usb:/dev/usb/lp0 -m brmfc4800_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC6800-1.0.20100644000000000000000000003675110262363160014706 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 MFC6800 rm -f /usr/share/cups/model/brmfc6800_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC6800 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC6800 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC6800 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/filterMFC6800" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc6800_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc6800_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-6800 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC6800_CUPS.PPD" *Product: "(Brother MFC-6800 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 35 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC6800" *PSVersion: "(3010.106) 3" *ModelName: "MFC-6800" *NickName: "Brother MFC-6800 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC6800 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC6800 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC6800' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC6800 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc6800_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC6800rc 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 lpadmin -p MFC6800 -E -v usb:/dev/usb/lp0 -m brmfc6800_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC8420-1.0.20100644000000000000000000004060410262363160014676 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 MFC8420 rm -f /usr/share/cups/model/brmfc8420_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8420 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8420 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC8420 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/filterMFC8420" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc8420_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc8420_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-8420 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC8420_CUPS.PPD" *Product: "(Brother MFC-8420 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 73 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8420" *PSVersion: "(3010.106) 3" *ModelName: "MFC-8420" *NickName: "Brother MFC-8420 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperMFC8420 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8420 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC8420' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8420 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc8420_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC8420rc 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 lpadmin -p MFC8420 -E -v usb:/dev/usb/lp0 -m brmfc8420_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC8440-1.0.20100644000000000000000000004060410262363160014700 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 MFC8440 rm -f /usr/share/cups/model/brmfc8440_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8440 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8440 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC8440 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/filterMFC8440" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc8440_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc8440_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-8440 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC8440_CUPS.PPD" *Product: "(Brother MFC-8440 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 73 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8440" *PSVersion: "(3010.106) 3" *ModelName: "MFC-8440" *NickName: "Brother MFC-8440 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperMFC8440 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8440 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC8440' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8440 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc8440_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC8440rc 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 lpadmin -p MFC8440 -E -v usb:/dev/usb/lp0 -m brmfc8440_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC8500-1.0.20100644000000000000000000003716010262363160014700 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 MFC8500 rm -f /usr/share/cups/model/brmfc8500_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8500 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8500 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC8500 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/filterMFC8500" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc8500_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc8500_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-8500 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC8500_CUPS.PPD" *Product: "(Brother MFC-8500 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 37 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8500" *PSVersion: "(3010.106) 3" *ModelName: "MFC-8500" *NickName: "Brother MFC-8500 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC8500 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8500 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC8500' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8500 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc8500_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC8500rc 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 lpadmin -p MFC8500 -E -v usb:/dev/usb/lp0 -m brmfc8500_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC8820D-1.0.20100644000000000000000000004107410262363160015010 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 MFC8820D rm -f /usr/share/cups/model/brmfc8820d_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8820D rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8820D rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC8820D 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/filterMFC8820D" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc8820d_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc8820d_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-8820D for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC8820D_CUPS.PPD" *Product: "(Brother MFC-8820D series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 74 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8820D" *PSVersion: "(3010.106) 3" *ModelName: "MFC-8820D" *NickName: "Brother MFC-8820D 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperMFC8820D brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8820D rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC8820D' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8820D PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc8820d_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC8820Drc 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 lpadmin -p MFC8820D -E -v usb:/dev/usb/lp0 -m brmfc8820d_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC8840D-1.0.20100644000000000000000000004107410262363160015012 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 MFC8840D rm -f /usr/share/cups/model/brmfc8840d_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC8840D rm -f /usr/lib64/cups/filter/brlpdwrapperMFC8840D rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC8840D 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/filterMFC8840D" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc8840d_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc8840d_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-8840D for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC8840D_CUPS.PPD" *Product: "(Brother MFC-8840D series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 74 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC8840D" *PSVersion: "(3010.106) 3" *ModelName: "MFC-8840D" *NickName: "Brother MFC-8840D 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:" 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 AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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 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 *%==== 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/brlpdwrapperMFC8840D brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8840D rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC8840D' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC8840D PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc8840d_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC8840Drc 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 lpadmin -p MFC8840D -E -v usb:/dev/usb/lp0 -m brmfc8840d_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9030-1.0.20100644000000000000000000003675110262363160014704 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 MFC9030 rm -f /usr/share/cups/model/brmfc9030_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9030 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9030 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9030 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/filterMFC9030" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9030_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9030_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9030 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9030_CUPS.PPD" *Product: "(Brother MFC-9030 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 56 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9030" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9030" *NickName: "Brother MFC-9030 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9030 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9030 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9030' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9030 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9030_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9030rc 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 lpadmin -p MFC9030 -E -v usb:/dev/usb/lp0 -m brmfc9030_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9070-1.0.20100644000000000000000000003675110262363160014710 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 MFC9070 rm -f /usr/share/cups/model/brmfc9070_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9070 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9070 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9070 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/filterMFC9070" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9070_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9070_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9070 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9070_CUPS.PPD" *Product: "(Brother MFC-9070 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 46 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9070" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9070" *NickName: "Brother MFC-9070 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9070 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9070 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9070' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9070 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9070_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9070rc 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 lpadmin -p MFC9070 -E -v usb:/dev/usb/lp0 -m brmfc9070_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9160-1.0.20100644000000000000000000003675110262363160014710 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 MFC9160 rm -f /usr/share/cups/model/brmfc9160_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9160 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9160 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9160 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/filterMFC9160" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9160_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9160_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9160 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9160_CUPS.PPD" *Product: "(Brother MFC-9160 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 48 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9160" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9160" *NickName: "Brother MFC-9160 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9160 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9160 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9160' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9160 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9160_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9160rc 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 lpadmin -p MFC9160 -E -v usb:/dev/usb/lp0 -m brmfc9160_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9180-1.0.20100644000000000000000000003675110262363160014712 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 MFC9180 rm -f /usr/share/cups/model/brmfc9180_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9180 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9180 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9180 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/filterMFC9180" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9180_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9180_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9180 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9180_CUPS.PPD" *Product: "(Brother MFC-9180 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 47 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9180" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9180" *NickName: "Brother MFC-9180 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: TRAY1 *InputSlot TRAY1/Tray1: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9180 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9180 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9180' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9180 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9180_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9180rc 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 lpadmin -p MFC9180 -E -v usb:/dev/usb/lp0 -m brmfc9180_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9660-1.0.20100644000000000000000000003716010262363160014710 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 MFC9660 rm -f /usr/share/cups/model/brmfc9660_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9660 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9660 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9660 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/filterMFC9660" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9660_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9660_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9660 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9660_CUPS.PPD" *Product: "(Brother MFC-9660 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 42 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9660" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9660" *NickName: "Brother MFC-9660 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9660 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9660 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9660' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9660 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9660_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9660rc 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 lpadmin -p MFC9660 -E -v usb:/dev/usb/lp0 -m brmfc9660_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9700-1.0.20100644000000000000000000003716010262363160014703 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 MFC9700 rm -f /usr/share/cups/model/brmfc9700_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9700 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9700 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9700 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/filterMFC9700" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9700_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9700_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9700 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9700_CUPS.PPD" *Product: "(Brother MFC-9700 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 38 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9700" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9700" *NickName: "Brother MFC-9700 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9700 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9700 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9700' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9700 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9700_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9700rc 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 lpadmin -p MFC9700 -E -v usb:/dev/usb/lp0 -m brmfc9700_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9760-1.0.20100644000000000000000000003716010262363160014711 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 MFC9760 rm -f /usr/share/cups/model/brmfc9760_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9760 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9760 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9760 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/filterMFC9760" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9760_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9760_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9760 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9760_CUPS.PPD" *Product: "(Brother MFC-9760 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 45 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9760" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9760" *NickName: "Brother MFC-9760 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9760 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9760 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9760' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9760 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9760_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9760rc 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 lpadmin -p MFC9760 -E -v usb:/dev/usb/lp0 -m brmfc9760_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9800-1.0.20100644000000000000000000003716010262363160014704 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 MFC9800 rm -f /usr/share/cups/model/brmfc9800_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9800 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9800 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9800 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/filterMFC9800" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9800_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9800_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9800 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9800_CUPS.PPD" *Product: "(Brother MFC-9800 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 39 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9800" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9800" *NickName: "Brother MFC-9800 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9800 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9800 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9800' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9800 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9800_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9800rc 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 lpadmin -p MFC9800 -E -v usb:/dev/usb/lp0 -m brmfc9800_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9860-1.0.20100644000000000000000000003716010262363160014712 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 MFC9860 rm -f /usr/share/cups/model/brmfc9860_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9860 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9860 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9860 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/filterMFC9860" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9860_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9860_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9860 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9860_CUPS.PPD" *Product: "(Brother MFC-9860 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 43 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9860" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9860" *NickName: "Brother MFC-9860 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9860 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9860 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9860' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9860 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9860_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9860rc 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 lpadmin -p MFC9860 -E -v usb:/dev/usb/lp0 -m brmfc9860_cups.ppd exit 0 SRC/PARTS/cupswrapperMFC9880-1.0.20100644000000000000000000003716010262363160014714 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 MFC9880 rm -f /usr/share/cups/model/brmfc9880_cups.ppd rm -f /usr/lib/cups/filter/brlpdwrapperMFC9880 rm -f /usr/lib64/cups/filter/brlpdwrapperMFC9880 rm -f /usr/local/Brother/cupswrapper/brcupsconfig 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 MFC9880 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/filterMFC9880" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/brmfc9880_cups.ppd ppd_file_name=/usr/share/cups/model/brmfc9880_cups.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2003 Brother Industries, Ltd. *% "Brother MFC-9880 for CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageEncoding: ISOLatin1 *LanguageVersion: English *PCFileName: "BRMFC9880_CUPS.PPD" *Product: "(Brother MFC-9880 series)" *cupsVersion: 1.1 *cupsManualCopies: True *cupsModelNumber: 44 *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC9880" *PSVersion: "(3010.106) 3" *ModelName: "MFC-9880" *NickName: "Brother MFC-9880 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" *PaperDimension EnvDLRotated/DL Long Edge: "624 312" *%==== 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: *CloseUI: *BrMediaType *OpenUI *InputSlot/InputSlot: PickOne *OrderDependency: 29 AnySetup *InputSlot *DefaultInputSlot: AUTO *InputSlot MANUAL/Manual Feed: *InputSlot TRAY1/Tray1: *InputSlot TRAY2/Tray2: *InputSlot AUTO/Auto Select: *CloseUI: *InputSlot *RequiresPageRegion All:True *DefaultOutputBin: OnlyOne *%=== 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: *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 *%==== 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/brlpdwrapperMFC9880 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC9880 rm -f $brotherlpdwrapper echo 'rm -f /usr/lib/cups/filter/brlpdwrapperMFC9880' 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" LOGLEVEL="1" LOGCLEVEL="7" DEBUG=0 NUPENABLE=1 LOG_LATESTONLY=1 errorcode=0 if [ \$DEBUG != 0 ]; then LOGFILE=/tmp/br_cupsfilter_debug_log fi PRINTER=MFC9880 PPDC=\`printenv | grep "PPD="\` \$PPDC if [ "\$PPD" = "" ]; then PPD="/usr/share/cups/model/brmfc9880_cups.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 [ -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/brcupsconfig" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD 0 "\$5" >> /dev/null else /usr/local/Brother/cupswrapper/brcupsconfig \$PRINTER \$PPD \$LOGCLEVEL "\$5" >>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER if [ \$LOGLEVEL -gt 2 ]; then if [ \$LOGFILE != "/dev/null" ]; then echo "" >>\$LOGFILE echo " ------PostScript Data-------" >>\$LOGFILE cat \$INPUT_TEMP_PS >>\$LOGFILE fi 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/brMFC9880rc 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 lpadmin -p MFC9880 -E -v usb:/dev/usb/lp0 -m brmfc9880_cups.ppd exit 0 SRC/SPEC/0040755000000000000000000000000010262363173010744 5ustar rootrootSRC/SPEC/cupswrapperDCP1000-1.0.2.spec0100644000000000000000000000244410262363173015460 0ustar rootrootSummary: Brother DCP1000 CUPS wrapper driver Name: cupswrapperDCP1000 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother DCP1000 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperDCP1000-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP1000-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP1000-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP1000-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP1000-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperDCP1000-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperDCP1000-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperDCP1400-1.0.2.spec0100644000000000000000000000244410262363173015464 0ustar rootrootSummary: Brother DCP1400 CUPS wrapper driver Name: cupswrapperDCP1400 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother DCP1400 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperDCP1400-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP1400-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP1400-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP1400-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP1400-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperDCP1400-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperDCP1400-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperDCP8020-1.0.2.spec0100644000000000000000000000244410262363173015471 0ustar rootrootSummary: Brother DCP8020 CUPS wrapper driver Name: cupswrapperDCP8020 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother DCP8020 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperDCP8020-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8020-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8020-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8020-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8020-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperDCP8020-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperDCP8020-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperDCP8025D-1.0.2.spec0100644000000000000000000000245610262363173015605 0ustar rootrootSummary: Brother DCP8025D CUPS wrapper driver Name: cupswrapperDCP8025D Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother DCP8025D CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperDCP8025D-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8025D-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8025D-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8025D-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8025D-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperDCP8025D-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperDCP8025D-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperDCP8040-1.0.2.spec0100644000000000000000000000244410262363173015473 0ustar rootrootSummary: Brother DCP8040 CUPS wrapper driver Name: cupswrapperDCP8040 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother DCP8040 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperDCP8040-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8040-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8040-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8040-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8040-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperDCP8040-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperDCP8040-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperDCP8045D-1.0.2.spec0100644000000000000000000000245610262363173015607 0ustar rootrootSummary: Brother DCP8045D CUPS wrapper driver Name: cupswrapperDCP8045D Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother DCP8045D CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperDCP8045D-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8045D-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8045D-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperDCP8045D-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperDCP8045D-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperDCP8045D-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperDCP8045D-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperFAX2850-1.0.2.spec0100644000000000000000000000244410262363173015506 0ustar rootrootSummary: Brother FAX2850 CUPS wrapper driver Name: cupswrapperFAX2850 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother FAX2850 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperFAX2850-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX2850-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX2850-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX2850-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX2850-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperFAX2850-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperFAX2850-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperFAX2900-1.0.2.spec0100644000000000000000000000244410262363173015502 0ustar rootrootSummary: Brother FAX2900 CUPS wrapper driver Name: cupswrapperFAX2900 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother FAX2900 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperFAX2900-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX2900-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX2900-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX2900-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX2900-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperFAX2900-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperFAX2900-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperFAX3800-1.0.2.spec0100644000000000000000000000244410262363173015502 0ustar rootrootSummary: Brother FAX3800 CUPS wrapper driver Name: cupswrapperFAX3800 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother FAX3800 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperFAX3800-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX3800-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX3800-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX3800-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX3800-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperFAX3800-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperFAX3800-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperFAX4100-1.0.2.spec0100644000000000000000000000244410262363173015474 0ustar rootrootSummary: Brother FAX4100 CUPS wrapper driver Name: cupswrapperFAX4100 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother FAX4100 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperFAX4100-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX4100-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX4100-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX4100-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX4100-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperFAX4100-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperFAX4100-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperFAX4750E-1.0.2.spec0100644000000000000000000000245610262363173015617 0ustar rootrootSummary: Brother FAX4750E CUPS wrapper driver Name: cupswrapperFAX4750E Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother FAX4750E CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperFAX4750E-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX4750E-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX4750E-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX4750E-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX4750E-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperFAX4750E-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperFAX4750E-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperFAX5750E-1.0.2.spec0100644000000000000000000000245610262363173015620 0ustar rootrootSummary: Brother FAX5750E CUPS wrapper driver Name: cupswrapperFAX5750E Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother FAX5750E CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperFAX5750E-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX5750E-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX5750E-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperFAX5750E-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperFAX5750E-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperFAX5750E-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperFAX5750E-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1030-1.0.2.spec0100644000000000000000000000243210262363173015355 0ustar rootrootSummary: Brother HL1030 CUPS wrapper driver Name: cupswrapperHL1030 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1030 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1030-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1030-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1030-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1030-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1030-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1030-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1030-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1230-1.0.2.spec0100644000000000000000000000243210262363173015357 0ustar rootrootSummary: Brother HL1230 CUPS wrapper driver Name: cupswrapperHL1230 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1230 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1230-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1230-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1230-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1230-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1230-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1230-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1230-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1240-1.0.2.spec0100644000000000000000000000243210262363173015360 0ustar rootrootSummary: Brother HL1240 CUPS wrapper driver Name: cupswrapperHL1240 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1240 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1240-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1240-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1240-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1240-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1240-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1240-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1240-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1250-1.0.2.spec0100644000000000000000000000243210262363173015361 0ustar rootrootSummary: Brother HL1250 CUPS wrapper driver Name: cupswrapperHL1250 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1250 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1250-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1250-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1250-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1250-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1250-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1250-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1250-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1270N-1.0.2.spec0100644000000000000000000000244410262363173015504 0ustar rootrootSummary: Brother HL1270N CUPS wrapper driver Name: cupswrapperHL1270N Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1270N CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1270N-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1270N-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1270N-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1270N-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1270N-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1270N-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1270N-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1430-1.0.2.spec0100644000000000000000000000243210262363173015361 0ustar rootrootSummary: Brother HL1430 CUPS wrapper driver Name: cupswrapperHL1430 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1430 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1430-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1430-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1430-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1430-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1430-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1430-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1430-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1440-1.0.2.spec0100644000000000000000000000243210262363173015362 0ustar rootrootSummary: Brother HL1440 CUPS wrapper driver Name: cupswrapperHL1440 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1440 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1440-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1440-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1440-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1440-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1440-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1440-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1440-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1450-1.0.2.spec0100644000000000000000000000243210262363173015363 0ustar rootrootSummary: Brother HL1450 CUPS wrapper driver Name: cupswrapperHL1450 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1450 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1450-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1450-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1450-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1450-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1450-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1450-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1450-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL1470N-1.0.2.spec0100644000000000000000000000244410262363173015506 0ustar rootrootSummary: Brother HL1470N CUPS wrapper driver Name: cupswrapperHL1470N Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL1470N CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL1470N-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1470N-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1470N-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL1470N-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL1470N-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL1470N-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL1470N-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL16_2-1.0.2.spec0100644000000000000000000000243210262363173015441 0ustar rootrootSummary: Brother HL16_2 CUPS wrapper driver Name: cupswrapperHL16_2 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL16_2 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL16_2-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL16_2-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL16_2-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL16_2-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL16_2-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL16_2-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL16_2-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL18_2-1.0.2.spec0100644000000000000000000000243210262363173015443 0ustar rootrootSummary: Brother HL18_2 CUPS wrapper driver Name: cupswrapperHL18_2 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL18_2 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL18_2-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL18_2-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL18_2-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL18_2-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL18_2-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL18_2-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL18_2-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL2030-1.0.2.spec0100644000000000000000000000243310262363173015357 0ustar rootrootSummary: Brother HL2030 CUPS wrapper driver Name: cupswrapperHL2030 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL2030 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL2030-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL2030-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL2030-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL2030-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL2030-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL2030-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL2030-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL2040-1.0.2.spec0100644000000000000000000000243310262363173015360 0ustar rootrootSummary: Brother HL2040 CUPS wrapper driver Name: cupswrapperHL2040 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL2040 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL2040-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL2040-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL2040-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL2070N-1.0.2.spec0100644000000000000000000000244510262363173015504 0ustar rootrootSummary: Brother HL2070N CUPS wrapper driver Name: cupswrapperHL2070N Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL2070N CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL2070N-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL2070N-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL2070N-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL2070N-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL2070N-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL2070N-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL2070N-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5030-1.0.2.spec0100644000000000000000000000243210262363173015361 0ustar rootrootSummary: Brother HL5030 CUPS wrapper driver Name: cupswrapperHL5030 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5030 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5030-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5030-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5030-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5030-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5030-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5030-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5030-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5040-1.0.2.spec0100644000000000000000000000243210262363173015362 0ustar rootrootSummary: Brother HL5040 CUPS wrapper driver Name: cupswrapperHL5040 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5040 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5040-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5040-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5040-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5040-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5040-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5040-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5040-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5050-1.0.2.spec0100644000000000000000000000243210262363173015363 0ustar rootrootSummary: Brother HL5050 CUPS wrapper driver Name: cupswrapperHL5050 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5050 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5050-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5050-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5050-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5050-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5050-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5050-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5050-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5070N-1.0.2.spec0100644000000000000000000000244410262363173015506 0ustar rootrootSummary: Brother HL5070N CUPS wrapper driver Name: cupswrapperHL5070N Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5070N CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5070N-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5070N-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5070N-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5070N-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5070N-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5070N-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5070N-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5130-1.0.2.spec0100644000000000000000000000243210262363173015362 0ustar rootrootSummary: Brother HL5130 CUPS wrapper driver Name: cupswrapperHL5130 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5130 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5130-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5130-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5130-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5130-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5130-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5130-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5130-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5140-1.0.2.spec0100644000000000000000000000243210262363173015363 0ustar rootrootSummary: Brother HL5140 CUPS wrapper driver Name: cupswrapperHL5140 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5140 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5140-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5140-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5140-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5140-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5140-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5140-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5140-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5150D-1.0.2.spec0100644000000000000000000000244410262363173015473 0ustar rootrootSummary: Brother HL5150D CUPS wrapper driver Name: cupswrapperHL5150D Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5150D CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5150D-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5150D-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5150D-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5150D-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5150D-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5150D-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5150D-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL5170DN-1.0.2.spec0100644000000000000000000000245610262363173015616 0ustar rootrootSummary: Brother HL5170DN CUPS wrapper driver Name: cupswrapperHL5170DN Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL5170DN CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL5170DN-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5170DN-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5170DN-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL5170DN-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL5170DN-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL5170DN-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL5170DN-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL6050-1.0.2.spec0100644000000000000000000000243210262363173015364 0ustar rootrootSummary: Brother HL6050 CUPS wrapper driver Name: cupswrapperHL6050 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL6050 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL6050-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL6050-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL6050-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL6050-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL6050-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL6050-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL6050-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperHL6050D-1.0.2.spec0100644000000000000000000000244410262363173015473 0ustar rootrootSummary: Brother HL6050D CUPS wrapper driver Name: cupswrapperHL6050D Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother HL6050D CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperHL6050D-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL6050D-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL6050D-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperHL6050D-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperHL6050D-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperHL6050D-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperHL6050D-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC4800-1.0.2.spec0100644000000000000000000000244410262363173015472 0ustar rootrootSummary: Brother MFC4800 CUPS wrapper driver Name: cupswrapperMFC4800 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC4800 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC4800-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC4800-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC4800-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC4800-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC4800-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC4800-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC4800-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC6800-1.0.2.spec0100644000000000000000000000244410262363173015474 0ustar rootrootSummary: Brother MFC6800 CUPS wrapper driver Name: cupswrapperMFC6800 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC6800 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC6800-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC6800-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC6800-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC6800-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC6800-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC6800-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC6800-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC8420-1.0.2.spec0100644000000000000000000000244410262363173015474 0ustar rootrootSummary: Brother MFC8420 CUPS wrapper driver Name: cupswrapperMFC8420 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC8420 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC8420-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8420-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8420-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8420-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8420-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC8420-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC8420-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC8440-1.0.2.spec0100644000000000000000000000244410262363173015476 0ustar rootrootSummary: Brother MFC8440 CUPS wrapper driver Name: cupswrapperMFC8440 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC8440 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC8440-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8440-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8440-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8440-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8440-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC8440-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC8440-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC8500-1.0.2.spec0100644000000000000000000000244410262363173015473 0ustar rootrootSummary: Brother MFC8500 CUPS wrapper driver Name: cupswrapperMFC8500 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC8500 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC8500-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8500-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8500-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8500-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8500-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC8500-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC8500-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC8820D-1.0.2.spec0100644000000000000000000000245610262363173015607 0ustar rootrootSummary: Brother MFC8820D CUPS wrapper driver Name: cupswrapperMFC8820D Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC8820D CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC8820D-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8820D-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8820D-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8820D-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8820D-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC8820D-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC8820D-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC8840D-1.0.2.spec0100644000000000000000000000245610262363173015611 0ustar rootrootSummary: Brother MFC8840D CUPS wrapper driver Name: cupswrapperMFC8840D Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC8840D CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC8840D-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8840D-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8840D-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC8840D-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC8840D-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC8840D-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC8840D-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9030-1.0.2.spec0100644000000000000000000000244410262363173015472 0ustar rootrootSummary: Brother MFC9030 CUPS wrapper driver Name: cupswrapperMFC9030 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9030 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9030-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9030-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9030-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9030-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9030-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9030-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9030-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9070-1.0.2.spec0100644000000000000000000000244410262363173015476 0ustar rootrootSummary: Brother MFC9070 CUPS wrapper driver Name: cupswrapperMFC9070 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9070 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9070-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9070-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9070-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9070-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9070-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9070-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9070-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9160-1.0.2.spec0100644000000000000000000000244410262363173015476 0ustar rootrootSummary: Brother MFC9160 CUPS wrapper driver Name: cupswrapperMFC9160 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9160 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9160-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9160-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9160-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9160-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9160-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9160-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9160-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9180-1.0.2.spec0100644000000000000000000000244410262363173015500 0ustar rootrootSummary: Brother MFC9180 CUPS wrapper driver Name: cupswrapperMFC9180 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9180 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9180-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9180-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9180-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9180-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9180-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9180-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9180-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9660-1.0.2.spec0100644000000000000000000000244410262363173015503 0ustar rootrootSummary: Brother MFC9660 CUPS wrapper driver Name: cupswrapperMFC9660 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9660 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9660-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9660-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9660-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9660-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9660-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9660-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9660-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9700-1.0.2.spec0100644000000000000000000000244410262363173015476 0ustar rootrootSummary: Brother MFC9700 CUPS wrapper driver Name: cupswrapperMFC9700 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9700 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9700-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9700-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9700-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9700-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9700-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9700-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9700-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9760-1.0.2.spec0100644000000000000000000000244410262363173015504 0ustar rootrootSummary: Brother MFC9760 CUPS wrapper driver Name: cupswrapperMFC9760 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9760 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9760-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9760-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9760-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9760-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9760-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9760-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9760-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9800-1.0.2.spec0100644000000000000000000000244410262363173015477 0ustar rootrootSummary: Brother MFC9800 CUPS wrapper driver Name: cupswrapperMFC9800 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9800 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9800-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9800-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9800-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9800-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9800-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9800-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9800-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9860-1.0.2.spec0100644000000000000000000000244410262363173015505 0ustar rootrootSummary: Brother MFC9860 CUPS wrapper driver Name: cupswrapperMFC9860 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9860 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9860-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9860-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9860-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9860-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9860-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9860-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9860-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/SPEC/cupswrapperMFC9880-1.0.2.spec0100644000000000000000000000244410262363173015507 0ustar rootrootSummary: Brother MFC9880 CUPS wrapper driver Name: cupswrapperMFC9880 Version: 1.0.2 Release: 1 URL: www.brother.com License: Copyright Brother Industries,Ltd -2005 Group: Utilities/System Provides: CUPS wrapper driver Requires: cups, lpr, BuildRoot: %{_tmppath}/%{name}-root source: %{name}-%{version}.tar.gz %description Brother MFC9880 CUPS wrapper driver %prep #mkdir -p $RPM_BUILD_ROOT %setup -q %build %install mkdir -p $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 cupswrapperMFC9880-1.0.2 \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper install -m 777 brcupsconfig \ $RPM_BUILD_ROOT/usr/local/Brother/cupswrapper %post if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9880-1.0.2 -i elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9880-1.0.2 -i else echo '' echo ' ****** ERROR: bash is required. ******' fi %preun if [ -e /bin/sh ]; then sh /usr/local/Brother/cupswrapper/cupswrapperMFC9880-1.0.2 -e elif [ -e /bin/bash ]; then bash /usr/local/Brother/cupswrapper/cupswrapperMFC9880-1.0.2 -e fi %postun rm -f $RPM_BUILD_ROOT/usr/local/Brother/cupswrapperMFC9880-1.0.2 %clean rm -rf $RPM_BUILD_ROOT %files /usr/local/Brother/cupswrapper/cupswrapperMFC9880-1.0.2 /usr/local/Brother/cupswrapper /usr/local/Brother SRC/brcupsconfig/0040755000000000000000000000000010262363540012674 5ustar rootrootSRC/brcupsconfig/brcupsconfig.c0100544000000000000000000002730310262363540015525 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 "brcups_commands.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]; 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(); 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); } } } 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; for ( i = 0; ppdcommand_all_list[i]!= NULL; i ++){ p = strstr_ex(ppd_line,ppdcommand_all_list[i]->label); if(p){ for (ii = 0; ppdcommand_all_list[i]->ppdcommandlist[ii].value != NULL; ii++){ 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; } } } } 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){ sprintf(tmp,"%s %s",PPDdefaultN[i].value, p + strlen(PPDdefaultN[i].option)); get_token(PPDdefaultN[i].value ,tmp_op); get_token(p + strlen(PPDdefaultN[i].option) ,tmp_n); add_command_list(tmp_op,tmp_n); } } } 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 ++){ p = strstr_ex(commandline,commandlinelist[i].option); if(p){ add_command_list_brcommand(commandlinelist[i].value); } } 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 ++){ p = strstr_ex(commandline,standard_side_commandlinelist[i].option); if(p){ add_command_list_brcommand(standard_side_commandlinelist[i].value); } } 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); for ( ii=0; ii < max; ii++){ for ( i = 0; standard_media_commandlinelist[i].value != NULL; i ++){ p = strstr_ex(output[ii],standard_media_commandlinelist[i].option); if(p){ add_command_list_brcommand(standard_media_commandlinelist[i].value); } } } } 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); if(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 ); add_command_list(tmp_op,tmp_n); } } exec_brprintconf(brprintconf,printer); } int initialize_command_list(){ int i; char *p; 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); } } int add_command_list(char *option,char *value){ char *p; int i,ii; if(!option || !value || !option[0] || !value[0]){ return 0; } for ( i = 0; command_array[i].option[0] != 0; i ++ ){ p = strstr_ex(command_array[i].option , option); if(p){ write_log_file(3," C %s %s\n",option,value); strcpy(command_array[i].value, value); break; } } if(command_array[i].option[0] == 0){ 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]; 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); 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; return output; break; } *po = c; po ++; pi ++; } *po = 0; return output; } void write_log_file(int level,char *format,...){ FILE *fp_logfile; 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 *media,*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 } }; SRC/brcupsconfig/brcups_commands.h0100544000000000000000000002751510262363540016232 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]="brprintconflsr"; char *default_setting[] = { "brprintconflsr -P BROTHERPRINTER_XXX -res 600" , "brprintconflsr -P BROTHERPRINTER_XXX -ps AUTO" , "brprintconflsr -P BROTHERPRINTER_XXX -dx OFF" , "brprintconflsr -P BROTHERPRINTER_XXX -dxt LONG" , "brprintconflsr -P BROTHERPRINTER_XXX -pt A4" , "brprintconflsr -P BROTHERPRINTER_XXX -md PLAIN" , "brprintconflsr -P BROTHERPRINTER_XXX -cp 1" , "brprintconflsr -P BROTHERPRINTER_XXX -sp PRINTER" , "brprintconflsr -P BROTHERPRINTER_XXX -ts OFF" , NULL }; typedef struct { char *option; char *value; } CMDLINELIST; CMDLINELIST commandlinelist[] = { { "Resolution=300" , "-res 300" }, { "Resolution=600" , "-res 600" }, { "Resolution=1200" , "-res 1200" }, { "PaperSource=Manual" , "-ps MANUAL" }, { "PaperSource=MPTray" , "-ps MP" }, { "PaperSource=Tray1" , "-ps T1" }, { "PaperSource=Tray2" , "-ps T2" }, { "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=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 }, }; CMDLINELIST standard_commandlinelist[] = { { "media=A4" , "-pt A4" }, { "media=Letter" , "-pt LT" }, { "media=Legal" , "-pt LGL" }, { "media=Exective" , "-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=AutoSelect" , "-ps AUTO" }, { "media=.*,A4" , "-pt A4" }, { "media=.*,Letter" , "-pt LT" }, { "media=.*,Legal" , "-pt LGL" }, { "media=.*,Exective" , "-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=.*,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 }, }; CMDLINELIST commandlinelist2[] = { { "Copies=" , "-cp " }, { "Sleep=" , "-sp " }, { "TonerSaveMode=" , "-ts " }, { NULL , NULL }, }; typedef struct { char *value; char *brcommand; } PPDCOMMANDLIST; typedef struct { char *label; PPDCOMMANDLIST ppdcommandlist[]; } PPDCOMMAND; PPDCOMMAND DefaultResolution={ "DefaultResolution", { { "300dpi" , "-res 300" }, { "600dpi" , "-res 600" }, { "1200dpi" , "-res 1200" }, { NULL , NULL } } }; 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 } } }; 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 } } }; PPDCOMMAND DefaultInputSlot={ "DefaultInputSlot", { { "MANUAL" , "-ps MANUAL" }, { "MPTRAY" , "-ps MP" }, { "TRAY1" , "-ps T1" }, { "TRAY2" , "-ps T2" }, { "AUTO" , "-ps AUTO" }, { NULL , NULL } } }; PPDCOMMAND DefaultDuplex={ "DefaultDuplex", { { "DuplexTumble" , "-dx ON -dxt LONG" }, { "DuplexNoTumble" , "-dx ON -dxt SHORT" }, { "None" , "-dx OFF" }, { NULL , NULL } } }; PPDCOMMAND DefaultTonerSaveMode={ "DefaultTonerSaveMode", { { "Off" , "-ts OFF" }, { "On" , "-ts ON" }, { NULL , NULL } } }; 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 }; CMDLINELIST PPDdefaultN[] = { { NULL , NULL }, }; CMDLINELIST standard_media_commandlinelist[] = { { "A4" , "-pt A4" }, { "Letter" , "-pt LT" }, { "Legal" , "-pt LGL" }, { "Exective" , "-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" }, { "AutoSelect" , "-ps AUTO" }, { NULL , NULL } }; SRC/brcupsconfig/makecupsconfig0100544000000000000000000000004410262363540015607 0ustar rootrootgcc brcupsconfig.c -o brcupsconfig2