aw-overlay/net-print/brother-mfc7460dn-bin/files/brother_lpdwrapper_BrGenML1.patch

45 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2015-12-23 12:44:32 -05:00
--- /home/tmp/portage/net-print/brother-mfc7460dn-bin-3.1.0-r1/work/opt/brother/Printers/BrGenML1/cupswrapper/brother_lpdwrapper_BrGenML1 2014-05-14 00:36:11.000000000 -0400
+++ /opt/brother/Printers/BrGenML1/cupswrapper/brother_lpdwrapper_BrGenML1 2014-10-07 19:35:40.899637092 -0400
@@ -50,8 +50,9 @@
}
chomp($basedir);
-$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g;
-
+#$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g;
+my $PRINTER = "BrGenML1";
+my $basedir = "/opt/brother/Printers/$PRINTER";
%units = ( pt => \&pt2dot,
mm => \&mm2dot,
@@ -77,16 +78,16 @@
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");
@@ -733,7 +734,7 @@
my $lpddir = $basedir;
my %lpr_options = %$lpr_options_ref;
- $lpddir = $basedir."/lpd/";
+ $lpddir = $basedir."/lpd";
my $lpdconf = $lpddir.'/'.$LPDCONFIGEXE;