Accepting request 138521 from openSUSE:Factory:Staging:Systemd

- Fix build with new systemd location.

OBS-URL: https://build.opensuse.org/request/show/138521
OBS-URL: https://build.opensuse.org/package/show/Base:System/rsyslog?expand=0&rev=102
This commit is contained in:
Robert Milasan
2012-10-18 16:10:32 +00:00
committed by Git OBS Bridge
parent 17f3ffd9a0
commit 156d7dcb25
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 17 14:33:35 UTC 2012 - fcrozat@suse.com
- Fix build with new systemd location.
-------------------------------------------------------------------
Wed Oct 17 14:13:38 UTC 2012 - mt@suse.com

View File

@@ -456,9 +456,11 @@ install -m644 plugins/ompgsql/createDB.sql \
# On 12.x, the syslog.service file is provided by
# the syslog-service package.
#
if test -e %{buildroot}/lib/systemd/system/rsyslog.service ; then
rm -f %{buildroot}/lib/systemd/system/rsyslog.service
%if %{with systemd}
if test -e %{buildroot}%{_unitdir}/rsyslog.service ; then
rm -f %{buildroot}%{_unitdir}/rsyslog.service
fi
%endif
%clean
if [ -n "%{buildroot}" ] && [ "%{buildroot}" != "/" ] ; then