]>
Commit | Line | Data |
---|---|---|
f14809c7 ER |
1 | Summary: A Linux entropy source using the HAVEGE algorithm |
2 | Name: haveged | |
402f6375 | 3 | Version: 1.9.11 |
6d86cb73 | 4 | Release: 1 |
f14809c7 ER |
5 | License: GPL v3+ |
6 | Group: Daemons | |
6d86cb73 | 7 | Source0: https://github.com/jirka-h/haveged/archive/v%{version}.tar.gz |
402f6375 | 8 | # Source0-md5: f4a265ee27281752273812e2287cf9f9 |
f14809c7 | 9 | URL: http://www.irisa.fr/caps/projects/hipsor/ |
6d86cb73 | 10 | BuildRequires: autoconf >= 2.59 |
f14809c7 | 11 | BuildRequires: automake |
6d86cb73 JP |
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 | |
f14809c7 ER |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | A Linux entropy source using the HAVEGE algorithm | |
21 | ||
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). | |
26 | ||
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 | |
35 | internal tables. | |
36 | ||
37 | %package libs | |
38 | Summary: Shared libraries for HAVEGE algorithm | |
39 | Group: Libraries | |
40 | ||
41 | %description libs | |
42 | Shared libraries for HAVEGE algorithm. | |
43 | ||
44 | %package devel | |
45 | Summary: Headers and shared development libraries for HAVEGE algorithm | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description devel | |
50 | Headers and shared object symbolic links for the HAVEGE algorithm | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | ||
55 | %build | |
6d86cb73 JP |
56 | %{__libtoolize} |
57 | %{__aclocal} | |
58 | %{__autoconf} | |
59 | %{__autoheader} | |
60 | %{__automake} | |
f14809c7 | 61 | %configure \ |
6d86cb73 JP |
62 | --disable-static \ |
63 | --enable-init=service.fedora | |
f14809c7 ER |
64 | # SMP build is not working |
65 | %{__make} -j1 | |
66 | ||
f14809c7 ER |
67 | %install |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | %{__make} install \ | |
f14809c7 ER |
70 | DESTDIR=$RPM_BUILD_ROOT |
71 | ||
72 | install -d $RPM_BUILD_ROOT%{systemdunitdir} | |
73 | #cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/haveged.service | |
74 | ||
75 | # We don't ship .la files. | |
76 | rm $RPM_BUILD_ROOT%{_libdir}/libhavege.la | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post libs -p /sbin/ldconfig | |
82 | %postun libs -p /sbin/ldconfig | |
83 | ||
f14809c7 ER |
84 | %post |
85 | %systemd_post haveged.service | |
86 | ||
87 | %preun | |
88 | %systemd_preun haveged.service | |
89 | ||
90 | %postun | |
6d86cb73 | 91 | %systemd_reload |
f14809c7 ER |
92 | |
93 | %files | |
94 | %defattr(644,root,root,755) | |
6d86cb73 | 95 | %doc AUTHORS ChangeLog NEWS README contrib/build/havege_sample.c |
f14809c7 ER |
96 | %attr(755,root,root) %{_sbindir}/haveged |
97 | %{_mandir}/man8/haveged.8* | |
6d86cb73 | 98 | %{systemdunitdir}/haveged.service |
f14809c7 ER |
99 | |
100 | %files libs | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_libdir}/libhavege.so.*.*.* | |
fe12b270 | 103 | %ghost %{_libdir}/libhavege.so.2 |
f14809c7 ER |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %{_includedir}/%{name} | |
108 | %{_libdir}/libhavege.so | |
109 | %{_mandir}/man3/libhavege.3* |