File sapinit-systemd-compat.spec of Package sapinit-systemd-compat.3608
#
# spec file for package sapinit-systemd-compat
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: sapinit-systemd-compat
Version: 1.0
Release: 0
License: GPL-3.0
Summary: Tweak systemd's behaviour to work with sapinit
Url: https://www.suse.com
Group: System/Management
Source0: type.conf
BuildArch: noarch
%{?systemd_requires}
%description
The package helps systemd to work with sapinit (SAP Host Agent) by introducing
a drop-in unit configuration file.
The drop-in file is only required for running SAP Host Agent on all editions of
SLES 12 and 12 SP1, it is no longer required in 12 SP2 and onwards.
%prep
%build
%install
mkdir -p %{buildroot}%{_unitdir}/sapinit.service.d/
install -m 0644 %{S:0} %{buildroot}%{_unitdir}/sapinit.service.d/type.conf
%post
[ -x /usr/bin/systemctl ] && systemctl daemon-reload || true;
%postun
[ -x /usr/bin/systemctl ] && systemctl daemon-reload || true;
%files
%defattr(-,root,root)
%dir %{_unitdir}/sapinit.service.d/
%{_unitdir}/sapinit.service.d/type.conf
%changelog