haveged-vl.spec 5.6 KB

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