Matthias Gerstner
b981d03939
the upstream distribution tarball is already configured and looks for binaries and configuration files in the /usr/local prefix which is wrong. OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-abrmd?expand=0&rev=11
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
Index: tpm2-abrmd-1.1.1/dist/tpm2-abrmd.service
|
|
===================================================================
|
|
--- tpm2-abrmd-1.1.1.orig/dist/tpm2-abrmd.service
|
|
+++ /dev/null
|
|
@@ -1,16 +0,0 @@
|
|
-# copy this file into /etc/systemd/system
|
|
-[Unit]
|
|
-Description=TPM2 Access Broker and Resource Management Daemon
|
|
-
|
|
-[Service]
|
|
-Type=dbus
|
|
-Restart=always
|
|
-RestartSec=5
|
|
-EnvironmentFile=-/usr/local/etc/default/tpm2-abrmd
|
|
-BusName=com.intel.tss2.Tabrmd
|
|
-StandardOutput=syslog
|
|
-ExecStart=/usr/local/sbin/tpm2-abrmd
|
|
-User=tss
|
|
-
|
|
-[Install]
|
|
-WantedBy=multi-user.target
|
|
Index: tpm2-abrmd-1.1.1/dist/tpm2-abrmd.service.in
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ tpm2-abrmd-1.1.1/dist/tpm2-abrmd.service.in
|
|
@@ -0,0 +1,16 @@
|
|
+# copy this file into /etc/systemd/system
|
|
+[Unit]
|
|
+Description=TPM2 Access Broker and Resource Management Daemon
|
|
+
|
|
+[Service]
|
|
+Type=dbus
|
|
+Restart=always
|
|
+RestartSec=5
|
|
+EnvironmentFile=-@sysconfdir@/default/tpm2-abrmd
|
|
+BusName=com.intel.tss2.Tabrmd
|
|
+StandardOutput=syslog
|
|
+ExecStart=@SBINDIR@/tpm2-abrmd
|
|
+User=tss
|
|
+
|
|
+[Install]
|
|
+WantedBy=multi-user.target
|