From 93ad2ef6e58cfb456cb1d90940f4727f652d797f Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Oct 05 2006 15:38:40 +0000 Subject: - adminutil.c: when writing 'BrowseAllow @LOCAL', add a comment about what to change it to when using directed broadcasts from another subnet (bug #204373). --- diff --git a/cups-directed-broadcast.patch b/cups-directed-broadcast.patch new file mode 100644 index 0000000..e7c5009 --- /dev/null +++ b/cups-directed-broadcast.patch @@ -0,0 +1,24 @@ +--- cups-1.2.4/conf/cupsd.conf.in.directed-broadcast 2006-10-05 12:33:08.000000000 +0100 ++++ cups-1.2.4/conf/cupsd.conf.in 2006-10-05 12:33:04.000000000 +0100 +@@ -21,6 +21,7 @@ + # Show shared printers on the local network. + Browsing On + BrowseOrder allow,deny ++# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.) + BrowseAllow @LOCAL + + # Default authentication type, when authentication is required... +--- cups-1.2.4/cups/adminutil.c.directed-broadcast 2006-10-05 12:16:48.000000000 +0100 ++++ cups-1.2.4/cups/adminutil.c 2006-10-05 12:19:29.000000000 +0100 +@@ -1155,7 +1155,11 @@ + cupsFilePuts(temp, "BrowseOrder allow,deny\n"); + + if (remote_printers) ++ { ++ cupsFilePuts(temp, "# (Change '@LOCAL' to 'ALL' if using " ++ "directed broadcasts from another subnet.)\n"); + cupsFilePuts(temp, "BrowseAllow @LOCAL\n"); ++ } + + if (share_printers) + cupsFilePuts(temp, "BrowseAddress @LOCAL\n"); diff --git a/cups.spec b/cups.spec index f1f7e01..289ee6c 100644 --- a/cups.spec +++ b/cups.spec @@ -6,7 +6,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.2.4 -Release: 8 +Release: 9 License: GPL Group: System Environment/Daemons Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -39,6 +39,7 @@ Patch14: cups-lpr-help.patch Patch15: cups-maxlogsize.patch Patch16: cups-pid.patch Patch17: cups-relro.patch +Patch18: cups-directed-broadcast.patch Patch100: cups-lspp.patch Epoch: 1 Url: http://www.cups.org/ @@ -138,6 +139,7 @@ lpd emulation. %patch15 -p1 -b .maxlogsize %patch16 -p1 -b .pid %patch17 -p1 -b .relro +%patch18 -p1 -b .directed-broadcast %if %lspp %patch100 -p1 -b .lspp @@ -413,6 +415,11 @@ rm -rf $RPM_BUILD_ROOT %{cups_serverbin}/daemon/cups-lpd %changelog +* Thu Oct 5 2006 Tim Waugh 1:1.2.4-9 +- adminutil.c: when writing 'BrowseAllow @LOCAL', add a comment about what + to change it to when using directed broadcasts from another subnet + (bug #204373). + * Wed Oct 4 2006 Tim Waugh 1:1.2.4-8 - LSPP patch didn't get updated properly in 1:1.2.4-6. Use the right patch this time (bug #208676). LSPP re-enabled.