buildroot:rkt
rkt
A pod-native container engine
mkdir /data/buildroot/package/rkt cat > /data/buildroot/package/rkt/Config.in<< 'EOF' config BR2_PACKAGE_RKT bool "rkt" help A pod-native container engine EOF cat > /data/buildroot/package/rkt/rkt.mk<< 'EOF' ############################################################# # # rkt #https://github.com/rkt/rkt/archive/refs/tags/v1.30.0.tar.gz ############################################################# RKT_VERSION = 1.30.0 RKT_SOURCE = v$(RKT_VERSION).tar.gz RKT_SITE = https://github.com/rkt/rkt/archive/refs/tags define RKT_BUILD_CMDS cd $(@D)/ && \ ./autogen.sh && \ GO111MODULE=off GOROOT=/go GOPATH=$(@D)/go ./configure --enable-tpm=no --with-stage1-flavors=host && \ GO111MODULE=off GOROOT=/go GOPATH=$(@D)/go make -s && \ GO111MODULE=off GOROOT=/go GOPATH=$(@D)/go make bash-completion endef define RKT_INSTALL_TARGET_CMDS cd $(@D)/dist/init/systemd/ && \ for unit in rkt-gc.{timer,service} rkt-metadata.{socket,service}; do install -Dm644 "$(@D)/dist/init/systemd/$${unit}" "${TARGET_DIR}/usr/lib/systemd/system/$${unit}"; done install -Dm644 "$(@D)/dist/bash_completion/rkt.bash" "${TARGET_DIR}/usr/share/bash-completion/completions/rkt" install -Dm755 $(@D)/build-rkt-${RKT_VERSION}/target/bin/rkt "${TARGET_DIR}/usr/bin/rkt" install -Dm644 $(@D)/build-rkt-${RKT_VERSION}/target/bin/stage1-host.aci "${TARGET_DIR}/usr/lib/rkt/stage1.aci" endef $(eval $(generic-package)) EOF sed -i '/menu "Custom packages"/a source "package/rkt/Config.in"' /data/buildroot/package/Config.in
buildroot/rkt.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1