commit
2c65193bea
60
rng-tools.spec
Normal file
60
rng-tools.spec
Normal file
@ -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 <wanjiankang@huawei.com> - 6.3.1-3
|
||||
- Package init
|
||||
8
rngd.service
Normal file
8
rngd.service
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Hardware RNG Entropy Gatherer Daemon
|
||||
|
||||
[Service]
|
||||
ExecStart=/sbin/rngd -f
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
BIN
v6.3.1.tar.gz
Normal file
BIN
v6.3.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user