From d02a0c91a855d193a52e14a83b920e3ba46ac0328d8bab4fab0c083c0a347862 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 23 May 2014 05:27:51 +0000 Subject: [PATCH] Accepting request 235069 from network:ha-clustering:Factory - added necessary macros for systemd files (forwarded request 234964 from jsegitz) OBS-URL: https://build.opensuse.org/request/show/235069 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/haproxy?expand=0&rev=5 --- haproxy.changes | 5 +++++ haproxy.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/haproxy.changes b/haproxy.changes index 8612eaa..aaba623 100644 --- a/haproxy.changes +++ b/haproxy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 21 10:50:21 UTC 2014 - jsegitz@novell.com + +- added necessary macros for systemd files + ------------------------------------------------------------------- Tue May 6 06:12:08 UTC 2014 - kgronlund@suse.com diff --git a/haproxy.spec b/haproxy.spec index 4253f93..cb9febb 100644 --- a/haproxy.spec +++ b/haproxy.spec @@ -144,6 +144,9 @@ gzip %{buildroot}%{_mandir}/man1/%{pkg_name}.1 %pre /usr/sbin/groupadd -r %{pkg_name} &>/dev/null ||: /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{pkg_home} %{pkg_name} &>/dev/null ||: +%if 0%{?suse_version} >= 1230 + %service_add_pre %{pkg_name}.service +%endif %if 0%{?suse_version} >= 1230