From dbbfad82862343eed0be86c8ca4fa23bdff5beb5 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 5 Jun 2010 19:16:20 +0400 Subject: [PATCH] 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 --- lib/iniparser/wscript_build | 7 +++++++ nsswitch/wscript_build | 12 ++++++++++++ source4/wscript_build | 1 + 3 files changed, 20 insertions(+) create mode 100644 lib/iniparser/wscript_build 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') -- 2.11.4.GIT