1 Summary: A Linux entropy source using the HAVEGE algorithm
7 Source0: https://github.com/jirka-h/haveged/archive/v%{version}.tar.gz
8 # Source0-md5: f4a265ee27281752273812e2287cf9f9
9 URL: http://www.irisa.fr/caps/projects/hipsor/
10 BuildRequires: autoconf >= 2.59
11 BuildRequires: automake
12 BuildRequires: libtool
13 BuildRequires: rpmbuild(macros) >= 1.644
14 BuildRequires: systemd-devel
15 Requires(post,preun,postun): systemd-units >= 38
16 Requires: systemd-units >= 38
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 A Linux entropy source using the HAVEGE algorithm
22 Haveged is a user space entropy daemon which is not dependent upon the
23 standard mechanisms for harvesting randomness for the system entropy
24 pool. This is important in systems with high entropy needs or limited
25 user interaction (e.g. headless servers).
27 Haveged uses HAVEGE (HArdware Volatile Entropy Gathering and
28 Expansion) to maintain a 1M pool of random bytes used to fill
29 /dev/random whenever the supply of random bits in /dev/random falls
30 below the low water mark of the device. The principle inputs to
31 haveged are the sizes of the processor instruction and data caches
32 used to setup the HAVEGE collector. The haveged default is a 4kb data
33 cache and a 16kb instruction cache. On machines with a cpuid
34 instruction, haveged will attempt to select appropriate values from
38 Summary: Shared libraries for HAVEGE algorithm
42 Shared libraries for HAVEGE algorithm.
45 Summary: Headers and shared development libraries for HAVEGE algorithm
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}-%{release}
50 Headers and shared object symbolic links for the HAVEGE algorithm
63 --enable-init=service.fedora
64 # SMP build is not working
68 rm -rf $RPM_BUILD_ROOT
70 DESTDIR=$RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT%{systemdunitdir}
73 #cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/haveged.service
75 # We don't ship .la files.
76 rm $RPM_BUILD_ROOT%{_libdir}/libhavege.la
79 rm -rf $RPM_BUILD_ROOT
81 %post libs -p /sbin/ldconfig
82 %postun libs -p /sbin/ldconfig
85 %systemd_post haveged.service
88 %systemd_preun haveged.service
94 %defattr(644,root,root,755)
95 %doc AUTHORS ChangeLog NEWS README contrib/build/havege_sample.c
96 %attr(755,root,root) %{_sbindir}/haveged
97 %{_mandir}/man8/haveged.8*
98 %{systemdunitdir}/haveged.service
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/libhavege.so.*.*.*
103 %ghost %{_libdir}/libhavege.so.2
106 %defattr(644,root,root,755)
107 %{_includedir}/%{name}
108 %{_libdir}/libhavege.so
109 %{_mandir}/man3/libhavege.3*