From: Matthieu Patou Date: Sat, 5 Jun 2010 15:16:20 +0000 (+0400) Subject: s4-waf: add the missing bits for builing nss_winbind and pam_winbind X-Git-Tag: samba-3.6.0pre1~165^2~18 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=dbbfad82862343eed0be86c8ca4fa23bdff5beb5 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 --- diff --git a/lib/iniparser/wscript_build b/lib/iniparser/wscript_build new file mode 100644 index 00000000000..419c232f91e --- /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 80f11871c90..9303ace0da1 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 6c1eac69054..c8c14bc2b3d 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')