From owner-freebsd-questions@FreeBSD.ORG Tue Jul 26 08:34:59 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9F4216A41F for ; Tue, 26 Jul 2005 08:34:59 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 420CC43D46 for ; Tue, 26 Jul 2005 08:34:58 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out2.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Tue, 26 Jul 2005 09:35:42 +0100 Message-ID: <42E5F5B0.9030307@dial.pipex.com> Date: Tue, 26 Jul 2005 09:34:56 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20050726020239.195DD16A428@hub.freebsd.org> <50840.81.174.174.115.1122364591.squirrel@maxproxy1.uk2net.com> <20050726100052.P72944@hades.admin.frm2> In-Reply-To: <20050726100052.P72944@hades.admin.frm2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Jul 2005 08:35:42.0640 (UTC) FILETIME=[027B2B00:01C591BD] Subject: Re: Samba without Cups ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 08:34:59 -0000 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