Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2006 11:38:19 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Thomas T. Veldhouse" <veldy@veldy.net>
Cc:        timur@gnu.org, freebsd-ports@freebsd.org
Subject:   Re: Samba and FAM
Message-ID:  <790a9fff0609130938j24c8188cs6a0e5d1339a76a90@mail.gmail.com>
In-Reply-To: <790a9fff0609130833w5c6f8502jf2cedf0c17a80389@mail.gmail.com>
References:  <45081B59.80309@veldy.net> <790a9fff0609130833w5c6f8502jf2cedf0c17a80389@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/13/06, Scot Hetzel <swhetzel@gmail.com> wrote:
> The problem is that the net/samba3/Makefile automatically detects
> fam/gam on the system, and sets WITH_FAM_SUPPORT, even if FAM_SUPPORT
> is off in OPTIONS.
>
:
>Also, if the samba configure script has an option to disable fam
>support, it should be added as:
>
> .if defined(WITH_FAM_SUPPORT)
> USE_FAM=   yes
> .else
> CONFIGURE_ARGS+= --disable-fam
> .endif
>
> This would then prevent the configure script from detecting and using
> fam/gam on a system that has it installed.
>
Had a look at the samba configure script, and it doesn't have an
option to disable fam/gamin support.

So your only option is to uninstall all ports that require fam/gamin.
Install samba w/FAM_SUPPORT off, then reinstall the ports that were
removed.

OPTIONS=	LDAP		"With LDAP support" on \
:
		AIO_SUPPORT	"With experimental AIO support" off
.if exists(${LOCALBASE}/libexec/gam_server) || exists(${LOCALBASE}/bin/fam)
OPTIONS+=	FAM_SUPPORT	"With File Alteration Monitor" off
.else
FORCE_FAM_SUPPORT= yes
.endif
OPTIONS+=	SYSLOG		"With Syslog support" off \
		QUOTAS		"With Disk quota support" off \
:
		POPT		"With system-wide POPT library" on

Then in pre-everything, a test for FORCE_FAM_SUPPORT:

.if defined(FORCE_FAM_SUPPORT)
pre-everything::
       @${ECHO} "Samba will be compiled with File Monitor Support
(${WANT_FAM_SYSTEM})"
      @${ECHO}
       @${ECHO} "If this is not what you want, then you need to
uninstall all ports depending on ${WANT_FAM_SYSTEM}.  Install Samba,
and then reinstall all the ${WANT_FAM_SYSTEM} depending ports."
.endif

Scot

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0609130938j24c8188cs6a0e5d1339a76a90>