waf: restore libsmbclient handling.
authorGünther Deschner <gd@samba.org>
Thu, 15 Sep 2011 10:52:49 +0000 (12:52 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 15 Sep 2011 13:31:59 +0000 (15:31 +0200)
This is a temporary solution to get libsmbclient installed properly as a library
(including symlinks and proper symbols). I was not able to make the old internal
library name 'libsmb/smbclient' work together with "realname" and/or "link_name".
Maybe one of the waf gurus has more ideas here.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Sep 15 15:31:59 CEST 2011 on sn-devel-104

source3/wscript_build
source4/torture/libsmbclient/wscript_build
source4/wscript_build [moved from source4/client/wscript_build with 61% similarity]
wscript_build

index bca1cdf..4bedbfe 100755 (executable)
@@ -675,7 +675,7 @@ bld.SAMBA3_LIBRARY('netapi',
                     vnum='0',
                     vars=locals())
 
-bld.SAMBA3_LIBRARY('libsmb/smbclient',
+bld.SAMBA3_LIBRARY('smbclient',
                     source=LIBSMBCLIENT_SRC,
                     public_deps='''talloc tdb_compat wbclient cap param  smbd_shim libsmb KRBCLIENT pdb SMBLDAP
                     LIBMSRPC_GEN msrpc3 libcli_lsa3 RPC_NDR_SRVSVC popt_samba3''',
@@ -1175,7 +1175,7 @@ bld.SAMBA3_BINARY('client/smbclient' + bld.env.suffix3,
                  source=CLIENT_SRC,
                  deps='''talloc tdb_compat cap popt_samba3 pdb libsmb smbd_shim
                  param wbclient param KRBCLIENT LIBMSRPC_GEN
-                 msrpc3 SMBREADLINE libsmb/smbclient RPC_NDR_SRVSVC INIT_LSA
+                 msrpc3 SMBREADLINE smbclient RPC_NDR_SRVSVC INIT_LSA
                  cli_smb_common''',
                  vars=locals())
 
@@ -1252,7 +1252,7 @@ bld.SAMBA3_BINARY('pdbedit',
 
 bld.SAMBA3_BINARY('smbget',
                  source=SMBGET_SRC,
-                 deps='''talloc tdb_compat libsmb/smbclient popt_samba3''',
+                 deps='''talloc tdb_compat smbclient popt_samba3''',
                  vars=locals())
 
 bld.SAMBA3_BINARY('nmblookup' + bld.env.suffix3,
index 8b2c516..40c7932 100644 (file)
@@ -6,7 +6,7 @@ bld.SAMBA_MODULE('TORTURE_LIBSMBCLIENT',
        autoproto='proto.h',
        subsystem='smbtorture',
        init_function='torture_libsmbclient_init',
-       deps='POPT_CREDENTIALS libsmb/smbclient',
+       deps='POPT_CREDENTIALS smbclient',
        internal_module=True
        )
 
similarity index 61%
rename from source4/client/wscript_build
rename to source4/wscript_build
index d1622b3..06b9e48 100644 (file)
@@ -1,13 +1,12 @@
 #!/usr/bin/env python
 
-bld.SAMBA_BINARY('smbclient',
-       source='client.c',
+bld.SAMBA_BINARY('client/smbclient',
+       source='client/client.c',
        deps='samba-hostconfig SMBREADLINE samba-util LIBCLI_SMB RPC_NDR_SRVSVC LIBCLI_LSA popt POPT_SAMBA POPT_CREDENTIALS smbclient-raw'
        )
 
 
-bld.SAMBA_BINARY('cifsdd',
-       source='cifsdd.c cifsddio.c',
+bld.SAMBA_BINARY('client/cifsdd',
+       source='client/cifsdd.c client/cifsddio.c',
        deps='samba-hostconfig LIBCLI_SMB popt POPT_SAMBA POPT_CREDENTIALS'
        )
-
index 1b6fb31..4f61820 100644 (file)
@@ -90,7 +90,7 @@ bld.RECURSE('source4/ntvfs')
 bld.RECURSE('source4/ntptr')
 bld.RECURSE('source4/torture')
 bld.RECURSE('librpc')
-bld.RECURSE('source4/client')
+bld.RECURSE('source4')
 bld.RECURSE('source4/libcli')
 bld.RECURSE('libcli/smb')
 bld.RECURSE('libcli/util')