Accepting request 52242 from security

Accepted submit request 52242 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/52242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/haveged?expand=0&rev=2
This commit is contained in:
Ruediger Oertel 2010-11-05 16:27:47 +00:00 committed by Git OBS Bridge
parent 7be6390a5a
commit af21ab9d9e
3 changed files with 27 additions and 2 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Nov 5 14:23:53 UTC 2010 - cristian.rodriguez@opensuse.org
- Link with full RELRO (-Wl,-z,relro,-z,now)
-------------------------------------------------------------------
Wed Nov 3 20:50:59 UTC 2010 - cristian.rodriguez@opensuse.org
- add systemd support
-------------------------------------------------------------------
Fri Sep 24 16:14:20 UTC 2010 - cristian.rodriguez@opensuse.org

11
haveged.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Haveged Entropy Gathering Daemon
After= local-fs.target syslog.target
[Service]
Type=forking
ExecStart=/sbin/haveged -w 1024 -v 1
PIDFile=/var/run/haveged.pid
[Install]
WantedBy=multi-user.target

View File

@ -26,6 +26,7 @@ Summary: Feed entropy into random pool
Url: http://www.issihosts.com/haveged/
Source0: http://www.issihosts.com/haveged/haveged-%{version}.tar.bz2
Source1: haveged.init
Source2: haveged.service
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(pre): %insserv_prereq
Requires(post): grep util-linux
@ -47,7 +48,8 @@ For more informations see http://www.issihosts.com/haveged/
%build
autoreconf -fiv
CFLAGS="$RPM_OPT_FLAGS -O0"
export CFLAGS="$RPM_OPT_FLAGS -O0"
export LDFLAGS="-Wl,-z,relro,-z,now"
%configure --with-libcap-ng=yes --sbindir=/sbin --enable-nistest=yes
make %{?smp_flags}
@ -59,6 +61,8 @@ make DESTDIR=$RPM_BUILD_ROOT install
%{__install} -m0755 %{S:1} %{buildroot}/etc/init.d/haveged
%{__mkdir_p} %{buildroot}%{_sbindir}
%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
%{__mkdir_p} %{buildroot}/lib/systemd/system
%{__install} -m0755 %{S:2} %{buildroot}/lib/systemd/system/haveged.service
%clean
rm -rf $RPM_BUILD_ROOT
@ -95,5 +99,5 @@ rm -rf $RPM_BUILD_ROOT
/sbin/haveged
%config /etc/init.d/haveged
%{_mandir}/man8/haveged.8.gz
/lib/systemd/system/haveged.service
%changelog