From nobody Wed Aug 9 07:25:08 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RLM5d115Bz4mLJ4; Wed, 9 Aug 2023 07:25:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLM5c1vxTz4Rwd; Wed, 9 Aug 2023 07:25:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691565908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jjvrDUdfjmIyqT4EGkiKh8C7LPtea6n3s8xxOmV15fw=; b=AG9yGTenXVSQ6f+HsTepBM+FOtqXW6TKC7H3ZFYuuYrL0kfGkPCjJcE25bqMrqVOGWNQYs KKFBkSRE3Mojs370UYOee4eS6v66DK837VgiFc8mplXZLvp9qz5Tk9YVAbH1yKw2nBMn9P dtlA6T8ssYT9dh/XpqRW9Grt+YG4BD6oXR7aTHzjlk2X9sMRMMINGTgE+sPZ6khYuSeMJX CamV8brW4+JOoQG79qq2havv1e42cCqCmbDYZdK3ZOlF/htj5RRz4ludBzm5gRZKvq7ukQ OHIZrzA+1vF0rm1wsMGu/Qd3Hpr4mFdFOO/ssX6lSGeLh2yFvkmQYHelivlYig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691565908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jjvrDUdfjmIyqT4EGkiKh8C7LPtea6n3s8xxOmV15fw=; b=ll0l+QPSuX1wFky4EKgl0bt7xfa4ephibxIkMabGaVQoc3LyRuOM1aldY72kUN/40zlS55 kiEUAgjLoACePfEzgv1lyqB7Lqnp1lpG/nkYAOf9lvnc4woS8LWxxlkxSEC6CTZSW+luLW t0UOyALnZ1GUNqmoNxdlfU8ROW1m9ZX+EeGJ+GKRuXyqmvN9RoBp4Ua/F1lH1OnZrwv4/+ zyMWh8yJJZWz0k4jKxRbInJ36pI3IP3ZIbvHsUVTCD1L9RIhCDU8Y5S7lWd8zLsXIVi9Mu 5goZTMpbd4EPFa8CKCbyHbX9SS9wU5be6cfQuCL5+klovsk7znrTDv/Ns2clkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691565908; a=rsa-sha256; cv=none; b=byRMXUvoFIg50IM42zwPGAe47eIEpy7fW3xJ905R/Qlj6ITXx2jYQOYOb03fQpIvN2I0AW FKrTtVZAWMGM/Dhlcj9LspfzWlqRX7vCxOj42684xAIzui7eSlrgaSCLcra5zHss0qkhnq 1aOG7sevTyu3Ovm4G9Kcr/T8wNXztfmr/0e+HlcryG2Pur6RgVDW0CucNXZZ/sGdEW8yoQ y1QdOXmsHIcga1jcYLbanUq9dHAgf08t/agEJp+VyefH7q9Lu0RP/YTOVJqxCu7N3pDX5w 4OTAkdLaBQcutTnixIjayw3eXMCt4j/enj4zjUJzi0FCSXK+H+l2fyA67Tl0oQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RLM5c0lxPz15sH; Wed, 9 Aug 2023 07:25:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3797P8NC023342; Wed, 9 Aug 2023 07:25:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3797P8gA023339; Wed, 9 Aug 2023 07:25:08 GMT (envelope-from git) Date: Wed, 9 Aug 2023 07:25:08 GMT Message-Id: <202308090725.3797P8gA023339@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Corvin =?utf-8?Q?K=C3=B6hne?= Subject: git: c3cfb98cbb5e - main - sysutils/swtpm: libtpms-based TPM emulator List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: corvink X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c3cfb98cbb5eefeac01fdba16ace5ee11c5100ab Auto-Submitted: auto-generated The branch main has been updated by corvink: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3cfb98cbb5eefeac01fdba16ace5ee11c5100ab commit c3cfb98cbb5eefeac01fdba16ace5ee11c5100ab Author: Goran Mekić AuthorDate: 2023-08-06 10:10:06 +0000 Commit: Corvin Köhne CommitDate: 2023-08-09 07:25:03 +0000 sysutils/swtpm: libtpms-based TPM emulator PR: 272973 Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D41346 --- sysutils/Makefile | 1 + sysutils/swtpm/Makefile | 31 +++++++++++++++++++++++++++++++ sysutils/swtpm/distinfo | 3 +++ sysutils/swtpm/pkg-descr | 3 +++ sysutils/swtpm/pkg-plist | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 70 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 2166f4a3b24b..34fb475d7f03 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1392,6 +1392,7 @@ SUBDIR += swapmon SUBDIR += swapusage SUBDIR += sweeper + SUBDIR += swtpm SUBDIR += symlinks SUBDIR += symon SUBDIR += synergy diff --git a/sysutils/swtpm/Makefile b/sysutils/swtpm/Makefile new file mode 100644 index 000000000000..48379a6019d6 --- /dev/null +++ b/sysutils/swtpm/Makefile @@ -0,0 +1,31 @@ +PORTNAME= swtpm +DISTVERSIONPREFIX= v +DISTVERSION= 0.8.0 +CATEGORIES= sysutils + +MAINTAINER= meka@tilda.center +COMMENT= Libtpms-based TPM emulator +WWW= https://github.com/stefanberger/swtpm + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libgnutls.so:security/gnutls \ + libjson-glib-1.0.so:devel/json-glib \ + libtasn1.so:security/libtasn1 \ + libtpms.so:sysutils/libtpms +BUILD_DEPENDS= base64>=0:converters/base64 \ + bash>=0:shells/bash \ + expect>=0:lang/expect \ + gawk>=0:lang/gawk \ + socat>=0:net/socat + +USES= autoreconf gettext-runtime gmake gnome libtool pathfix \ + pkgconfig ssl +USE_GNOME+= glib20 +USE_GITHUB= yes +GH_ACCOUNT= stefanberger +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip + +.include diff --git a/sysutils/swtpm/distinfo b/sysutils/swtpm/distinfo new file mode 100644 index 000000000000..1afafb302eee --- /dev/null +++ b/sysutils/swtpm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691312802 +SHA256 (stefanberger-swtpm-v0.8.0_GH0.tar.gz) = ad433f9272fb794aafd550914d24cc0ca33d4652cfd087fa41b911fa9e54be3d +SIZE (stefanberger-swtpm-v0.8.0_GH0.tar.gz) = 363951 diff --git a/sysutils/swtpm/pkg-descr b/sysutils/swtpm/pkg-descr new file mode 100644 index 000000000000..08a3d08f64f6 --- /dev/null +++ b/sysutils/swtpm/pkg-descr @@ -0,0 +1,3 @@ +The SWTPM package provides TPM emulators with different front-end interfaces +to libtpms. TPM emulators provide socket interfaces (TCP/IP and Unix) and +the Linux CUSE interface for the creation of multiple native /dev/vtpm* devices. diff --git a/sysutils/swtpm/pkg-plist b/sysutils/swtpm/pkg-plist new file mode 100644 index 000000000000..47d4aa5f670e --- /dev/null +++ b/sysutils/swtpm/pkg-plist @@ -0,0 +1,32 @@ +bin/swtpm +bin/swtpm_bios +bin/swtpm_cert +bin/swtpm_ioctl +bin/swtpm_localca +bin/swtpm_setup +%%ETCDIR%%-localca.conf +%%ETCDIR%%-localca.options +%%ETCDIR%%_setup.conf +include/swtpm/tpm_ioctl.h +lib/swtpm/libswtpm_libtpms.a +lib/swtpm/libswtpm_libtpms.so +lib/swtpm/libswtpm_libtpms.so.0 +lib/swtpm/libswtpm_libtpms.so.0.0.0 +man/man3/swtpm_ioctls.3.gz +man/man5/swtpm-localca.conf.5.gz +man/man5/swtpm-localca.options.5.gz +man/man5/swtpm_setup.conf.5.gz +man/man8/swtpm-create-tpmca.8.gz +man/man8/swtpm-localca.8.gz +man/man8/swtpm.8.gz +man/man8/swtpm_bios.8.gz +man/man8/swtpm_cert.8.gz +man/man8/swtpm_cuse.8.gz +man/man8/swtpm_ioctl.8.gz +man/man8/swtpm_localca.8.gz +man/man8/swtpm_setup.8.gz +%%DATADIR%%/swtpm-create-tpmca +%%DATADIR%%/swtpm-create-user-config-files +%%DATADIR%%/swtpm-localca +@dir /var/lib/swtpm-localca +@dir /var/lib