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