diff --git a/haveged-1.1.tar.bz2 b/haveged-1.1.tar.bz2 deleted file mode 100644 index 668a1e1..0000000 --- a/haveged-1.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:16950f3346a788827907edf717e99cf794bb2a7e12fc18737ee4d769b7a05a4f -size 171278 diff --git a/haveged-1.1.tar.gz b/haveged-1.1.tar.gz new file mode 100644 index 0000000..2e4c116 --- /dev/null +++ b/haveged-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c1b7b9778e058745a1e8c1245627d2d01249101dd377ab4ee04c6b77092a220 +size 200273 diff --git a/haveged-ppc64.patch b/haveged-ppc64.patch new file mode 100644 index 0000000..8fd163d --- /dev/null +++ b/haveged-ppc64.patch @@ -0,0 +1,11 @@ +--- configure.ac.orig 2011-06-06 13:32:49.000000000 +0200 ++++ configure.ac 2011-06-06 13:33:02.000000000 +0200 +@@ -33,7 +33,7 @@ + HA_CPPFLAGS="-DHAVE_ISA_IA64" + ;; + +- powerpc-*|pcc-*|powerpc64|ppc64) ++ powerpc*|pcc-*|powerpc64|ppc64) + HA_CPPFLAGS="-DHAVE_ISA_PPC" + ;; + diff --git a/haveged.changes b/haveged.changes index b096a9a..9eda68a 100644 --- a/haveged.changes +++ b/haveged.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Jun 6 11:45:47 UTC 2011 - k0da@opensuse.org + +- fix ppc64 build + +------------------------------------------------------------------- +Mon Jun 6 10:11:20 UTC 2011 - adrian@suse.de + +- fix URL to source tar ball + ------------------------------------------------------------------- Sat May 7 20:06:23 UTC 2011 - crrodriguez@opensuse.org diff --git a/haveged.spec b/haveged.spec index 763f299..2cc45d5 100644 --- a/haveged.spec +++ b/haveged.spec @@ -24,9 +24,10 @@ License: GPLv3 Summary: Feed entropy into random pool Url: http://www.issihosts.com/haveged/ Group: System/Daemons -Source0: http://www.issihosts.com/haveged/haveged-%{version}.tar.bz2 +Source0: http://www.issihosts.com/haveged/haveged-%{version}.tar.gz Source1: haveged.init Source2: haveged.service +Patch1: haveged-ppc64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(pre): %insserv_prereq %if 0%{suse_version} >= 1140 @@ -36,6 +37,7 @@ Requires(post): grep util-linux Enhances: openssl gpg2 php5 apache2 openvpn smtp_daemon %{!?_initddir: %global _initddir /etc/init.d} + %description The haveged daemon feeds the linux entropy pool with random numbers generated from hidden processor state. @@ -44,6 +46,8 @@ For more informations see http://www.issihosts.com/haveged/ %prep %setup -q +%patch1 + %build autoreconf -fiv @@ -51,9 +55,11 @@ export LDFLAGS="-Wl,-z,relro,-z,now" %configure --with-libcap-ng=yes --sbindir=/sbin --enable-nistest=yes make %{?_smp_mflags} + %check make %{?_smp_mflags} check + %install %makeinstall %{__install} -m0755 %{S:1} %{buildroot}%{_initddir}/haveged @@ -62,20 +68,25 @@ make %{?_smp_mflags} check %{__mkdir_p} %{buildroot}/lib/systemd/system %{__install} -m0755 %{S:2} %{buildroot}/lib/systemd/system/haveged.service + %clean rm -rf %{buildroot} + %post # do not enable on condition here, let YAST, kiwi or the user do it. %{fillup_and_insserv -f %{name}} + %postun %restart_on_update %{name} %{insserv_cleanup} + %preun %stop_on_removal %{name} + %files %defattr(-,root,root) %{_sbindir}/rc%{name} @@ -86,4 +97,6 @@ rm -rf %{buildroot} %dir /lib/systemd/system /lib/systemd/system/haveged.service + + %changelog