forked from pool/keepalived
Accepting request 338528 from network
1 OBS-URL: https://build.opensuse.org/request/show/338528 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/keepalived?expand=0&rev=10
This commit is contained in:
commit
355e3f95db
@ -26,6 +26,11 @@ Wed Oct 7 11:45:41 UTC 2015 - dimstar@opensuse.org
|
|||||||
gethostbyname function buffer overflow (boo#949238).
|
gethostbyname function buffer overflow (boo#949238).
|
||||||
+ Lots of ipvs fixes.
|
+ Lots of ipvs fixes.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 7 10:31:50 UTC 2015 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- no longer install the init script on systemd systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 11 13:21:29 UTC 2015 - dimstar@opensuse.org
|
Wed Mar 11 13:21:29 UTC 2015 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1210
|
%if 0%{?suse_version} > 1210
|
||||||
%define has_systemd 1
|
%bcond_without systemd
|
||||||
|
%else
|
||||||
|
%bcond_with systemd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: keepalived
|
Name: keepalived
|
||||||
@ -42,7 +44,7 @@ BuildRequires: cyrus-sasl-devel
|
|||||||
Requires(pre): pwdutils
|
Requires(pre): pwdutils
|
||||||
Requires(pre): %insserv_prereq
|
Requires(pre): %insserv_prereq
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
%if 0%{?has_systemd}
|
%if %{with systemd}
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
%endif
|
%endif
|
||||||
@ -75,40 +77,42 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR="%{buildroot}"
|
make install DESTDIR="%{buildroot}"
|
||||||
install -dD -m 0750 %{buildroot}%{_var}/lib/%{name}
|
install -dD -m 0750 %{buildroot}%{_var}/lib/%{name}
|
||||||
install -D -m 0750 keepalived/etc/init.d/keepalived.suse.init %{buildroot}/etc/init.d/keepalived
|
|
||||||
install -D -m 0644 %{buildroot}/etc/sysconfig/keepalived %{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
|
install -D -m 0644 %{buildroot}/etc/sysconfig/keepalived %{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
|
||||||
%if 0%{?has_systemd}
|
|
||||||
|
%if %{with systemd}
|
||||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
ln -s /sbin/service %{buildroot}%{_sbindir}/rckeepalived
|
||||||
|
%else
|
||||||
|
install -D -m 0750 keepalived/etc/init.d/keepalived.suse.init %{buildroot}/etc/init.d/keepalived
|
||||||
|
ln -s /etc/init.d/keepalived %{buildroot}%{_sbindir}/rckeepalived
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
rm %{buildroot}/etc/rc.d/init.d/keepalived %{buildroot}/etc/sysconfig/keepalived
|
|
||||||
ln -s /etc/init.d/keepalived %{buildroot}%{_sbindir}/rckeepalived
|
|
||||||
chmod -R o= %{buildroot}/etc/keepalived
|
chmod -R o= %{buildroot}/etc/keepalived
|
||||||
rm -rv %{buildroot}/etc/keepalived/samples/
|
rm -rv %{buildroot}/etc/rc.d/init.d/keepalived %{buildroot}/etc/keepalived/samples/ %{buildroot}/etc/sysconfig/keepalived
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd -r %{name} >/dev/null 2>&1 || :
|
/usr/sbin/groupadd -r %{name} >/dev/null 2>&1 || :
|
||||||
/usr/sbin/useradd -g %{name} -s /bin/false -r -c "Keepalived" -d %{_var}/lib/%{name} %{name} >/dev/null 2>&1 || :
|
/usr/sbin/useradd -g %{name} -s /bin/false -r -c "Keepalived" -d %{_var}/lib/%{name} %{name} >/dev/null 2>&1 || :
|
||||||
%if 0%{?has_systemd}
|
%if %{with systemd}
|
||||||
%service_add_pre %{name}.service %{name}.socket
|
%service_add_pre %{name}.service %{name}.socket
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal %{name}
|
%stop_on_removal %{name}
|
||||||
%if 0%{?has_systemd}
|
%if %{with systemd}
|
||||||
%service_del_preun %{name}.service %{name}.socket
|
%service_del_preun %{name}.service %{name}.socket
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%fillup_only %{name}
|
%fillup_only %{name}
|
||||||
%if 0%{?has_systemd}
|
%if %{with systemd}
|
||||||
%service_add_post %{name}.service %{name}.socket
|
%service_add_post %{name}.service %{name}.socket
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%insserv_cleanup
|
%insserv_cleanup
|
||||||
%restart_on_update %{name}
|
%restart_on_update %{name}
|
||||||
%if 0%{?has_systemd}
|
%if %{with systemd}
|
||||||
%service_del_postun %{name}.service %{name}.socket
|
%service_del_postun %{name}.service %{name}.socket
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -116,15 +120,16 @@ rm -rv %{buildroot}/etc/keepalived/samples/
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README COPYING
|
%doc README COPYING
|
||||||
%config(noreplace) %attr(-,root,keepalived) /etc/keepalived/
|
%config(noreplace) %attr(-,root,keepalived) /etc/keepalived/
|
||||||
/etc/init.d/keepalived
|
|
||||||
%{_bindir}/genhash
|
%{_bindir}/genhash
|
||||||
%{_sbindir}/rckeepalived
|
%{_sbindir}/rckeepalived
|
||||||
%{_sbindir}/keepalived
|
%{_sbindir}/keepalived
|
||||||
%{_mandir}/man1/genhash.1.gz
|
%{_mandir}/man1/genhash.1.gz
|
||||||
%{_mandir}/man5/keepalived.conf.5.gz
|
%{_mandir}/man5/keepalived.conf.5.gz
|
||||||
%{_mandir}/man8/keepalived.8.gz
|
%{_mandir}/man8/keepalived.8.gz
|
||||||
%if 0%{?has_systemd}
|
%if %{with systemd}
|
||||||
%{_unitdir}/%name.service
|
%{_unitdir}/%name.service
|
||||||
|
%else
|
||||||
|
/etc/init.d/keepalived
|
||||||
%endif
|
%endif
|
||||||
%dir %attr(-,keepalived,keepalived) %{_var}/lib/%{name}
|
%dir %attr(-,keepalived,keepalived) %{_var}/lib/%{name}
|
||||||
/var/adm/fillup-templates/sysconfig.%{name}
|
/var/adm/fillup-templates/sysconfig.%{name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user