1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

Merge branch 'master' of ssh://git.samba.org/data/git/samba into noejs

Conflicts:
	source4/main.mk
This commit is contained in:
Jelmer Vernooij 2008-09-18 20:29:05 +02:00
commit 729ffbae08
524 changed files with 3849 additions and 47096 deletions

View File

@ -26,8 +26,8 @@ libmsrpc Chris Nichols <skel@samba.org>
libsmbclient Derrell Lipman <derrell@samba.org>
pdb_*sql Wilco Baan Hofman <synnack@users.sf.net>
Florian Effenberger <floeff@users.sf.net>
pdb_*sql Collen Blijenberg <collen@hermanjordan.nl>
Herwin Weststrate <herwin@snt.utwente.nl>
http://pdbsql.sourceforge.net/

View File

@ -173,7 +173,7 @@ Goto
----
While many people have been academically taught that goto's are fundamentally
evil, then can greatly enhance readability and reduce memory leaks when used
evil, they can greatly enhance readability and reduce memory leaks when used
as the single exit point from a function. But in no Samba world what so ever
is a goto outside of a function or block of code a good idea.

View File

@ -6,7 +6,7 @@
CC = @CC@
SAMBA_DIR = ../../source
SAMBA_DIR = ../../source3
SAMBA_INCLUDES = -I$(SAMBA_DIR)/include
SAMBA_LIBPATH = -L$(SAMBA_DIR)/bin
@ -16,7 +16,7 @@ GTK_LIBS = `gtk-config --libs`
#GTK_CFLAGS = `pkg-config gtk+-2.0 --cflags`
#GTK_LIBS = `pkg-config gtk+-2.0 --libs`
FLAGS = @CPPFLAGS@ @CFLAGS@ $(GTK_CFLAGS) $(SAMBA_INCLUDES)
CCFLAGS = @CPPFLAGS@ @CFLAGS@ $(GTK_CFLAGS) $(SAMBA_INCLUDES)
PICFLAG=@PICFLAG@
LDFLAGS= $(SAMBA_LIBPATH) @PIE_LDFLAGS@ @LDFLAGS@
@ -27,7 +27,7 @@ CMDLINE_LIBS = @POPTLIBS@
LIBS = $(EXTERNAL_LIBS) $(LIBSMBCLIENT_LIBS)
# Compile a source file. (.c --> .o)
COMPILE_CC = $(CC) -I. $(FLAGS) $(PICFLAG) -c $< -o $@
COMPILE_CC = $(CC) -I. $(CCFLAGS) $(PICFLAG) -c $< -o $@
COMPILE = $(COMPILE_CC)
MAKEDIR = || exec false; \
@ -68,67 +68,67 @@ all: $(TESTS) smbsh
testsmbc: testsmbc.o
@echo Linking testsmbc
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
tree: tree.o
@echo Linking tree
@$(CC) $(GTK_CFLAGS) $(FLAGS) $(LDFLAGS) -o $@ $< $(GTK_LIBS) $(LIBS)
@$(CC) $(GTK_CFLAGS) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(GTK_LIBS) $(LIBS)
testacl: testacl.o
@echo Linking testacl
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testacl2: testacl2.o
@echo Linking testacl2
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testacl3: testacl3.o
@echo Linking testacl3
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testbrowse: testbrowse.o
@echo Linking testbrowse
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testbrowse2: testbrowse2.o
@echo Linking testbrowse2
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
teststat: teststat.o
@echo Linking teststat
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
teststat2: teststat2.o
@echo Linking teststat2
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
teststat3: teststat3.o
@echo Linking teststat3
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testtruncate: testtruncate.o
@echo Linking testtruncate
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testchmod: testchmod.o
@echo Linking testchmod
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testutime: testutime.o
@echo Linking testutime
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testread: testread.o
@echo Linking testread
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testwrite: testwrite.o
@echo Linking testwrite
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
testctx: testctx.o
@echo Linking testctx
@$(CC) $(FLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
@$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(CMDLINE_LIBS)
smbsh:
make -C smbwrapper

View File

@ -3,9 +3,9 @@ DEFS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL)
LDFLAGS = -L/usr/local/samba/lib -L../../../source/bin
LDFLAGS = -L/usr/local/samba/lib -L../../../source3/bin
SMBINCLUDE = -I../../../source/include
SMBINCLUDE = -I../../../source3/include
CFLAGS= -fpic -g -O0 $(DEFS) $(SMBINCLUDE)
BIN = .

10
lib/README Normal file
View File

@ -0,0 +1,10 @@
compression - Various compression algorithms (MSZIP, lzxpress)
nss_wrapper - Wrapper for the user and group NSS API allowing the use
of other data sources.
popt - Command-line option parsing library
replace - Provides replacements for standard (POSIX, C99) functions
not provided by the host platform.
socket_wrapper - Wrapper library allowing TCP/IP traffic to be redirected
over Unix domain sockets.
talloc - Hierarchical pool based memory allocator
tdb - Simple but fast key/value database library, supporting multiple writers

View File

@ -21,7 +21,7 @@
*/
#include "includes.h"
#include "lib/compression/mszip.h"
#include "../compression/mszip.h"
/*--------------------------------------------------------------------------*/
/* our archiver information / state */

View File

