Search
j0ke.net Open Build Service
>
Projects
>
ha
>
keepalived
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 23
[-]
[+]
Changed
keepalived.spec
@@ -3,7 +3,7 @@ Summary: HA monitor built upon LVS, VRRP and services poller Packager: Christophe Varoqui, <christophe.varoqui@free.fr> Version: 1.1.17 -Release: 1 +Release: 2 Source0: http://www.keepalived.org/software/%{name}-%{version}.tar.gz Source1: %{name}.init Patch: %{name}-initdir.diff @@ -55,6 +55,9 @@ cd $RPM_BUILD_ROOT/%{_sbindir} %if 0%{?suse_version} cp %{S:1} %{buildroot}/etc/init.d/keepalived +# move sysconfig file +mkdir -p %{buildroot}/var/adm/fillup-templates +mv %{buildroot}/etc/sysconfig/%{name} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} %endif ln -sf ../../etc/init.d/keepalived rckeepalived rm -rf %{buildroot}/etc/keepalived/samples @@ -62,13 +65,33 @@ %clean rm -rf %{buildroot} +%post +%if 0%{?suse_version} +%fillup_and_insserv %{name} +%endif + +%preun +%if 0%{?suse_version} +%stop_on_removal %{name} +%endif + +%postun +%if 0%{?suse_version} +%restart_on_update %{name} +%{insserv_cleanup} +%endif + %files %defattr(-,root,root) %{_bindir}/genhash %{_sbindir}/keepalived %{_sbindir}/rckeepalived %{_sysconfdir}/init.d/keepalived +%if 0%{?suse_version} %config %{_sysconfdir}/sysconfig/keepalived +%else +/var/adm/fillup-templates/sysconfig.%{name} +%endif %dir %{_sysconfdir}/keepalived/ %config(noreplace) %{_sysconfdir}/keepalived/keepalived.conf %doc %{_mandir}/man5/keepalived.conf.5* @@ -78,6 +101,10 @@ %doc AUTHOR CONTRIBUTORS TODO COPYING README INSTALL VERSION ChangeLog %changelog +* Sat Jul 18 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.17-2 +- pre/post macros added +- do sysconfig installation with fillup_and_insserv on SuSE systems + * Sun Mar 08 2009 Carsten Schoene <cs@linux-administrator.com> - update to release 1.1.17 - Fixed a regression brought by previous release during low-level scheduler timer computation.