blob: 2e0da1d3a38187c4826459cb0a135b0f86809b3d [file] [log] [blame]
NingSunda00ff62018-03-14 16:35:31 -07001#!/etc/bash
2
3set -e
4sudo kill -9 $(ps -ef | grep "apt" | grep -v grep | awk '{print $2}')
5
6sudo rm /var/lib/dpkg/lock
7sudo rm /var/lib/apt/lists/lock
8sudo rm /var/cache/apt/archives/lock
9
10sudo dpkg --configure -a
11
12sudo apt -y install autoconf
13sudo apt -y install automake
14sudo apt -y install libtool
15sudo apt -y install autotools-dev
16sudo apt -y install tpm2-tools
17
18echo "Build SoftHSMv2..."
19cd SoftHSMv2
20sh autogen.sh
21./configure
22make
23cd ..
24
25#echo "Build TPM2_plugin..."
26#cd TPM2-Plugin
27#./bootstrap
28#./configure
29#make
30#cd ..