|
|
d89994 |
Name: tang
|
|
|
d89994 |
Version: 7
|
|
|
a832b2 |
Release: 6%{?dist}
|
|
|
d89994 |
Summary: Network Presence Binding Daemon
|
|
|
d89994 |
|
|
|
d89994 |
License: GPLv3+
|
|
|
d89994 |
URL: https://github.com/latchset/%{name}
|
|
|
d89994 |
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
|
|
|
42dfdc |
Patch1: 0001-Move-key-generation-to-tang.patch
|
|
|
a832b2 |
Patch2: 0002-Exit-with-success-unless-the-issue-was-with-with-tan.patch
|
|
|
d89994 |
|
|
|
d89994 |
BuildRequires: gcc
|
|
|
42dfdc |
BuildRequires: autoconf
|
|
|
42dfdc |
BuildRequires: automake
|
|
|
d89994 |
BuildRequires: jose >= 8
|
|
|
d89994 |
BuildRequires: libjose-devel >= 8
|
|
|
d89994 |
BuildRequires: libjose-zlib-devel >= 8
|
|
|
d89994 |
BuildRequires: libjose-openssl-devel >= 8
|
|
|
d89994 |
|
|
|
d89994 |
BuildRequires: http-parser-devel >= 2.7.1-3
|
|
|
d89994 |
BuildRequires: systemd-devel
|
|
|
d89994 |
BuildRequires: pkgconfig
|
|
|
d89994 |
|
|
|
d89994 |
BuildRequires: systemd
|
|
|
d89994 |
BuildRequires: curl
|
|
|
d89994 |
|
|
|
d89994 |
BuildRequires: asciidoc
|
|
|
d89994 |
BuildRequires: coreutils
|
|
|
d89994 |
BuildRequires: grep
|
|
|
d89994 |
BuildRequires: sed
|
|
|
a832b2 |
BuildRequires: git-core
|
|
|
d89994 |
|
|
|
d89994 |
%{?systemd_requires}
|
|
|
d89994 |
Requires: coreutils
|
|
|
d89994 |
Requires: jose >= 8
|
|
|
d89994 |
Requires: grep
|
|
|
d89994 |
Requires: sed
|
|
|
d89994 |
|
|
|
d89994 |
Requires(pre): shadow-utils
|
|
|
d89994 |
|
|
|
d89994 |
%description
|
|
|
d89994 |
Tang is a small daemon for binding data to the presence of a third party.
|
|
|
d89994 |
|
|
|
d89994 |
%prep
|
|
|
a832b2 |
%autosetup -S git
|
|
|
d89994 |
|
|
|
d89994 |
%build
|
|
|
42dfdc |
autoreconf -i
|
|
|
d89994 |
%configure
|
|
|
d89994 |
make %{?_smp_mflags} V=1
|
|
|
d89994 |
|
|
|
d89994 |
%install
|
|
|
d89994 |
rm -rf $RPM_BUILD_ROOT
|
|
|
d89994 |
%make_install
|
|
|
d89994 |
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service
|
|
|
d89994 |
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name}
|
|
|
d89994 |
|
|
|
d89994 |
%check
|
|
|
d89994 |
if ! make %{?_smp_mflags} check; then
|
|
|
d89994 |
cat test-suite.log
|
|
|
d89994 |
false
|
|
|
d89994 |
fi
|
|
|
d89994 |
|
|
|
d89994 |
%pre
|
|
|
d89994 |
getent group %{name} >/dev/null || groupadd -r %{name}
|
|
|
d89994 |
getent passwd %{name} >/dev/null || \
|
|
|
d89994 |
useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin \
|
|
|
d89994 |
-c "Tang Network Presence Daemon user" %{name}
|
|
|
d89994 |
exit 0
|
|
|
d89994 |
|
|
|
d89994 |
%post
|
|
|
d89994 |
%systemd_post %{name}d.socket
|
|
|
d89994 |
|
|
|
d89994 |
%preun
|
|
|
d89994 |
%systemd_preun %{name}d.socket
|
|
|
d89994 |
|
|
|
d89994 |
%postun
|
|
|
d89994 |
%systemd_postun_with_restart %{name}d.socket
|
|
|
d89994 |
|
|
|
d89994 |
%files
|
|
|
d89994 |
%license COPYING
|
|
|
42dfdc |
%attr(0700, %{name}, %{name}) %{_localstatedir}/db/%{name}
|
|
|
d89994 |
%{_unitdir}/%{name}d@.service
|
|
|
d89994 |
%{_unitdir}/%{name}d.socket
|
|
|
d89994 |
%{_libexecdir}/%{name}d-keygen
|
|
|
d89994 |
%{_libexecdir}/%{name}d
|
|
|
d89994 |
%{_mandir}/man8/tang.8*
|
|
|
d89994 |
%{_bindir}/%{name}-show-keys
|
|
|
d89994 |
%{_mandir}/man1/tang-show-keys.1*
|
|
|
d89994 |
|
|
|
d89994 |
%changelog
|
|
|
a832b2 |
* Wed Jan 13 2021 Sergio Correia <scorreia@redhat.com> - 7-6
|
|
|
a832b2 |
- Exit with success unless the issue was with with tangd itself
|
|
|
a832b2 |
Resolves: rhbz#1828558
|
|
|
a832b2 |
|
|
|
42dfdc |
* Sun Dec 01 2019 Sergio Correia <scorreia@redhat.com> - 7-5
|
|
|
42dfdc |
- Permissions of /var/db/tang set to 0700
|
|
|
42dfdc |
- Home dir of user tang is /var/cache/tang
|
|
|
42dfdc |
|
|
|
42dfdc |
* Fri Nov 29 2019 Sergio Correia <scorreia@redhat.com> - 7-4
|
|
|
42dfdc |
- Fix permissions of /var/db/tang
|
|
|
42dfdc |
|
|
|
42dfdc |
* Tue Oct 15 2019 Sergio Correia <scorreia@redhat.com> - 7-3
|
|
|
42dfdc |
- Rebuild to ensure correct dist tag
|
|
|
42dfdc |
|
|
|
42dfdc |
* Sun Sep 29 2019 Sergio Correia <scorreia@redhat.com> - 7-2
|
|
|
42dfdc |
- Move key generation to tang
|
|
|
42dfdc |
- Resolves rhbz#1745177, rhbz#1679186
|
|
|
42dfdc |
|
|
|
d89994 |
* Fri Aug 10 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
|
|
|
d89994 |
- New upstream release
|
|
|
d89994 |
- Retire tang-nagios package (now separate upstream)
|
|
|
d89994 |
|
|
|
d89994 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-5
|
|
|
d89994 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
d89994 |
|
|
|
d89994 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-4
|
|
|
d89994 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d89994 |
|
|
|
d89994 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-3
|
|
|
d89994 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
d89994 |
|
|
|
d89994 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-2
|
|
|
d89994 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
d89994 |
|
|
|
d89994 |
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 6-1
|
|
|
d89994 |
- New upstream release
|
|
|
d89994 |
|
|
|
d89994 |
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-2
|
|
|
d89994 |
- Fix incorrect dependencies
|
|
|
d89994 |
|
|
|
d89994 |
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-1
|
|
|
d89994 |
- New upstream release
|
|
|
d89994 |
|
|
|
d89994 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4-3
|
|
|
d89994 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
d89994 |
|
|
|
d89994 |
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-2
|
|
|
d89994 |
- Fix a race condition in one of the tests
|
|
|
d89994 |
|
|
|
d89994 |
* Thu Nov 10 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-1
|
|
|
d89994 |
- New upstream release
|
|
|
d89994 |
- Add nagios subpackage
|
|
|
d89994 |
|
|
|
d89994 |
* Wed Oct 26 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3-1
|
|
|
d89994 |
- New upstream release
|
|
|
d89994 |
|
|
|
d89994 |
* Wed Oct 19 2016 Nathaniel McCallum <npmccallum@redhat.com> - 2-1
|
|
|
d89994 |
- New upstream release
|
|
|
d89994 |
|
|
|
d89994 |
* Tue Aug 23 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1-1
|
|
|
d89994 |
- First release
|