[PATCH 19/26] gpo: enable gpo update with addition to build system

abartlet at samba.org abartlet at samba.org
Thu Jun 5 04:07:24 MDT 2014


From: Luke Morrison <luc785 at hotmail.com>

Split from "Initial commit for GPO work done by Luke Morrison" by Garming Sam

Signed-off-by: Garming Sam <garming at catalyst.net.nz>
---
 source3/wscript_build      | 11 -----------
 source4/dsdb/wscript_build |  9 +++++++++
 wscript_build              |  1 +
 3 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/source3/wscript_build b/source3/wscript_build
index d319e5e..375510d 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -88,17 +88,6 @@ bld.SAMBA3_LIBRARY('msrpc3',
                    ''',
                    private_library=True)
 
-bld.SAMBA3_LIBRARY('gpo',
-                   source='''../libgpo/gpo_ldap.c
-                   ../libgpo/gpo_ini.c
-                   ../libgpo/gpo_util.c
-                   ../libgpo/gpo_fetch.c
-                   libgpo/gpo_filesync.c
-                   ../libgpo/gpo_sec.c
-                   libgpo/gpo_reg.c''',
-                   deps='talloc ads TOKEN_UTIL gpext auth',
-                   private_library=True)
-
 bld.SAMBA3_SUBSYSTEM('AVAHI',
                     source='lib/avahi.c smbd/avahi_register.c',
                     deps='avahi-common avahi-client',
diff --git a/source4/dsdb/wscript_build b/source4/dsdb/wscript_build
index a80c45c..740092a 100755
--- a/source4/dsdb/wscript_build
+++ b/source4/dsdb/wscript_build
@@ -58,6 +58,15 @@ bld.SAMBA_MODULE('service_dns_update',
 	enabled=bld.AD_DC_BUILD_IS_ENABLED()
 	)
 
+bld.SAMBA_MODULE('service_gpo_update',
+	source='gpo/gpo_update.c',
+	subsystem='service',
+	init_function='server_service_gpoupdate_init',
+	deps='samdb UTIL_RUNCMD samba-util ldb samdb-common errors talloc auth_system_session samba-hostconfig',
+	internal_module=False,
+	enabled=bld.AD_DC_BUILD_IS_ENABLED()
+	)
+
 bld.SAMBA_PYTHON('python_dsdb',
 	source='pydsdb.c',
 	# the dependency on dcerpc here is because gensec
diff --git a/wscript_build b/wscript_build
index 9228d15..573235d 100644
--- a/wscript_build
+++ b/wscript_build
@@ -81,6 +81,7 @@ bld.RECURSE('lib/tsocket')
 bld.RECURSE('lib/crypto')
 bld.RECURSE('lib/torture')
 bld.RECURSE('lib/zlib')
+bld.RECURSE('libgpo')
 bld.RECURSE('source4/lib/com')
 bld.RECURSE('source4/dns_server')
 bld.RECURSE('source4/echo_server')
-- 
1.9.3



More information about the samba-technical mailing list