Re: [squid-users] OpenBSD 4.2+Squid3_Stable1+Windows AD

From: Macroendrix <tonito.cu@dont-contact.us>
Date: Tue, 25 Mar 2008 16:32:41 -0700 (PDT)

Use this code:
-----------------------------------------------------------------------------------------------------
diff -r -u -N samba/Makefile samba_winbind/Makefile
--- samba/Makefile Tue Oct 3 16:07:10 2006
+++ samba_winbind/Makefile Tue Sep 26 05:51:14 2006
@@ -61,7 +61,7 @@
 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
                 LDFLAGS="-L${LOCALBASE}/lib -Wl,--export-dynamic"
 
-FLAVORS= cups ldap
+FLAVORS= cups ldap winbind
 FLAVOR?=
 
 MULTI_PACKAGES= -docs
@@ -79,8 +79,15 @@
 CONFIGURE_ARGS+= --with-ldap --without-ads
 LIB_DEPENDS+= ldap,lber::databases/openldap
 BUILD_DEPENDS+= ::misc/libutf8
+.endif
+
+.if ${FLAVOR:L:Mwinbind}
+CONFIGURE_ARGS+= --with-ldap --with-ads --with-winbind
+LIB_DEPENDS+= ldap,lber::databases/openldap
+BUILD_DEPENDS+= ::misc/libutf8
+WANTLIB+= gssapi krb5
 .else
-CONFIGURE_ARGS+= --without-ldap --without-ads
+CONFIGURE_ARGS+= --without-ldap --without-ads --without-winbind
 .endif
 
 .if defined(PACKAGING) && ${SUBPACKAGE} == "-docs"
@@ -101,6 +108,12 @@
         ${WRKSRC}/../docs/registry/*.reg
 
 SAMPLE_CONFIG= ${PREFIX}/share/examples/samba/smb.conf.default
+
+.if ${FLAVOR:L:Mwinbind}
+post-extract:
+ @cp ${FILESDIR}/krb5-config ${WRKDIR}/bin
+ @chmod a+x ${WRKDIR}/bin/krb5-config
+.endif
 
 post-install:
         ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/samba/pdf
diff -r -u -N samba/files/krb5-config samba_winbind/files/krb5-config
--- samba/files/krb5-config Thu Jan 1 01:00:00 1970
+++ samba_winbind/files/krb5-config Tue Sep 26 02:08:42 2006
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+case x$1 in
+x--libs)
+ echo '-lgssapi -lkrb5 -lasn1 -lcrypto';;
+x--cflags)
+ echo '-I/usr/include/kerberosV';;
+esac
+exit 0
diff -r -u -N samba/files/krb5-config.orig
samba_winbind/files/krb5-config.orig
diff -r -u -N samba/pkg/PFRAG.winbind-main
samba_winbind/pkg/PFRAG.winbind-main
--- samba/pkg/PFRAG.winbind-main Thu Jan 1 01:00:00 1970
+++ samba_winbind/pkg/PFRAG.winbind-main Tue Sep 26 06:47:56 2006
@@ -0,0 +1,3 @@
+@comment $OpenBSD: PFRAG.winbind-main,v 1.1 2006/10/05 14:35:54 ts Exp $
+libexec/winbindd
+bin/wbinfo
diff -r -u -N samba/pkg/PLIST-main samba_winbind/pkg/PLIST-main
--- samba/pkg/PLIST-main Tue Oct 3 16:07:10 2006
+++ samba_winbind/pkg/PLIST-main Tue Sep 26 07:29:33 2006
@@ -104,3 +104,4 @@
 share/swat/include/header.html
 @sample /var/spool/samba/
 %%SHARED%%
+%%winbind%%
-----------------------------------------------------------------------------------------------------
100% tested with Squid2.6Stable18 and Samba 3.0.25 in OpenBSD 4.2...

Have fun!

-- 
View this message in context: http://www.nabble.com/OpenBSD-4.2%2BSquid3_Stable1%2BWindows-AD-tp15151088p16291482.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Tue Mar 25 2008 - 17:32:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT