2020-04-23 23:01:46 +00:00
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
Summary: Random number generator related utilities
|
|
|
|
Name: rng-tools
|
2021-08-10 04:25:41 +00:00
|
|
|
Version: 6.13
|
|
|
|
Release: 1.git.d207e0b6%{?dist}
|
2020-04-23 23:01:46 +00:00
|
|
|
Group: System Environment/Base
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://github.com/nhorman/rng-tools
|
2021-08-10 04:25:41 +00:00
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2020-04-23 23:01:46 +00:00
|
|
|
Source1: rngd.service
|
2021-08-10 04:25:41 +00:00
|
|
|
Source2: rngd-wake-threshold.service
|
|
|
|
Source3: 60-hwrng.rules
|
|
|
|
Source4: jitterentropy-library-3.0.2.tar.gz
|
2020-04-23 23:01:46 +00:00
|
|
|
|
2021-08-10 04:25:41 +00:00
|
|
|
Patch0: 1-je-rh-makefile.patch
|
|
|
|
Patch1: 2-je-remove-install.patch
|
|
|
|
Patch2: 3-rt-use-jitter-static.patch
|
|
|
|
Patch3: 4-rt-add-missing-test.patch
|
|
|
|
|
|
|
|
BuildRequires: gcc make
|
2021-06-01 04:12:49 +00:00
|
|
|
BuildRequires: gettext
|
2021-08-10 04:25:41 +00:00
|
|
|
#BuildRequires: systemd-units
|
|
|
|
BuildRequires: systemd systemd-rpm-macros
|
2020-04-23 23:01:46 +00:00
|
|
|
BuildRequires: autoconf automake
|
2021-08-10 04:25:41 +00:00
|
|
|
BuildRequires: libgcrypt-devel libcurl-devel
|
|
|
|
BuildRequires: libsysfs-devel jansson-devel
|
2020-04-23 23:01:46 +00:00
|
|
|
BuildRequires: libxml2-devel openssl-devel
|
2021-08-10 04:25:41 +00:00
|
|
|
#Requires(post): systemd-units
|
|
|
|
#Requires(preun): systemd-units
|
|
|
|
#Requires(postun): systemd-units
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
Requires: jansson openssl
|
2020-04-23 23:01:46 +00:00
|
|
|
|
|
|
|
%description
|
2021-08-10 04:25:41 +00:00
|
|
|
This is a random number generator daemon and its tools. It monitors
|
|
|
|
a set of entropy sources present on a system (like /dev/hwrng, RDRAND,
|
|
|
|
TPM, jitter) and supplies entropy from them to a kernel entropy pool.
|
2020-04-23 23:01:46 +00:00
|
|
|
|
2021-06-01 04:12:49 +00:00
|
|
|
%prep
|
2021-08-10 04:25:41 +00:00
|
|
|
%setup -q
|
|
|
|
tar xf %{SOURCE4}
|
|
|
|
mv jitterentropy-library-3.0.2 jitterentropy-library
|
2020-04-23 23:01:46 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
2021-08-10 04:25:41 +00:00
|
|
|
%configure --without-pkcs11 --without-rtlsdr
|
2020-04-23 23:01:46 +00:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
2021-06-01 04:12:49 +00:00
|
|
|
# install systemd unit file and udev rules
|
2020-04-23 23:01:46 +00:00
|
|
|
install -Dt %{buildroot}%{_unitdir} -m0644 %{SOURCE1}
|
2021-08-10 04:25:41 +00:00
|
|
|
install -Dt %{buildroot}%{_unitdir} -m0644 %{SOURCE2}
|
|
|
|
install -Dt %{buildroot}%{_udevrulesdir} -m0644 %{SOURCE3}
|
2020-04-23 23:01:46 +00:00
|
|
|
|
|
|
|
%pre
|
|
|
|
getent passwd rngd >/dev/null || useradd -r -M -d %{_localstatedir}/lib/rngd -s /sbin/nologin -c "Random Number Generator Daemon" rngd
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post rngd.service rngd-wake-threshold.service
|
2021-08-10 04:25:41 +00:00
|
|
|
/usr/bin/systemctl start rngd-wake-threshold.service || :
|
2020-04-23 23:01:46 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun rngd.service rngd-wake-threshold.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart rngd.service rngd-wake-threshold.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
2021-08-10 04:25:41 +00:00
|
|
|
%doc AUTHORS README
|
2020-04-23 23:01:46 +00:00
|
|
|
%{_bindir}/rngtest
|
|
|
|
%{_sbindir}/rngd
|
|
|
|
%{_mandir}/man1/rngtest.1.*
|
|
|
|
%{_mandir}/man8/rngd.8.*
|
|
|
|
%attr(0644,root,root) %{_unitdir}/rngd.service
|
|
|
|
%attr(0644,root,root) %{_unitdir}/rngd-wake-threshold.service
|
2021-06-01 04:12:49 +00:00
|
|
|
%attr(0644,root,root) %{_udevrulesdir}/60-hwrng.rules
|
2020-04-23 23:01:46 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-08-10 04:25:41 +00:00
|
|
|
* Thu Jul 22 2021 Vladis Dronov <vdronov@redhat.com> - 6.13-1.git.d207e0b6
|
|
|
|
- Update to the upstream v6.13 + tip of origin/master + onecpu
|
|
|
|
branch + revert of 2ce93190
|
|
|
|
- Rebuild rng-tools against the latest jitterentropy library
|
|
|
|
3.0.2-2.git.409828cf with fixes for an important issue
|
|
|
|
- Fix a number of issues (bz 1974103, bz 1980421, bz 1859154)
|
|
|
|
|
|
|
|
* Mon Jul 05 2021 Vladis Dronov <vdronov@redhat.com> - 6.8-6
|
|
|
|
- Adjust rngd-wake-threshold.service and post section so udevadm is not
|
|
|
|
run in a container (bz 1975554)
|
|
|
|
|
2021-06-01 04:12:49 +00:00
|
|
|
* Thu May 27 2021 Vladis Dronov <vdronov@redhat.com> - 6.8-5
|
|
|
|
- Fix /dev/hwrng permissions issue at boot time (bz 1955522)
|
|
|
|
|
|
|
|
* Mon May 24 2021 Vladis Dronov <vdronov@redhat.com> - 6.8-4
|
2021-08-10 04:25:41 +00:00
|
|
|
- There is no need to hardcode _sbindir anymore, also the old value is
|
|
|
|
incorrect
|
2021-06-01 04:12:49 +00:00
|
|
|
- Update the rngd.service file
|
|
|
|
- Fix a busyloop bug (bz 1956248)
|
|
|
|
- Fix /dev/hwrng permission issue (bz 1955522)
|
|
|
|
|
2020-04-23 23:01:46 +00:00
|
|
|
* Tue Feb 18 2020 Neil Horman <nhorman@redhat.com> - 6.8-3
|
|
|
|
- Fix coarse clock time on Azure (bz 180155)
|
2021-06-01 04:12:49 +00:00
|
|
|
|
2020-04-23 23:01:46 +00:00
|
|
|
* Mon Dec 02 2019 Neil Horman <nhorman@redhat.com> - 6.8-2
|
|
|
|
- Fix erroneous message due to bad errno check (bz 1776710)
|
|
|
|
- Enable addition of 0 value for fill-watermark (bz 1776710)
|
|
|
|
|
|
|
|
* Fri Nov 15 2019 Neil Horman <nhorman@redhat.com> - 6.8-1
|
|
|
|
- Update to latest upstream (bz 1769916)
|
|
|
|
|
|
|
|
* Wed Oct 09 2019 Neil Horman <nhorman@redhat.com> 6.6-5
|
|
|
|
- Fix group typo in rngd.service (bz 1751810)
|
|
|
|
|
|
|
|
* Fri Oct 04 2019 Neil Horman <nhorman@redhat.com> 6.6-4
|
|
|
|
- Revision bump to rebuild for new CI runs
|
|
|
|
|
|
|
|
* Mon Mar 25 2019 Neil Horman <nhorman@redhat.com> 6.2-3
|
|
|
|
- Allow rngd to run as non-privledged user (bz 1692435)
|
|
|
|
|
|
|
|
* Mon Dec 17 2018 Neil Horman <nhorman@redhat.com> 6.2-2
|
|
|
|
- default to 1 thread on cpu 0 if getaffinty returns error (bz 1658855)
|
|
|
|
|
|
|
|
* Thu May 17 2018 Neil Horman <nhorman@redhat.com> 6.2-1
|
2021-06-01 04:12:49 +00:00
|
|
|
- Update to latest upstream
|
2020-04-23 23:01:46 +00:00
|
|
|
- Add CI self tests
|
|
|
|
|
|
|
|
* Thu Feb 15 2018 Adam Williamson <awilliam@redhat.com> - 6.1-4
|
|
|
|
- Drop all attempts to 'fix' #1490632, revert spec to same as 6.1-1
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Nov 02 2017 Neil Horman <nhorman@redhat.com> - 6.1-2
|
|
|
|
- Enable rngd on entropy src availability (bz 1490632)
|
|
|
|
|
|
|
|
* Tue Oct 10 2017 Neil Horman <nhorman@redhat.com> - 6.1-1
|
|
|
|
- update to latest upstream
|
|
|
|
|
|
|
|
* Fri Jul 28 2017 Neil Horman <nhorman@redhat.com> - 6-1
|
|
|
|
- Update to latest upstream
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Oct 18 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5-8
|
|
|
|
- If device is not found exit immediately (#892178)
|
|
|
|
|
|
|
|
* Sun Mar 6 2016 Peter Robinson <pbrobinson@fedoraproject.org> 5-7
|
|
|
|
- Use %%license
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Dec 10 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5-4
|
|
|
|
- Build with hardening flags (#1051344)
|
|
|
|
- Fail nicely if no hardware generator is found (#892178)
|
|
|
|
- Drop unneeded dependency
|
|
|
|
|
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Apr 23 2014 Luke Macken <lmacken@redhat.com> - 5-1
|
|
|
|
- Update to release version 5.
|
|
|
|
- Remove rng-tools-man.patch
|
|
|
|
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Sep 25 2012 Jaromir Capik <jcapik@redhat.com> - 4-2
|
|
|
|
- Migration to new systemd macros
|
|
|
|
|
|
|
|
* Mon Aug 6 2012 Jeff Garzik <jgarzik@redhat.com> - 4-1
|
|
|
|
- Update to release version 4.
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jan 12 2012 Jiri Popelka <jpopelka@redhat.com> - 3-4
|
|
|
|
- 2 patches from RHEL-6
|
|
|
|
- systemd service
|
|
|
|
- man page fixes
|
|
|
|
- modernize spec file
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jul 3 2010 Jeff Garzik <jgarzik@redhat.com> - 3-2
|
|
|
|
- comply with renaming guidelines, by Providing rng-utils = 1:2.0-4.2
|
|
|
|
|
|
|
|
* Sat Jul 3 2010 Jeff Garzik <jgarzik@redhat.com> - 3-1
|
|
|
|
- Update to release version 3.
|
|
|
|
|
|
|
|
* Fri Mar 26 2010 Jeff Garzik <jgarzik@redhat.com> - 2-3
|
|
|
|
- more minor updates for package review
|
|
|
|
|
|
|
|
* Thu Mar 25 2010 Jeff Garzik <jgarzik@redhat.com> - 2-2
|
|
|
|
- several minor updates for package review
|
|
|
|
|
|
|
|
* Wed Mar 24 2010 Jeff Garzik <jgarzik@redhat.com> - 2-1
|
|
|
|
- initial revision (as rng-tools)
|