Hi.
By default samba is using cups for printing, so it starts to flood in logfiles
with:
smbd[12245]: [2013/09/13 21:03:48.595183,  0]
printing/print_cups.c:151(cups_connect)
smbd[12245]:   Unable to connect to CUPS server localhost:631 - Connection
refused
smbd[14345]: [2013/09/13 21:03:48.613769,  0]
printing/print_cups.c:528(cups_async_callback)
smbd[14345]:   failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

I suggest to change printing system from cups to bsd to prevent this annoying
messages in logs.

Change MASTER_SITES while here.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/samba/Makefile,v
retrieving revision 1.186
diff -u -p -u -p -r1.186 Makefile
--- Makefile    20 Jun 2013 06:54:37 -0000      1.186
+++ Makefile    13 Sep 2013 17:20:32 -0000
@@ -9,7 +9,7 @@ DISTNAME=               samba-3.6.15
 PKGNAME-main=          ${DISTNAME}
 FULLPKGNAME-docs=      ${DISTNAME:S/-/-docs-/}
 FULLPKGPATH-docs=      net/samba,-docs
-REVISION-main=         1
+REVISION-main=         2

 SHARED_LIBS=           smbclient       3.0 \
                        smbsharemodes   1.0 \
@@ -28,9 +28,8 @@ PERMIT_PACKAGE_CDROM=         Yes
 WANTLIB += c cups execinfo iniparser ncurses popt pthread readline talloc
 WANTLIB += tdb z

-MASTER_SITES=  http://download.samba.org/samba/ftp/ \
-               http://us2.samba.org/samba/ftp/ \
-               http://ftp.samba.org/samba/ftp/old-versions/
+MASTER_SITES=  http://ftp.samba.org/pub/samba/stable/ \
+               http://ftp.samba.org/pub/samba/old-versions/

 MODULES=       converters/libiconv

Index: patches/patch-examples_smb_conf_default
===================================================================
RCS file: patches/patch-examples_smb_conf_default
diff -N patches/patch-examples_smb_conf_default
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-examples_smb_conf_default     13 Sep 2013 17:20:32 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- examples/smb.conf.default.orig     Fri Sep 13 21:09:04 2013
++++ examples/smb.conf.default  Fri Sep 13 21:11:11 2013
+@@ -55,7 +55,7 @@
+ # It should not be necessary to specify the print system type unless
+ # it is non-standard. Currently supported print systems include:
+ # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
+-;   printing = cups
++   printing = bsd
+
+ # Uncomment this if you want a guest account, you must add this to /etc/passwd
+ # otherwise the user "nobody" is used


Reply via email to