dns_hosts_file: move to a separate subsystem
authorAlexander Bokovoy <ab@samba.org>
Fri, 25 May 2012 15:45:17 +0000 (18:45 +0300)
committerAlexander Bokovoy <ab@samba.org>
Fri, 25 May 2012 20:22:44 +0000 (22:22 +0200)
After discussion with Kai move dns_hosts_file to a separate subsystem
and merge it into libaddns private library for s3/s4 client use.

Also remove dependency in libcli/nbt, the code from libcli/dns subsystems
is not used there at all.

Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Fri May 25 22:22:44 CEST 2012 on sn-devel-104

lib/addns/wscript_build
libcli/dns/wscript_build
libcli/nbt/wscript_build

index 15fb62016daf672e35d4ec8201312995efe7cfe7..513060d2f029be1d2bec069ed615d152093935f1 100755 (executable)
@@ -2,6 +2,6 @@
 
 bld.SAMBA_LIBRARY('addns',
                    source='dnsquery.c dnsrecord.c dnsutils.c dnssock.c dnsgss.c dnsmarshall.c error.c',
-                   public_deps='clidns samba-util gssapi uuid resolv',
+                   public_deps='dnshostsfile samba-util gssapi uuid resolv',
                    private_library=True,
                    vars=locals())
index 03025ad176f7ad153470d528ac725796dac194e1..421dd6dca26a9c5346b02f5e69a01471e620a250 100755 (executable)
@@ -1,7 +1,9 @@
 #!/usr/bin/env python
 
-bld.SAMBA_LIBRARY('clidns',
-        source='dns.c dns_hosts_file.c',
-        public_deps='LIBTSOCKET tevent-util',
-        private_library=True,
-        vars=locals())
+bld.SAMBA_SUBSYSTEM('clidns',
+        source='dns.c',
+        public_deps='LIBTSOCKET tevent-util')
+
+bld.SAMBA_SUBSYSTEM('dnshostsfile',
+        source='dns_hosts_file.c',
+        public_deps='samba-util errors')
index a8c239c10d16dc3e6395526f418543d1c366b2a4..faf818ef536accd47451ac9b18b204383f6e874a 100755 (executable)
@@ -8,7 +8,7 @@ bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
 
 bld.SAMBA_SUBSYSTEM('lmhosts',
                     source='lmhosts.c',
-                    deps='clidns replace talloc'
+                    deps='replace talloc'
                     )
 
 bld.SAMBA_LIBRARY('cli-nbt',