[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Samba 3 port
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Samba 3 port
- From: Julien TOUCHE <julien_(_dot_)_touche_(_at_)_lycos_(_dot_)_com>
- Date: Sat, 20 Mar 2004 18:55:15 +0100
Lukas Meyer wrote:
Hello
As announced I created a samba3 port. I think there are still things
to improve but it works.
regards Lukas
it would be good to find how to kill those warnings
/usr/include/sys/types.h:69: warning: empty declaration
/usr/include/sys/types.h:79: warning: empty declaration
also i add a ldap flavor and krb5 in CFLAGS but it is not sufficient to
get krb5 working, it may need a bump for heimdal.
(
as i asked the question of heimdal support on samba@, i get:
===
Samba 3.0 does support Heimdal, however you need to ensure you get a
version that *correctly* implements 'type 23' encryption. This is known
to be in MIT krb5 1.3.1, but I can't tell you exactly which heimdal
version (and heimdal had some bugs in this particular enctype earlier).
Andrew Bartlett
===
)
corrections to configure.in.
test on 3.4-stable & -current.
Regards
Julien
--- Makefile.orig Sat Mar 20 09:39:21 2004
+++ Makefile Sat Mar 20 12:26:13 2004
@@ -30,7 +30,7 @@
SAMBA_LOGDIR= /var/log
SUBST_VARS= SAMBA_SPOOL CONFDIR
-FLAVORS= cups
+FLAVORS= cups ldap
FLAVOR?=
@@ -50,7 +50,7 @@
--with-ssl \
--with-sslinc="/usr/include/ssl" \
--with-ssllib="/usr/lib"
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I/usr/include/kerberosV" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${FLAVOR:L:Mcups}
@@ -59,6 +59,14 @@
CONFIGURE_ARGS+= --disable-cups
.endif
+## ldap & krb5 are both needed for Active Directory Setup
+## not sufficient: need a bump for heimdal ?
+.if ${FLAVOR:L:Mldap}
+CONFIGURE_ARGS+= --with-ldap
+LIB_DEPENDS+= ldap.2,lber.2:openldap-client-2.*:databases/openldap
+.else
+CONFIGURE_ARGS+= --without-ldap
+.endif
NO_REGRESS= Yes
$OpenBSD$
--- configure.in.orig 2004-01-31 16:45:56.000000000 +0100
+++ configure.in 2004-03-20 10:25:58.000000000 +0100
@@ -592,12 +592,33 @@ AC_HEADER_STDC
AC_HEADER_DIRENT
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
+AC_CHECK_HEADERS(sys/types.h)
AC_CHECK_HEADERS(arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h)
-AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h)
-AC_CHECK_HEADERS(rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h)
+AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h)
+AC_CHECK_HEADERS(sys/socket.h)
+AC_CHECK_HEADERS([net/if.h], [], [], [
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif])
+AC_CHECK_HEADERS(rpc/rpc.h rpcsvc/nis.h)
+AC_CHECK_HEADERS([rpcsvc/yp_prot.h],[],[],[
+#if NETDB_H
+# include <netdb.h>
+#endif
+#if HAVE_RPC_RPC_H
+# include <rpc/rpc.h>
+#endif])
+AC_CHECK_HEADERS(rpcsvc/ypclnt.h)
AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h)
AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h)
-AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
+AC_CHECK_HEADERS([sys/mount.h],[],[],[
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif])
+AC_CHECK_HEADERS(sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h)
AC_CHECK_HEADERS(sys/syslog.h syslog.h execinfo.h)
@@ -620,7 +641,19 @@ case "$host_os" in
fi
;;
esac
-AC_CHECK_HEADERS(shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS(shadow.h)
+AC_CHECK_HEADERS(netinet/in_systm.h)
+AC_CHECK_HEADERS(netinet/in.h)
+AC_CHECK_HEADERS([netinet/ip.h netinet/tcp.h netinet/in_ip.h], [], [], [
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif])
AC_CHECK_HEADERS(nss.h nss_common.h nsswitch.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h)
AC_CHECK_HEADERS(stropts.h poll.h)
AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
Visit your host, monkey.org