--- nsswitch/wscript_build.orig 2015-02-24 19:10:33 UTC +++ nsswitch/wscript_build @@ -14,7 +14,7 @@ bld.SAMBA_LIBRARY('winbind-client', bld.SAMBA_BINARY('nsstest', source='nsstest.c', deps='replace dl', - install=False + install=False ) # The nss_wrapper code relies strictly on the linux implementation and @@ -39,7 +39,6 @@ if (Utils.unversioned_sys_platform() == pc_files=[], vnum='2') - # for nss_wins is linux only bld.SAMBA3_LIBRARY('nss_wins', keep_underscore=True, source='wins.c', @@ -48,6 +47,21 @@ if (Utils.unversioned_sys_platform() == public_headers_install=False, pc_files=[], vnum='2') +elif (host_os.rfind('bsdsunix') > -1): + # FreeBSD winbind client is implemented as a wrapper around + # the Linux version. + bld.SAMBA_LIBRARY('nss_winbind', + source='winbind_nss_linux.c winbind_nss_bsdsunix.c', + deps='winbind-client', + realname='nss_winbind.so.1', + vnum='1') + + bld.SAMBA3_LIBRARY('nss_wins', + source='wins.c wins_bsdsunix.c', + deps='''param libsmb LIBTSOCKET''', + realname='nss_wins.so.1', + vnum='1') + elif (host_os.rfind('freebsd') > -1): # FreeBSD winbind client is implemented as a wrapper around # the Linux version. @@ -57,6 +71,12 @@ elif (host_os.rfind('freebsd') > -1): realname='nss_winbind.so.1', vnum='1') + bld.SAMBA3_LIBRARY('nss_wins', + source='wins.c wins_freebsd.c', + deps='''param libsmb LIBTSOCKET''', + realname='nss_wins.so.1', + vnum='1') + elif (host_os.rfind('netbsd') > -1): # NetBSD winbind client is implemented as a wrapper # around the Linux version. It needs getpwent_r() to