2016-10-28 18:09:08 +00:00
|
|
|
Name: tang
|
2023-06-14 14:41:34 +00:00
|
|
|
Version: 14
|
2023-07-22 03:10:16 +00:00
|
|
|
Release: 2%{?dist}
|
2016-10-28 18:09:08 +00:00
|
|
|
Summary: Network Presence Binding Daemon
|
|
|
|
|
2023-05-31 10:14:37 +00:00
|
|
|
License: GPL-3.0-or-later
|
2016-10-28 18:09:08 +00:00
|
|
|
URL: https://github.com/latchset/%{name}
|
2021-02-08 11:25:39 +00:00
|
|
|
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
2022-08-17 13:38:45 +00:00
|
|
|
Source1: tang.sysusers
|
2020-12-01 18:56:50 +00:00
|
|
|
|
2018-07-09 17:06:52 +00:00
|
|
|
BuildRequires: gcc
|
2020-12-01 18:56:50 +00:00
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: git-core
|
2017-06-14 05:45:28 +00:00
|
|
|
BuildRequires: jose >= 8
|
|
|
|
BuildRequires: libjose-devel >= 8
|
|
|
|
BuildRequires: libjose-zlib-devel >= 8
|
|
|
|
BuildRequires: libjose-openssl-devel >= 8
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
BuildRequires: http-parser-devel >= 2.7.1-3
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
BuildRequires: systemd
|
2022-08-17 13:38:45 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2017-06-14 05:45:28 +00:00
|
|
|
BuildRequires: curl
|
2016-10-28 18:09:08 +00:00
|
|
|
|
2018-08-10 19:23:17 +00:00
|
|
|
BuildRequires: asciidoc
|
2016-10-28 18:09:08 +00:00
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: grep
|
2021-05-05 11:31:13 +00:00
|
|
|
BuildRequires: socat
|
2016-10-28 18:09:08 +00:00
|
|
|
BuildRequires: sed
|
2023-05-05 14:18:33 +00:00
|
|
|
BuildRequires: iproute
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
Requires: coreutils
|
2017-06-14 05:45:28 +00:00
|
|
|
Requires: jose >= 8
|
2016-10-28 18:09:08 +00:00
|
|
|
Requires: grep
|
|
|
|
Requires: sed
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tang is a small daemon for binding data to the presence of a third party.
|
|
|
|
|
|
|
|
%prep
|
2020-12-01 18:56:50 +00:00
|
|
|
%autosetup -S git
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
%build
|
2020-12-01 18:56:50 +00:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
%install
|
2020-12-01 18:56:50 +00:00
|
|
|
%meson_install
|
2022-08-17 13:38:45 +00:00
|
|
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/tang.conf
|
2016-10-28 18:09:08 +00:00
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name}
|
|
|
|
|
|
|
|
%check
|
2020-12-01 18:56:50 +00:00
|
|
|
%meson_test
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
%pre
|
2022-08-17 13:38:45 +00:00
|
|
|
%sysusers_create_compat %{SOURCE1}
|
2016-10-28 18:09:08 +00:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post %{name}d.socket
|
|
|
|
|
2021-09-29 13:13:42 +00:00
|
|
|
# Let's make sure any existing keys are readable only
|
|
|
|
# by the owner/group.
|
|
|
|
if [ -d /var/db/tang ]; then
|
|
|
|
for k in /var/db/tang/*.jwk; do
|
2021-10-04 14:35:57 +00:00
|
|
|
test -e "${k}" || continue
|
2021-09-29 13:13:42 +00:00
|
|
|
chmod 0440 -- "${k}"
|
|
|
|
done
|
|
|
|
for k in /var/db/tang/.*.jwk; do
|
2021-10-04 14:35:57 +00:00
|
|
|
test -e "${k}" || continue
|
2021-09-29 13:13:42 +00:00
|
|
|
chmod 0440 -- "${k}"
|
|
|
|
done
|
|
|
|
chown tang:tang -R /var/db/tang
|
|
|
|
fi
|
|
|
|
|
2016-10-28 18:09:08 +00:00
|
|
|
%preun
|
|
|
|
%systemd_preun %{name}d.socket
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart %{name}d.socket
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
2020-12-01 18:56:50 +00:00
|
|
|
%attr(0700, %{name}, %{name}) %{_localstatedir}/db/%{name}
|
2016-10-28 18:09:08 +00:00
|
|
|
%{_unitdir}/%{name}d@.service
|
|
|
|
%{_unitdir}/%{name}d.socket
|
2017-06-14 05:37:40 +00:00
|
|
|
%{_libexecdir}/%{name}d-keygen
|
2021-05-05 11:31:13 +00:00
|
|
|
%{_libexecdir}/%{name}d-rotate-keys
|
2016-10-28 18:09:08 +00:00
|
|
|
%{_libexecdir}/%{name}d
|
2017-06-14 05:37:40 +00:00
|
|
|
%{_mandir}/man8/tang.8*
|
2018-08-10 19:23:17 +00:00
|
|
|
%{_bindir}/%{name}-show-keys
|
|
|
|
%{_mandir}/man1/tang-show-keys.1*
|
2021-12-14 11:31:45 +00:00
|
|
|
%{_mandir}/man1/tangd-rotate-keys.1.*
|
2022-08-17 13:38:45 +00:00
|
|
|
%{_sysusersdir}/tang.conf
|
2016-11-10 21:54:39 +00:00
|
|
|
|
2016-10-28 18:09:08 +00:00
|
|
|
%changelog
|
2023-07-22 03:10:16 +00:00
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-14 14:41:34 +00:00
|
|
|
* Wed Jun 14 2023 Sergio Arroutbi <sarroutb@redhat.com> - 14-1
|
|
|
|
- New upstream release - v14
|
|
|
|
Resolves: rhbz#2180990
|
|
|
|
|
2023-05-05 14:18:33 +00:00
|
|
|
* Fri Feb 10 2023 Sergio Arroutbi <sarroutb@redhat.com> - 13-1
|
|
|
|
- New upstream release - v13
|
|
|
|
|
2023-01-21 04:38:08 +00:00
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 11-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-12-07 11:05:30 +00:00
|
|
|
* Wed Dec 07 2022 Sergio Correia <scorreia@redhat.com> - 11-5
|
|
|
|
- Report error details when json_load_file() fails
|
|
|
|
|
2022-08-17 13:38:45 +00:00
|
|
|
* Wed Aug 17 2022 Sergio Arroutbi <sarroutb@redhat.com> - 11-4
|
|
|
|
- Adopt systemd-sysusers format
|
|
|
|
|
2022-07-23 10:04:06 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 11-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-22 02:16:52 +00:00
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-12-14 11:31:45 +00:00
|
|
|
* Tue Dec 14 2021 Sergio Correia <scorreia@redhat.com> - 11-1
|
|
|
|
- New upstream release - v11.
|
|
|
|
Resolves: CVE-2021-4076
|
|
|
|
|
2021-10-04 14:35:57 +00:00
|
|
|
* Mon Oct 04 2021 Sergio Arroutbi <sarroutb@redhat.com> - 10-5
|
|
|
|
- Fix scriptlet from previous commit
|
|
|
|
|
2021-09-29 13:13:42 +00:00
|
|
|
* Mon Oct 04 2021 Sergio Correia <scorreia@redhat.com> - 10-4
|
|
|
|
- Keys are created with 0440 mode
|
|
|
|
Resolves rhbz#2008204
|
|
|
|
|
2021-07-23 18:51:50 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-20 14:00:30 +00:00
|
|
|
* Thu May 20 2021 Sergio Correia <scorreia@redhat.com> - 10-2
|
|
|
|
- Fix issues reported by shellcheck and a possible NULL pointer
|
|
|
|
dereference reported by gcc static analyzer (3d770c6, 262d98f)
|
|
|
|
|
2021-05-05 11:31:13 +00:00
|
|
|
* Wed May 05 2021 Sergio Correia <scorreia@redhat.com> - 10-1
|
|
|
|
- New upstream release - v10.
|
|
|
|
|
2021-03-02 15:12:11 +00:00
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 8-3
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
2021-02-09 19:34:02 +00:00
|
|
|
* Tue Feb 09 2021 Sergio Correia <scorreia@redhat.com> - 8-2
|
|
|
|
- Remove extra patches as they are already included in v8 release
|
|
|
|
|
2021-02-08 11:25:39 +00:00
|
|
|
* Mon Feb 08 2021 Sergio Correia <scorreia@redhat.com> - 8-1
|
|
|
|
- New upstream release - v8.
|
|
|
|
|
2021-01-27 21:35:37 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-01 18:56:50 +00:00
|
|
|
* Tue Dec 1 2020 Sergio Correia <scorreia@redhat.com> - 7.8
|
|
|
|
- Move build system to meson
|
|
|
|
Upstream commits (fed9020, 590de27)
|
|
|
|
- Move key handling to tang itself
|
|
|
|
Upstream commits (6090505, c71df1d, 7119454)
|
|
|
|
|
2020-07-29 12:04:55 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-04-15 15:54:48 +00:00
|
|
|
* Wed Apr 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 7-6
|
|
|
|
- Rebuild for http-parser 2.9.4
|
|
|
|
|
2020-02-26 01:04:51 +00:00
|
|
|
* Tue Feb 25 2020 Sergio Correia <scorreia@redhat.com> - 7-5
|
|
|
|
- Rebuilt after http-parser update
|
|
|
|
|
2020-01-31 01:03:56 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-27 00:58:31 +00:00
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-03 09:23:55 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-08-10 19:23:17 +00:00
|
|
|
* Fri Aug 10 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
|
|
|
|
- New upstream release
|
|
|
|
- Retire tang-nagios package (now separate upstream)
|
|
|
|
|
2018-07-14 07:16:06 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-09 18:28:32 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 09:09:04 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 19:56:51 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-14 12:25:25 +00:00
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2017-06-14 05:45:28 +00:00
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-2
|
|
|
|
- Fix incorrect dependencies
|
|
|
|
|
2017-06-14 05:37:40 +00:00
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-1
|
|
|
|
- New upstream release
|
|
|
|
|
2017-02-11 15:33:52 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-11-14 18:34:32 +00:00
|
|
|
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-2
|
|
|
|
- Fix a race condition in one of the tests
|
|
|
|
|
2016-11-10 21:54:39 +00:00
|
|
|
* Thu Nov 10 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-1
|
|
|
|
- New upstream release
|
|
|
|
- Add nagios subpackage
|
|
|
|
|
2016-10-28 18:09:08 +00:00
|
|
|
* Wed Oct 26 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Wed Oct 19 2016 Nathaniel McCallum <npmccallum@redhat.com> - 2-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Tue Aug 23 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1-1
|
|
|
|
- First release
|