the patch worked thanks andrew!

-b

On Tue, Jun 30, 2009 at 5:21 PM, andrew fresh<[email protected]> wrote:
> On Tue, Jun 30, 2009 at 11:58:29PM +0100, Stuart Henderson wrote:
>> On 2009/06/30 16:52, Beavis wrote:
>> > Hi,
>> >
>> >   Is there an option available on the ports that would able me to
>> > build samba with winbind?
>>
>> no; winbind needs nsswitch which we don't support.
>
> That said, if you need it for making something else (like Squid, or in
> my case Dovecot) work, it is fairly easy to add winbind support.  I
> think this is all there is to it, but it may well be wrong (my dev tree
> got borked, so I haven't tested this).
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/samba/Makefile,v
> retrieving revision 1.105
> diff -N -u -p -u Makefile
> --- Makefile    30 Jun 2009 21:38:38 -0000      1.105
> +++ Makefile    30 Jun 2009 23:20:08 -0000
> @@ -60,7 +60,7 @@ CONFIGURE_ARGS= --disable-fam \
>  CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
>                LDFLAGS="-L${LOCALBASE}/lib -Wl,--export-dynamic"
>
> -FLAVORS=        cups ldap ads
> +FLAVORS=        cups ldap ads winbind
>  FLAVOR?=
>
>  MULTI_PACKAGES= -main -docs
> @@ -93,6 +93,12 @@ CONFIGURE_ARGS+= --without-ads
>
>  .if ${FLAVOR:L:Mads}
>  WANTLIB+=      crypto
> +.endif
> +
> +.if ${FLAVOR:L:Mwinbind}
> +CONFIGURE_ARGS+= --with-winbind
> +.else
> +CONFIGURE_ARGS+= --without-winbind
>  .endif
>
>  PKG_ARCH-docs= *
> cvs server: Diffing inside files
> cvs server: Diffing inside patches
> cvs server: Diffing inside pkg
> Index: pkg/PFRAG.winbind-main
> ===================================================================
> RCS file: pkg/PFRAG.winbind-main
> diff -N -u -p -u pkg/PFRAG.winbind-main
> --- /dev/null   30 Jun 2009 17:20:08 -0000
> +++ pkg/PFRAG.winbind-main      30 Jun 2009 23:20:08 -0000
> @@ -0,0 +1,6 @@
> +...@comment $OpenBSD$
> +bin/wbinfo
> +include/wbclient.h
> +lib/libwbclient.so
> +lib/libwbclient.so.0
> +libexec/winbindd
> Index: pkg/PLIST-main
> ===================================================================
> RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
> retrieving revision 1.9
> diff -N -u -p -u pkg/PLIST-main
> --- pkg/PLIST-main      14 May 2009 17:05:46 -0000      1.9
> +++ pkg/PLIST-main      30 Jun 2009 23:20:08 -0000
> @@ -133,3 +133,4 @@ share/swat/include/footer.html
>  share/swat/include/header.html
> �...@sample /var/spool/samba/
>  %%SHARED%%
> +%%winbind%%
>
> l8rZ,
> --
> andrew - ICQ# 253198 - Jabber: [email protected]
>
> Windows isn't a virus, viruses do something
>
>



-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Reply via email to