SHA256
1
0
forked from pool/nqptp
Files
nqptp/nqptp.spec
Martin Pluskal 8f54c26d19 - Backports from 1.2.5-dev
- Add backport-b5321a88d21b854aaa461dc0f6c226d650309b91.patch
    Remove setcap call.
  - Add backport-050a8c2de9f3e1f4859abf9b36d2f18afd4c34d7.patch
    Set capability in the systemd unit instead.
- Add disable-user-group-generation.patch
  Disable user/group generation in the Makefile.
  Let systemd-sysusers handle this instead.
- Update to 1.2.4
  - Further changes are introduced to make the communication path between NQPTP
    and Shairport Sync resistant to outside interference. These changes have
    necessitated changing the SMI interface. The SMI interface is now at
    version 10, and Shairport Sync must also be updated to be compatible with
    it.
- Update to 1.2.3
  - Fix CVE-2023-43771: nqptp: NULL pointer dereference caused by invalid
    control port message (boo#1213060)

OBS-URL: https://build.opensuse.org/package/show/network:time/nqptp?expand=0&rev=4
2024-09-05 09:10:04 +00:00

83 lines
2.3 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package nqptp
#
# Copyright (c) 2024 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: nqptp
Version: 1.2.4
Release: 0
Summary: Not Quite PTP
License: GPL-2.0-only
URL: https://github.com/mikebrady/nqptp
Source0: https://github.com/mikebrady/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source1: nqptp-user.conf
# Backported from 1.2.5-dev:
Patch0: backport-050a8c2de9f3e1f4859abf9b36d2f18afd4c34d7.patch
# Backported from 1.2.5-dev:
Patch1: backport-b5321a88d21b854aaa461dc0f6c226d650309b91.patch
Patch2: disable-user-group-generation.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: systemd-rpm-macros
BuildRequires: sysuser-tools
%{?systemd_ordering}
%sysusers_requires
%description
nqptp is a daemon that monitors timing data from any PTP clocks up to 64 it
sees on ports 319 and 320. It maintains records for each clock, identified by
Clock ID and IP.
It is a companion application to Shairport Sync and provides timing information
for AirPlay 2 operation.
%prep
%autosetup -p1
%build
autoreconf -i -f
%configure --with-systemd-startup
%make_build
%sysusers_generate_pre %{SOURCE1} nqptp nqptp-user.conf
%install
%make_install
mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}%{_libdir}/systemd/system/%{name}.service \
%{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/nqptp.conf
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files
%license LICENSE
%doc README.md RELEASE_NOTES.md
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_sysusersdir}/nqptp.conf
%changelog