- Improvements on the linux kernel random subsystem have made the haveged service/daemon obsolete, remove the service files, initrd modules and udev rules, the other components are still useful. OBS-URL: https://build.opensuse.org/request/show/924659 OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=135
117 lines
3.3 KiB
RPMSpec
117 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package haveged
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d }
|
|
Name: haveged
|
|
Version: 1.9.14
|
|
Release: 0
|
|
Summary: Daemon for feeding entropy into the random pool
|
|
License: GPL-3.0-only
|
|
Group: System/Daemons
|
|
URL: https://github.com/jirka-h/haveged
|
|
Source0: https://github.com/jirka-h/haveged/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Patch0: ppc64le.patch
|
|
# PATCH-FIX-UPSTREAM: don't write to syslog at startup to avoid deadlocks psimons@suse.com bnc#959237
|
|
Patch2: haveged-no-syslog.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(systemd)
|
|
BuildRequires: pkgconfig(udev)
|
|
Requires(post): coreutils
|
|
Requires(postun):coreutils
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
The haveged daemon feeds the Linux entropy pool with random
|
|
numbers generated from hidden processor state.
|
|
|
|
For more information, see http://www.issihosts.com/haveged/ .
|
|
|
|
%package devel
|
|
Summary: Haveged development files
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libhavege2 = %{version}
|
|
|
|
%description devel
|
|
Headers and for the haveged library
|
|
|
|
This package contains the haveged implementation of the HAVEGE
|
|
algorithm and supporting features.
|
|
|
|
%package -n libhavege2
|
|
Summary: Haveged interface library
|
|
Group: System/Libraries
|
|
|
|
%description -n libhavege2
|
|
Shared object for the haveged library.
|
|
This package contains the haveged implementation of the HAVEGE
|
|
algorithm and supporting features.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
autoreconf -fvi
|
|
export CFLAGS="%{optflags} -fpie -D_DEFAULT_SOURCE -D_GNU_SOURCE"
|
|
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
|
# ENT randomly fails so disable the test
|
|
%configure \
|
|
--disable-static \
|
|
--disable-enttest \
|
|
--enable-nistest \
|
|
--enable-clock_gettime
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
#XXX: nist test is killed by SIGKILL with static int random_pool1[_32MB] on
|
|
# 32bit. Let change it to _08MB to avoid the test beeing killed, even if I
|
|
# am not sure allocate of 128M is prohibited
|
|
%ifarch %{ix86}
|
|
sed -i 's/\[_32MB\]/[_08MB]/' nist/nist.c
|
|
%endif
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
%install
|
|
%make_install
|
|
rm -f %{buildroot}%{_libdir}/libhavege.*a
|
|
|
|
%post -n libhavege2 -p /sbin/ldconfig
|
|
%postun -n libhavege2 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING
|
|
%{_sbindir}/%{name}
|
|
%{_mandir}/man8/%{name}.8%{?ext_man}
|
|
|
|
%files devel
|
|
%license COPYING
|
|
%{_mandir}/man3/libhavege.3%{?ext_man}
|
|
%dir %{_includedir}/%{name}
|
|
%{_includedir}/%{name}/havege.h
|
|
%doc contrib/build/havege_sample.c
|
|
%{_libdir}/*.so
|
|
|
|
%files -n libhavege2
|
|
%license COPYING
|
|
%{_libdir}/*.so.*
|
|
|
|
%changelog
|