Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:1-MinimalX
haveged
haveged.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File haveged.spec of Package haveged
# # spec file for package haveged # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d } Name: haveged Version: 1.9.2 Release: 0 Summary: Feed entropy into random pool License: GPL-3.0-only Group: System/Daemons Url: http://www.issihosts.com/haveged/ Source0: http://www.issihosts.com/haveged/%{name}-%{version}.tar.gz Source2: %{name}.service Source3: 90-haveged.rules Source4: haveged-dracut.module Patch0: ppc64le.patch # PATCH-FIX-UPSTREAM: ent tests randomly fail so make them conditional tchvatal@suse.cz bnc#876674 Patch1: haveged-conditional-enttest.patch # PATCH-FIX-UPSTREAM: don't write to syslog at startup to avoid deadlocks psimons@suse.com bnc#959237 Patch3: haveged-no-syslog.patch # PATCH-FIX-GITHUB: Fix segfault on arm machines Patch4: f2193587.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) Requires(post): coreutils Requires(postun): coreutils Enhances: apache2 Enhances: gpg2 Enhances: openssl Enhances: openvpn Enhances: php5 Enhances: smtp_daemon Enhances: systemd %{?systemd_requires} %description The haveged daemon feeds the linux entropy pool with random numbers generated from hidden processor state. For more informations see http://www.issihosts.com/haveged/ %package devel Summary: Haveged development files Group: Development/Libraries/C and C++ Requires: libhavege1 = %{version} %description devel Headers and for the haveged library This package contains the haveged implementation of the HAVEGE algorithm and supporting features. %package -n libhavege1 Summary: Haveged interface library Group: System/Libraries %description -n libhavege1 Shared object for the haveged library This package contains the haveged implementation of the HAVEGE algorithm and supporting features. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch3 -p1 %patch4 -p1 %build autoreconf -fvi export CFLAGS="%{optflags} -fpie" export LDFLAGS="-Wl,-z,relro,-z,now -pie" # ENT randomly fails so disable the test %configure \ --disable-static \ --disable-enttest \ --enable-nistest \ --enable-daemon \ --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 install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service install -D -m0644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/90-%{name}.rules rm -f %{buildroot}%{_libdir}/libhavege.*a ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} install -d -m0755 %{buildroot}%{_prefix}/lib/dracut/modules.d/98%{name} install -m0755 %{SOURCE4} %{buildroot}%{_prefix}/lib/dracut/modules.d/98%{name}/module-setup.sh %post %{?udev_rules_update:%udev_rules_update} %service_add_post %{name}.service %{?regenerate_initrd_post} %postun %service_del_postun %{name}.service %{?regenerate_initrd_post} %posttrans %{?regenerate_initrd_posttrans} %pre %service_add_pre %{name}.service %preun %service_del_preun %{name}.service %post -n libhavege1 -p /sbin/ldconfig %postun -n libhavege1 -p /sbin/ldconfig %files %license COPYING %{_sbindir}/rc%{name} %{_sbindir}/%{name} %{_mandir}/man8/%{name}.8%{ext_man} %{_unitdir}/%{name}.service %{_udevrulesdir}/90-%{name}.rules %dir %{_prefix}/lib/dracut %dir %{_prefix}/lib/dracut/modules.d %dir %{_prefix}/lib/dracut/modules.d/98%{name} %{_prefix}/lib/dracut/modules.d/98%{name}/module-setup.sh %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 libhavege1 %license COPYING %{_libdir}/*.so.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor