-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
trousers-changer.spec.in
46 lines (37 loc) · 1.02 KB
/
trousers-changer.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Name: trousers-changer
Version: @VERSION@
Release: 1%{?dist}
Summary: TPM service wrapper for portable installations
Requires: trousers tpm-tools tpm2-tools systemd tpm-extra >= 4.0.0
Requires(post): systemd
Vendor: Invisible Things Lab
License: GPL
URL: http://www.qubes-os.org
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
%description
Wraps tcsd's systemd service to replace /var/lib/tmp with a symbolic link to
/var/lib/tmps/TPMID/. TPMID is read from an NVRAM entry provisioned from the
outside (should be 20 bytes long).
Can also be used to manage /var/lib/tpm for TPM2 as long as something will
create files in /var/lib/tpm.
%prep
%setup -q
%install
cp -r sbin $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib
cp -r systemd $RPM_BUILD_ROOT/usr/lib
%files
/sbin/tpm_id
/sbin/tpm2_id
/sbin/trousers_changer_identify
/sbin/trousers_changer_migrate
/usr/lib/systemd/system/tcsd.service.d/trousers-changer.conf
%post
systemctl daemon-reload
%postun
if [ "$1" = 0 ]; then
systemctl daemon-reload
fi
%changelog
@CHANGELOG@