101.5. tpm2-tss-4.2.0
The TPM2 software stack — what talks to the chip that can hold a disk key
4.2.0-1 · BSD-2-Clause · 0.7 SBU · 4.4 MiB, 137 files · 41_system, 38 of 1047 · ports/core/crypto/tpm2-tss
Homepage: https://github.com/tpm2-software/tpm2-tss
Why it is in KDOS. The comment above tpm2-tss and tpm2-tools in script/phases/41_system/packages.d/crypto.txt:
The TPM2 stack, so a LUKS key can be sealed to the chip instead of typed on every boot.
Depends on: openssl, json-c, curl, util-linux, libusb, libftdi, libtpms.
Required by (5): fwupd, gnupg, gnutls, openconnect, tpm2-tools.
Sources: tpm2-tss-4.2.0.tar.gz (1.9 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install tpm2-tss'
build.sh:
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
--localstatedir=/var \
--disable-static \
--disable-doxygen-doc \
--enable-fapi \
--enable-policy \
--enable-tcti-spidev \
--enable-tcti-spi-ltt2go \
--enable-tcti-spi-ftdi \
--enable-tcti-i2c-ftdi \
--enable-tcti-libtpms \
--with-udevrulesdir=/usr/lib/udev/rules.d \
--with-runstatedir=/run \
--with-sysusersdir=no \
--with-tmpfilesdir=no
make
make DESTDIR=$PKG install
rm -rf "$PKG/run"
Libraries: libtss2-esys.so, libtss2-fapi.so, libtss2-mu.so, libtss2-policy.so, libtss2-rc.so, libtss2-sys.so, libtss2-tcti-cmd.so, libtss2-tcti-device.so, libtss2-tcti-i2c-ftdi.so, libtss2-tcti-i2c-helper.so, libtss2-tcti-libtpms.so, libtss2-tcti-mssim.so, libtss2-tcti-null.so, libtss2-tcti-pcap.so, libtss2-tcti-spi-ftdi.so, libtss2-tcti-spi-helper.so, libtss2-tcti-spi-ltt2go.so, libtss2-tcti-spidev.so, libtss2-tcti-swtpm.so, libtss2-tctildr.so.
Directories: /etc/tpm2-tss, /usr/include/tss2, /usr/share/licenses/tpm2-tss, /var/lib/tpm2-tss.