a5ced76f06
Remove dependency from gettext. Converted to STAGEDIR. PR: 183872, 183885 Security: CVE-2013-4475 CVE-2013-4476 Sponsored by: my wife
61 lines
2 KiB
Text
61 lines
2 KiB
Text
--- source3/wscript_build.orig 2013-07-01 09:15:40.000000000 +0200
|
|
+++ source3/wscript_build 2013-11-12 10:13:36.004046408 +0100
|
|
@@ -1,7 +1,8 @@
|
|
#!/usr/bin/env python
|
|
|
|
from samba_utils import *
|
|
-import samba_version, samba3
|
|
+import samba_version, samba3, sys
|
|
+host_os = sys.platform
|
|
|
|
TDB_LIB_SRC = '''
|
|
lib/dbwrap/dbwrap_open.c
|
|
@@ -651,7 +652,16 @@
|
|
vnum='0',
|
|
vars=locals())
|
|
|
|
-bld.SAMBA3_LIBRARY('nss_wins',
|
|
+if (host_os.rfind('freebsd') > -1):
|
|
+ # FreeBSD winbind client is implemented as a wrapper around
|
|
+ # the Linux version.
|
|
+ bld.SAMBA3_LIBRARY('nss_wins',
|
|
+ source=' '.join([WINBIND_WINS_NSS_SRC, '../nsswitch/wins_freebsd.c']),
|
|
+ deps='''param libsmb LIBTSOCKET''',
|
|
+ realname='nss_wins.so.1',
|
|
+ vnum='1')
|
|
+else:
|
|
+ bld.SAMBA3_LIBRARY('nss_wins',
|
|
source=WINBIND_WINS_NSS_SRC,
|
|
deps='''param libsmb LIBTSOCKET''',
|
|
realname='libnss_wins.so.2',
|
|
@@ -972,10 +982,12 @@
|
|
LIBAFS_SETTOKEN
|
|
RPC_SERVER
|
|
NDR_SMBXSRV
|
|
- LIBASYS
|
|
+ LIBASYS
|
|
ccan-hash
|
|
NDR_SMB_ACL
|
|
netapi
|
|
+ inotify
|
|
+ dns_sd
|
|
''' + bld.env['dmapi_lib'],
|
|
private_library=True,
|
|
vars=locals())
|
|
@@ -1277,6 +1289,7 @@
|
|
libsmb
|
|
msrpc3
|
|
RPC_NDR_SRVSVC
|
|
+ dns_sd
|
|
cli_smb_common''')
|
|
|
|
bld.SAMBA3_BINARY('net',
|
|
@@ -1629,7 +1642,7 @@
|
|
|
|
bld.SAMBA3_PYTHON('pylibsmb',
|
|
source='libsmb/pylibsmb.c',
|
|
- deps='smbclient samba-credentials',
|
|
+ deps='smbclient samba-credentials libsmb errors',
|
|
realname='samba/samba3/libsmb_samba_internal.so'
|
|
)
|
|
|