File wsdd2.spec of Package wsdd2

#
# spec file for package wsdd2
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           wsdd2
Version:        1.8.6
Release:        0
Summary:        WSD/LLMNR Discovery/Name Service Daemon
License:        GPL-3.0-only
Group:          System/Daemons
URL:            https://github.com/Netgear/wsdd2
Source:         %{name}-%{version}.tar.gz
Requires:       /usr/bin/testparm

%description
wsdd2 is the server daemon that provides WSDD (Web Services Dynamic
Discovery) as well as LLMNR (Link-Local Multicast Name Resolution)
services primarily for Windows clients on both IPv4 and IPv6.

wsdd2's WSDD protocol handler multicasts Hello and Bye messages by
itself over UDP, responds with ProbeMatch and ResolveMatch messages in
response to Probe and Resolve queries respectively over UDP, and sends
HTTP reponse messages to HTTP property query POST messages over TCP.

wsdd2's LLMNR protocol handler responds to LLMNR multicast query
messages over UDP and to LLMNR unicast query messages over TCP.

%prep
%setup -q

%build
sed -i -e 's|smbd.service|smb.service|g' wsdd2.service
%make_build

%install
%make_install

%pre
%service_add_pre wsdd2.service

%post
%service_add_post wsdd2.service

%preun
%service_del_preun wsdd2.service

%postun
%service_del_postun wsdd2.service

%files
%license LICENSE
%doc README.md
%{_sbindir}/wsdd2
%attr(0644,-,-) %{_mandir}/man8/wsdd2.8.gz
%{_unitdir}/wsdd2.service

%changelog
openSUSE Build Service is sponsored by