Merge tag 'upstream/878.70.2' into tizen 99/192699/2 submit/tizen/20181113.075133
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 8 Nov 2018 05:19:42 +0000 (14:19 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 8 Nov 2018 05:22:27 +0000 (14:22 +0900)
Change-Id: I6f20b26499f5bc0a578098edaefff0946c8bf8f5

23 files changed:
1  2 
Clients/dns-sd.c
Makefile
mDNSCore/DNSCommon.c
mDNSCore/DNSCommon.h
mDNSCore/anonymous.c
mDNSCore/dnsproxy.c
mDNSCore/dnsproxy.h
mDNSCore/dnssec.c
mDNSCore/nsec.c
mDNSCore/nsec3.c
mDNSPosix/ExampleClientApp.c
mDNSPosix/NetMonitor.c
mDNSPosix/PosixDaemon.c
mDNSPosix/ProxyResponder.c
mDNSPosix/mDNSPosix.c
mDNSShared/CommonServices.h
mDNSShared/dns_sd.h
mDNSShared/dnsextd.c
mDNSShared/dnsextd.conf
mDNSShared/dnssd_clientstub.c
mDNSShared/uds_daemon.c
mDNSShared/uds_daemon.h
packaging/mdnsresponder.spec

index f36211e,78c8f29..78c8f29
mode 100755,100644..100755
diff --cc Makefile
index 2b528d0,978c895..978c895
mode 100755,100644..100755
+++ b/Makefile
index 2afb59d,a94c005..a94c005
mode 100755,100644..100755
index a2abdfb,6889e73..6889e73
mode 100755,100644..100755
index 514a488,9525655..9525655
mode 100755,100644..100755
diff --cc mDNSCore/nsec.c
index 09d2735,31cf1e9..31cf1e9
mode 100755,100644..100755
index 4e9e8c8,43cd37a..43cd37a
mode 100755,100644..100755
Simple merge
index 660b370,0e5c35e..0e5c35e
mode 100755,100644..100755
index 037a013,0000000..10635c6
mode 100755,000000..100755
--- /dev/null
@@@ -1,113 -1,0 +1,113 @@@
- Version:    765.50.9
 +Name:       mdnsresponder
 +Summary:    DNS Service Discovery service with dns-sd library
++Version:    878.70.2
 +Release:    1
 +Group:      System/Network
 +License:    Apache-2.0 or BSD-2.0
 +Source0:    %{name}-%{version}.tar.gz
 +Source1001:    mdnsresponder.manifest
 +Source1002:    libdns_sd.manifest
 +BuildRequires: bison
 +BuildRequires: flex
 +Requires(post):       /sbin/ldconfig
 +Requires(postun):     /sbin/ldconfig
 +
 +%description
 +The DNS Service Discovery is part of Bonjour, Apple's implementation of
 +zero-configuration networking(ZEROCONF).
 +
 +%package -n libdns_sd
 +Summary:    DNS-SD - client libraries
 +%if "%{?_lib}" == "lib64"
 +Provides: libdns_sd.so()(64bit)
 +%else
 +Provides: libdns_sd.so
 +%endif
 +Requires:   mdnsresponder = %{version}-%{release}
 +
 +%description -n libdns_sd
 +Client libraries for DNS-SD: synchronous and asynchronous
 +
 +%package devel
 +Summary:  DNS Service Discovery (Development)
 +Requires:   libdns_sd = %{version}-%{release}
 +Requires: pkgconfig
 +
 +%description devel
 +DNS-SD development files
 +
 +%prep
 +%setup -q
 +cp -a %{SOURCE1001} .
 +cp -a %{SOURCE1002} .
 +
 +%build
 +%if "%{?_lib}" == "lib64"
 +CONFIG_TIZEN_64BIT=y; export CONFIG_TIZEN_64BIT
 +%endif
 +
 +cd mDNSPosix
 +make os=tizen %{?_smp_mflags}
 +
 +%install
 +MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 +
 +rm -rf %{buildroot}
 +mkdir -p %{buildroot}%{_sbindir}/
 +mkdir -p %{buildroot}%{_bindir}/
 +mkdir -p %{buildroot}%{_libdir}/
 +mkdir -p %{buildroot}%{_libdir}/pkgconfig/
 +
 +#mkdir -p %{buildroot}%{_libdir}/systemd/system/
 +#cp mdnsd.service %{buildroot}%{_libdir}/systemd/system/mdnsd.service
 +#mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/
 +#ln -s mdnsd.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/mdnsd.service
 +
 +cp mdnsresponder-server.sh.in %{buildroot}%{_bindir}/mdnsresponder-server.sh
 +
 +mkdir -p %{buildroot}%{_includedir}/
 +%if "%{?_lib}" == "lib64"
 +CONFIG_TIZEN_64BIT=y; export CONFIG_TIZEN_64BIT
 +%endif
 +cd mDNSPosix
 +make install os=tizen DESTDIR=%{buildroot} LIBDIR=/%{?_lib}
 +ln -sf %{_libdir}/libdns_sd.so.%{version} %{buildroot}%{_libdir}/libdns_sd.so.765
 +ln -sf %{_libdir}/libdns_sd.so.%{version} %{buildroot}%{_libdir}/libdns_sd.so
 +
 +%post
 +chmod 755 %{_bindir}/mdnsresponder-server.sh
 +#systemctl daemon-reload
 +
 +#if [ $1 = 1 ]; then
 +#    systemctl enable mdnsd.service
 +#fi
 +
 +#systemctl restart mdnsd.service
 +
 +#%preun
 +#if [ $1 = 0 ]; then
 +#    # unistall
 +#    systemctl stop mdnsd.service
 +#fi
 +
 +%post -n libdns_sd -p /sbin/ldconfig
 +
 +%postun -n libdns_sd -p /sbin/ldconfig
 +
 +%files
 +%manifest mdnsresponder.manifest
 +%license LICENSE
 +%attr(755,root,root) %{_sbindir}/mdnsd
 +%attr(-,root,root) %{_bindir}/mdnsresponder-server.sh
 +#%attr(-,root,root) %{_libdir}/systemd/system/mdnsd.service
 +#%attr(-,root,root) %{_libdir}/systemd/system/multi-user.target.wants/mdnsd.service
 +
 +%files devel
 +%{_includedir}/*.h
 +%{_libdir}/pkgconfig/*.pc
 +%{_libdir}/*.so
 +
 +%files -n libdns_sd
 +%manifest libdns_sd.manifest
 +%license LICENSE
 +%{_libdir}/libdns_sd.so*