Name: audio-entropyd Version: 2.0.1 Release: 1%{?dist} Summary: Audio entropy daemon Group: System Environment/Daemons License: GPLv2 URL: http://www.vanheusden.com/aed/ Source0: http://www.vanheusden.com/aed/audio-entropyd-2.0.1.tgz Source1: audio-entropyd.init Source2: audio-entropyd.config Patch: audio-entropyd-2.0.1-channels.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel Requires (post): chkconfig Requires (preun): chkconfig %description This program feeds the /dev/random device with entropy-data read from an audio device. The audio-data is not copied as is but first 'de-biased' and analysed to determine how much bits of entropy is in it. This program is usefull for systems doing lots of cryptographic stuff like VPN endpoints or GPG clients; it helps preventing that the /dev/random device gets depleted and blocks reads. %prep %setup -q %patch -p1 -b .channels %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT install -D -m 0755 audio-entropyd $RPM_BUILD_ROOT/%{_sbindir}/audio-entropyd install -D -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initddir}/audio-entropyd install -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/audio-entropyd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README /%{_sbindir}/audio-entropyd /%{_initddir}/audio-entropyd %config /%{_sysconfdir}/sysconfig/audio-entropyd %post # This adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add audio-entropyd %preun if [ $1 = 0 ] ; then /sbin/service audio-entropyd stop >/dev/null 2>&1 /sbin/chkconfig --del audio-entropyd fi %changelog * Tue Jan 04 2011 Ignacio Vazquez-Abrams 2.0.1-1 - Initial package