- added a systemd unit service file

OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=21
This commit is contained in:
Marcus Meissner 2016-08-06 19:28:47 +00:00 committed by Git OBS Bridge
parent 47c374c550
commit 2549f1db94
3 changed files with 32 additions and 0 deletions

9
resourcemgr.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=TPM 2.0 Core Services Daemon
[Service]
Type=forking
ExecStart=/usr/sbin/resourcemgr
[Install]
WantedBy=multi-user.target

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Aug 6 19:28:27 UTC 2016 - meissner@suse.com
- added a systemd unit service file
-------------------------------------------------------------------
Fri May 6 19:45:29 UTC 2016 - jengelh@inai.de

View File

@ -24,11 +24,13 @@ License: BSD-2-Clause
Group: Productivity/Security
Url: https://github.com/01org/TPM2.0-TSS
Source0: %{name}-%{version}.tar.gz
Source1: resourcemgr.service
Source2: baselibs.conf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: systemd-rpm-macros
Requires(pre): pwdutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -68,14 +70,30 @@ make %{?_smp_mflags} PTHREAD_LDFLAGS=-pthread
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/resourcemgr.service
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr
%post -n libtss2-0 -p /sbin/ldconfig
%postun -n libtss2-0 -p /sbin/ldconfig
%pre
%service_add_pre resourcemgr.service
%post
%service_add_post resourcemgr.service
%postun
%service_del_postun resourcemgr.service
%preun
%service_del_preun resourcemgr.service
%files
%defattr(-,root,root)
%doc *.md ChangeLog LICENSE *.png
%{_sbindir}/resourcemgr
/%{_unitdir}/resourcemgr.service
%{_sbindir}/rcresourcemgr
%files devel
%defattr(-,root,root)