+#!/usr/bin/env python
+
# this is a base set of waf rules that everything else pulls in first
import sys, wafsamba
+#!/usr/bin/env python
+
bld.INSTALL_WILDCARD('${DATAROOTDIR}', '*.dat')
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/async_req/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
source='crc32.c md5.c hmacmd5.c md4.c arcfour.c sha256.c hmacsha256.c aes.c rijndael-alg-fst.c',
deps='talloc'
+#!/usr/bin/env python
+
import Options
def set_options(opt):
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/nss_wrapper/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
import Options
def set_options(opt):
+#!/usr/bin/env python
+
conf.CHECK_HEADERS('sys/capability.h')
conf.CHECK_FUNCS('getpwnam_r getpwuid_r getpwent_r')
+#!/usr/bin/env python
+
srcdir = '../..'
blddir = 'bin'
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/smbconf/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
import Options
def set_options(opt):
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('SOCKET_WRAPPER',
source='socket_wrapper.c'
)
+#!/usr/bin/env python
+
# install out various python scripts for use by make test
+#!/usr/bin/env python
+
VERSION = '2.0.1'
srcdir = '../..'
+#!/usr/bin/env python
+
VERSION='1.2.1'
srcdir = '../..'
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/tdr/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
VERSION = '0.9.8'
srcdir = '../..'
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/torture/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/tsocket/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
import Options
def set_options(opt):
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/uid_wrapper/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../lib/util/charset/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# rather strangely, we need to look for libiconv before checking libc
# as the external libiconv can use a macro to override iconv_open to libiconv_open
# and then we may find the wrong iconv.h later due to other packages looking
+#!/usr/bin/env python
+
bld.SAMBA_LIBRARY('LIBSAMBA-UTIL',
source='xfile.c debug.c fault.c signal.c system.c time.c genrand.c dprintf.c util_str.c rfc1738.c substitute.c util_strlist.c util_file.c data_blob.c util.c blocking.c util_net.c fsusage.c ms_fnmatch.c mutex.c idtree.c become_daemon.c rbtree.c talloc_stack.c smb_threads.c params.c parmlist.c util_id.c',
public_deps='talloc LIBCRYPTO LIBREPLACE_NETWORK CHARSET execinfo UID_WRAPPER',
+#!/usr/bin/env python
+
# backtrace could be in libexecinfo or in libc
conf.CHECK_FUNCS_IN('backtrace', 'execinfo', checklibc=True, headers='execinfo.h')
+#!/usr/bin/env python
+
def configure(conf):
conf.CHECK_HEADERS('zlib.h')
conf.CHECK_FUNCS_IN('zlibVersion', 'z')
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('ntlm_check',
source='ntlm_check.c',
deps='LIBSAMBA-UTIL'
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../libcli/cldap/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../libcli/drsuapi/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
source='ldap_message.c',
public_deps='LIBSAMBA-ERRORS talloc ldb',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../libcli/named_pipe_auth/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../libcli/nbt/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../libcli/samsync/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../libcli/security/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../libcli/smb/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('LIBGPO',
source='gpo_util.c gpo_sec.c ../libgpo/gpext/gpext.c gpo_fetch.c gpo_ini.c ../source4/libgpo/ads_convenience.c ../source3/libgpo/gpo_filesync.c ../source4/libgpo/gpo_filesync.c',
deps='ldb LIBSAMBA-NET',
+#!/usr/bin/env python
+
# note that we use symlink=True for the common IDL files.
# this is because the gen_ndr output is committed in git,
# and we don't want the result of a waf build to be a large
+#!/usr/bin/env python
+
bld.BUILD_SUBDIR('idl')
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../nsswitch/libwbclient/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../nsswitch/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
conf.CHECK_HEADERS('nss.h nss_common.h ns_api.h')
conf.CHECK_HEADERS('security/pam_appl.h security/pam_modules.h pam/pam_modules.h', together=True)
+#!/usr/bin/env python
+
# install the pidl modules
bld.INSTALL_WILDCARD('${DATAROOTDIR}/perl5', '**/*.pm', flat=False)
+#!/usr/bin/env python
+
import os
def set_options(opt):
+#!/usr/bin/env python
+
import Options
from dynconfig import *
+#!/usr/bin/env python
+
from samba_utils import *
TDB_LIB_SRC = '''lib/util_tdb.c ../lib/util/util_tdb.c
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/auth/credentials/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_LIBRARY('gensec',
source='gensec.c socket.c',
pc_files='gensec.pc',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/auth/kerberos/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_MODULE('auth_sam_module',
source='auth_sam.c',
subsystem='auth',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/auth/ntlmssp/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/auth/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
conf.CHECK_HEADERS('security/pam_appl.h')
conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True)
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/cldap_server/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_BINARY('smbclient',
source='client.c',
installdir='BINDIR',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/cluster/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('DSDB_MODULE_HELPERS',
source='util.c ridalloc.c',
autoproto='util_proto.h',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/dsdb/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
import string, Utils, Options
# list of directory options to offer in configure
+#!/usr/bin/env python
+
bld.SAMBA_GENERATOR(
name="HEIMDAL_ERRORLIST",
rule="${PYTHON} ${SRC[0].abspath()} ${SRC[1].abspath()} ${SRC[1].parent.abspath(env)}",
+#!/usr/bin/env python
+
conf.CHECK_TYPE('u_char', 'uint8_t')
conf.CHECK_TYPE('u_int32_t', 'uint32_t')
+#!/usr/bin/env python
+
bld.SAMBA_MODULE('KDC',
source='kdc.c kpasswdd.c',
subsystem='service',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/ldap_server/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('LIBCMDLINE_CREDENTIALS',
source='credentials.c',
autoproto='credentials.h',
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('COM',
source='tables.c rot.c main.c',
deps='LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG LIBEVENTS LIBNDR PIDL_DCOM'
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/events/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/ldb-samba/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
VERSION = '0.9.10'
srcdir = '../../..'
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/messaging/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_PIDL('PIDL_REG',
source='regf.idl',
options='--header --tdr-parser')
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/samba3/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
termlib=bld.env.READLINE_TERMLIB or ''
+#!/usr/bin/env python
+
conf.CHECK_HEADERS('readline.h history.h readline/readline.h readline/history.h')
for termlib in ['ncurses', 'curses', 'termcap', 'terminfo', 'termlib', 'tinfo']:
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/socket/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/stream/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
import Options
from optparse import SUPPRESS_HELP
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/wmi/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/lib/basic.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP',
source='ldap_client.c ldap_bind.c ldap_ildap.c ldap_controls.c',
autoproto='ldap_proto.h',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/libcli/security/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/libcli/smb2/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/libcli/wbclient/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.BUILD_SUBDIR('ldap')
bld.BUILD_SUBDIR('security')
bld.BUILD_SUBDIR('wbclient')
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/libnet/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_PIDL_LIST('PIDL',
source='''irpc.idl nfs4acl.idl notify.idl ntp_signd.idl
opendb.idl sasl_helpers.idl server_id.idl winbind.idl
+#!/usr/bin/env python
+
bld.BUILD_SUBDIR('../../librpc/idl')
bld.BUILD_SUBDIR('idl')
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/nbt_server/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/ntp_signd/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/ntptr/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/ntvfs/common/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('pvfs_acl',
source='pvfs_acl.c',
autoproto='vfs_acl_proto.h'
+#!/usr/bin/env python
+
bld.SAMBA_MODULE('sys_notify_inotify',
source='inotify.c',
subsystem='sys_notify',
+#!/usr/bin/env python
+
conf.CHECK_HEADERS('linux/inotify.h asm/unistd.h sys/inotify.h', add_headers=False)
conf.CHECK_FUNCS('inotify_init')
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/ntvfs/unixuid/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/ntvfs/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_LIBRARY('LIBSAMBA-HOSTCONFIG',
source='loadparm.c generic.c util.c',
pc_files='samba-hostconfig.pc',
+#!/usr/bin/env python
+
bld.SAMBA_SUBSYSTEM('DCERPC_COMMON',
source='common/server_info.c common/share_info.c common/forward.c',
autoproto='common/proto.h',
+#!/usr/bin/env python
+
# work out what external modules need to be installed
external_list = []
try:
+#!/usr/bin/env python
+
def set_options(opt):
# enable options related to building python extensions
opt.tool_options('python') # options for disabling pyc or pyo compilation
+#!/usr/bin/env python
+
bld.SAMBA_PYTHON('LIBPYTHON',
source='modules.c',
public_deps='EXT_LIB_PYTHON',
+#!/usr/bin/env python
+
bld.INSTALL_FILES('${SBINDIR}','bin/upgradeprovision bin/samba_dnsupdate',
chmod=0755, python_fixup=True, flat=True)
+#!/usr/bin/env python
+
# selftest main code.
import Scripting, os, Options, Utils, Environment, optparse, sys
+#!/usr/bin/env python
+
bld.INSTALL_WILDCARD('${SETUPDIR}', 'ad-schema/*.txt')
bld.INSTALL_WILDCARD('${SETUPDIR}', 'display-specifiers/*.txt')
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/smb_server/smb/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/smb_server/smb2/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/smb_server/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/smbd/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/torture/drs/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/torture/libnetapi/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/torture/libsmbclient/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_MODULE('TORTURE_LOCAL',
source='../../../lib/util/charset/tests/iconv.c ../../../lib/talloc/testsuite.c ../../../lib/replace/test/getifaddrs.c ../../../lib/replace/test/os2_delete.c ../../../lib/replace/test/strptime.c ../../../lib/replace/test/testsuite.c ../../lib/messaging/tests/messaging.c ../../lib/messaging/tests/irpc.c ../../librpc/tests/binding_string.c ../../../lib/util/tests/idtree.c ../../../lib/util/tests/dlinklist.c ../../lib/socket/testsuite.c ../../../lib/socket_wrapper/testsuite.c ../../../lib/nss_wrapper/testsuite.c ../../libcli/resolve/testsuite.c ../../../lib/util/tests/strlist.c ../../../lib/util/tests/parmlist.c ../../../lib/util/tests/str.c ../../../lib/util/tests/time.c ../../../lib/util/tests/asn1_tests.c ../../../lib/util/tests/data_blob.c ../../../lib/util/tests/file.c ../../../lib/util/tests/genrand.c ../../../lib/compression/testsuite.c ../../../lib/util/charset/tests/charset.c ../../libcli/security/tests/sddl.c ../../../lib/tdr/testsuite.c ../../../lib/tevent/testsuite.c ../../param/tests/share.c ../../param/tests/loadparm.c ../../auth/credentials/tests/simple.c local.c dbspeed.c torture.c ../ldb/ldb.c ../../dsdb/common/tests/dsdb_dn.c ../../dsdb/schema/tests/schema_syntax.c',
autoproto='proto.h',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/torture/smb2/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_MODULE('TORTURE_WINBIND',
source='winbind.c struct_based.c ../../../nsswitch/libwbclient/tests/wbclient.c',
autoproto='proto.h',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/torture/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_MODULE('net_drs',
source='drs/net_drs.c drs/net_drs_bind.c drs/net_drs_kcc.c drs/net_drs_replicate.c drs/net_drs_showrepl.c',
autoproto='drs/net_drs_proto.h',
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/utils/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
bld.SAMBA_PYTHON('WEB_WSGI',
source='wsgi.c'
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/winbind/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# AUTOGENERATED by mktowscript.pl from ../../source4/wrepl_server/config.mk
# Please remove this notice if hand editing
+#!/usr/bin/env python
+
# top level waf build script for samba4
import os