Accepting request 545974 from home:jengelh:branches:network

- Do not suppress errors from useradd.
- Ensure neutrality of description.

OBS-URL: https://build.opensuse.org/request/show/545974
OBS-URL: https://build.opensuse.org/package/show/network/keepalived?expand=0&rev=36
This commit is contained in:
Dirk Mueller 2017-11-27 14:04:41 +00:00 committed by Git OBS Bridge
parent e2fdff3ae9
commit c9e3f60abb
2 changed files with 18 additions and 11 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 27 11:26:58 UTC 2017 - jengelh@inai.de
- Do not suppress errors from useradd.
- Ensure neutrality of description.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 27 09:11:55 UTC 2017 - igarcia@suse.com Thu Nov 27 09:11:55 UTC 2017 - igarcia@suse.com

View File

@ -31,7 +31,7 @@
Name: keepalived Name: keepalived
Version: 1.3.9 Version: 1.3.9
Release: 0 Release: 0
Summary: A strong & robust keepalive facility for linux Summary: A keepalive facility for Linux
License: GPL-2.0+ License: GPL-2.0+
Group: Productivity/Networking/Routing Group: Productivity/Networking/Routing
Url: http://www.keepalived.org/ Url: http://www.keepalived.org/
@ -76,15 +76,14 @@ Requires: systemd
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
The main goal of this project is to provide simple and robust facilities for This project provides facilities for load balancing and high-availability to Linux system and Linux-based
loadbalancing and high-availability to Linux system and Linux based infrastructures. The load-balancing framework relies on the
infrastructures. Loadbalancing framework relies on well-known and widely used Linux Virtual Server (IPVS) kernel module providing Layer4 load balancing.
Linux Virtual Server (IPVS) kernel module providing Layer4 loadbalancing.
Keepalived implements a set of checkers to dynamically and adaptively maintain Keepalived implements a set of checkers to dynamically and adaptively maintain
and manage loadbalanced server pool according their health. On the other hand and manage loadbalanced server pool according their health.
high-availability is achieved by VRRP protocol. VRRP is a fundamental brick for High-availability is achieved by the VRRP protocol, a fundamental brick for
router failover. In addition, Keepalived implements a set of hooks to the VRRP router failover. In addition, Keepalived implements a set of hooks to the VRRP
finite state machine providing low-level and high-speed protocol interactions. finite state machine, providing low-level and high-speed protocol interactions.
Keepalived frameworks can be used independently or all together to provide Keepalived frameworks can be used independently or all together to provide
resilient infrastructures. resilient infrastructures.
@ -115,7 +114,7 @@ export CFLAGS="%optflags -DOPENSSL_NO_SSL_INTERN"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR="%{buildroot}" %make_install
install -dD -m 0750 %{buildroot}%{_var}/lib/%{name} install -dD -m 0750 %{buildroot}%{_var}/lib/%{name}
install -D -m 0644 %{buildroot}/etc/sysconfig/keepalived %{buildroot}%{_fillupdir}/sysconfig.%{name} install -D -m 0644 %{buildroot}/etc/sysconfig/keepalived %{buildroot}%{_fillupdir}/sysconfig.%{name}
@ -131,8 +130,10 @@ chmod -R o= %{buildroot}/etc/keepalived
rm -rv %{buildroot}/etc/keepalived/samples/ %{buildroot}/etc/sysconfig/keepalived rm -rv %{buildroot}/etc/keepalived/samples/ %{buildroot}/etc/sysconfig/keepalived
%pre %pre
/usr/sbin/groupadd -r %{name} >/dev/null 2>&1 || : getent group %{name} >/dev/null || /usr/sbin/groupadd -r %{name}
/usr/sbin/useradd -g %{name} -s /bin/false -r -c "Keepalived" -d %{_var}/lib/%{name} %{name} >/dev/null 2>&1 || : getent passwd %{name} >/dev/null || \
/usr/sbin/useradd -g %{name} -s /bin/false -r -c "Keepalived" \
-d %{_var}/lib/%{name} %{name}
%if %{with systemd} %if %{with systemd}
%service_add_pre %{name}.service %{name}.socket %service_add_pre %{name}.service %{name}.socket
%endif %endif