[go: up one dir, main page]

File: fedora.sh

package info (click to toggle)
ima-evm-utils 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: ansic: 4,211; sh: 3,159; awk: 113; makefile: 109
file content (68 lines) | stat: -rwxr-xr-x 1,125 bytes parent folder | download
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
#!/bin/sh
# Copyright (c) 2020 Petr Vorel <pvorel@suse.cz>
set -e

if [ -z "$CC" ]; then
	echo "missing \$CC!" >&2
	exit 1
fi

case "$TSS" in
ibmtss) TSS="tss2-devel";;
tpm2-tss) TSS="tpm2-tss-devel";;
'') echo "Missing TSS!" >&2; exit 1;;
*) echo "Unsupported TSS: '$TSS'!" >&2; exit 1;;
esac

# ibmswtpm2 requires gcc
[ "$CC" = "gcc" ] || CC="gcc $CC"

yum -y install \
	$CC $TSS \
	asciidoc \
	attr \
	autoconf \
	automake \
	diffutils \
	docbook-xsl \
	e2fsprogs \
	git-core \
	gnutls-utils \
	gzip \
	keyutils-libs-devel \
	kmod \
	libattr-devel \
	libtool \
	libxslt \
	make \
	openssl \
	openssl-devel \
	openssl-pkcs11 \
	pkg-config \
	procps \
	sudo \
	util-linux \
	vim-common \
	wget \
	which \
	zstd \
	systemd \
	keyutils \
	e2fsprogs \
	acl \
	libcap

yum -y install docbook5-style-xsl || true
yum -y install swtpm || true

# SoftHSM is available via EPEL on CentOS
if [ -f /etc/centos-release ]; then
	yum -y install epel-release
fi
yum -y install softhsm || true

# haveged is available via EPEL on CentOS stream8.
yum -y install haveged || true

./tests/install-fsverity.sh
./tests/install-mount-idmapped.sh