- Cleanup with spec-cleaner
- Adapt the service file to be forking and match what it does for me on Gentoo. - Disable threads as they seem break some times. - Capitalize summaries to make rpmlint happy. OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=90
This commit is contained in:
parent
dbd24e73c7
commit
d41d862a9d
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 7 09:12:26 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Cleanup with spec-cleaner
|
||||||
|
- Adapt the service file to be forking and match what it does for
|
||||||
|
me on Gentoo.
|
||||||
|
- Disable threads as they seem break some times.
|
||||||
|
- Capitalize summaries to make rpmlint happy.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 11 10:21:46 UTC 2014 - dvaleev@suse.com
|
Tue Mar 11 10:21:46 UTC 2014 - dvaleev@suse.com
|
||||||
|
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Haveged Entropy Gathering Daemon
|
Description=Entropy Daemon based on the HAVEGE algorithm
|
||||||
|
Documentation=man:haveged(8) http://www.issihosts.com/haveged/
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=forking
|
||||||
ExecStart=/usr/sbin/haveged -w 1024 -v 0 -F
|
EnvironmentFile=/etc/haveged.conf
|
||||||
|
PIDFile=/run/haveged.pid
|
||||||
|
ExecStart=/usr/sbin/haveged -w 1024 -v 0 -p /run/haveged.pid
|
||||||
CapabilityBoundingSet=CAP_SYS_ADMIN
|
CapabilityBoundingSet=CAP_SYS_ADMIN
|
||||||
PrivateNetwork=yes
|
PrivateNetwork=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
52
haveged.spec
52
haveged.spec
@ -26,16 +26,17 @@ Url: http://www.issihosts.com/haveged/
|
|||||||
Source0: http://www.issihosts.com/haveged/%{name}-%{version}.tar.gz
|
Source0: http://www.issihosts.com/haveged/%{name}-%{version}.tar.gz
|
||||||
Source2: %{name}.service
|
Source2: %{name}.service
|
||||||
Patch0: ppc64le.patch
|
Patch0: ppc64le.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Enhances: openssl
|
|
||||||
Enhances: gpg2
|
|
||||||
Enhances: php5
|
|
||||||
Enhances: apache2
|
|
||||||
Enhances: openvpn
|
|
||||||
Enhances: smtp_daemon
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
Enhances: apache2
|
||||||
|
Enhances: gpg2
|
||||||
|
Enhances: openssl
|
||||||
|
Enhances: openvpn
|
||||||
|
Enhances: php5
|
||||||
|
Enhances: smtp_daemon
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,7 +46,7 @@ numbers generated from hidden processor state.
|
|||||||
For more informations see http://www.issihosts.com/haveged/
|
For more informations see http://www.issihosts.com/haveged/
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: haveged development files
|
Summary: Haveged development files
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libhavege1 = %{version}
|
Requires: libhavege1 = %{version}
|
||||||
|
|
||||||
@ -56,7 +57,7 @@ This package contains the haveged implementation of the HAVEGE
|
|||||||
algorithm and supporting features.
|
algorithm and supporting features.
|
||||||
|
|
||||||
%package -n libhavege1
|
%package -n libhavege1
|
||||||
Summary: haveged interface library
|
Summary: Haveged interface library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description -n libhavege1
|
%description -n libhavege1
|
||||||
@ -67,38 +68,35 @@ algorithm and supporting features.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
autoreconf -fvi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# mvyskocil: needed because of haveged-ppc.patch
|
export CFLAGS="%{optflags} -fpie"
|
||||||
autoreconf -fiv
|
|
||||||
export CFLAGS="%optflags -fpie"
|
|
||||||
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
||||||
%configure --disable-static \
|
# Threads seem broken
|
||||||
--enable-nistest=yes \
|
%configure \
|
||||||
--enable-daemon=yes \
|
--disable-static \
|
||||||
--enable-clock_gettime=yes
|
--disable-threads \
|
||||||
# no multiple jobs for now, broken makefile dependencies
|
--enable-nistest \
|
||||||
#make %{?_smp_mflags}
|
--enable-daemon \
|
||||||
make
|
--enable-clock_gettime
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
#XXX: nist test is killed by SIGKILL with static int random_pool1[_32MB] on
|
#XXX: nist test is killed by SIGKILL with static int random_pool1[_32MB] on
|
||||||
# 32bit. Let change it to _08MB to avoid the test beeing killed, even if I
|
# 32bit. Let change it to _08MB to avoid the test beeing killed, even if I
|
||||||
# am not sure allocate of 128M is prohibited
|
# am not sure allocate of 128M is prohibited
|
||||||
%ifarch %{ix86}
|
%ifarch %ix86
|
||||||
sed -i 's/\[_32MB\]/[_08MB]/' nist/nist.c
|
sed -i 's/\[_32MB\]/[_08MB]/' nist/nist.c
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
%{__install} -D -m0644 %{S:2} %{buildroot}%{_unitdir}/%{name}.service
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/libhavege.*a
|
rm -f %{buildroot}%{_libdir}/libhavege.*a
|
||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||||
|
|
||||||
%clean
|
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user