- 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:
parent
47c374c550
commit
2549f1db94
9
resourcemgr.service
Normal file
9
resourcemgr.service
Normal 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
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user