systemd service fixed [release 6.12-2mamba;Sat May 01 2021]
This commit is contained in:
parent
c96e8fc837
commit
3e6b114f01
@ -1,6 +1,6 @@
|
||||
Name: rng-tools
|
||||
Version: 6.12
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: A random number generator daemon
|
||||
Group: System/Kernel and Hardware
|
||||
Vendor: openmamba
|
||||
@ -10,17 +10,14 @@ URL: https://github.com/nhorman/rng-tools.git
|
||||
Source: https://github.com/nhorman/rng-tools.git/v%{version}/rng-tools-%{version}.tar.bz2
|
||||
Patch0: rng-tools-6.10-pkcs11-path.patch
|
||||
Source1: rngd.service
|
||||
Source2: rngd-sysconfig
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: ldconfig
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libjansson-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libp11-devel
|
||||
BuildRequires: librtlsdr-devel
|
||||
BuildRequires: libsysfs-devel
|
||||
BuildRequires: libusb-devel
|
||||
BuildRequires: libxml2-devel
|
||||
## AUTOBUILDREQ-END
|
||||
Requires: libopensc
|
||||
@ -33,10 +30,6 @@ It monitors a set of entropy sources, and supplies entropy from them to the syst
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#%ifarch x86_64 aarch64
|
||||
#% patch0 -p1
|
||||
#%endif
|
||||
|
||||
./autogen.sh
|
||||
|
||||
%build
|
||||
@ -48,6 +41,7 @@ It monitors a set of entropy sources, and supplies entropy from them to the syst
|
||||
%makeinstall
|
||||
|
||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rngd.service
|
||||
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/rngd
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
@ -66,6 +60,7 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rngd.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/rngd
|
||||
%{_bindir}/rngtest
|
||||
%{_sbindir}/rngd
|
||||
%{_unitdir}/rngd.service
|
||||
@ -74,6 +69,9 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rngd.service
|
||||
%doc AUTHORS COPYING
|
||||
|
||||
%changelog
|
||||
* Sat May 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.12-2mamba
|
||||
- systemd service fixed
|
||||
|
||||
* Sat Mar 13 2021 Automatic Build System <autodist@mambasoft.it> 6.12-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
1
rngd-sysconfig
Normal file
1
rngd-sysconfig
Normal file
@ -0,0 +1 @@
|
||||
RNGD_OPTS=""
|
13
rngd.service
13
rngd.service
@ -1,9 +1,16 @@
|
||||
[Unit]
|
||||
Description=Hardware RNG Entropy Gatherer Daemon
|
||||
ConditionVirtualization=!container
|
||||
DefaultDependencies=no
|
||||
Before=sysinit.target shutdown.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/rngd -f
|
||||
EnvironmentFile=/etc/sysconfig/rngd
|
||||
ExecStart=/usr/bin/rngd -f $RNGD_OPTS
|
||||
NoNewPrivileges=on
|
||||
PrivateNetwork=on
|
||||
PrivateTmp=on
|
||||
ProtectSystem=full
|
||||
ProtectHome=on
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=sysinit.target
|
||||
|
Loading…
Reference in New Issue
Block a user