summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-06-05 19:16:20 +0400
committerMatthieu Patou <mat@matws.net>2010-07-17 18:05:12 +0400
commitdbbfad82862343eed0be86c8ca4fa23bdff5beb5 (patch)
treee5ccf8b5d1c7daa3a5a38347b58e818e92a370f8
parente461e29cd9a81d4a74fcd489c2c7b693b49f41d4 (diff)
downloadsamba-dbbfad82862343eed0be86c8ca4fa23bdff5beb5.tar.gz
samba-dbbfad82862343eed0be86c8ca4fa23bdff5beb5.tar.bz2
samba-dbbfad82862343eed0be86c8ca4fa23bdff5beb5.zip
s4-waf: add the missing bits for builing nss_winbind and pam_winbind
This is something that was not picked up during the migration to waf
-rw-r--r--lib/iniparser/wscript_build7
-rw-r--r--nsswitch/wscript_build12
-rw-r--r--source4/wscript_build1
3 files changed, 20 insertions, 0 deletions
diff --git a/lib/iniparser/wscript_build b/lib/iniparser/wscript_build
new file mode 100644
index 0000000000..419c232f91
--- /dev/null
+++ b/lib/iniparser/wscript_build
@@ -0,0 +1,7 @@
+#!/usr/bin/env python
+
+bld.SAMBA_SUBSYSTEM('LIBINIPARSER',
+ source='../iniparser_build/iniparser.c ../iniparser_build/dictionary.c ../iniparser_build/strlib.c',
+ deps='replace',
+ cflags=''
+ )
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build
index 80f11871c9..9303ace0da 100644
--- a/nsswitch/wscript_build
+++ b/nsswitch/wscript_build
@@ -18,3 +18,15 @@ bld.SAMBA_BINARY('wbinfo',
deps='LIBSAMBA-UTIL LIBCLI_AUTH popt POPT_SAMBA LIBWINBIND-CLIENT LIBWBCLIENT tevent UTIL_TEVENT LIBASYNC_REQ UID_WRAPPER'
)
+bld.SAMBA_LIBRARY('nsswinbind',
+ source='../nsswitch/winbind_nss_linux.c',
+ deps='LIBWINBIND-CLIENT',
+ realname='libnss_winbind.so',
+ vnum='2')
+
+bld.SAMBA_LIBRARY('pamwinbind',
+ source='../nsswitch/pam_winbind.c',
+ deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
+ cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
+ realname='pam_winbind.so',
+ )
diff --git a/source4/wscript_build b/source4/wscript_build
index 6c1eac6905..c8c14bc2b3 100644
--- a/source4/wscript_build
+++ b/source4/wscript_build
@@ -56,6 +56,7 @@ bld.RECURSE('cluster')
bld.RECURSE('smbd')
bld.RECURSE('libnet')
bld.RECURSE('auth')
+bld.RECURSE('../lib/iniparser')
bld.RECURSE('../nsswitch')
bld.RECURSE('../nsswitch/libwbclient')
bld.RECURSE('lib/samba3')