diff options
author | Sam Whited | 2024-03-06 08:01:26 -0500 |
---|---|---|
committer | Sam Whited | 2024-03-06 08:01:26 -0500 |
commit | 2a2a284888aabf374e1f28c1f3d8e28b041c05a4 (patch) | |
tree | 20951330fa6a5ba7677c4cd531e12812d6389c4d /brother-hll6200dw.patch | |
parent | fa88aad711bbf950beac97ab05fd13a5a1fa9e4c (diff) | |
download | aur-brother-hll6200dw.tar.gz |
Bump to 3.5.1
Signed-off-by: Sam Whited <sam@samwhited.com>
Diffstat (limited to 'brother-hll6200dw.patch')
-rw-r--r-- | brother-hll6200dw.patch | 69 |
1 files changed, 25 insertions, 44 deletions
diff --git a/brother-hll6200dw.patch b/brother-hll6200dw.patch index b877e35f0f5f..488c186a138f 100644 --- a/brother-hll6200dw.patch +++ b/brother-hll6200dw.patch @@ -1,44 +1,25 @@ -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; - - +75,85c75,76 +< my $basedir = Cwd::realpath ($0); +< if ( $basedir eq '' ){ +< $basedir = `readlink $0`; +< if ( $basedir eq '' ){ +< $basedir = `realpath $0`; +< } +< } +< chomp($basedir); +< +< $basedir =~ s/\/cupswrapper\/.*$//g; +< +--- +> my $PRINTER = "HLL6200DW"; +> my $basedir = "/usr/share/Brother/Printer/$PRINTER"; +95,99d85 +< my $PRINTER=$basedir; +< $PRINTER =~ s/^\/opt\/.*\/Printers\///g; +< $PRINTER =~ s/\/cupswrapper.*$//g; +< $PRINTER =~ s/\///g; +< +820c806 +< $lpddir = $basedir."/lpd/"; +--- +> $lpddir = $basedir."/lpd"; |