#!/usr/bin/env python
APPNAME = 'talloc'
-VERSION = '2.0.3'
+VERSION = '2.0.4'
blddir = 'bin'
action="store_true", dest='TALLOC_COMPAT1', default=False)
if opt.IN_LAUNCH_DIR():
opt.add_option('--disable-python',
- help=("disable the pytevent module"),
+ help=("disable the pytalloc module"),
action="store_true", dest='disable_python', default=False)
conf.env.TALLOC_COMPAT1 = Options.options.TALLOC_COMPAT1
- if conf.env.standalone_talloc:
- conf.find_program('xsltproc', var='XSLTPROC')
+ conf.CHECK_XSLTPROC_MANPAGES()
if not conf.env.disable_python:
# also disable if we don't have the python libs installed
bld.SAMBA_LIBRARY('talloc',
'talloc.c',
deps='replace',
- abi_file='ABI/talloc-%s.sigs' % VERSION,
+ abi_directory='ABI',
abi_match='talloc* _talloc*',
hide_symbols=True,
vnum=vnum,
if not bld.CONFIG_SET('USING_SYSTEM_PYTALLOC_UTIL') and not bld.env.disable_python:
bld.SAMBA_LIBRARY('pytalloc-util',
- source='pytalloc.c',
+ source='pytalloc_util.c',
public_deps='talloc',
+ abi_directory='ABI',
+ abi_match='py* Py*',
pyext=True,
- vnum=VERSION,
+ vnum=vnum,
+ private_library=private_library,
)
+ bld.INSTALL_FILES('${INCLUDEDIR}', 'pytalloc.h')
+ bld.SAMBA_PYTHON('pytalloc',
+ 'pytalloc.c',
+ deps='talloc pytalloc-util',
+ enabled=True,
+ realname='talloc.so')
if not getattr(bld.env, '_SAMBA_BUILD_', 0) == 4:
# s4 already has the talloc testsuite builtin to smbtorture
def dist():
'''makes a tarball for distribution'''
samba_dist.dist()
+
+def reconfigure(ctx):
+ '''reconfigure if config scripts have changed'''
+ import samba_utils
+ samba_utils.reconfigure(ctx)