You'll have to forgive me for Yahoo!'s stupidity, they
word wrap, so there's some stray newlines in that
diff.  If anyone wants me to resend the diff from a
non-stupid e-mail I can.

--- David Walser <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I modified setcupsconfig to do what I was talking
> about earlier.  I uploaded a new cups SRPM package
> with it to ftp.linux-mandrake.com/incoming
> 
> I'd really appreciate it if people could test this,
> and if there are no complaints, I'd also appreciate
> it
> being accepted into Cooker.  Thanks you.
> 
> If you don't want to DL the new SRRM, here's the
> diff
> I got for my changes to setcupsconfig (and the diff
> command I used):
> 
> diff -u /usr/sbin/setcupsconfig setcupsconfig 
> --- /usr/sbin/setcupsconfig     Sun Jan  6 18:19:47
> 2002
> +++ setcupsconfig       Fri Jan 18 22:17:55 2002
> @@ -227,9 +227,17 @@
>  # Insert the new "Printcap" line
>  push @cups_conf_content, "TempDir
> /var/spool/cups/tmp\n";
>  
> -# Is there a "Port" line? If not, add "Port 631"
> -if (!(grep(m/^\s*Port\s+/, @cups_conf_content))) {
> -    push @cups_conf_content, "Port 631\n";
> +# Is there a "Port" or "Listen" line? If not, add a
> Listen line for each non-gatewaynet local interface
> +if (!(grep(m/^\s*(Port|Listen)\s+/,
> @cups_conf_content))) {
> +    push @cups_conf_content, "Listen
> 127.0.0.1:631\n";
> +    if (!defined($gatewaynet)) {
> +        $gatewaynet = -1;
> +    }
> +    for ($i = 0; $i <= $#local_ips; $i++) {
> +        if ($i != $gatewaynet) {
> +           push @cups_conf_content, "Listen ",
> $local_ips[$i], ":631\n";
> +        }
> +    }
>  }
>     
>  # Remove all valid "ServerName" lines
> 
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
> 

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

Reply via email to