Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/nsswitch/wscript_build

    r740 r988  
    11#!/usr/bin/env python
     2import Utils
     3import sys
     4host_os = sys.platform
    25
    36bld.SAMBA_LIBRARY('winbind-client',
    47        source='wb_common.c',
    58        deps='replace',
    6         cflags='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
     9        cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
    710        private_library=True
    811        )
     
    1013
    1114bld.SAMBA_BINARY('nsstest',
    12         source='nsstest.c',
    13         deps='replace dl'
    14         )
     15                 source='nsstest.c',
     16                 deps='replace dl',
     17                 install=False
     18                 )
    1519
     20# The nss_wrapper code relies strictly on the linux implementation and
     21# name, so compile but do not install a copy under this name.
     22bld.SAMBA_LIBRARY('nss_wrapper_winbind',
     23                  source='winbind_nss_linux.c',
     24                  deps='winbind-client',
     25                  realname='libnss_wrapper_winbind.so.2',
     26                  install=False,
     27                  vnum='2')
    1628
    17 bld.SAMBA_LIBRARY('nss_winbind',
    18         source='winbind_nss_linux.c',
    19         deps='winbind-client',
    20         realname='libnss_winbind.so.2',
    21         vnum='2')
     29# FIXME: original was *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
     30# the search for .rfind('gnu') covers gnu* and *-gnu is that too broad?
    2231
     32if (Utils.unversioned_sys_platform() == 'linux' or (host_os.rfind('gnu') > -1)):
     33    bld.SAMBA_LIBRARY('nss_winbind',
     34              keep_underscore=True,
     35              source='winbind_nss_linux.c',
     36              deps='winbind-client',
     37              public_headers=[],
     38              public_headers_install=False,
     39              pc_files=[],
     40              vnum='2')
    2341
    24 if bld.CONFIG_SET('WITH_PAM_MODULES') or bld.CONFIG_SET('HAVE_PAM_START'):
     42    bld.SAMBA3_LIBRARY('nss_wins',
     43                       keep_underscore=True,
     44                       source='wins.c',
     45                       deps='''wbclient''',
     46                       public_headers=[],
     47                       public_headers_install=False,
     48                       pc_files=[],
     49                       vnum='2')
     50elif (host_os.rfind('freebsd') > -1):
     51        # FreeBSD winbind client is implemented as a wrapper around
     52        # the Linux version.
     53        bld.SAMBA_LIBRARY('nss_winbind',
     54                          source='winbind_nss_linux.c winbind_nss_freebsd.c',
     55                          deps='winbind-client',
     56                          realname='nss_winbind.so.1',
     57                          vnum='1')
     58
     59        bld.SAMBA3_LIBRARY('nss_wins',
     60                          source='wins.c wins_freebsd.c',
     61                          deps='''wbclient''',
     62                          realname='nss_wins.so.1',
     63                          vnum='1')
     64
     65elif (host_os.rfind('netbsd') > -1):
     66        # NetBSD winbind client is implemented as a wrapper
     67        # around the Linux version. It needs getpwent_r() to
     68        # indicate libc's use of the correct nsdispatch API.
     69
     70        if bld.CONFIG_SET("HAVE_GETPWENT_R"):
     71                bld.SAMBA_LIBRARY('nss_winbind',
     72                                  source='winbind_nss_linux.c winbind_nss_netbsd.c',
     73                                  deps='winbind-client',
     74                                  realname='libnss_winbind.so')
     75elif (host_os.rfind('irix') > -1):
     76        bld.SAMBA_LIBRARY('ns_winbind',
     77                          source='winbind_nss_irix.c',
     78                          deps='winbind-client',
     79                          realname='libns_winbind.so')
     80
     81elif Utils.unversioned_sys_platform() == 'sunos':
     82        bld.SAMBA_LIBRARY('nss_winbind',
     83                          source='winbind_nss_solaris.c winbind_nss_linux.c',
     84                          deps='winbind-client',
     85                          realname='nss_winbind.so.1',
     86                          vnum='1')
     87elif (host_os.rfind('hpux') > -1):
     88        bld.SAMBA_LIBRARY('nss_winbind',
     89                          source='winbind_nss_linux.c',
     90                          deps='winbind-client',
     91                          realname='libnss_winbind.so')
     92elif (host_os.rfind('aix') > -1):
     93        bld.SAMBA_LIBRARY('nss_winbind',
     94                          source='winbind_nss_aix.c',
     95                          deps='winbind-client',
     96                          realname='WINBIND')
     97
     98if bld.CONFIG_SET('WITH_PAM_MODULES') and bld.CONFIG_SET('HAVE_PAM_START'):
    2599        bld.SAMBA_LIBRARY('pamwinbind',
    26100                source='pam_winbind.c',
    27                 deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
     101                deps='talloc wbclient winbind-client tiniparser pam samba_intl',
    28102                cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
    29103                realname='pam_winbind.so',
     104                install_path='${PAMMODULESDIR}'
    30105                )
    31106
     
    33108        bld.SAMBA_LIBRARY('winbind_krb5_locator',
    34109                source='winbind_krb5_locator.c',
    35                 deps='wbclient krb5',
     110                deps='wbclient krb5 com_err',
    36111                realname='winbind_krb5_locator.so')
    37112
     
    40115        deps='talloc tevent LIBASYNC_REQ'
    41116        )
     117
     118bld.SAMBA_BINARY('wbinfo',
     119        source='wbinfo.c',
     120        deps='samba-util LIBCLI_AUTH popt POPT_SAMBA wbclient LIBAFS_SETTOKEN'
     121        )
Note: See TracChangeset for help on using the changeset viewer.