diff options
author | Jordan Selanders | 2019-01-09 15:30:48 -0700 |
---|---|---|
committer | Jordan Selanders | 2019-01-09 15:30:48 -0700 |
commit | fa88aad711bbf950beac97ab05fd13a5a1fa9e4c (patch) | |
tree | 583b5ca7dc04c4f1035924d65360c6a47f17710e /brother-hll6200dw.patch | |
download | aur-fa88aad711bbf950beac97ab05fd13a5a1fa9e4c.tar.gz |
Added the Brother-HLL6200DW printer to the AUR
Diffstat (limited to 'brother-hll6200dw.patch')
-rw-r--r-- | brother-hll6200dw.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/brother-hll6200dw.patch b/brother-hll6200dw.patch new file mode 100644 index 000000000000..b877e35f0f5f --- /dev/null +++ b/brother-hll6200dw.patch @@ -0,0 +1,44 @@ +diff --git a/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW b/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW +--- a/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW ++++ b/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW +@@ -50,7 +50,9 @@ if ( $basedir eq '' ){ + } + chomp($basedir); + +-$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g; ++#$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g; ++my $PRINTER = "HLL6200DW"; ++my $basedir = "/usr/share/Brother/Printer/$PRINTER"; + + + %units = ( pt => \&pt2dot, +@@ -82,16 +84,16 @@ $ENV{NODENAME} = `uname -n`; + + my $cmdoptions=$ARGV[4]; + my $PPD = $ENV{PPD}; +-my $PRINTER=$basedir; ++#my $PRINTER=$basedir; + my $CUPSINPUT=''; + if ( @ARGV >= 6 ){ + $CUPSINPUT=$ARGV[7]; + } + + +-$PRINTER =~ s/^\/opt\/.*\/Printers\///g; +-$PRINTER =~ s/\/cupswrapper//g; +-$PRINTER =~ s/\///g; ++#$PRINTER =~ s/^\/opt\/.*\/Printers\///g; ++#$PRINTER =~ s/\/cupswrapper//g; ++#$PRINTER =~ s/\///g; + + for (my $i = 0 ; $i < @ARGV ; $i ++){ + logprint( 0 , "ARG$i = $ARGV[$i]\n"); +@@ -804,7 +806,7 @@ sub exec_lpdconfig { + my $lpddir = $basedir; + my %lpr_options = %$lpr_options_ref; + +- $lpddir = $basedir."/lpd/"; ++ $lpddir = $basedir."/lpd"; + my $lpdconf = $lpddir.'/'.$LPDCONFIGEXE; + + |