mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 07:21:14 +02:00
Add go-tspi ebuild
This commit is contained in:
parent
0e10b5e67c
commit
4d5f05c722
10
sdk_container/src/third_party/coreos-overlay/app-crypt/go-tspi/files/tpmd.service
vendored
Normal file
10
sdk_container/src/third_party/coreos-overlay/app-crypt/go-tspi/files/tpmd.service
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=TPM remote access daemon
|
||||||
|
Requires=tcsd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=tss
|
||||||
|
ExecStart=/bin/tpmd
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
1
sdk_container/src/third_party/coreos-overlay/app-crypt/go-tspi/go-tspi-0.1.ebuild
vendored
Symbolic link
1
sdk_container/src/third_party/coreos-overlay/app-crypt/go-tspi/go-tspi-0.1.ebuild
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
go-tspi-9999.ebuild
|
31
sdk_container/src/third_party/coreos-overlay/app-crypt/go-tspi/go-tspi-9999.ebuild
vendored
Normal file
31
sdk_container/src/third_party/coreos-overlay/app-crypt/go-tspi/go-tspi-9999.ebuild
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit coreos-go eutils git-r3 systemd
|
||||||
|
COREOS_GO_PACKAGE="github.com/coreos/go-tspi"
|
||||||
|
EGIT_REPO_URI="git://github.com/coreos/go-tspi.git"
|
||||||
|
|
||||||
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
|
KEYWORDS="~amd64 ~arm64"
|
||||||
|
else
|
||||||
|
EGIT_COMMIT="9c5928e0350d9829e4d144b461884a259a176dbc"
|
||||||
|
KEYWORDS="amd64 arm64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
KEYWORDS="amd64 arm64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
RDEPEND="app-crypt/trousers"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
go_build "${COREOS_GO_PACKAGE}/tpmd"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin ${GOBIN}/*
|
||||||
|
systemd_dounit "${FILESDIR}"/tpmd.service
|
||||||
|
systemd_enable_service multi-user.target tpmd.service
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user