diff --git a/rng-tools.spec b/rng-tools.spec new file mode 100644 index 0000000000000000000000000000000000000000..8990111a3dd59373c000c99e04913fd8f38b0652 --- /dev/null +++ b/rng-tools.spec @@ -0,0 +1,60 @@ +Name: rng-tools +Version: 6.3.1 +Release: 3 +Summary: Random number generator daemon +License: GPLv2+ +URL: https://github.com/nhorman/rng-tools +Source0: https://github.com/nhorman/rng-tools/archive/v%{version}.tar.gz +Source1: rngd.service + +#Dependency +BuildRequires: gcc make gettext systemd autoconf automake +BuildRequires: libgcrypt-devel libsysfs-devel libcurl-devel libxml2-devel openssl-devel +Requires: libgcrypt libsysfs openssl libxml2 libcurl +%{?systemd_requires} + +%description +Rng-tools is a random number generator daemon.It monitors a set of entropy sources, +and supplies entropy from them to the system kernel's /dev/random machinery. + +%package_help + +%prep +%autosetup -n %{name}-%{version} + +%build +./autogen.sh +%configure +%make_build + +%install +%make_install + +install -D -t $RPM_BUILD_ROOT%{_unitdir} -m 0644 %{SOURCE1} + +%pre + +%post +%systemd_post rngd.service + +%preun +%systemd_preun rngd.service + +%postun +%systemd_postun_with_restart rngd.service + +%files +%defattr(-,root,root) +%license COPYING +%doc AUTHORS NEWS README +%{_bindir}/rngtest +%{_sbindir}/rngd +%attr(0644,root,root) %{_unitdir}/rngd.service + +%files help +%{_mandir}/man1/rngtest.1.* +%{_mandir}/man8/rngd.8.* + +%changelog +* Wed Feb 19 2020 wanjiankang - 6.3.1-3 +- Package init diff --git a/rngd.service b/rngd.service new file mode 100644 index 0000000000000000000000000000000000000000..3d9dcb5c250246862546046c70faf387d888d270 --- /dev/null +++ b/rngd.service @@ -0,0 +1,8 @@ +[Unit] +Description=Hardware RNG Entropy Gatherer Daemon + +[Service] +ExecStart=/sbin/rngd -f + +[Install] +WantedBy=multi-user.target diff --git a/v6.3.1.tar.gz b/v6.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1d344d72a791f156a05775e170161c8311a47577 Binary files /dev/null and b/v6.3.1.tar.gz differ