[7576] | 1 | Summary: A Linux entropy source using the HAVEGE algorithm |
---|
| 2 | Summary(ja): HAVEFE アルゴリズムを使った Linux のエントロピーソース |
---|
| 3 | Name: haveged |
---|
[7577] | 4 | Version: 1.7a |
---|
[7576] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | License: GPLv3+ |
---|
| 7 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 8 | Group: System Environment/Daemons |
---|
| 9 | URL: http://www.irisa.fr/caps/projects/hipsor/ |
---|
| 10 | Source0: http://www.issihosts.com/haveged/%{name}-%{version}.tar.gz |
---|
| 11 | |
---|
| 12 | Requires(post): chkconfig |
---|
| 13 | Requires(preun): chkconfig, initscripts |
---|
| 14 | Requires(postun): initscripts |
---|
| 15 | |
---|
| 16 | BuildRequires: automake gdb coreutils glibc-common |
---|
| 17 | |
---|
| 18 | %description |
---|
| 19 | A Linux entropy source using the HAVEGE algorithm |
---|
| 20 | |
---|
| 21 | Haveged is a user space entropy daemon which is not dependent upon the |
---|
| 22 | standard mechanisms for harvesting randomness for the system entropy |
---|
| 23 | pool. This is important in systems with high entropy needs or limited |
---|
| 24 | user interaction (e.g. headless servers). |
---|
| 25 | |
---|
| 26 | Haveged uses HAVEGE (HArdware Volatile Entropy Gathering and Expansion) |
---|
| 27 | to maintain a 1M pool of random bytes used to fill /dev/random |
---|
| 28 | whenever the supply of random bits in /dev/random falls below the low |
---|
| 29 | water mark of the device. The principle inputs to haveged are the |
---|
| 30 | sizes of the processor instruction and data caches used to setup the |
---|
| 31 | HAVEGE collector. The haveged default is a 4kb data cache and a 16kb |
---|
| 32 | instruction cache. On machines with a cpuid instruction, haveged will |
---|
| 33 | attempt to select appropriate values from internal tables. |
---|
| 34 | |
---|
| 35 | %package devel |
---|
| 36 | Summary: Headers and shared development libraries for HAVEGE algorithm |
---|
| 37 | Summary(ja): Headers and shared development libraries for HAVEGE algorithm |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | |
---|
| 41 | %description devel |
---|
| 42 | Headers and shared object symbolic links for the HAVEGE algorithm |
---|
| 43 | |
---|
| 44 | %prep |
---|
| 45 | %setup -q |
---|
| 46 | |
---|
| 47 | %build |
---|
| 48 | #autoreconf -fiv |
---|
| 49 | |
---|
| 50 | %configure --enable-init=sysv.redhat |
---|
| 51 | |
---|
| 52 | #SMP build is not working |
---|
| 53 | #make %{?_smp_mflags} |
---|
| 54 | make |
---|
| 55 | |
---|
| 56 | %check |
---|
| 57 | make check |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %install |
---|
| 61 | rm -rf %{buildroot} |
---|
| 62 | make install DESTDIR=%{buildroot} INSTALL="install -p" |
---|
| 63 | |
---|
| 64 | chmod 0644 COPYING README ChangeLog AUTHORS |
---|
| 65 | |
---|
| 66 | # We don't ship .la files. |
---|
| 67 | rm -rf %{buildroot}%{_libdir}/libhavege.*a |
---|
| 68 | |
---|
| 69 | %clean |
---|
| 70 | rm -rf %{buildroot} |
---|
| 71 | |
---|
| 72 | %post |
---|
| 73 | /sbin/chkconfig --add haveged |
---|
| 74 | |
---|
| 75 | %preun |
---|
| 76 | if [ "$1" -eq "0" ]; then |
---|
| 77 | /sbin/service haveged stop >/dev/null 2>&1 |
---|
| 78 | /sbin/chkconfig --del haveged |
---|
| 79 | fi |
---|
| 80 | |
---|
| 81 | %postun |
---|
| 82 | if [ "$1" -ge "1" ]; then |
---|
| 83 | /sbin/service haveged condrestart >/dev/null 2>&1 |
---|
| 84 | fi |
---|
| 85 | |
---|
| 86 | %files |
---|
| 87 | %defattr(-, root, root, -) |
---|
| 88 | %doc COPYING README ChangeLog AUTHORS contrib/build/havege_sample.c |
---|
| 89 | %{_mandir}/man8/haveged.8* |
---|
| 90 | %{_sbindir}/haveged |
---|
| 91 | %{_libdir}/*so.* |
---|
| 92 | %{_sysconfdir}/init.d/haveged |
---|
| 93 | |
---|
| 94 | %files devel |
---|
| 95 | %defattr(-, root, root, -) |
---|
| 96 | %{_mandir}/man3/libhavege.3* |
---|
| 97 | %dir %{_includedir}/%{name} |
---|
| 98 | %{_includedir}/%{name}/havege.h |
---|
| 99 | %{_libdir}/*.so |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %changelog |
---|
[7577] | 103 | * Sun Mar 24 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7a-1 |
---|
| 104 | - update to 1.7a |
---|
| 105 | |
---|
[7576] | 106 | * Sat Mar 23 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7-1 |
---|
| 107 | - initial build for Vine Linux |
---|
| 108 | |
---|
| 109 | * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-1 |
---|
| 110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
| 111 | |
---|
| 112 | * Sat Jan 19 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.7-0 |
---|
| 113 | - Updated to the version 1.7 |
---|
| 114 | - Version 1.7 brings developement libraries |
---|
| 115 | - Added devel package |
---|
| 116 | * Sat Oct 13 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.5-2 |
---|
| 117 | - BZ 850144 |
---|
| 118 | - Introduce new systemd-rpm macros in haveged spec file |
---|
| 119 | - Fedora 19 changes the way how to work with services in spec files. |
---|
| 120 | - It introduces new macros - systemd_post, systemd_preun and systemd_postun; |
---|
| 121 | - which replace scriptlets from Fedora 18 and older |
---|
| 122 | - see https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd |
---|
| 123 | |
---|
| 124 | * Tue Aug 14 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.5-1 |
---|
| 125 | - Update to the version 1.5 |
---|
| 126 | - Main new feature is a run time verification of the produced random numbers |
---|
| 127 | - PIDFILE set to /run/haveged.pid |
---|
| 128 | - converted README and man page to UTF-8. Informed the upstream to fix it. |
---|
| 129 | * Wed Feb 15 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.4-3 |
---|
| 130 | - PIDFile should be stored at /run instead of the default location /var/run |
---|
| 131 | - There is long term plan that directory /var/run will not further exist in the future Fedora versions |
---|
| 132 | - Asked upstream to add -p <PID_FILE_location> switch to influence the location of the PID File |
---|
| 133 | - Set PIDFile=/var/run/haveged.pid This is needed as long -p option is not implemented |
---|
| 134 | - https://bugzilla.redhat.com/show_bug.cgi?id=770306#c10 |
---|
| 135 | * Wed Feb 15 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.4-2 |
---|
| 136 | - Updated systemd service file, https://bugzilla.redhat.com/show_bug.cgi?id=770306 |
---|
| 137 | * Tue Feb 14 2012 Jirka Hladky <hladky.jiri@gmail.com> - 1.4-1 |
---|
| 138 | - Update to the version 1.4 |
---|
| 139 | - Conversion to systemd, drop init script |
---|
| 140 | * Sun Nov 06 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.3-2 |
---|
| 141 | - Fixed a bug on non x86 systems |
---|
| 142 | * Sat Nov 05 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.3-1 |
---|
| 143 | - update from the upstream (1.3 stable) |
---|
| 144 | * Mon Oct 03 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.3-0 |
---|
| 145 | -version 1.3 beta |
---|
| 146 | * Fri Sep 30 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2-4 |
---|
| 147 | - ppc64 build |
---|
| 148 | * Mon Sep 26 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2-3 |
---|
| 149 | - Cleaned spec file according to https://bugzilla.redhat.com/show_bug.cgi?id=739347#c11 |
---|
| 150 | * Sat Sep 24 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2-2 |
---|
| 151 | - Added comment to explain why we need use Fedora specific start script |
---|
| 152 | * Wed Sep 21 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2-1 |
---|
| 153 | - Cleaned spec file according to https://bugzilla.redhat.com/show_bug.cgi?id=739347#c1 |
---|
| 154 | * Wed Sep 07 2011 Jirka Hladky <hladky.jiri@gmail.com> - 1.2-0 |
---|
| 155 | - Initial build |
---|