]>
Commit | Line | Data |
---|---|---|
f163b202 SB |
1 | Building and running the swtpm has dependencies on the following packages: |
2 | ||
3 | - automake | |
4 | - autoconf | |
5 | - bash | |
6 | - coreutils | |
09516897 | 7 | - expect |
f163b202 SB |
8 | - libtool |
9 | - sed | |
10 | - libtpms | |
11 | - libtpms-devel | |
12 | - fuse | |
13 | - fuse-devel | |
14 | - glib2 | |
15 | - glib2-devel | |
0ba20a21 | 16 | - json-glib-devel |
09516897 | 17 | - net-tools |
b4372fe5 SB |
18 | - python3 |
19 | - python3-twisted | |
09516897 | 20 | - selinux-policy-devel |
0ba20a21 | 21 | - socat |
b4372fe5 | 22 | - trousers |
09516897 SB |
23 | - gnutls |
24 | - gnutls-devel | |
25 | - libtasn1 | |
26 | - libtasn1-tools | |
27 | - libtasn1-devel | |
f163b202 SB |
28 | - rpm-build (to build RPMs) |
29 | ||
70ee8336 SB |
30 | Debian/Ubuntu also needs the following packages to build: |
31 | ||
32 | - build-essential | |
33 | - devscripts | |
34 | - equivs | |
35 | ||
36 | On RHEL or Fedora use either one of the following methods to install | |
37 | the above dependencies: | |
38 | ||
0ba20a21 SB |
39 | - sudo dnf builddep ./swtpm.spec (Fedora >= 22) |
40 | - sudo yum install yum-utils ; sudo yum-builddep ./swtpm.spec (RHEL and Fedora <= 21) | |
70ee8336 SB |
41 | - sudo yum install <package name(s)> |
42 | ||
43 | On Ubuntu use the following command: | |
44 | ||
50dc39a4 | 45 | - sudo mk-build-deps --install ./debian/control |
70ee8336 | 46 | |
f163b202 SB |
47 | |
48 | Use the following sequence to build and install the Software TPM. | |
49 | ||
94af033e | 50 | ./autogen.sh --prefix=/usr |
f163b202 SB |
51 | make |
52 | make check | |
53 | make install | |
54 | ||
55 | ||
70ee8336 | 56 | To build an rpm on a Fedora or RHEL host do: |
f163b202 | 57 | |
f9227dda | 58 | ./autogen.sh |
f163b202 | 59 | make dist |
4608cc33 | 60 | rpmbuild -ta swtpm-*.tar.gz |
70ee8336 SB |
61 | |
62 | ||
63 | To build a Debian package on a Debian compatible host do: | |
64 | ||
b3c0b158 | 65 | echo "libtpms0 libtpms" > ./debian/shlibs.local |
70ee8336 | 66 | debuild -us -uc |