updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / brother-mfc-8870dw / brother-mfc-8870dw.patch
blob107e477e6b2dc5b482493b989950fb0a4359f8ac
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
4 @@ -18,6 +18,7 @@
5 # Place, Suite 330, Boston, MA 02111-1307 USA
8 +if /bin/false; then
9 if [ "$1" = '-e' ]; then
10 lpadmin -x MFC8870DW
11 rm -f /usr/share/cups/model/MFC8870DW.ppd
12 @@ -59,8 +60,8 @@
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
18 +fi
19 +cat <<ENDOFPPDFILE > ppd_file
20 *PPD-Adobe: "4.3"
21 *%================================================
22 *% Copyright(C) 2006 Brother Industries, Ltd.
23 @@ -370,13 +371,13 @@
25 ENDOFPPDFILE
28 +if /bin/false; then
29 brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapperMFC8870DW
30 brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapperMFC8870DW
31 rm -f $brotherlpdwrapper
34 -cat <<!ENDOFWFILTER! >$brotherlpdwrapper
35 +fi
36 +cat <<!ENDOFWFILTER! > wrapper
37 #! /bin/sh
39 # Brother Print filter >> $brotherlpdwrapper
40 @@ -505,25 +506,25 @@
44 -if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then
45 +if [ -e "/usr/share/brother/lpd/filter\$PRINTER" ]; then
47 else
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
50 errorcode=30
51 exit $errorcode
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
59 else
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
72 @@ -539,7 +540,7 @@
74 !ENDOFWFILTER!
77 +if /bin/false; then
78 chmod a+x $brotherlpdwrapper
79 if [ -e /usr/lib64/cups/filter ]; then
80 cp $brotherlpdwrapper $brotherlpdwrapper64
81 @@ -570,3 +571,4 @@
83 lpadmin -p MFC8870DW -E -v $port -P /usr/share/cups/model/MFC8870DW.ppd
84 exit 0
85 +fi
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
90 @@ -24,4 +24,5 @@
91 Sleep={PrinterDefault,"1-99"}
92 Toner Save Mode={ON,OFF}
95 +[psconvert2]
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
101 @@ -21,7 +21,7 @@
102 PRINTER="MFC8870DW"
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'
119 -else
120 - PSTOPSFILTER=''
121 +if ! [ -e "$PSTOPSFILTER" ];then
122 + PSTOPSFILTER=''