Date: Tue, 26 Jul 2005 09:34:56 +0100 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: freebsd-questions@freebsd.org Subject: Re: Samba without Cups ? Message-ID: <42E5F5B0.9030307@dial.pipex.com> In-Reply-To: <20050726100052.P72944@hades.admin.frm2> References: <20050726020239.195DD16A428@hub.freebsd.org> <50840.81.174.174.115.1122364591.squirrel@maxproxy1.uk2net.com> <20050726100052.P72944@hades.admin.frm2>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42E5F5B0.9030307>