bh7-cupsw-src.1.0.0-9/0040755000000000000000000000000010526723153012771 5ustar rootrootbh7-cupsw-src.1.0.0-9/Makefile0100600000000000000000000000314510526722573014426 0ustar rootroot############################################################################# # Makefile for building brcupsconfpt1 # Generated by tmake at 13:53, 2006/10/17 # Project: brcupsconfpt1 # Template: app ############################################################################# ####### Compiler, tools and options CC = gcc CXX = gcc CFLAGS = -pipe -Wall -W -O2 CXXFLAGS= -pipe -Wall -W -O2 INCPATH = -I../common LINK = gcc LFLAGS = LIBS = $(SUBLIBS) MOC = $(QTDIR)/bin/moc UIC = $(QTDIR)/bin/uic TAR = tar -cf GZIP = gzip -9f ####### Files HEADERS = brcups_commands.h SOURCES = brcupsconfig.c OBJECTS = brcupsconfig.o INTERFACES = UICDECLS = UICIMPLS = SRCMOC = OBJMOC = DIST = TARGET = brcupsconfpt1 INTERFACE_DECL_PATH = . ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .C .c .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cxx.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .C.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< ####### Build rules all: $(TARGET) $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) moc: $(SRCMOC) tmake: Makefile Makefile: brcupsconfpt1.pro tmake brcupsconfpt1.pro -o Makefile dist: $(TAR) brcupsconfpt1.tar brcupsconfpt1.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST) $(GZIP) brcupsconfpt1.tar clean: -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) -rm -f *~ core ####### Sub-libraries ###### Combined headers ####### Compile brcupsconfig.o: brcupsconfig.c \ brcups_commands.h bh7-cupsw-src.1.0.0-9/brcups_commands.h0100600000000000000000000003632010526722573016317 0ustar rootroot/* $Id: brcups_commands.h,v 1.11 2005/08/22 02:20:49 cvs Exp $ */ //* 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 //* #ifndef _BRCUPS_COMMANDS_H_ #define _BRCUPS_COMMANDS_H_ #define _SL4C_ char brprintconf[30]="brprintconf"; /* // +++++++++++++++++++++++++++ // set default // +++++++++++++++++++++++++++ char *default_setting[] = { // Collate "brprintconf -P BROTHERPRINTER_XXX -collate OFF" , // copies "brprintconf -P BROTHERPRINTER_XXX -copy 1", // Chain "brprintconf -P BROTHERPRINTER_XXX -md Plain", // Bringhtness "brprintconf -P BROTHERPRINTER_XXX -brit 0" , // Contrast "brprintconf -P BROTHERPRINTER_XXX -cont 0" , // Halftone "brprintconf -P BROTHERPRINTER_XXX -half ErrorDiffusion" , // Auto cut "brprintconf -P BROTHERPRINTER_XXX -hcut ON" , // Auto cut "brprintconf -P BROTHERPRINTER_XXX -cut OFF" , // Mirror "brprintconf -P BROTHERPRINTER_XXX -mirro OFF" , // Resolution "brprintconf -P BROTHERPRINTER_XXX -reso Normal" , // Margin(Feed) "brprintconf -P BROTHERPRINTER_XXX -margin 1", // Media "brprintconf -P BROTHERPRINTER_XXX -media brS12mm", NULL }; */ typedef struct { char *option; char *value; } CMDLINELIST; // +++++++++++++++++++++++++++ // command line (Brother command) // +++++++++++++++++++++++++++ CMDLINELIST commandlinelist[] = { // Collate { "Collate=OFF" , "-collate OFF" }, { "Collate=ON" , "-collate ON" }, // Media { "BRColorMediaType=Plain" , "-md Plain" }, { "BRColorMediaType=Inkjet" , "-md Inkjet" }, { "BRColorMediaType=BrotherGlossy" , "-md BrotherGlossy" }, { "BRColorMediaType=Glossy" , "-md Glossy" }, { "BRColorMediaType=Transparencies" , "-md Transparencies" }, // RResolution { "Resolution=Draft" , "-reso Draft" }, { "Resolution=Fast" , "-reso Fast" }, { "Resolution=Normal" , "-reso Normal" }, { "Resolution=Fine" , "-reso Fine" }, { "Resolution=Photo" , "-reso Photo" }, { "Resolution=Highest" , "-reso Highest" }, // BiDirPrint { "BRBiDir=OFF" , "-bidir OFF" }, { "BRBiDir=ON" , "-bidir ON" }, { "noBRBiDir" , "-bidir OFF" }, { "BRBiDir" , "-bidir ON" }, // Mirror { "MirrorPrint=OFF" , "-mirro OFF" }, { "MirrorPrint=ON" , "-mirro ON" }, { "NoMirrorPrint" , "-mirro OFF" }, { "MirrorPrint" , "-mirro ON" }, // BRMonoColor { "BRMonoColor=BrColor" , "-corm Color" }, { "BRMonoColor=BrMono" , "-corm Mono" }, // Paper { "PageSize=A4", "-pt A4" }, { "PageSize=BrA4_B", "-pt BrA4_B" }, { "PageSize=Letter", "-pt Letter" }, { "PageSize=BrLetter_B", "-pt BrLetter_B" }, { "PageSize=Legal", "-pt Legal" }, { "PageSize=Executive", "-pt Executive" }, { "PageSize=B5", "-pt B5" }, { "PageSize=A5", "-pt A5" }, { "PageSize=A6", "-pt A6" }, { "PageSize=BrA6_B", "-pt BrA6_B" }, { "PageSize=PostC4x6", "-pt PostC4x6" }, { "PageSize=BrPostC4x6_B", "-pt BrPostC4x6_B" }, { "PageSize=IndexC5x8", "-pt IndexC5x8" }, { "PageSize=BrIndexC5x8_B", "-pt BrIndexC5x8_B" }, { "PageSize=PhotoL", "-pt PhotoL" }, { "PageSize=BrPhotoL_B", "-pt BrPhotoL_B" }, { "PageSize=Photo2L", "-pt Photo2L" }, { "PageSize=BrPhoto2L_B", "-pt BrPhoto2L_B" }, { "PageSize=PostCard", "-pt PostCard" }, { "PageSize=BrHagaki_B", "-pt BrHagaki_B" }, { "PageSize=DoublePostCardRotated", "-pt DoublePostCardRotated" }, { "PageSize=EnvC5", "-pt EnvC5" }, { "PageSize=EnvDL", "-pt EnvDL" }, { "PageSize=Env10", "-pt Env10" }, { "PageSize=EnvMonarch", "-pt EnvMonarch" }, { "PageSize=EnvYou4", "-pt EnvYou4" }, #if 1 // Added by SteadyBJ, Liu Bin, 2006.10.17 // for Command Line { "media=A4", "-pt A4" }, { "media=BrA4_B", "-pt BrA4_B" }, { "media=Letter", "-pt Letter" }, { "media=BrLetter_B", "-pt BrLetter_B" }, { "media=Legal", "-pt Legal" }, { "media=Executive", "-pt Executive" }, { "media=B5", "-pt B5" }, { "media=A5", "-pt A5" }, { "media=A6", "-pt A6" }, { "media=BrA6_B", "-pt BrA6_B" }, { "media=PostC4x6", "-pt PostC4x6" }, { "media=BrPostC4x6_B", "-pt BrPostC4x6_B" }, { "media=IndexC5x8", "-pt IndexC5x8" }, { "media=BrIndexC5x8_B", "-pt BrIndexC5x8_B" }, { "media=PhotoL", "-pt PhotoL" }, { "media=BrPhotoL_B", "-pt BrPhotoL_B" }, { "media=Photo2L", "-pt Photo2L" }, { "media=BrPhoto2L_B", "-pt BrPhoto2L_B" }, { "media=PostCard", "-pt PostCard" }, { "media=BrHagaki_B", "-pt BrHagaki_B" }, { "media=DoublePostCardRotated", "-pt DoublePostCardRotated" }, { "media=EnvC5", "-pt EnvC5" }, { "media=EnvDL", "-pt EnvDL" }, { "media=Env10", "-pt Env10" }, { "media=EnvMonarch", "-pt EnvMonarch" }, { "media=EnvYou4", "-pt EnvYou4" }, #endif // 1 // Thick { "BRColorPaperThick=Regular", "-thick Regular" }, { "BRColorPaperThick=Thick", "-thick Thick" }, // Thick { "BRDocument=Photo", "-doc Photo" }, { "BRDocument=Graphics", "-doc Graphics" }, { "BRDocument=Custom", "-doc Custom" }, // ColorMatch { "BRColorMatching=Natural", "-cm Natural" }, { "BRColorMatching=Vivid", "-cm Vivid" }, { "BRColorMatching=None", "-cm None" }, // BRHalfTonePattern { "BRHalfTonePattern=Diffusion", "-ht Diffusion" }, { "BRHalfTonePattern=Dither", "-ht Dither" }, // BRColorEnhancement { "BRColorEnhancement=OFF", "-ce OFF" }, { "BRColorEnhancement=ON", "-ce ON" }, // BRSlowDrying { "BRSlowDrying=OFF", "-sd OFF" }, { "BRSlowDrying=ON", "-sd ON" }, { NULL , NULL }, }; // +++++++++++++++++++++++++++ // command line (Standard command) // +++++++++++++++++++++++++++ CMDLINELIST standard_commandlinelist[] = { // for Fedora OpenOffice /* { "PageSize=A4", "-pt A4" }, { "PageSize=BrA4_B", "-pt BrA4_B" }, { "PageSize=Letter", "-pt Letter" }, { "PageSize=BrLetter_B", "-pt BrLetter_B" }, { "PageSize=Legal", "-pt Legal" }, { "PageSize=Executive", "-pt Executive" }, { "PageSize=B5", "-pt B5" }, { "PageSize=A5", "-pt A5" }, { "PageSize=A6", "-pt A6" }, { "PageSize=BrA6_B", "-pt BrA6_B" }, { "PageSize=PostC4x6", "-pt PostC4x6" }, { "PageSize=BrPostC4x6_B", "-pt BrPostC4x6_B" }, { "PageSize=IndexC5x8", "-pt IndexC5x8" }, { "PageSize=BrIndexC5x8_B", "-pt BrIndexC5x8_B" }, { "PageSize=PhotoL", "-pt PhotoL" }, { "PageSize=BrPhotoL_B", "-pt BrPhotoL_B" }, { "PageSize=Photo2L", "-pt Photo2L" }, { "PageSize=BrPhoto2L_B", "-pt BrPhoto2L_B" }, { "PageSize=PostCard", "-pt PostCard" }, { "PageSize=BrHagaki_B", "-pt BrHagaki_B" }, { "PageSize=DoublePostCardRotated", "-pt DoublePostCardRotated" }, { "PageSize=EnvC5", "-pt EnvC5" }, { "PageSize=EnvDL", "-pt EnvDL" }, { "PageSize=Env10", "-pt Env10" }, { "PageSize=EnvMonarch", "-pt EnvMonarch" }, { "PageSize=EnvYou4", "-pt EnvYou4" }, */ { NULL , NULL }, }; // +++++++++++++++++++++++++++ // command line numerical value // +++++++++++++++++++++++++++ CMDLINELIST commandlinelist2[] = { { "Copies=" , "-copy " }, { "Brightness=" , "-brit " }, { "Contrast=" , "-cont " }, { "Margin=" , "-margin " }, { NULL , NULL }, }; /* PPD Default */ // +++++++++++++++++++++++++++ // PPD setting list // +++++++++++++++++++++++++++ typedef struct { char *value; char *brcommand; } PPDCOMMANDLIST; typedef struct { char *label; PPDCOMMANDLIST ppdcommandlist[]; } PPDCOMMAND; // ***** DefaultResolution ***** PPDCOMMAND DefaultResolution={ "DefaultResolution", { { "Draft" , "-reso Draft" }, { "Fast" , "-reso Fast" }, { "Normal" , "-reso Normal" }, { "Fine" , "-reso Fine" }, { "Photo" , "-reso Photo" }, { "Highest" , "-reso Highest" }, { NULL , NULL } } }; // ***** DefaultPageSize ***** PPDCOMMAND DefaultPageSize={ "DefaultPageSize", { { "A4", "-pt A4" }, { "BrA4_B", "-pt BrA4_B" }, { "Letter", "-pt Letter" }, { "BrLetter_B", "-pt BrLetter_B" }, { "Legal", "-pt Legal" }, { "Executive", "-pt Executive" }, { "B5", "-pt B5" }, { "A5", "-pt A5" }, { "A6", "-pt A6" }, { "BrA6_B", "-pt BrA6_B" }, { "PostC4x6", "-pt PostC4x6" }, { "BrPostC4x6_B", "-pt BrPostC4x6_B" }, { "IndexC5x8", "-pt IndexC5x8" }, { "BrIndexC5x8_B", "-pt BrIndexC5x8_B" }, { "PhotoL", "-pt PhotoL" }, { "BrPhotoL_B", "-pt BrPhotoL_B" }, { "Photo2L", "-pt Photo2L" }, { "BrPhoto2L_B", "-pt BrPhoto2L_B" }, { "PostCard", "-pt PostCard" }, { "BrHagaki_B", "-pt BrHagaki_B" }, { "DoublePostCardRotated", "-pt DoublePostCardRotated" }, { "EnvC5", "-pt EnvC5" }, { "EnvDL", "-pt EnvDL" }, { "Env10", "-pt Env10" }, { "EnvMonarch", "-pt EnvMonarch" }, { "EnvYou4", "-pt EnvYou4" }, { NULL , NULL } } }; // ***** DefaultBRMonoColor***** PPDCOMMAND DefaultBRMonoColor={ "DefaultBRMonoColor", { { "BrColor" , "-corm Color" }, { "BrMono" , "-corm Mono" }, { NULL , NULL } } }; // ***** DefaultBRSlowDrying***** PPDCOMMAND DefaultBRSlowDrying={ "DefaultBRSlowDrying", { { "OFF", "-sd OFF" }, { "ON" , "-sd ON" }, { NULL , NULL } } }; // ***** DefaultBRColorMediaType***** PPDCOMMAND DefaultBRColorMediaType={ "DefaultBRColorMediaType", { { "Plain" , "-md Plain" }, { "Inkjet" , "-md Inkjet" }, { "BrotherGlossy" , "-md BrotherGlossy" }, { "Glossy" , "-md Glossy" }, { "Transparencies" , "-md Transparencies" }, { NULL , NULL } } }; // ***** DefaultBRColorPaperThick ***** PPDCOMMAND DefaultBRColorPaperThick={ "DefaultBRColorPaperThick", { { "Regular", "-thick Regular" }, { "Thick", "-thick Thick" }, { NULL , NULL } } }; // ******DefaultBRBiDir********** PPDCOMMAND DefaultBRBiDir={ "DefaultBRBiDir", { { "OFF" , "-bidir OFF" }, { "ON" , "-bidir ON" }, { NULL , NULL } } }; // ******DefaultMirrorPrint********** PPDCOMMAND DefaultMirrorPrint={ "DefaultMirrorPrint", { { "OFF" , "-mirro OFF" }, { "ON" , "-mirro ON" }, { NULL , NULL } } }; // ******DefaultBRDocument********** PPDCOMMAND DefaultBRDocument={ "DefaultBRDocument", { { "Photo", "-doc Photo" }, { "Graphics", "-doc Graphics" }, { "Custom", "-doc Custom" }, { NULL , NULL } } }; // ******DefaultBRColorMatching********** PPDCOMMAND DefaultBRColorMatching={ "DefaultBRColorMatching", { { "Natural", "-cm Natural" }, { "Vivid", "-cm Vivid" }, { "None", "-cm None" }, { NULL , NULL } } }; // ******DefaultBRHalfTonePattern********** PPDCOMMAND DefaultBRHalfTonePattern={ "DefaultBRHalfTonePattern", { { "Diffusion", "-ht Diffusion" }, { "Dither", "-ht Dither" }, { NULL , NULL } } }; // ******DefaultBRColorEnhancement********** PPDCOMMAND DefaultBRColorEnhancement={ "DefaultBRColorEnhancement", { { "OFF" , "-ce OFF" }, { "ON" , "-ce ON" }, { NULL , NULL } } }; // ******DefaultBRInputSlot********** PPDCOMMAND DefaultBRInputSlot={ "DefaultBRInputSlot", { { "AUTO" , "-feed AUTO" }, { "Tray1" , "-feed Tray1" }, { "Tray2" , "-feed Tray2" }, { NULL , NULL } } }; PPDCOMMAND *ppdcommand_all_list[] = { &DefaultBRInputSlot, &DefaultResolution, &DefaultPageSize, &DefaultBRMonoColor, &DefaultBRSlowDrying, &DefaultBRColorMediaType, &DefaultBRColorPaperThick, &DefaultBRBiDir, &DefaultMirrorPrint, &DefaultBRDocument, &DefaultBRColorMatching, &DefaultBRHalfTonePattern, &DefaultBRColorEnhancement, NULL }; /* PPD Default end*/ // +++++++++++++++++++++++++++ // PPD numerical value // +++++++++++++++++++++++++++ CMDLINELIST PPDdefaultN[] = { {"DefaultBRBrightness", "-brit "}, {"DefaultBRContrast", "-cont "}, {"DefaultBRRed", "-red "}, {"DefaultBRGreen", "-green "}, {"DefaultBRBlue", "-blue "}, { NULL , NULL }, }; /* CMDLINELIST PPDdefaultNValue[] = { {"DefaultBRBrightness", "-brit "}, {"DefaultBRContrast", "-cont "}, {"DefaultBRRed", "-red "}, {"DefaultBRGreen", "-green "}, {"DefaultBRBlue", "-blue "}, {"DefaultBRSaturation", "-saturation "}, { NULL , NULL }, }; */ // +++++++++++++++++++++++++++ // command line (Standard command) // +++++++++++++++++++++++++++ CMDLINELIST standard_media_commandlinelist[] = { /* { "A4" , "-pt A4" }, { "Letter" , "-pt LT" }, { "Legal" , "-pt LGL" }, { "Executive" , "-pt EXE" }, { "A5" , "-pt A5" }, // { "A6" , "-pt A6" }, { "B5" , "-pt B5" }, // { "B6" , "-pt B6" }, // { "C5" , "-pt C5" }, // { "EnvC5" , "-pt C5" }, { "DL" , "-pt DL" }, { "EnvDL" , "-pt DL" }, { "Com10" , "-pt COM-10" }, { "COM10" , "-pt COM-10" }, { "Com-10" , "-pt COM-10" }, { "COM-10" , "-pt COM-10" }, { "EnvCOM10" , "-pt COM-10" }, { "Env10" , "-pt COM-10" }, // { "Monarch" , "-pt MONARCH" }, // { "EnvMonarch" , "-pt MONARCH" }, { "PlainPaper" , "-md PLAIN" }, { "ThinPaper" , "-md THIN" }, { "ThickPaper" , "-md THICK" }, { "ThickerPaper" , "-md THICKER" }, // { "BondPaper" , "-md BOND" }, { "Transparencies" , "-md TRANS" }, { "Recycled" , "-md RECY" }, // { "Envelopes" , "-md ENV" }, // { "Env.Thick" , "-md ENV-THICK" }, // { "Env.Thin" , "-md ENV-THIN" }, { "Manual" , "-feed MANUAL" }, // { "MPTray" , "-feed MP" }, { "Tray1" , "-feed TRAY1" }, { "Tray2" , "-feed TRAY2" }, { "AutoSelect" , "-feed AUTO" }, */ { NULL , NULL } }; #endif //_BRCUPS_COMMANDS_H_ bh7-cupsw-src.1.0.0-9/brcupsconfig.c0100600000000000000000000003737510526722573015632 0ustar rootroot/* $Id: brcupsconfig.c,v 1.8 2005/08/22 01:52:02 cvs Exp $ */ //* Brother CUPS wrapper tool //* Copyright (C) 2005 Brother. Industries, Ltd.//* //* Ver1.00 //* This program is free software; you can redistribute it and/or modify it //* under the terms of the GNU General Public License as published by the Free //* Software Foundation; either version 2 of the License, or (at your option) //* any later version. //* //* This program is distributed in the hope that it will be useful, but WITHOUT //* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or //* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for //* more details. //* //* You should have received a copy of the GNU General Public License along with //* this program; if not, write to the Free Software Foundation, Inc., 59 Temple //* Place, Suite 330, Boston, MA 02111-1307 USA //* #include #include #include #include #include "brcups_commands.h" //#include "brcups_setting.h" CMDLINELIST standard_side_commandlinelist[]; int divide_media_token(char *input,char output[5][30]); #if 0 #define DEBUGPRINT(a) fprintf(stderr,a);fflush(stdout) #define DEBUGPRINT1(a1,a2) fprintf(stderr,a1,a2);fflush(stdout) #define DEBUGPRINT2(a1,a2,a3) fprintf(stderr,a1,a2,a3);fflush(stdout) #define DEBUGPRINT3(a1,a2,a3,a4) fprintf(stderr,a1,a2,a3,a4);fflush(stdout) #define DEBUGPRINT4(a1,a2,a3,a4,a5) fprintf(stderr,a1,a2,a3,a4,a5);fflush(stdout) #define DEBUGPRINT5(a1,a2,a3,a4,a5,a6) fprintf(stderr,a1,a2,a3,a4,a5,a6);fflush(stdout) #else #define DEBUGPRINT(a) #define DEBUGPRINT1(a1,a2) #define DEBUGPRINT2(a1,a2,a3) #define DEBUGPRINT3(a1,a2,a3,a4) #define DEBUGPRINT4(a1,a2,a3,a4,a5) #define DEBUGPRINT5(a1,a2,a3,a4,a5,a6) #endif int log_level = 0; typedef struct { char value[50]; char option[50]; } SETCOMMAND; SETCOMMAND command_array[100]; // // local functions // int initialize_command_list(); int add_command_list(char *option,char *command); int add_command_list_brcommand(char *command); int exec_brprintconf(char *brprintconf,char *printer); char *strstr_ex(char *data , char *serch_data); char *delete_ppd_comment(char *line); char *chk_ppd_default_setting_line(char *ppd_line); char *get_token(char *input,char *output); void write_log_file(int level,char *format,...); int main(int argc,char * argv[]) { char *printer; char ppd_line[500],tmp[500],*p_tmp,tmp_n[10],tmp_op[500]; FILE *fp_ppd; char *p; char *commandline,*ppdfile, *printer_model; int i,ii; DEBUGPRINT("main:start\n"); // fprintf (stderr, "ERROR: brcupsconfpt1 pid=%d\n", getpid()); // sleep(100); if(argc < 1){ return 0; } printer = argv[1]; if(argc > 2){ ppdfile= argv[2]; } else{ ppdfile=""; } // fprintf(stderr, "ERROR: pid=%d\n", getpid()); // sleep(1000); 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"; } printer_model = argv[5]; fp_ppd = fopen(ppdfile , "r"); if( fp_ppd == NULL) return 0; initialize_command_list(); //************************************ // set default setting //************************************ #if 0 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); } } } #endif // 0 //************************************ // set PPD option //************************************ DEBUGPRINT("main:set PPD option (string)\n"); write_log_file(5,"PPD SETTING\n"); while(fgets(ppd_line,sizeof(ppd_line),fp_ppd)){ if(NULL == delete_ppd_comment(ppd_line))continue; if(NULL == chk_ppd_default_setting_line(ppd_line))continue; //************************************ // set PPD option (string) //************************************ for ( i = 0; ppdcommand_all_list[i]!= NULL; i ++) { //DEBUGPRINT2( "main: set PPD option (string) [%s] [%s]\n", // ppd_line,ppdcommand_all_list[i]->label); p = strstr_ex(ppd_line,ppdcommand_all_list[i]->label); if(p) { //DEBUGPRINT2( "main: set PPD option (string) [%s] [%s]\n", // ppdcommand_all_list[i]->label,ppd_line); for (ii = 0; ppdcommand_all_list[i]->ppdcommandlist[ii].value != NULL; ii++) { //DEBUGPRINT3( "main: set PPD option (string) [%s] [%s] [%s]\n", // ppdcommand_all_list[i]->label,ppdcommand_all_list[i]->ppdcommandlist[ii].value , ppd_line); p = strstr_ex(ppd_line,ppdcommand_all_list[i]->ppdcommandlist[ii].value); if(p) { add_command_list_brcommand(ppdcommand_all_list[i]->ppdcommandlist[ii].brcommand); break; } } } } //************************************ // set PPD option (numerical) //************************************ for ( i = 0; PPDdefaultN[i].option!= NULL; i ++){ strcpy(tmp,PPDdefaultN[i].option); p_tmp = tmp; if(tmp[0] == '^')p_tmp ++; p = strstr_ex(ppd_line,p_tmp); if(p){ //DEBUGPRINT2( "main: set PPD option (numerical) [%s] [%s]\n", // ppd_line,p_tmp); sprintf(tmp,"%s %s",PPDdefaultN[i].value, p + strlen(PPDdefaultN[i].option)); //DEBUGPRINT1("set commandline option(n) ********** : [%s]\n",tmp); get_token(PPDdefaultN[i].value ,tmp_op); get_token(p + strlen(PPDdefaultN[i].option) ,tmp_n); add_command_list(tmp_op,tmp_n); } } } //************************************ // set brother command line option (string) //************************************ DEBUGPRINT("main:set brother command line option (string)\n"); write_log_file(5,"BROTHER COMMAND LINE SETTING(S)\n"); for ( i = 0; commandlinelist[i].value != NULL; i ++){ //DEBUGPRINT2("main:set command line option (string) Loop [%s] [%s]\n", // commandline,commandlinelist[i].value ); p = strstr_ex(commandline,commandlinelist[i].option); if(p){ add_command_list_brcommand(commandlinelist[i].value); } } //************************************ // set cups standard command line option (duplex) //************************************ DEBUGPRINT("main:set standard command line option (duplex)\n"); write_log_file(5,"STANDARD COMMAND LINE SETTING(DUPLEX)\n"); for ( i = 0; standard_side_commandlinelist[i].value != NULL; i ++){ //DEBUGPRINT2("main:set command line option (duplex) Loop [%s] [%s]\n", // commandline,standard_side_commandlinelist[i].option ); p = strstr_ex(commandline,standard_side_commandlinelist[i].option); if(p){ add_command_list_brcommand(standard_side_commandlinelist[i].value); } } //************************************ // set cups standard command line option (media ) //************************************ DEBUGPRINT("main:set standard command line option (media)\n"); write_log_file(5,"STANDARD COMMAND LINE SETTING(MEDIA)\n"); { char output[5][30]; int max; max = divide_media_token(commandline,output); //DEBUGPRINT2("main:set command line option (media) Loop count %d %s \n", // max,commandline); for ( ii=0; ii < max; ii++){ // for ( i = 0; standard_media_commandlinelist[i].value != NULL; i ++){ for ( i = 0; standard_commandlinelist[i].value != NULL; i ++){ //DEBUGPRINT2("main:set command line option (media) Loop [%s] [%s]\n", // output[ii],standard_media_commandlinelist[i].option); p = strstr(standard_commandlinelist[i].option, output[ii]); if(p){ add_command_list_brcommand(standard_commandlinelist[i].value); } } } } //************************************ // set command line option (numerical) //************************************ DEBUGPRINT("main:set command line option (numerical)\n"); write_log_file(5,"COMMAND LINE SETTING(N)\n"); for(i = 0; commandlinelist2[i].option != NULL; i ++){ p = strstr_ex(commandline,commandlinelist2[i].option); //DEBUGPRINT3("set commandline option(n) : [%s] [%s] [%s]\n" // ,commandline,commandlinelist2[i].option,p); if(p){ //DEBUGPRINT3("set commandline option(n) 1 ********** : [%s] [%s] [%s]\n" // ,tmp_n,p + strlen(commandlinelist2[i].option),p); get_token(commandlinelist2[i].value ,tmp_op); get_token(p + strlen(commandlinelist2[i].option) ,tmp_n); sprintf(tmp,"%s %s",tmp_op,tmp_n ); //DEBUGPRINT2("set commandline option(n) 2 ********** : [%s] [%s]\n" // ,tmp_op,tmp_n); add_command_list(tmp_op,tmp_n); } } //************************************ // call brprintconf //************************************ exec_brprintconf(brprintconf,printer_model); return 0; } int initialize_command_list(){ int i; char *p; //DEBUGPRINT("initialize_command_list:start\n"); p = (char *)command_array; for ( i = 0; i < (int)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_%s %s \"%s\"",brprintconf, printer, command_array[i].option, command_array[i].value); write_log_file(1,"%s\n",exec); // fprintf (stderr, "ERROR:%s\n", exec); system(exec); //DEBUGPRINT1("exec: %s\n",exec); } return 0; } int add_command_list(char *option,char *value){ char *p; int i; //DEBUGPRINT2(" add_command_list:start [%s] [%s]\n",option,value); if(!option || !value || !option[0] || !value[0]){ //DEBUGPRINT2(" add_command_list:start ERROR [%d] [%s]\n",option,value); return 0; } for ( i = 0; command_array[i].option[0] != 0; i ++ ){ //DEBUGPRINT4(" add_command_list:[%s] [%s] [%s] %d\n" // ,command_array[i].value,option,value,i); p = strstr_ex(command_array[i].option , option); if(p){ //DEBUGPRINT2(" add_command_list chg element %s %s\n",option,value); write_log_file(3," C %s %s\n",option,value); strcpy(command_array[i].value, value); break; } } if(command_array[i].option[0] == 0){ //DEBUGPRINT2(" add_command_list add element %s %s\n",option,value); strcpy( command_array[i].option ,option); strcpy( command_array[i].value ,value); write_log_file(3," A %s %s\n",option,value); } return 1; } int add_command_list_brcommand_sub(char *command){ char option[100],*p1,*p2; char value[100]; //DEBUGPRINT1(" add_command_list_brcommand:start %s\n",command); strncpy(option,command,sizeof(option)-1); option[sizeof(option)] = 0; p1 = strchr(option, ' '); p2 = strchr(option, '\t'); if(p1 > p2 && p2 != NULL)p1 = p2; if(p1 == NULL){ return 0; } *p1 = 0; p1 ++; while(*p1 == ' ' || *p1 == '\t') p1 ++; strcpy(value , p1); //DEBUGPRINT2("call add_command_list %s %s",option,value); return add_command_list(option,value); } int add_command_list_brcommand(char *command){ char multi_brcommands[500]; char *p,*start; 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 0; } 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 ':': case 0x0d: case 0x0a: case 0x0c: pi++; continue; case 0x00: break; } break; } while((c = *pi)){ switch(c){ case ' ': case '\t': case '=': case 0x0d: case 0x0a: case 0x0c: case 0x00: *po = 0; //DEBUGPRINT2("get_token2A: [%s] [%s] \n", input,output); return output; break; } *po = c; po ++; pi ++; } *po = 0; // DEBUGPRINT2("get_token2B : [%s] [%s] \n", input,output); return output; } //--------------------for debug log------------------- void write_log_file(int level,char *format,...){ // 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 MEDIAEQ1 "media=" #define MEDIAEQ2 "PageSize=" int divide_media_token(char *input,char output[5][30]){ char media_command[100]; char *p,*pp; int i; if((p = strstr(input,MEDIAEQ1)) != NULL) { strcpy(media_command,p+strlen(MEDIAEQ1)); } else if((p = strstr(input,MEDIAEQ2)) != NULL) { strcpy(media_command,p+strlen(MEDIAEQ2)); } 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 } }; bh7-cupsw-src.1.0.0-9/brcupsconfpt10100600000000000000000000003656010526722573015511 0ustar rootrootELF494 (444!!0.6((( Qtd/lib/ld-linux.so.2GNU   <gRK~5EJHY}`h6n=4  .0_Jv_RegisterClasses__gmon_start__libc.so.6strcpystdoutvsprintffgetssystemfflushstrstrstrncpyfopen_IO_stdin_used__libc_start_mainstrlenstrchrfputsGLIBC_2.1GLIBC_2.0$ii ii lptx|    U5d%h%lh%ph%th%xh%|h %h(%h0%h8p%h@`%hHP%hP@%hX0%h` 1^PTRhhQVhPUS[ó1P@tЋ]ÐU=ķu-tҡuķÉU\t!t$\y]ÐUWVSM] ~sC ,0< ƒ0طӝ0~ C0[]|$4$,u4;\$$ <$4T$D$<$tщ<$ tš1tBv'<$D$t1ɉ(P Fuȡ 1i'D$$^D$<$ $D$ $L$$D$5D$$$D $T$$ D$$F (=(D<$D$Ru ((\u(D$%$@1D$DtE@t&'@0D$$tD$FDu$1D$d$1|$8j\$0$(9($} v'̷1tF &'|$ȷ$t̷$F ̷u($ 9(|$1T$ 'D$0$~tnD$$$ $h|$$|$ D$T$$t|$$*F j$ ,T$te1[^_]Ë`D$0$td$Fdu11U'vBHy]'ÉUWVS\} =te1ۉ|$ D$dD$E4$D$D$ut$1D$$4$u\1[^_]ÍU(]Mu}tU tE8t U :uv1]u}]Ð=Et81&$UT$qEddd>u؋Ut늋ED$$U $T$v$E UD$ "T$D$$E UD$ 5D$T$E D$$TUcVuSD$E4$D$E D$4$4$ø D$ 9vt1t-C< t,< t(\$$\$4$5[^]C< t< tʍ'UVS$ED$8C-މT$$rt:9vC< t"< t&'4$붍C4$1[^]ÍUVSEu $t$N1t4$N< t< t<;t <:t ؃[^]C< t< t<;t<:tU]] }}u\$<$1$09vTB< tL< tH<;tD<:t@t<< t8<*t4<=t0 t( t#;t:tt t1*u;'9v,V t# t;t:tt t 1*ut&]u}]ÐU%S]D$$t$ D$t$ D$t$ L$t1;H!É[]ÍvUH]]D$$19]]H!U ]Euu ҈Ut"ʃ=w*$v@҈Uu㐍t&]u]Ð}tv'ʃ=w$@CuÍvUH]طUt9E~]]ÉT$E $D$k$D$$mvUQWVSuD$4$@D$x 4$EEE\$4$t4$ L$t4$ T$t} 1t;t?$,D$t<$\$:tt t^~tĜ[^_]É4$X|$1t܍C UWV1S $)9s׍&'F9r [^_]ÍU$Br$t$)pu[$t$]Nu$ÐUSLLtv'ЋuX[]US[#RJ]Collate=OFF-collate OFFCollate=ON-collate ONBRColorMediaType=Plain-md PlainBRColorMediaType=Inkjet-md Inkjet-md BrotherGlossyBRColorMediaType=Glossy-md Glossy-md TransparenciesResolution=Draft-reso DraftResolution=Fast-reso FastResolution=Normal-reso NormalResolution=Fine-reso FineResolution=Photo-reso PhotoResolution=Highest-reso HighestBRBiDir=OFF-bidir OFFBRBiDir=ON-bidir ONnoBRBiDirMirrorPrint=OFF-mirro OFFMirrorPrint=ON-mirro ONNoMirrorPrintBRMonoColor=BrColor-corm ColorBRMonoColor=BrMono-corm MonoPageSize=A4-pt A4PageSize=BrA4_B-pt BrA4_BPageSize=Letter-pt LetterPageSize=BrLetter_B-pt BrLetter_BPageSize=Legal-pt LegalPageSize=Executive-pt ExecutivePageSize=B5-pt B5PageSize=A5-pt A5PageSize=A6-pt A6PageSize=BrA6_B-pt BrA6_BPageSize=PostC4x6-pt PostC4x6PageSize=BrPostC4x6_B-pt BrPostC4x6_BPageSize=IndexC5x8-pt IndexC5x8PageSize=BrIndexC5x8_B-pt BrIndexC5x8_BPageSize=PhotoL-pt PhotoLPageSize=BrPhotoL_B-pt BrPhotoL_BPageSize=Photo2L-pt Photo2LPageSize=BrPhoto2L_B-pt BrPhoto2L_BPageSize=PostCard-pt PostCardPageSize=BrHagaki_B-pt BrHagaki_B-pt DoublePostCardRotatedPageSize=EnvC5-pt EnvC5PageSize=EnvDL-pt EnvDLPageSize=Env10-pt Env10PageSize=EnvMonarch-pt EnvMonarchPageSize=EnvYou4-pt EnvYou4media=A4media=BrA4_Bmedia=Lettermedia=BrLetter_Bmedia=Legalmedia=Executivemedia=B5media=A5media=A6media=BrA6_Bmedia=PostC4x6media=BrPostC4x6_Bmedia=IndexC5x8media=BrIndexC5x8_Bmedia=PhotoLmedia=BrPhotoL_Bmedia=Photo2Lmedia=BrPhoto2L_Bmedia=PostCardmedia=BrHagaki_Bmedia=DoublePostCardRotatedmedia=EnvC5media=EnvDLmedia=Env10media=EnvMonarchmedia=EnvYou4BRColorPaperThick=Regular-thick RegularBRColorPaperThick=Thick-thick ThickBRDocument=Photo-doc PhotoBRDocument=Graphics-doc GraphicsBRDocument=Custom-doc CustomBRColorMatching=Natural-cm NaturalBRColorMatching=Vivid-cm VividBRColorMatching=None-cm NoneBRHalfTonePattern=Diffusion-ht DiffusionBRHalfTonePattern=Dither-ht DitherBRColorEnhancement=OFF-ce OFFBRColorEnhancement=ON-ce ONBRSlowDrying=OFF-sd OFFBRSlowDrying=ON-sd ONCopies=-copy Brightness=-brit Contrast=-cont Margin=-margin DefaultResolutionDefaultPageSizeDefaultBRMonoColorDefaultBRSlowDryingDefaultBRColorMediaTypeDefaultBRColorPaperThickDefaultBRBiDirDefaultMirrorPrintDefaultBRDocumentDefaultBRColorMatchingDefaultBRHalfTonePatternDefaultBRColorEnhancementDefaultBRInputSlot-feed AUTO-feed Tray1-feed Tray2DefaultBRBrightnessDefaultBRContrastDefaultBRRed-red DefaultBRGreen-green DefaultBRBlue-blue NULL COMMAND LINEPPD SETTING %s %sCOMMAND LINE SETTING(N) %s_%s %s "%s" A %s %s C %s %s *Defaultmedia=PageSize=sides=two-sided-long-edge-dx ON -dxt LONGsides=two-sided-short-edge-dx ON -dxt SHORTsides=one-side-dx OFFBRColorMediaType=BrotherGlossyBRColorMediaType=TransparenciesPageSize=DoublePostCardRotatedBROTHER COMMAND LINE SETTING(S) STANDARD COMMAND LINE SETTING(DUPLEX) STANDARD COMMAND LINE SETTING(MEDIA) АААААААААААААААААААААААААААААААААААААААААААААААААААААААXbrprintconf̓ؓ.FQdu˔֔ +6@ B6JZet~Ztʕ֕ݕ'6EObp|Ė֖ +BTdoėԗ 0?IXbq{֕Ęјޘ'Eb |&3֖BUeBydėƙי?X q(6P_wšԚ$9B^lś̛ݛ (/7@{uє˔ Rڕ֕ +'IEfb|ږ֖!FBhdȗė C?\Xuqbuݛ JFUQWP~w 6ɜZtܜٚԚ=9b^ś8QK\VhbH`|̴ Dhn(̝b|ɞ$  pH܁ `ho؃oo΄ބ.>N^nGCC: (GNU) 3.3.5 (Debian 1:3.3.5-12)GCC: (GNU) 3.3.5 (Debian 1:3.3.5-12)GCC: (GNU) 3.3.5 (Debian 1:3.3.5-13)GCC: (GNU) 3.3.5 (Debian 1:3.3.5-13)GCC: (GNU) 3.3.5 (Debian 1:3.3.5-12)GCC: (GNU) 3.3.5 (Debian 1:3.3.5-13)GCC: (GNU) 3.3.5 (Debian 1:3.3.5-12).shstrtab.interp.note.ABI-tag.hash.dynsym.dynstr.gnu.version.gnu.version_r.rel.dyn.rel.plt.init.text.fini.rodata.data.eh_frame.dynamic.ctors.dtors.jcr.got.bss.comment (( !HH' ܁ /7o$Do؃0S \ h e`k qppw8 0 66LL7TT7\\7``7D70' 7 8bh7-cupsw-src.1.0.0-9/brcupsconfpt1.pro0100600000000000000000000000022510526722573016275 0ustar rootrootTEMPLATE = app CONFIG = warn_on release HEADERS = brcups_commands.h SOURCES = brcupsconfig.c INCLUDEPATH += ../common TARGET = brcupsconfpt1 bh7-cupsw-src.1.0.0-9/cupswrapper.tmp0100600000000000000000000007070610526722573016072 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 # printer_model=PRINTER_NAME printer_name=`echo $printer_model | tr '[a-z]' '[A-Z]'` device_name=`echo $printer_name | eval sed -e 's/MFC/MFC-/' -e 's/DCP/DCP-/' -e 's/FAX/FAX-/'` pcfilename=`echo $printer_name | tr -d '[A-Z]'` device_model="Printer" if [ "$1" = '-e' ]; then lpadmin -x ${printer_name} rm -f /usr/share/cups/model/br${printer_model}.ppd rm -f /usr/lib/cups/filter/brlpdwrapper${printer_model} rm -f /usr/lib64/cups/filter/brlpdwrapper${printer_model} rm -f /usr/local/Brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart elif [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi # /etc/init.d/cups restart exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x ${printer_name} if [ -e /etc/init.d/cups ]; then /etc/init.d/cups restart elif [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi # /etc/init.d/cups restart 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/${device_model}/${printer_model}/filter #mkdir -p /usr/lib/cups/filter if [ -e "/usr/local/Brother/${device_model}/${printer_model}/lpd/filter${printer_model}" ]; then : else echo "ERROR : Brother LPD filter is not installed." fi rm -f /usr/share/cups/model/br${printer_model}.ppd ppd_file_name=/usr/share/cups/model/br${printer_model}.ppd cat <$ppd_file_name *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. *% "Brother ${device_name} CUPS" *%================================================ *%==== General Information Keywords ======================== *FormatVersion: "4.3" *FileVersion: "1.00" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "BR${pcfilename}_2.PPD" *Manufacturer: "Brother" *Product: "(${device_name})" *1284DeviceID: "MFG:Brother;MDL:${device_name}" *cupsVersion: 1.1 *cupsManualCopies: False *cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapper${printer_model}" *cupsModelNumber: 8 *ModelName: "Brother ${device_name}" *ShortNickName: "Brother ${device_name}" *NickName: "Brother ${device_name} CUPS v1.1" *PSVersion: "(3010.106) 3" *%==== Basic Device Capabilities ============= *LanguageLevel: "3" *ColorDevice: True *DefaultColorSpace: RGB *FileSystem: False *Throughput: "12" *LandscapeOrientation: Plus90 *VariablePaperSize: False *TTRasterizer: Type42 *FreeVM: "1700000" *DefaultOutputOrder: Reverse *%==== Media Selection ====================== *OpenUI *PageSize/Media Size: PickOne *OrderDependency: 11 AnySetup *PageSize *DefaultPageSize: Letter *PageSize A4/A4: " " *PageSize BrA4_B/A4 (Borderless): " " *PageSize Letter/Letter: " " *PageSize BrLetter_B/Letter (Borderless): " " *PageSize Legal/Legal: " " *PageSize Executive/Executive: " " *PageSize B5/JIS B5: " " *PageSize A5/A5: " " *PageSize A6/A6: " " *PageSize BrA6_B/A6 (Borderless): " " *PageSize PostC4x6/Photo: " " *PageSize BrPostC4x6_B/Photo (Borderless): " " *PageSize IndexC5x8/Index Card: " " *PageSize BrIndexC5x8_B/Index Card (Borderless): *PageSize PhotoL/Photo L: " " *PageSize BrPhotoL_B/Photo L (Borderless): " " *PageSize Photo2L/Photo 2L: " " *PageSize BrPhoto2L_B/Photo 2L (Borderless): " " *PageSize PostCard/Postcard 1: " " *PageSize BrHagaki_B/Postcard 1 (Borderless): " " *PageSize DoublePostCardRotated/Postcard 2 (Double): " " *PageSize EnvC5/C5 Envelope: " " *PageSize EnvDL/DL Envelope: " " *PageSize Env10/Com-10: " " *PageSize EnvMonarch/Monarch: " " *PageSize EnvYou4/JE4 Envelope: " " *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 12 AnySetup *PageRegion *DefaultPageRegion: Letter *PageRegion A4/A4: " " *PageRegion BrA4_B/A4 (Borderless): " " *PageRegion Letter/Letter: " " *PageRegion BrLetter_B/Letter (Borderless): " " *PageRegion Legal/Legal: " " *PageRegion Executive/Executive: " " *PageRegion B5/JIS B5: " " *PageRegion A5/A5: " " *PageRegion A6/A6: " " *PageRegion BrA6_B/A6 (Borderless): " " *PageRegion PostC4x6/Photo: " " *PageRegion BrPostC4x6_B/Photo (Borderless): " " *PageRegion IndexC5x8/Index Card: " " *PageRegion BrIndexC5x8_B/Index Card (Borderless): " " *PageRegion PhotoL/Photo L: " " *PageRegion BrPhotoL_B/Photo L (Borderless): " " *PageRegion Photo2L/Photo 2L: " " *PageRegion BrPhoto2L_B/Photo 2L (Borderless): " " *PageRegion PostCard/Postcard 1: " " *PageRegion BrHagaki_B/Postcard 1 (Borderless): " " *PageRegion DoublePostCardRotated/Postcard 2 (Double): " " *PageRegion EnvC5/C5 Envelope: " " *PageRegion EnvDL/DL Envelope: " " *PageRegion Env10/Com-10: " " *PageRegion EnvMonarch/Monarch: " " *PageRegion EnvYou4/JE4 Envelope: " " *CloseUI: *PageRegion *DefaultImageableArea: Letter *ImageableArea A4/A4: "9 9 586 833" *ImageableArea BrA4_B/A4 (Borderless): "6 6 615 862" *ImageableArea Letter/Letter: "9 9 603 783" *ImageableArea BrLetter_B/Letter (Borderless): "9 9 629 809" *ImageableArea Legal/Legal: "9 9 603 999" *ImageableArea Executive/Executive: "9 9 513 747" *ImageableArea B5/JIS B5: "9 9 507 720" *ImageableArea A5/A5: "9 9 411 586" *ImageableArea A6/A6: "9 9 289 410" *ImageableArea BrA6_B/A6 (Borderless): "6 6 319 439" *ImageableArea PostC4x6/Photo: "9 9 279 423" *ImageableArea BrPostC4x6_B/Photo (Borderless): "6 6 308 452" *ImageableArea IndexC5x8/Index Card: "9 9 351 567" *ImageableArea BrIndexC5x8_B/Index Card (Borderless): "6 6 380 596" *ImageableArea PhotoL/Photo L: "9 9 243 351" *ImageableArea BrPhotoL_B/Photo L (Borderless): "6 6 273 380" *ImageableArea Photo2L/Photo 2L: "9 9 350 496" *ImageableArea BrPhoto2L_B/Photo 2L (Borderless): "6 6 380 525" *ImageableArea PostCard/Postcard 1: "9 9 274 410" *ImageableArea BrHagaki_B/Postcard 1 (Borderless): "6 6 303 439" *ImageableArea DoublePostCardRotated/Postcard 2 (Double): "9 9 411 558" *ImageableArea EnvC5/C5 Envelope: "9 68 450 615" *ImageableArea EnvDL/DL Envelope: "9 68 303 590" *ImageableArea Env10/Com-10: "9 68 288 650" *ImageableArea EnvMonarch/Monarch: "9 68 270 506" *ImageableArea EnvYou4/JE4 Envelope: "9 68 288 630" *%==== Information About Media Sizes ======== *DefaultPaperDimension: Letter *PaperDimension A4/A4: "595 842" *PaperDimension BrA4_B/A4 (Borderless): "621 868" *PaperDimension Letter/Letter: "612 792" *PaperDimension BrLetter_B/Letter (Borderless): "638 818" *PaperDimension Legal/Legal: "612 1008" *PaperDimension Executive/Executive: "522 756" *PaperDimension B5/JIS B5: "516 729" *PaperDimension A5/A5: "420 595" *PaperDimension A6/A6: "298 419" *PaperDimension BrA6_B/A6 (Borderless): "325 445" *PaperDimension PostC4x6/Photo: "288 432" *PaperDimension BrPostC4x6_B/Photo (Borderless): "314 458" *PaperDimension IndexC5x8/Index Card: "360 576" *PaperDimension BrIndexC5x8_B/Index Card (Borderless): "386 602" *PaperDimension PhotoL/Photo L: "252 360" *PaperDimension BrPhotoL_B/Photo L (Borderless): "279 386" *PaperDimension Photo2L/Photo 2L: "359 505" *PaperDimension BrPhoto2L_B/Photo 2L (Borderless): "386 531" *PaperDimension PostCard/Postcard 1: "283 419" *PaperDimension BrHagaki_B/Postcard 1 (Borderless): "309 445" *PaperDimension DoublePostCardRotated/Postcard 2 (Double): "420 567" *PaperDimension EnvC5/C5 Envelope: "459 649" *PaperDimension EnvDL/DL Envelope: "312 624" *PaperDimension Env10/Com-10: "297 684" *PaperDimension EnvMonarch/Monarch: "279 540" *PaperDimension EnvYou4/JE4 Envelope: "297 664" *%==== Resolution Features ================================= *OpenUI *Resolution/Quality: PickOne *OrderDependency: 14 AnySetup *Resolution *DefaultResolution: Normal *Resolution Draft/Fast: " " *Resolution Fast/Fast Normal: " " *Resolution Normal/Normal: " " *Resolution Fine/Fine: " " *Resolution Photo/Photo: " " *Resolution Highest/Highest: " " *CloseUI: *Resolution *%=== MonoOrColor ================================ *OpenUI *BRMonoColor/Color/Grayscale: PickOne *OrderDependency: 15 AnySetup *BRMonoColor *DefaultBRMonoColor: BrColor *BRMonoColor BrColor/Color: "" *BRMonoColor BrMono/Grayscale: "" *CloseUI: *BRMonoColor *%=== SlowDrying ================================ *OpenUI *BRSlowDrying/Slow Drying Paper: PickOne *OrderDependency: 31 AnySetup *BRSlowDrying *DefaultBRSlowDrying: OFF *BRSlowDrying OFF/OFF: "" *BRSlowDrying ON/ON: "" *CloseUI: *BRSlowDrying ENDOFPPDFILE1 if [ $printer_model = "mfc5860cn" ]; then cat <>$ppd_file_name *%=== Media Type ================================ *OpenUI *BRInputSlot/Paper Feed: PickOne *OrderDependency: 13 AnySetup *BRInputSlot *DefaultBRInputSlot: AUTO *BRInputSlot AUTO/Auto Select: " " *BRInputSlot Tray1/Tray 1: " " *BRInputSlot Tray2/Tray 2: " " *CloseUI: *BRInputSlot ENDOFPPDFILE_2 fi cat <>$ppd_file_name *%=== Media Type ================================ *OpenUI *BRColorMediaType/Media Type: PickOne *OrderDependency: 16 AnySetup *BRColorMediaType *DefaultBRColorMediaType: Plain *BRColorMediaType Plain/Plain Paper: " " *BRColorMediaType Inkjet/Inkjet Paper: " " *BRColorMediaType BrotherGlossy/Brother Premium Glossy Photo Paper: " " *BRColorMediaType Glossy/Other Photo Paper: " " *BRColorMediaType Transparencies/Transparencies: " " *CloseUI: *BRColorMediaType *%=== Paper Thick ================================ *OpenUI *BRColorPaperThick/Paper Thickness: PickOne *OrderDependency: 17 AnySetup *BRColorPaperThick *DefaultBRColorPaperThick: Regular *BRColorPaperThick Regular/Regular: "" *BRColorPaperThick Thick/Thick: "" *CloseUI: *BRColorPaperThick *%=== Bi-DirKey ================================ *OpenUI *BRBiDir/Bi-Directional Printing: PickOne *OrderDependency: 18 AnySetup *BRColorPaperThick *DefaultBRBiDir: ON *BRBiDir OFF/OFF: "" *BRBiDir ON/ON: "" *CloseUI: *BRBiDir *%=== Mirror Printing ================================ *OpenUI *MirrorPrint/Mirror Print: Boolean *OrderDependency: 20 AnySetup *MirrorPrint *DefaultMirrorPrint: OFF *MirrorPrint OFF/OFF: " " *MirrorPrint ON/ON: " " *CloseUI: *MirrorPrint *OpenGroup: Image Type *%=== Document ================================ *OpenUI *BRDocument/ Image Type: PickOne *OrderDependency: 21 AnySetup *BRDocument *DefaultBRDocument: Photo *BRDocument Photo/Photo: "" *BRDocument Graphics/Graphics: "" *BRDocument Custom/Custom: "" *CloseUI: *BRDocument *%=== Color Matching ================================ *OpenUI *BRColorMatching/Color Matching: PickOne *OrderDependency: 22 AnySetup *BRColorMatching *DefaultBRColorMatching: Natural *BRColorMatching Natural/Natural: "" *BRColorMatching Vivid/Vivid: "" *BRColorMatching None/None: "" *CloseUI: *BRColorMatching *%=== Half Tone Pattern ================================ *OpenUI *BRHalfTonePattern/Halftone Pattern: PickOne *OrderDependency: 23 AnySetup *BRHalfTonePattern *DefaultBRHalfTonePattern: Diffusion *BRHalfTonePattern Diffusion/Diffusion: "" *BRHalfTonePattern Dither/Dither: "" *CloseUI: *BRHalfTonePattern *CloseGroup: Image Type *OpenGroup: Color Enhancement *%=== True2Life ================================ *OpenUI *BRColorEnhancement/ Color Enhancement (True2Life): PickOne *OrderDependency: 24 AnySetup *BRColorEnhancement *DefaultBRColorEnhancement: OFF *BRColorEnhancement OFF/OFF: "" *BRColorEnhancement ON/ON: "" *CloseUI: *BRColorEnhancement *%=== Brightness ================================ *OpenUI *BRBrightness/ Brightness: PickOne *OrderDependency: 25 AnySetup *BRBrightness *DefaultBRBrightness: 0 *BRBrightness -20/-20: "" *BRBrightness -19/-19: "" *BRBrightness -18/-18: "" *BRBrightness -17/-17: "" *BRBrightness -16/-16: "" *BRBrightness -15/-15: "" *BRBrightness -14/-14: "" *BRBrightness -13/-13: "" *BRBrightness -12/-12: "" *BRBrightness -11/-11: "" *BRBrightness -10/-10: "" *BRBrightness -9/-9: "" *BRBrightness -8/-8: "" *BRBrightness -7/-7: "" *BRBrightness -6/-6: "" *BRBrightness -5/-5: "" *BRBrightness -4/-4: "" *BRBrightness -3/-3: "" *BRBrightness -2/-2: "" *BRBrightness -1/-1: "" *BRBrightness 0/0: "" *BRBrightness 1/1: "" *BRBrightness 2/2: "" *BRBrightness 3/3: "" *BRBrightness 4/4: "" *BRBrightness 5/5: "" *BRBrightness 6/6: "" *BRBrightness 7/7: "" *BRBrightness 8/8: "" *BRBrightness 9/9: "" *BRBrightness 10/10: "" *BRBrightness 11/11: "" *BRBrightness 12/12: "" *BRBrightness 13/13: "" *BRBrightness 14/14: "" *BRBrightness 15/15: "" *BRBrightness 16/16: "" *BRBrightness 17/17: "" *BRBrightness 18/18: "" *BRBrightness 19/19: "" *BRBrightness 20/20: "" *CloseUI: *BRBrightness *%=== Contrast ================================ *OpenUI *BRContrast/ Contrast: PickOne *OrderDependency: 26 AnySetup *BRContrast *DefaultBRContrast: 0 *BRContrast -20/-20: "" *BRContrast -19/-19: "" *BRContrast -18/-18: "" *BRContrast -17/-17: "" *BRContrast -16/-16: "" *BRContrast -15/-15: "" *BRContrast -14/-14: "" *BRContrast -13/-13: "" *BRContrast -12/-12: "" *BRContrast -11/-11: "" *BRContrast -10/-10: "" *BRContrast -9/-9: "" *BRContrast -8/-8: "" *BRContrast -7/-7: "" *BRContrast -6/-6: "" *BRContrast -5/-5: "" *BRContrast -4/-4: "" *BRContrast -3/-3: "" *BRContrast -2/-2: "" *BRContrast -1/-1: "" *BRContrast 0/0: "" *BRContrast 1/1: "" *BRContrast 2/2: "" *BRContrast 3/3: "" *BRContrast 4/4: "" *BRContrast 5/5: "" *BRContrast 6/6: "" *BRContrast 7/7: "" *BRContrast 8/8: "" *BRContrast 9/9: "" *BRContrast 10/10: "" *BRContrast 11/11: "" *BRContrast 12/12: "" *BRContrast 13/13: "" *BRContrast 14/14: "" *BRContrast 15/15: "" *BRContrast 16/16: "" *BRContrast 17/17: "" *BRContrast 18/18: "" *BRContrast 19/19: "" *BRContrast 20/20: "" *CloseUI: *BRContrast *%=== Red ================================ *OpenUI *BRRed/ Red: PickOne *OrderDependency: 27 AnySetup *BRRed *DefaultBRRed: 0 *BRRed -20/-20: "" *BRRed -19/-19: "" *BRRed -18/-18: "" *BRRed -17/-17: "" *BRRed -16/-16: "" *BRRed -15/-15: "" *BRRed -14/-14: "" *BRRed -13/-13: "" *BRRed -12/-12: "" *BRRed -11/-11: "" *BRRed -10/-10: "" *BRRed -9/-9: "" *BRRed -8/-8: "" *BRRed -7/-7: "" *BRRed -6/-6: "" *BRRed -5/-5: "" *BRRed -4/-4: "" *BRRed -3/-3: "" *BRRed -2/-2: "" *BRRed -1/-1: "" *BRRed 0/0: "" *BRRed 1/1: "" *BRRed 2/2: "" *BRRed 3/3: "" *BRRed 4/4: "" *BRRed 5/5: "" *BRRed 6/6: "" *BRRed 7/7: "" *BRRed 8/8: "" *BRRed 9/9: "" *BRRed 10/10: "" *BRRed 11/11: "" *BRRed 12/12: "" *BRRed 13/13: "" *BRRed 14/14: "" *BRRed 15/15: "" *BRRed 16/16: "" *BRRed 17/17: "" *BRRed 18/18: "" *BRRed 19/19: "" *BRRed 20/20: "" *CloseUI: *BRRed *%=== Green ================================ *OpenUI *BRGreen/ Green: PickOne *OrderDependency: 28 AnySetup *BRGreen *DefaultBRGreen: 0 *BRGreen -20/-20: "" *BRGreen -19/-19: "" *BRGreen -18/-18: "" *BRGreen -17/-17: "" *BRGreen -16/-16: "" *BRGreen -15/-15: "" *BRGreen -14/-14: "" *BRGreen -13/-13: "" *BRGreen -12/-12: "" *BRGreen -11/-11: "" *BRGreen -10/-10: "" *BRGreen -9/-9: "" *BRGreen -8/-8: "" *BRGreen -7/-7: "" *BRGreen -6/-6: "" *BRGreen -5/-5: "" *BRGreen -4/-4: "" *BRGreen -3/-3: "" *BRGreen -2/-2: "" *BRGreen -1/-1: "" *BRGreen 0/0: "" *BRGreen 1/1: "" *BRGreen 2/2: "" *BRGreen 3/3: "" *BRGreen 4/4: "" *BRGreen 5/5: "" *BRGreen 6/6: "" *BRGreen 7/7: "" *BRGreen 8/8: "" *BRGreen 9/9: "" *BRGreen 10/10: "" *BRGreen 11/11: "" *BRGreen 12/12: "" *BRGreen 13/13: "" *BRGreen 14/14: "" *BRGreen 15/15: "" *BRGreen 16/16: "" *BRGreen 17/17: "" *BRGreen 18/18: "" *BRGreen 19/19: "" *BRGreen 20/20: "" *CloseUI: *BRGreen *%=== Blue ================================ *OpenUI *BRBlue/Blue: PickOne *OrderDependency: 29 AnySetup *BRBlue *DefaultBRBlue: 0 *BRBlue -20/-20: "" *BRBlue -19/-19: "" *BRBlue -18/-18: "" *BRBlue -17/-17: "" *BRBlue -16/-16: "" *BRBlue -15/-15: "" *BRBlue -14/-14: "" *BRBlue -13/-13: "" *BRBlue -12/-12: "" *BRBlue -11/-11: "" *BRBlue -10/-10: "" *BRBlue -9/-9: "" *BRBlue -8/-8: "" *BRBlue -7/-7: "" *BRBlue -6/-6: "" *BRBlue -5/-5: "" *BRBlue -4/-4: "" *BRBlue -3/-3: "" *BRBlue -2/-2: "" *BRBlue -1/-1: "" *BRBlue 0/0: "" *BRBlue 1/1: "" *BRBlue 2/2: "" *BRBlue 3/3: "" *BRBlue 4/4: "" *BRBlue 5/5: "" *BRBlue 6/6: "" *BRBlue 7/7: "" *BRBlue 8/8: "" *BRBlue 9/9: "" *BRBlue 10/10: "" *BRBlue 11/11: "" *BRBlue 12/12: "" *BRBlue 13/13: "" *BRBlue 14/14: "" *BRBlue 15/15: "" *BRBlue 16/16: "" *BRBlue 17/17: "" *BRBlue 18/18: "" *BRBlue 19/19: "" *BRBlue 20/20: "" *CloseUI: *BRBlue *CloseGroup: Color Enhancement *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 *UIConstraints: *BRColorMediaType Plain *Resolution Photo *UIConstraints: *BRColorMediaType Plain *Resolution Highest *UIConstraints: *BRColorMediaType Inkjet *Resolution Draft *UIConstraints: *BRColorMediaType Inkjet *Resolution Fast *UIConstraints: *BRColorMediaType Inkjet *Resolution Normal *UIConstraints: *BRColorMediaType Inkjet *Resolution Highest *UIConstraints: *BRColorMediaType BrotherGlossy *Resolution Draft *UIConstraints: *BRColorMediaType BrotherGlossy *Resolution Fast *UIConstraints: *BRColorMediaType BrotherGlossy *Resolution Normal *UIConstraints: *BRColorMediaType Glossy *Resolution Draft *UIConstraints: *BRColorMediaType Glossy *Resolution Fast *UIConstraints: *BRColorMediaType Glossy *Resolution Normal *UIConstraints: *BRColorMediaType Transparencies *Resolution Draft *UIConstraints: *BRColorMediaType Transparencies *Resolution Fast *UIConstraints: *BRColorMediaType Transparencies *Resolution Photo *UIConstraints: *BRColorMediaType Transparencies *Resolution Highest ENDOFPPDFILE_END brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapper${printer_model} brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapper${printer_model} rm -f $brotherlpdwrapper #echo 'rm -f /usr/lib/cups/filter/brlpdwrapper${printer_model}' cat <$brotherlpdwrapper #! /bin/sh # # Copyright (C) 2005 Brother. Industries, Ltd. # Ver1.10 # 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 PPDC=\`printenv | grep "PPD="\` PPDC=\`echo \$PPDC | sed -e 's/PPD=//'\` if [ "\$PPDC" = "" ]; then PPDC="/usr/share/cups/model/br${printer_model}.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/${device_model}/${printer_model}/lpd/filter${printer_model}" ]; then : else echo "ERROR: /usr/local/Brother/${device_model}/${printer_model}/lpd/filter${printer_model} does not exist" >>\$LOGFILE errorcode=30 exit fi CUPSOPTION=\`echo "\$5 Copies=\$4" | sed -e 's/BrChain/Chain/' -e 's/BrBrightness/Brightness/' -e 's/BrContrast/Contrast/' -e 's/BrHalfCut/HalfCut/' -e 's/BrAutoTapeCut/AutoCut/' -e 's/BrMirror/Mirror/' -e 's/BrHalftonePattern/Halftone/' -e 's/Binary/Binary/' -e 's/Dither/Dither/' -e 's/ErrorDiffusion/ErrorDiffusion/' -e 's/PageSize/media/' -e 's/BrSheets/Sheets/' -e 's/multiple-document-handling/Collate/' -e 's/separate-documents-collated-copies/ON/' -e 's/separate-documents-uncollated-copies/OFF/'\` if [ -e "/usr/local/Brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1" ]; then if [ \$DEBUG = 0 ]; then /usr/local/Brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 ${printer_name} \$PPDC 0 "\$CUPSOPTION" "${printer_model}">> /dev/null else /usr/local/Brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 ${printer_name} \$PPDC \$LOGCLEVEL "\$CUPSOPTION" "${printer_model}">>\$LOGFILE fi fi if [ \$DEBUG -lt 10 ]; then cat \$INPUT_TEMP_PS | /usr/local/Brother/${device_model}/${printer_model}/lpd/filter${printer_model} "\$\$" "CUPS" "USB" 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/backend ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 fi chmod a+w /usr/local/Brother/${device_model}/${printer_model}/inf/br${printer_model}rc chmod a+w /usr/local/Brother/${device_model}/${printer_model}/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 elif [ -e /etc/init.d/cupsys ]; then /etc/init.d/cupsys restart fi sleep 2s port2=`lpinfo -v | grep -i 'usb://Brother/${device_name}' | head -1` if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://Brother' | head -1` fi if [ "$port2" = '' ];then port2=`lpinfo -v | grep 'usb://' | head -1` fi port=`echo $port2| sed s/direct//g` if [ "$port" = '' ];then port=usb:/dev/usb/lp0 fi lpadmin -p ${printer_name} -E -v $port -P /usr/share/cups/model/br${printer_model}.ppd exit 0 bh7-cupsw-src.1.0.0-9/mk_cupswrapper0100600000000000000000000000060510526722573015751 0ustar rootroot#! /bin/sh FILTER_LIST=model_list CUPSWRAPPER=./cupswrapper.tmp for FILTER_NAME in `cat $FILTER_LIST` do # echo $FILTER_NAME PRINTER_FILE_NAME=`echo $FILTER_NAME | tr '[A-Z]' '[a-z]'` # cupswrapper file FuncFILE=`echo cupswrapper${PRINTER_FILE_NAME}` cat $CUPSWRAPPER | eval sed -e 's/PRINTER_NAME/"\"$FILTER_NAME\""/' > $FuncFILE chmod +x $FuncFILE echo Create $FuncFILE !! done bh7-cupsw-src.1.0.0-9/model_list0100600000000000000000000000027610526722573015046 0ustar rootrootdcp130c dcp330c dcp540cn dcp750cn dcp750cw fax1860c fax1960c fax2480c fax2580c mfc240c mfc440cn mfc460cn mfc630cd mfc660cn mfc665cw mfc845cw mfc850cdn mfc860cdn mfc3360c mfc5460cn mfc5860cn bh7-cupsw-src.1.0.0-9/release/0040700000000000000000000000000010526722573014404 5ustar rootrootbh7-cupsw-src.1.0.0-9/release/dpkg/0040700000000000000000000000000010526722573015331 5ustar rootrootbh7-cupsw-src.1.0.0-9/release/dpkg/copying0100600000000000000000000004365710526722573016742 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. bh7-cupsw-src.1.0.0-9/release/dpkg/copying.brother0100600000000000000000000000632110526722573020371 0ustar rootroot Brother Printer Driver Software Open License Agreement This Agreement provides terms and conditions for license grant from Brother Industries, Ltd. ("Brother"), who owns all copyrights to the software that is distributed with this Agreement ("Software") to recipients thereof ("User"), for use of the Software. User shall have the right to use the Software only in accordance with the terms and conditions of this Agreement. Any use by User of the Software shall be deemed as its agreement hereto. 1. Brother retains any and all copyrights to the Software. In no case this Agreement shall be construed to assign or otherwise transfer from Brother to User any copyrights or other intellectual property rights to whole or any part of the Software. 2. Brother grants User a non-exclusive license: (1) With respect to the Software distributed in source code form: a. To reproduce and distribute (via Internet or in any other manner) the Software, b. To modify, alter, translate or otherwise prepare derivative works of the Software, and c. To reproduce and distribute (via Internet or in any other manner) the Software or any derivative works thereto as modified, altered, translated or otherwise prepared under the license granted in accordance with paragraph 2(1)b immediately above. (2) With respect to the Software distributed in binary code or executable code form: a. To reproduce and distribute (via Internet or in any other manner) the Software. * User shall not have any rights to modify, alter, translate or otherwise prepare derivative works of the Software if and when the same is distributed in binary code or executable code form: provided, however, that Brother permits User to modify such Software only for User's own use and reverse engineering only for debugging such modifications, to the extent such permission is required under GNU Lesser General Public License (ver. 2.1 or later). 3. When User distribute (via Internet or in any other manner) the Software or any derivative works thereto as modified, altered, translated or otherwise prepared under the license granted in accordance with paragraph 2 above, User must expressly grant any and all recipient thereof the license equivalent to this Agreement. 4. The license of the Software from Brother hereunder is granted "AS IS." BROTHER HEREBY DISCLAIMS ANY WARRANTIES WITH RESPECT TO THE SOFTWARE, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTY FOR THE QUALITY, MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE OR NON-INFRINGEMENT. 5. Brother shall have no liability in contract, tort (including negligence or breach of statutory duty) or otherwise for any interruption of use, loss of data, or for any indirect, incidental, punitive or consequential loss or damage, or for any loss of profit, revenue, data, goodwill or anticipated savings that arises under, out of, or in contemplation of this Agreement or otherwise arises due to any error, inaccuracy or defect in the Software even if Brother has been advised of the possibility of such loss or damage. copying.brother bh7-cupsw-src.1.0.0-9/release/dpkg/epmcups_deb.list0100600000000000000000000000207010526722573020512 0ustar rootroot%product Brother CUPS PTouch Printer Definitions %copyright 2004 Brother Industries, Ltd. All Rights Reserved %vendor Brother Industries, Ltd. %license COPYING %readme README %description Brother PTouch printer CUPS Driver %version EPM_VERSION %release EPM_RELEASE %requires DEP_PACKAGE %incompat CONFLICT_PACKAGE $PRINTER=PT_PRINTER_NAME $PT_SYSTEM=PT_SYSTEM_VALUE %preinstall mkdir -p /usr/local/Brother/Printer/${PRINTER}/cupswrapper %postinstall /usr/local/Brother/Printer/${PRINTER}/cupswrapper/cupswrapper${PRINTER} %preremove /usr/local/Brother/Printer/${PRINTER}/cupswrapper/cupswrapper${PRINTER} -e %postremove rm -rf /usr/local/Brother/Printer/${PRINTER}/cupswrapper $LANGUAGE=EPM_LANGUAGE $RELEASE_DIR=../../../cupswrapperfilter $LUT_DIR=../../../lut $LIB_DIR=/usr/lib $INF_DIR=/usr/local/Brother/Printer/${PRINTER}/inf $WRAPPER_DIR=/usr/local/Brother/Printer/${PRINTER}/cupswrapper f 755 root root ${WRAPPER_DIR}/cupswrapper${PRINTER} ${RELEASE_DIR}/cupswrapper${PRINTER}$PT_SYSTEM f 755 root root ${WRAPPER_DIR}/brcupsconfpt1 ${RELEASE_DIR}/brcupsconfpt1 bh7-cupsw-src.1.0.0-9/release/dpkg/languageList0100600000000000000000000000000710526722573017667 0ustar rootrootenglishbh7-cupsw-src.1.0.0-9/release/dpkg/makePackageMFC_debian0100600000000000000000000000447010526722573021301 0ustar rootroot#! /bin/sh VER=1.0.0 RELEASE_NUM=9 OS=debian PACK_FORMAT=deb PACKAGE_LIST=PackageListMFC LANGUAGE_LIST=languageList RELEASE_DIR=linux-2.4-intel echo "" echo Version = $VER echo Relese Number = $RELEASE_NUM echo "" if [ "$RELEASE_NUM" = "0" ] then SRC_NAME=linux-2.4-intel.deb else SRC_NAME=`echo NUM-linux-2.4-intel.deb | eval sed 's/NUM/"$RELEASE_NUM"/'` fi DST_NAME=`echo TEMP1.i386.TEMP3 | eval sed -e 's/TEMP1/"$RELEASE_NUM"/' -e 's/TEMP2/"$OS"/' -e 's/TEMP3/"$PACK_FORMAT"/'` SRC_EPMLIST=epmcups_deb.list for LANGUAGE_NAME in `cat $LANGUAGE_LIST` do echo [$LANGUAGE_NAME] LOCAL_DIR=`echo $RELEASE_DIR/TEMP1 | eval sed 's/TEMP1/"$LANGUAGE_NAME"/'` mkdir -p $LOCAL_DIR CNT=0 for PACKAGE_NAME in `cat $PACKAGE_LIST` do CNT=`expr $CNT + 1` # mm LISTFILE=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"\"/' > $LISTFILE.list echo Create $LISTFILE !! epm -f $PACK_FORMAT $LISTFILE PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` mv $PACKAGE1 $PACKAGE2 rm -f $LISTFILE.list # inch # LISTFILETMP=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # LISTFILE=`echo TEMP1cupswrapperinch | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"_inch\"/' -e 's/CONFLICT_PACKAGE/${LISTFILETMP}/'> $LISTFILE.list # echo Create $LISTFILE !! # epm -f $PACK_FORMAT $LISTFILE # PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` # PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` # mv $PACKAGE1 $PACKAGE2 rm -f $LISTFILE.list done done bh7-cupsw-src.1.0.0-9/release/dpkg/PackageListMFC0100600000000000000000000000027510526722573017774 0ustar rootrootdcp130c dcp330c dcp540cn dcp750cn dcp750cw fax1860c fax1960c fax2480c fax2580c mfc240c mfc440cn mfc460cn mfc630cd mfc660cn mfc665cw mfc845cw mfc850cdn mfc860cdn mfc3360c mfc5460cn mfc5860cnbh7-cupsw-src.1.0.0-9/release/dpkg/readme0100600000000000000000000000141710526722573016513 0ustar rootroot ReadMe Linux drivers for Inkjet products 1. Licensing Agreements This package contains the source code provided under GNU General Public License (./COPYING) and the binary code provided under Brother Public License (./COPYING.brother). 2. How to install To install the RPM files, use the following command: rpm -ivh --nodeps drivername For example: rpm -ivh --nodeps mfc620cncups-1.1.0-1.redhat.i386.rpm Note for Debian Users: You are unable to install more than one model on Debian linux. If you want to install more than model, use the following command: dpkg --force-overwrite xxxxxx Please visit URL below for the further infomation and the latest information. http://solutions.brother.com/linux/index.html 3. Printer driver names "Brother xxxx CUPS xxxx" EOM. bh7-cupsw-src.1.0.0-9/release/rpm/0040700000000000000000000000000010526722573015202 5ustar rootrootbh7-cupsw-src.1.0.0-9/release/rpm/copying0100600000000000000000000004365710526722573016613 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. bh7-cupsw-src.1.0.0-9/release/rpm/epmcups.list0100600000000000000000000000207010526722573017551 0ustar rootroot%product Brother CUPS PTouch Printer Definitions %copyright 2004 Brother Industries, Ltd. All Rights Reserved %vendor Brother Industries, Ltd. %license COPYING %readme README %description Brother PTouch printer CUPS Driver %version EPM_VERSION %release EPM_RELEASE %requires DEP_PACKAGE %incompat CONFLICT_PACKAGE $PRINTER=PT_PRINTER_NAME $PT_SYSTEM=PT_SYSTEM_VALUE %preinstall mkdir -p /usr/local/Brother/Printer/${PRINTER}/cupswrapper %postinstall /usr/local/Brother/Printer/${PRINTER}/cupswrapper/cupswrapper${PRINTER} %preremove /usr/local/Brother/Printer/${PRINTER}/cupswrapper/cupswrapper${PRINTER} -e %postremove rm -rf /usr/local/Brother/Printer/${PRINTER}/cupswrapper $LANGUAGE=EPM_LANGUAGE $RELEASE_DIR=../../../cupswrapperfilter $LUT_DIR=../../../lut $LIB_DIR=/usr/lib $INF_DIR=/usr/local/Brother/Printer/${PRINTER}/inf $WRAPPER_DIR=/usr/local/Brother/Printer/${PRINTER}/cupswrapper f 755 root root ${WRAPPER_DIR}/cupswrapper${PRINTER} ${RELEASE_DIR}/cupswrapper${PRINTER}$PT_SYSTEM f 755 root root ${WRAPPER_DIR}/brcupsconfpt1 ${RELEASE_DIR}/brcupsconfpt1 bh7-cupsw-src.1.0.0-9/release/rpm/languageList0100600000000000000000000000001010526722573017532 0ustar rootrootenglish bh7-cupsw-src.1.0.0-9/release/rpm/makePackageMFC_mdk0100600000000000000000000000446710526722573020511 0ustar rootroot#! /bin/sh VER=1.0.0 RELEASE_NUM=2 OS=mdk PACK_FORMAT=rpm PACKAGE_LIST=PackageListMFC LANGUAGE_LIST=languageList RELEASE_DIR=linux-2.4-intel echo "" echo Version = $VER echo Relese Number = $RELEASE_NUM echo "" if [ "$RELEASE_NUM" = "0" ] then SRC_NAME=linux-2.4-intel.rpm else SRC_NAME=`echo NUM-linux-2.4-intel.rpm | eval sed 's/NUM/"$RELEASE_NUM"/'` fi DST_NAME=`echo TEMP1.TEMP2.i386.TEMP3 | eval sed -e 's/TEMP1/"$RELEASE_NUM"/' -e 's/TEMP2/"$OS"/' -e 's/TEMP3/"$PACK_FORMAT"/'` SRC_EPMLIST=epmcups.list for LANGUAGE_NAME in `cat $LANGUAGE_LIST` do echo [$LANGUAGE_NAME] LOCAL_DIR=`echo $RELEASE_DIR/TEMP1 | eval sed 's/TEMP1/"$LANGUAGE_NAME"/'` mkdir -p $LOCAL_DIR CNT=0 for PACKAGE_NAME in `cat $PACKAGE_LIST` do CNT=`expr $CNT + 1` # mm LISTFILE=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"\"/' > $LISTFILE.list echo Create $LISTFILE !! epm -f $PACK_FORMAT $LISTFILE PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` mv $PACKAGE1 $PACKAGE2 rm -f $LISTFILE.list # inch # LISTFILETMP=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # LISTFILE=`echo TEMP1cupswrapperinch | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"_inch\"/' -e 's/CONFLICT_PACKAGE/${LISTFILETMP}/'> $LISTFILE.list # echo Create $LISTFILE !! # epm -f $PACK_FORMAT $LISTFILE # PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` # PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` # mv $PACKAGE1 $PACKAGE2 # rm -f $LISTFILE.list done done bh7-cupsw-src.1.0.0-9/release/rpm/makePackageMFC_redhat0100600000000000000000000000446610526722573021204 0ustar rootroot#! /bin/sh VER=1.0.0 RELEASE_NUM=9 OS=redhat PACK_FORMAT=rpm PACKAGE_LIST=PackageListMFC LANGUAGE_LIST=languageList RELEASE_DIR=linux-2.4-intel echo "" echo Version = $VER echo Relese Number = $RELEASE_NUM echo "" if [ "$RELEASE_NUM" = "0" ] then SRC_NAME=linux-2.4-intel.rpm else SRC_NAME=`echo NUM-linux-2.4-intel.rpm | eval sed 's/NUM/"$RELEASE_NUM"/'` fi DST_NAME=`echo TEMP1.i386.TEMP3 | eval sed -e 's/TEMP1/"$RELEASE_NUM"/' -e 's/TEMP2/"$OS"/' -e 's/TEMP3/"$PACK_FORMAT"/'` SRC_EPMLIST=epmcups.list for LANGUAGE_NAME in `cat $LANGUAGE_LIST` do echo [$LANGUAGE_NAME] LOCAL_DIR=`echo $RELEASE_DIR/TEMP1 | eval sed 's/TEMP1/"$LANGUAGE_NAME"/'` mkdir -p $LOCAL_DIR CNT=0 for PACKAGE_NAME in `cat $PACKAGE_LIST` do CNT=`expr $CNT + 1` # mm LISTFILE=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"\"/' > $LISTFILE.list echo Create $LISTFILE !! epm -f $PACK_FORMAT $LISTFILE PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` mv $PACKAGE1 $PACKAGE2 rm -f $LISTFILE.list # inch # LISTFILETMP=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # LISTFILE=`echo TEMP1cupswrapperinch | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"_inch\"/' -e 's/CONFLICT_PACKAGE/${LISTFILETMP}/'> $LISTFILE.list # echo Create $LISTFILE !! # epm -f $PACK_FORMAT $LISTFILE # PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` # PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` # mv $PACKAGE1 $PACKAGE2 rm -f $LISTFILE.list done done bh7-cupsw-src.1.0.0-9/release/rpm/makePackageMFC_suse0100600000000000000000000000447010526722573020707 0ustar rootroot#! /bin/sh VER=1.0.0 RELEASE_NUM=2 OS=suse PACK_FORMAT=rpm PACKAGE_LIST=PackageListMFC LANGUAGE_LIST=languageList RELEASE_DIR=linux-2.4-intel echo "" echo Version = $VER echo Relese Number = $RELEASE_NUM echo "" if [ "$RELEASE_NUM" = "0" ] then SRC_NAME=linux-2.4-intel.rpm else SRC_NAME=`echo NUM-linux-2.4-intel.rpm | eval sed 's/NUM/"$RELEASE_NUM"/'` fi DST_NAME=`echo TEMP1.TEMP2.i386.TEMP3 | eval sed -e 's/TEMP1/"$RELEASE_NUM"/' -e 's/TEMP2/"$OS"/' -e 's/TEMP3/"$PACK_FORMAT"/'` SRC_EPMLIST=epmcups.list for LANGUAGE_NAME in `cat $LANGUAGE_LIST` do echo [$LANGUAGE_NAME] LOCAL_DIR=`echo $RELEASE_DIR/TEMP1 | eval sed 's/TEMP1/"$LANGUAGE_NAME"/'` mkdir -p $LOCAL_DIR CNT=0 for PACKAGE_NAME in `cat $PACKAGE_LIST` do CNT=`expr $CNT + 1` # mm LISTFILE=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"\"/' > $LISTFILE.list echo Create $LISTFILE !! epm -f $PACK_FORMAT $LISTFILE PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` mv $PACKAGE1 $PACKAGE2 rm -f $LISTFILE.list # inch # LISTFILETMP=`echo TEMP1cupswrapper | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # LISTFILE=`echo TEMP1cupswrapperinch | eval sed 's/TEMP1/"$PACKAGE_NAME"/'` # cat $SRC_EPMLIST | eval sed -e 's/EPM_VERSION/"$VER"/' -e 's/EPM_RELEASE/"$RELEASE_NUM"/' -e 's/EPM_LANGUAGE/"$LANGUAGE_NAME"/' -e 's/DEP_PACKAGE/"$PACKAGE_NAME"lpr/' -e 's/PT_PRINTER_NAME/\"$PACKAGE_NAME\"/' -e 's/PT_SYSTEM_VALUE/\"_inch\"/' -e 's/CONFLICT_PACKAGE/${LISTFILETMP}/'> $LISTFILE.list # echo Create $LISTFILE !! # epm -f $PACK_FORMAT $LISTFILE # PACKAGE1=`echo $RELEASE_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$SRC_NAME"/'` # PACKAGE2=`echo $LOCAL_DIR/TEMP1-TEMP2-TEMP3 | eval sed 's/TEMP1/"$LISTFILE"/' | eval sed 's/TEMP2/"$VER"/' | eval sed 's/TEMP3/"$DST_NAME"/'` # mv $PACKAGE1 $PACKAGE2 # rm -f $LISTFILE.list done done bh7-cupsw-src.1.0.0-9/release/rpm/PackageListMFC0100600000000000000000000000027510526722573017645 0ustar rootrootdcp130c dcp330c dcp540cn dcp750cn dcp750cw fax1860c fax1960c fax2480c fax2580c mfc240c mfc440cn mfc460cn mfc630cd mfc660cn mfc665cw mfc845cw mfc850cdn mfc860cdn mfc3360c mfc5460cn mfc5860cnbh7-cupsw-src.1.0.0-9/release/rpm/readme0100600000000000000000000000141710526722573016364 0ustar rootroot ReadMe Linux drivers for Inkjet products 1. Licensing Agreements This package contains the source code provided under GNU General Public License (./COPYING) and the binary code provided under Brother Public License (./COPYING.brother). 2. How to install To install the RPM files, use the following command: rpm -ivh --nodeps drivername For example: rpm -ivh --nodeps mfc620cncups-1.0.0-1.redhat.i386.rpm Note for Debian Users: You are unable to install more than one model on Debian linux. If you want to install more than model, use the following command: dpkg --force-overwrite xxxxxx Please visit URL below for the further infomation and the latest information. http://solutions.brother.com/linux/index.html 3. Printer driver names "Brother xxxx CUPS xxxx" EOM. bh7-cupsw-src.1.0.0-9/Copying0100744000000000000000000004365710526723153014341 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.