Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
65357e84b4
!53 [sync] PR-52: riscv64: increase tests timeout
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-11-04 03:14:30 +00:00
wangyangdahai
1f16047e0d riscv64: increase RNGD_JITTER_TIMEOUT
(cherry picked from commit 4b213fa137aef7d895dad55dc9de38e58cdaeb22)
2024-11-04 10:34:18 +08:00
openeuler-ci-bot
34eccbc10e
!48 修复%check报错
From: @qilinyangxiaodong 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
2024-06-12 01:48:59 +00:00
qilinyangxiaodong
b36e3319cc add buildrequires opensc to fix check error 2024-06-11 15:45:31 +08:00
openeuler-ci-bot
4308b03cc0
!42 Fix serveral issues
From: @zhangruifang2020 
Reviewed-by: @zhoupengcheng11, @gaoruoshu 
Signed-off-by: @gaoruoshu
2023-05-25 08:34:27 +00:00
zhangruifang2020
0003e6817b Fix serveral issues 2023-05-04 10:13:45 +08:00
openeuler-ci-bot
407c6506b1
!41 enable make check
From: @zhangruifang2020 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
2023-04-23 03:04:05 +00:00
zhangruifang2020
c523ad2bbe enable make check 2023-04-21 15:08:43 +08:00
openeuler-ci-bot
edf07052a1
!34 update version to 6.16
From: @fly_fzc 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
2023-01-29 01:48:21 +00:00
fly_fzc
d1f5687b33 update version to 6.16 2023-01-28 17:23:47 +08:00
5 changed files with 44 additions and 5 deletions

View File

@ -1,16 +1,22 @@
Name: rng-tools
Version: 6.14
Release: 4
Version: 6.16
Release: 5
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
Source2: rngd.sysconfig
#Dependency
BuildRequires: gcc make gettext systemd autoconf automake
BuildRequires: libgcrypt-devel libcurl-devel libxml2-devel openssl-devel
BuildRequires: libp11-devel jitterentropy-library-devel jansson-devel
BuildRequires: libp11-devel jitterentropy-library-devel jansson-devel libcap-devel
#Provide the command: killall used by test cases.
BuildRequires: psmisc
BuildRequires: opensc
Requires: libgcrypt libsysfs openssl libxml2 libcurl jitterentropy-library openssl-pkcs11
Requires: opensc
%{?systemd_requires}
@ -33,6 +39,16 @@ and supplies entropy from them to the system kernel's /dev/random machinery.
%make_install
install -D -t $RPM_BUILD_ROOT%{_unitdir} -m 0644 %{SOURCE1}
# install sysconfig file
install -D %{SOURCE2} -m0644 %{buildroot}%{_sysconfdir}/sysconfig/rngd
%check
%ifarch riscv64
export RNGD_JITTER_TIMEOUT=30
%else
export RNGD_JITTER_TIMEOUT=10 #Enseur that the AES can be generated.
%endif
%make_build check
%pre
@ -52,13 +68,30 @@ install -D -t $RPM_BUILD_ROOT%{_unitdir} -m 0644 %{SOURCE1}
%{_bindir}/rngtest
%{_bindir}/randstat
%{_sbindir}/rngd
%attr(0644,root,root) %{_unitdir}/rngd.service
%attr(0644,root,root) %{_unitdir}/rngd.service
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/rngd
%files help
%{_mandir}/man1/rngtest.1.*
%{_mandir}/man8/rngd.8.*
%changelog
* Mon Nov 04 2024 wangyangdahai <wangyang22@iscas.ac.cn> - 6.16-5
- riscv64: increase RNGD_JITTER_TIMEOUT
* Mon Jun 3 2024 yangxiaodong <yangxiaodong@kylinos.cn> - 6.16-4
- add buildrequires opensc to fix check error
* Mon Apr 24 2023 zhangruifang <zhangruifang1@h-partners.com> - 6.16-3
- Update the rngd.service file
- Add the config file for rngd service
* Fri Apr 21 2023 zhangruifang <zhangruifang1@h-partners.com> - 6.16-2
- enable make check
* Sat Jan 28 2023 fuanan <fuanan3@h-partners.com> - 6.16-1
- update version to 6.16
* Fri Sep 2 2022 panxiaohe <panxh.life@foxmail.com> - 6.14-4
- fix changelog to make it in descending chronological order

View File

@ -1,8 +1,11 @@
[Unit]
Description=Hardware RNG Entropy Gatherer Daemon
# The "-f" option is required for the systemd service rngd to work with Type=simple
[Service]
ExecStart=/sbin/rngd -f
Type=simple
EnvironmentFile=/etc/sysconfig/rngd
ExecStart=/usr/sbin/rngd -f $RNGD_ARGS
[Install]
WantedBy=multi-user.target

3
rngd.sysconfig Normal file
View File

@ -0,0 +1,3 @@
# Optional arguments passed to rngd. See rngd(8) and
# https://bugzilla.redhat.com/show_bug.cgi?id=1252175#c21
RNGD_ARGS="-O jitter:timeout:10"

Binary file not shown.

BIN
v6.16.tar.gz Normal file

Binary file not shown.