forked from QubesOS/qubes-antievilmaid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
anti-evil-maid.spec.in
85 lines (70 loc) · 2.29 KB
/
anti-evil-maid.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Name: anti-evil-maid
Version: @VERSION@
Release: 1%{?dist}
Summary: Anti Evil Maid for initramfs-based systems.
Requires: dracut grub2-tools parted tpm-tools
Requires: tpm-extra >= 4.0.0
Requires: trousers-changer >= 4.0.0
Requires: systemd >= 227
Requires: coreutils >= 8.25-2
Requires: scrypt qrencode oathtool
Requires: tpm2-tools openssl
Requires(post): dracut grub2-tools systemd
Obsoletes: anti-evil-maid-dracut
Vendor: Invisible Things Lab
License: GPL
URL: http://www.qubes-os.org
Source0: %{name}-%{version}.tar.gz
%description
Anti Evil Maid for initramfs-based systems.
%prep
%setup -q
%install
mkdir -p $RPM_BUILD_ROOT/usr
cp -r sbin $RPM_BUILD_ROOT/usr
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/anti-evil-maid
cp README $RPM_BUILD_ROOT/usr/share/doc/anti-evil-maid
cp -r etc $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/mnt/anti-evil-maid
mkdir -p $RPM_BUILD_ROOT/var/lib/anti-evil-maid
mkdir -p $RPM_BUILD_ROOT/usr/lib/dracut/modules.d
cp -r 90anti-evil-maid $RPM_BUILD_ROOT/usr/lib/dracut/modules.d/
mkdir -p $RPM_BUILD_ROOT/usr/lib
cp -r systemd $RPM_BUILD_ROOT/usr/lib
%files
/usr/sbin/anti-evil-maid-dump-evt-log
/usr/sbin/anti-evil-maid-install
/usr/sbin/anti-evil-maid-lib
/usr/sbin/anti-evil-maid-lib-tpm1
/usr/sbin/anti-evil-maid-lib-tpm2
/usr/sbin/anti-evil-maid-seal
/usr/sbin/anti-evil-maid-tpm-setup
/usr/sbin/tpm-evt-log-utils.awk
/usr/sbin/tpm2-evt-log-parser.awk
/usr/sbin/txt-tpm1-evt-log-parser.awk
/usr/share/doc/anti-evil-maid/README
/usr/lib/systemd/system/anti-evil-maid-seal.service
/usr/lib/systemd/system/tcsd.service.d/anti-evil-maid-seal.conf
/usr/lib/systemd/system/basic.target.wants/anti-evil-maid-seal.service
/etc/anti-evil-maid.conf
/etc/grub.d/19_linux_xen_trenchboot
%dir /mnt/anti-evil-maid
%dir /var/lib/anti-evil-maid
/etc/dracut.conf.d/anti-evil-maid.conf
/usr/lib/dracut/modules.d/90anti-evil-maid
/usr/lib/systemd/system/anti-evil-maid-unseal.service
/usr/lib/systemd/system/anti-evil-maid-check-mount-devs.service
/usr/lib/systemd/system/initrd.target.wants/anti-evil-maid-unseal.service
/usr/lib/systemd/system/initrd.target.requires/anti-evil-maid-check-mount-devs.service
%define refresh \
dracut --regenerate-all --force \
grub2-mkconfig -o /boot/grub2/grub.cfg \
systemctl daemon-reload
%post
%refresh
%postun
if [ "$1" = 0 ]; then
%refresh
fi
%changelog
@CHANGELOG@