1 diff -ur old_usr/local/Brother/cupswrapper/cupswrapperMFC8870DW-2.0.1 usr/local/Brother/cupswrapper/cupswrapperMFC8870DW-2.0.1
2 --- old_usr/local/Brother/cupswrapper/cupswrapperMFC8870DW-2.0.1 2007-04-10 07:32:27.000000000 +0200
3 +++ usr/local/Brother/cupswrapper/cupswrapperMFC8870DW-2.0.1 2009-04-19 16:32:05.387230248 +0200
5 # Place, Suite 330, Boston, MA 02111-1307 USA
9 if [ "$1" = '-e' ]; then
11 rm -f /usr/share/cups/model/MFC8870DW.ppd
14 rm -f /usr/share/cups/model/MFC8870DW.ppd
15 ppd_file_name=/usr/share/cups/model/MFC8870DW.ppd
17 -cat <<ENDOFPPDFILE >$ppd_file_name
19 +cat <<ENDOFPPDFILE > ppd_file
21 *%================================================
22 *% Copyright(C) 2006 Brother Industries, Ltd.
29 brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC8870DW
30 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8870DW
31 rm -f $brotherlpdwrapper
34 -cat <<!ENDOFWFILTER! >$brotherlpdwrapper
36 +cat <<!ENDOFWFILTER! > wrapper
39 # Brother Print filter >> $brotherlpdwrapper
44 -if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then
45 +if [ -e "/usr/share/brother/lpd/filter\$PRINTER" ]; then
48 - echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE
49 + echo "ERROR: /usr/share/brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE
54 -if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then
55 +if [ -e "/usr/share/brother/cupswrapper/brcupsconfig3" ]; then
56 if [ \$DEBUG = 0 ]; then
57 - /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null
58 + /usr/share/brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null
60 - /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE
61 + /usr/share/brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE
66 if [ \$DEBUG -le 2 ]; then
67 - cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER
68 + cat \$INPUT_TEMP_PS | /usr/share/brother/lpd/filter\$PRINTER
71 if [ \$DEBUG -ge 2 ]; then
78 chmod a+x $brotherlpdwrapper
79 if [ -e /usr/lib64/cups/filter ]; then
80 cp $brotherlpdwrapper $brotherlpdwrapper64
83 lpadmin -p MFC8870DW -E -v $port -P /usr/share/cups/model/MFC8870DW.ppd
87 diff -ur old_usr/local/Brother/inf/brMFC8870DWfunc usr/local/Brother/inf/brMFC8870DWfunc
88 --- old_usr/local/Brother/inf/brMFC8870DWfunc 2007-04-06 01:31:14.000000000 +0200
89 +++ usr/local/Brother/inf/brMFC8870DWfunc 2009-04-19 16:10:05.010695023 +0200
91 Sleep={PrinterDefault,"1-99"}
92 Toner Save Mode={ON,OFF}
96 +pstops=/usr/lib/cups/filter/pstops
98 diff -ur old_usr/local/Brother/lpd/filterMFC8870DW usr/local/Brother/lpd/filterMFC8870DW
99 --- old_usr/local/Brother/lpd/filterMFC8870DW 2007-04-06 01:31:14.000000000 +0200
100 +++ usr/local/Brother/lpd/filterMFC8870DW 2009-04-19 16:19:57.909802658 +0200
103 PRINTER_TMP=$(echo $PRINTER | sed -e 's/ //g' -e 's/-//g')
105 -BR_PRT_PATH=/usr/local/Brother
106 +BR_PRT_PATH=/usr/share/brother
107 RCFILE=`eval echo $BR_PRT_PATH/inf/brPRINTERrc | eval sed 's/PRINTER/"$PRINTER_TMP"/'`
108 PAPER_INF=$BR_PRT_PATH/inf/paperinf
109 PSCONV=$BR_PRT_PATH/lpd/psconvert2
110 @@ -109,12 +109,10 @@
111 cat $INPUT_TEMP1| $prefilter >$INPUT_TEMP
114 -#PSTOPSFILTER=`which pstops`
115 +PSTOPSFILTER='/usr/lib/cups/filter/pstops'
117 -if [ -e '/usr/bin/pstops' ];then
118 - PSTOPSFILTER='/usr/bin/pstops'
121 +if ! [ -e "$PSTOPSFILTER" ];then