ecore_con: Moving dns.c and dns.h to static_libs.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Tue, 10 Nov 2015 22:01:03 +0000 (14:01 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 10 Nov 2015 22:10:02 +0000 (14:10 -0800)
Summary:
Took the license file from https://github.com/wahern/dns
The dns.c and dns.h are taken from here.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3314

COPYING
licenses/COPYING.DNS [new file with mode: 0644]
src/Makefile_Ecore_Con.am
src/static_libs/dns/dns.c [moved from src/lib/ecore_con/dns.c with 100% similarity]
src/static_libs/dns/dns.h [moved from src/lib/ecore_con/dns.h with 100% similarity]

diff --git a/COPYING b/COPYING
index 77e6f46..205c98b 100644 (file)
--- a/COPYING
+++ b/COPYING
@@ -21,6 +21,7 @@ ector:           licenses/COPYING.FTL, licenses/COPYING.GPL (dual licenses)
 evas:            licenses/COPYING.BSD
 embryo:          licenses/COPYING.SMALL
 ecore:           licenses/COPYING.BSD
+dns:             licenses/COPYING.DNS
 eio:             licenses/COPYING.LGPL
 eldbus:          licenses/COPYING.LGPL
 efreet:          licenses/COPYING.BSD
diff --git a/licenses/COPYING.DNS b/licenses/COPYING.DNS
new file mode 100644 (file)
index 0000000..ee15b15
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2008-2015  William Ahern <william@25thandClement.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
index 25569ab..4e109ca 100644 (file)
@@ -69,7 +69,9 @@ if HAVE_CARES
 lib_ecore_con_libecore_con_la_SOURCES += lib/ecore_con/ecore_con_ares.c
 else
 if HAVE_IPV6
-lib_ecore_con_libecore_con_la_SOURCES += lib/ecore_con/ecore_con_dns.c lib/ecore_con/dns.c lib/ecore_con/dns.h
+lib_ecore_con_libecore_con_la_SOURCES += \
+lib/ecore_con/ecore_con_dns.c \
+static_libs/dns/dns.c
 else
 lib_ecore_con_libecore_con_la_SOURCES += lib/ecore_con/ecore_con_info.c
 endif
@@ -82,6 +84,10 @@ lib_ecore_con_libecore_con_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
 
 lib_ecore_con_libecore_con_la_CPPFLAGS += -I$(top_srcdir)/src/static_libs/http-parser
 
+if HAVE_IPV6
+lib_ecore_con_libecore_con_la_CPPFLAGS += -I$(top_srcdir)/src/static_libs/dns/
+endif
+
 EXTRA_DIST += \
 tests/ecore_con/server.key \
 tests/ecore_con/server.pem \