Source: swtpm
Maintainer: Stefan Berger <stefanb@linux.vnet.ibm.com>
Section: misc
Priority: optional
Standards-Version: 4.5.1
Rules-Requires-Root: no
Build-Depends: debhelper (>= 10),
               dh-apparmor,
               expect,
               gawk,
               gnutls-bin,
               gnutls-dev,
               libfuse-dev,
               libglib2.0-dev,
               libgmp-dev,
               libjson-glib-dev,
               libseccomp-dev,
               libssl-dev,
               libtasn1-dev,
               libtool,
               libtpms-dev,
               net-tools,
               socat,
               softhsm2

Package: swtpm
Architecture: any
Depends: swtpm-libs (= ${binary:Version}),
         ${misc:Depends},
         ${shlibs:Depends}
Description: Libtpms-based TPM emulator
 The swtpm package provides TPM emulators that listen for TPM commands
 on sockets, character devices, or CUSE devices.

Package: swtpm-dev
Architecture: any
Depends: ${misc:Depends}
Description: Include files for the TPM emulator's CUSE interface
 The swtpm-dev package provides include files for developing clients
 controlling the CUSE TPM through ioctls.

Package: swtpm-libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: libglib2.0-0,
         libtpms0,
         openssl,
         ${misc:Depends},
         ${shlibs:Depends}
Description: Common libraries for TPM emulators
 The swtpm-libs package provides the shared libraries for the swtpm
 and swtpm-cuse packages.

Package: swtpm-tools
Architecture: any
Description: Tools for the TPM emulator
 The swtpm-tools package contains the following types of tools:
  - swtpm_bios: Tool for initializing the TPM
  - swtpm_ioctl: Tool for controlling the CUSE TPM
  - swtpm_setup: Tool for creating the initial state of the TPM; this
      tool basically simulates TPM manufacturing where certificates are
      written into the NVRAM of the TPM
  - swtpm_cert: Creation of certificates for the TPM (x509)
Depends: gnutls-bin,
         swtpm (= ${binary:Version}),
         ${misc:Depends},
         ${shlibs:Depends}
Suggests: trousers (>= 0.3.9)
