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