diff -ur old_usr/local/Brother/cupswrapper/cupswrapperMFC7840W-2.0.2 usr/local/Brother/cupswrapper/cupswrapperMFC7840W-2.0.2 --- usr/local/Brother/cupswrapper/cupswrapperMFC7840W-2.0.2.orig 2008-01-25 05:29:51.000000000 +0300 +++ usr/local/Brother/cupswrapper/cupswrapperMFC7840W-2.0.2 2012-01-27 15:05:45.796578436 +0400 @@ -18,6 +18,7 @@ # Place, Suite 330, Boston, MA 02111-1307 USA # +if /bin/false; then if [ "$1" = '-e' ]; then lpadmin -x MFC7840W rm -f /usr/share/cups/model/MFC7840W.ppd @@ -61,8 +62,8 @@ fi rm -f /usr/share/cups/model/MFC7840W.ppd ppd_file_name=/usr/share/cups/model/MFC7840W.ppd - -cat <$ppd_file_name +fi +cat < ppd_file *PPD-Adobe: "4.3" *%================================================ *% Copyright(C) 2006 Brother Industries, Ltd. @@ -338,13 +339,13 @@ if [ -e '/usr/share/ppd' ];then cp $ppd_file_name /usr/share/ppd fi - +if /bin/false; then brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC7840W brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC7840W rm -f $brotherlpdwrapper - -cat <$brotherlpdwrapper +fi +cat < wrapper #! /bin/sh # # Brother Print filter >> $brotherlpdwrapper @@ -473,25 +474,25 @@ fi -if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then +if [ -e "/usr/share/brother/lpd/filter\$PRINTER" ]; then : else - echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE + echo "ERROR: /usr/share/brother/lpd/filter\$PRINTER does not exist" >>\$LOGFILE errorcode=30 exit $errorcode fi -if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then +if [ -e "/usr/share/brother/cupswrapper/brcupsconfig3" ]; then if [ \$DEBUG = 0 ]; then - /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null + /usr/share/brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD 0 "\$options" >> /dev/null else - /usr/local/Brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE + /usr/share/brother/cupswrapper/brcupsconfig3 \$PRINTER \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE fi fi if [ \$DEBUG -le 2 ]; then - cat \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER + cat \$INPUT_TEMP_PS | /usr/share/brother/lpd/filter\$PRINTER fi if [ \$DEBUG -ge 2 ]; then @@ -507,7 +508,7 @@ !ENDOFWFILTER! - +if /bin/false; then chmod 755 $brotherlpdwrapper if [ -e /usr/lib64/cups/filter ]; then cp $brotherlpdwrapper $brotherlpdwrapper64 @@ -538,3 +539,4 @@ fi lpadmin -p MFC7840W -E -v $port -P /usr/share/cups/model/MFC7840W.ppd exit 0 +fi diff -ur old_usr/local/Brother/inf/brMFC7840Wfunc usr/local/Brother/inf/brMFC7840Wfunc --- old_usr/local/Brother/inf/brMFC7840Wfunc 2007-04-06 01:31:14.000000000 +0200 +++ usr/local/Brother/inf/brMFC7840Wfunc 2009-04-19 16:10:05.010695023 +0200 @@ -24,3 +24,6 @@ Sleep={PrinterDefault,"1-99"} Toner Save Mode={ON,OFF} +[psconvert2] +pstops=/usr/lib/cups/filter/pstops + diff -ur old_usr/local/Brother/lpd/filterMFC7840W usr/local/Brother/lpd/filterMFC7840W --- old_usr/local/Brother/lpd/filterMFC7840W 2007-04-06 01:31:14.000000000 +0200 +++ usr/local/Brother/lpd/filterMFC7840W 2009-04-19 16:19:57.909802658 +0200 @@ -21,7 +21,7 @@ PRINTER="MFC7840W" PRINTER_TMP=$(echo $PRINTER | sed -e 's/ //g' -e 's/-//g') -BR_PRT_PATH=/usr/local/Brother +BR_PRT_PATH=/usr/share/brother RCFILE=`eval echo $BR_PRT_PATH/inf/brPRINTERrc | eval sed 's/PRINTER/"$PRINTER_TMP"/'` PAPER_INF=$BR_PRT_PATH/inf/paperinf PSCONV=$BR_PRT_PATH/lpd/psconvert2 @@ -109,12 +109,10 @@ cat $INPUT_TEMP1| $prefilter >$INPUT_TEMP fi -#PSTOPSFILTER=`which pstops` +PSTOPSFILTER='/usr/lib/cups/filter/pstops' -if [ -e '/usr/bin/pstops' ];then - PSTOPSFILTER='/usr/bin/pstops' -else - PSTOPSFILTER='' +if ! [ -e "$PSTOPSFILTER" ];then + PSTOPSFILTER='' fi