Re: Samba without Cups ?
On Tue, 26 Jul 2005, Graham Bentley wrote: I just want file sharing, not printing. pkg_add -r samba3 also pulls in cups then my smb log complains ... [2005/07/26 00:31:17, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused (I havent enabled cups daemon) but insists ; Global parameter load printers found in service section! even thought I have printers = no in my smb.conf ??? Anyone know how to stop Samba trying to pal up with cups ? I guess you should rebuild Samba without CUPS printing support. Regards, Uli. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" * * Peter Ulrich Kruppa - Wuppertal - Germany * * ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Samba without Cups ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 26 Jul 2005, Graham Bentley wrote: I just want file sharing, not printing. pkg_add -r samba3 also pulls in cups then my smb log complains ... [2005/07/26 00:31:17, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused (I havent enabled cups daemon) but insists ; Global parameter load printers found in service section! even thought I have printers = no in my smb.conf ??? Anyone know how to stop Samba trying to pal up with cups ? Hi, tha package build defaults to build with cups printing support. so if you use the package, you will always get cups installed as a dependency. if you want to entirely remove this dependency you have to build this port from source.and you need to run "make config" in the ports directory and should deslect the CUPS option. setting "load printers = no" in smb.conf should prevent samba from acquiring any printers at all and you should not see the error message. As far as i remember, there is NO "printers = no" option for smb.conf. You should run testparm(1) to verify the options used in your smb.conf file. Joerg - -- The beginning is the most important part of the work. -Plato -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC5fFoSPOsGF+KA+MRAsmmAJ4thkbwb7AKjgeXIlds+otzPmCDcgCcCQs1 t5RnGpxL5gRVGHXh2F5gmeE= =G2bT -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Samba without Cups ?
Joerg Pulz wrote: tha package build defaults to build with cups printing support. so if you use the package, you will always get cups installed as a dependency. if you want to entirely remove this dependency you have to build this port from source.and you need to run "make config" in the ports directory and should deslect the CUPS option. A little exploration of the Makefiles shows this to be false. :-( In net/samba you have .if !defined(WITHOUT_CUPS) WITH_CUPS= yes .endif and .if defined(WITH_CUPS) LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ LDFLAGS=-L${LOCALBASE}/lib .else CONFIGURE_ARGS+=--disable-cups .endif and in net/samba3 you have: OPTIONS+= CUPS"With CUPS printing support" on \ and .if defined(WITH_CUPS) LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ LDFLAGS=-L${LOCALBASE}/lib .else CONFIGURE_ARGS+=--disable-cups .endif So for samba, you just need to make with WITHOUT_CUPS=1 and samba 3 with WITH_CUPS=0, either on the make line or through pkgtools.conf (portupgrade). CUPS support is *not* required for samba to support Unix printing unless you need CUPS to support your printer for whatever reason. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Samba without Cups ?
> So for samba, you just need to make with WITHOUT_CUPS=1 and samba 3 with > WITH_CUPS=0, either on the make line or through pkgtools.conf > (portupgrade). I think that's not quite correct. For samba 3 you should just 'make'. WITH_CUPS=0 defines the symbol, and that's what is checked for in the Makefile, not the value. Norbert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Samba without Cups ?
Norbert Koch wrote: So for samba, you just need to make with WITHOUT_CUPS=1 and samba 3 with WITH_CUPS=0, either on the make line or through pkgtools.conf (portupgrade). I think that's not quite correct. For samba 3 you should just 'make'. WITH_CUPS=0 defines the symbol, and that's what is checked for in the Makefile, not the value. You're quite right, WITH_CUPS=0 is wrong! Shouldn't type in such a hurry :-) In fact, WITHOUT_CUPS=1 should work for both samba and samba3. WITH_CUPS is just set based on WITHOUT_CUPS. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"