@ -20,7 +20,7 @@
#include "includes.h"
#include "torture/torture.h"
#include "lib/compression/mszip.h"
#include "../compression/mszip.h"
struct torture_suite *torture_local_compression(TALLOC_CTX *mem_ctx)
{

View File

@ -12,7 +12,7 @@ if eval "test x$enable_nss_wrapper = xyes"; then
HAVE_NSS_WRAPPER=yes
# this is only used for samba3
NSS_WRAPPER_OBJS="lib/nss_wrapper/nss_wrapper.o"
NSS_WRAPPER_OBJS="../lib/nss_wrapper/nss_wrapper.o"
fi
AC_SUBST(HAVE_NSS_WRAPPER)

View File

@ -34,7 +34,7 @@
#ifdef _SAMBA_BUILD_
#define NSS_WRAPPER_NOT_REPLACE
#include "lib/replace/replace.h"
#include "../replace/replace.h"
#include "system/passwd.h"
#include "system/filesys.h"

View File

@ -1,5 +1,5 @@
[SUBSYSTEM::LIBPOPT]
CFLAGS = -Ilib/popt
CFLAGS = -I$(poptsrcdir)
LIBPOPT_OBJ_FILES = $(addprefix $(poptsrcdir)/, findme.o popt.o poptconfig.o popthelp.o poptparse.o)

View File

@ -25,7 +25,7 @@ if test x"$INCLUDED_POPT" != x"no"; then
dnl find the popt sources. This is meant to work both for
dnl popt standalone builds, and builds of packages using popt
poptdir=""
poptpaths="$srcdir $srcdir/lib/popt $srcdir/popt $srcdir/../popt"
poptpaths="$srcdir $srcdir/lib/popt $srcdir/popt $srcdir/../popt $srcdir/../lib/popt"
for d in $poptpaths; do
if test -f "$d/popt.c"; then
poptdir="$d"

View File

@ -1,8 +1,8 @@
m4_include(lib/popt/libpopt.m4)
m4_include(../lib/popt/libpopt.m4)
if test x"$POPT_OBJ" = "x"; then
SMB_EXT_LIB(LIBPOPT, [${POPT_LIBS}])
else
SMB_INCLUDE_MK(lib/popt/config.mk)
SMB_INCLUDE_MK(../lib/popt/config.mk)
fi

View File

@ -75,7 +75,9 @@ in lib/replace we use rep_xxx()
#undef getnameinfo
#endif
#define getnameinfo rep_getnameinfo
#ifndef HAVE_GETNAMEINFO
#define HAVE_GETNAMEINFO
#endif
extern int rep_getaddrinfo(const char *node, const char *service,
const struct addrinfo * hints, struct addrinfo ** res);

View File

@ -5,7 +5,7 @@ echo "LIBREPLACE_LOCATION_CHECKS: START"
dnl find the libreplace sources. This is meant to work both for
dnl libreplace standalone builds, and builds of packages using libreplace
libreplacedir=""
libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace"
libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace"
for d in $libreplacepaths; do
if test -f "$d/replace.c"; then
libreplacedir="$d"
@ -34,13 +34,18 @@ echo "LIBREPLACE_BROKEN_CHECKS: START"
dnl find the libreplace sources. This is meant to work both for
dnl libreplace standalone builds, and builds of packages using libreplace
libreplacedir=""
for d in "$srcdir" "$srcdir/lib/replace" "$srcdir/libreplace" "$srcdir/../libreplace" "$srcdir/../replace"; do
libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace"
for d in $libreplacepaths; do
if test -f "$d/replace.c"; then
libreplacedir="$d"
AC_SUBST(libreplacedir)
break;
fi
done
if test x"$libreplacedir" = "x"; then
AC_MSG_ERROR([cannot find libreplace in $libreplacepaths])
fi
LIBREPLACEOBJ="replace.o"
AC_SUBST(LIBREPLACEOBJ)

View File

@ -326,7 +326,7 @@ struct addrinfo {
#ifndef SOCKET_WRAPPER_NOT_REPLACE
#define SOCKET_WRAPPER_REPLACE
#endif
#include "lib/socket_wrapper/socket_wrapper.h"
#include "../socket_wrapper/socket_wrapper.h"
#endif
#endif

View File

@ -104,7 +104,7 @@ char *rep_getpass(const char *prompt);
#ifndef NSS_WRAPPER_NOT_REPLACE
#define NSS_WRAPPER_REPLACE
#endif
#include "lib/nss_wrapper/nss_wrapper.h"
#include "../nss_wrapper/nss_wrapper.h"
#endif
#endif

View File

@ -14,7 +14,7 @@ if eval "test x$enable_socket_wrapper = xyes"; then
HAVE_SOCKET_WRAPPER=yes
# this is only used for samba3
SOCKET_WRAPPER_OBJS="lib/socket_wrapper/socket_wrapper.o"
SOCKET_WRAPPER_OBJS="../lib/socket_wrapper/socket_wrapper.o"
fi
AC_SUBST(DEFAULT_TEST_OPTIONS)

View File

@ -42,7 +42,7 @@
#ifdef _SAMBA_BUILD_
#define SOCKET_WRAPPER_NOT_REPLACE
#include "lib/replace/replace.h"
#include "../replace/replace.h"
#include "system/network.h"
#include "system/filesys.h"
#include "system/time.h"

Some files were not shown because too many files have changed in this diff Show More