https://docs.snapcraft.io/build-snaps/parts
https://wiki.ubuntu.com/snapcraft/parts
Parts
Parts are reusable components that are the main building blocks used to create snaps using Snapcraft. Parts have their own private space and lifecycle. Each part uses a plugin, which tells the part how to behave and what to do with the information inside it. Parts are analogous to a library that you would call in your program. There are three types of parts:
-
Parts that use local files on your machine. For example:
parts:
hello:
plugin: nodejs
source: .
-
Parts from online sources, such as
git
,
bzr
, a tarball, or any code repository you like. For example:
parts:
godd:
plugin: go
source: https://github.com/mvo5/godd.git
gnu-hello:
plugin: autotools
source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
-
Parts built and shared by others through the
parts repository
. For example, using a part for
curl
defined in this repository:
parts:
client:
plugin: autotools
source: .
after: [curl]
以下是当前 Ubuntu 官方提供的几个 TPM 2.0 开发组件
origin: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm2
origin-type: git
maintainer: Canonical System Enablement <[email protected]>
description:
Part containing utilities to interact with a TPM 2.0 chip being part of
a computer system.
parts: [tpm2-tools]
origin: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm2
origin-type: git
maintainer: Canonical System Enablement <[email protected]>
description:
Implementation of the TPM 2.0 Software Stack (TSS).
See https://github.com/01org/TPM2.0-TSS for the upstream project
provided by this part and https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm2/
for the actual source code of this part.
parts: [tpm2-tss]
origin: https://git.launchpad.net/~checkbox-dev/plainbox-provider-tpm2/+git/plainbox-provider-tpm2-parts
origin-type: git
maintainer: Checkbox Developers <[email protected]>
description:
Tests to certify the correct functioning of TPM2 devices
parts: [plainbox-provider-tpm2]
TPM 1.2 组件
#origin: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm
origin: https://git.launchpad.net/~joetalbott/snappy-hwe-snaps/
origin-type: git
maintainer: Canonical System Enablement <[email protected]>
description:
Part containing utilities to interact with a TPM chip being part of
a computer system.
parts: [tpm-tools]
OpenSSH 组件
origin: https://github.com/mariogrip/openssh.git
maintainer: Marius Gripsgard <[email protected]>
description:
OpenSSH is the premier connectivity tool for remote login with the SSH protocol. It encrypts all traffic
to eliminate eavesdropping, connection hijacking, and other attacks. In addition, OpenSSH provides a
large suite of secure tunneling capabilities, several authentication methods, and sophisticated
configuration options.
parts: [openssh]