Accepting request 94188 from home:elvigia:branches:security
- Use proper systemd macros - reduce verbosity level to the minimum OBS-URL: https://build.opensuse.org/request/show/94188 OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=49
This commit is contained in:
parent
a760ac17ce
commit
2c8fab5d04
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 29 03:21:09 UTC 2011 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Use proper systemd macros
|
||||||
|
- reduce verbosity level to the minimum
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 22 14:24:33 UTC 2011 - crrodriguez@opensuse.org
|
Tue Nov 22 14:24:33 UTC 2011 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ After= local-fs.target syslog.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/sbin/haveged -F 1 -w 1024 -v 1
|
ExecStart=/sbin/haveged -F 1 -w 1024 -v 0
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
46
haveged.spec
46
haveged.spec
@ -24,10 +24,10 @@ License: GPLv3
|
|||||||
Summary: Feed entropy into random pool
|
Summary: Feed entropy into random pool
|
||||||
Url: http://www.issihosts.com/haveged/
|
Url: http://www.issihosts.com/haveged/
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
Source0: http://www.issihosts.com/haveged/haveged-%{version}.tar.gz
|
Source0: http://www.issihosts.com/haveged/%{name}-%{version}.tar.gz
|
||||||
Source1: haveged.init
|
Source1: %{name}.init
|
||||||
Source2: haveged.service
|
Source2: %{name}.service
|
||||||
Patch1: haveged-ppc64.patch
|
Patch1: %{name}-ppc64.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
ExcludeArch: %{arm}
|
ExcludeArch: %{arm}
|
||||||
Requires(pre): %insserv_prereq
|
Requires(pre): %insserv_prereq
|
||||||
@ -37,6 +37,11 @@ Requires(pre): sysvinit(syslog)
|
|||||||
Requires(post): grep util-linux
|
Requires(post): grep util-linux
|
||||||
Enhances: openssl gpg2 php5 apache2 openvpn smtp_daemon
|
Enhances: openssl gpg2 php5 apache2 openvpn smtp_daemon
|
||||||
%{!?_initddir: %global _initddir /etc/init.d}
|
%{!?_initddir: %global _initddir /etc/init.d}
|
||||||
|
%if 0%{?suse_version} > 1140
|
||||||
|
BuildRequires: systemd
|
||||||
|
%{?systemd_requires}
|
||||||
|
%define have_systemd 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The haveged daemon feeds the linux entropy pool with random
|
The haveged daemon feeds the linux entropy pool with random
|
||||||
@ -59,10 +64,13 @@ make %{?_smp_mflags} check
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
%{__install} -D -m0755 %{S:1} %{buildroot}%{_initddir}/haveged
|
%{__install} -D -m0755 %{S:1} %{buildroot}%{_initddir}/%{name}
|
||||||
%{__mkdir_p} %{buildroot}%{_sbindir}
|
%{__mkdir_p} %{buildroot}%{_sbindir}
|
||||||
%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
|
||||||
%{__install} -D -m0755 %{S:2} %{buildroot}/lib/systemd/system/haveged.service
|
|
||||||
|
%if 0%{?have_systemd}
|
||||||
|
%{__install} -D -m0644 %{S:2} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||||
@ -70,22 +78,36 @@ make %{?_smp_mflags} check
|
|||||||
%post
|
%post
|
||||||
# do not enable on condition here, let YAST, kiwi or the user do it.
|
# do not enable on condition here, let YAST, kiwi or the user do it.
|
||||||
%{fillup_and_insserv -f %{name}}
|
%{fillup_and_insserv -f %{name}}
|
||||||
|
%if 0%{?have_systemd}
|
||||||
|
%service_add_post %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%restart_on_update %{name}
|
%restart_on_update %{name}
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
|
%if 0%{?have_systemd}
|
||||||
|
%service_del_postun %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%if 0%{?have_systemd}
|
||||||
|
%service_add_pre %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal %{name}
|
%stop_on_removal %{name}
|
||||||
|
%if 0%{?have_systemd}
|
||||||
|
%service_del_preun %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/rc%{name}
|
%{_sbindir}/rc%{name}
|
||||||
/sbin/haveged
|
/sbin/%{name}
|
||||||
%config %{_initddir}/haveged
|
%config %{_initddir}/%{name}
|
||||||
%{_mandir}/man8/haveged.8.gz
|
%{_mandir}/man8/%{name}.8.gz
|
||||||
%dir /lib/systemd
|
%if 0%{?have_systemd}
|
||||||
%dir /lib/systemd/system
|
%{_unitdir}/%{name}.service
|
||||||
/lib/systemd/system/haveged.service
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user