blob: 2e0da1d3a38187c4826459cb0a135b0f86809b3d (
plain)
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
|
#!/etc/bash
set -e
sudo kill -9 $(ps -ef | grep "apt" | grep -v grep | awk '{print $2}')
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo dpkg --configure -a
sudo apt -y install autoconf
sudo apt -y install automake
sudo apt -y install libtool
sudo apt -y install autotools-dev
sudo apt -y install tpm2-tools
echo "Build SoftHSMv2..."
cd SoftHSMv2
sh autogen.sh
./configure
make
cd ..
#echo "Build TPM2_plugin..."
#cd TPM2-Plugin
#./bootstrap
#./configure
#make
#cd ..
|