Initial commit

This commit is contained in:
2023-02-13 17:52:13 -06:00
commit 025b7c6115
90 changed files with 5010 additions and 0 deletions

26
podman-build.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
set -e
. ./config
cid=$(podman run \
--tmpfs /var/tmp \
--tmpfs /usr/${target}/tmp \
-v portage:/var/db/repos/gentoo \
-v packages:/var/cache/binpkgs \
-v distfiles:/var/cache/distfiles \
-v packages:/usr/${target}/var/cache/binpkgs \
-v ${PWD}:/tmp/build:rw,z \
-w /tmp/build \
-d \
-e FEATURES='-ipc-sandbox -network-sandbox -pid-sandbox' \
cross-${target} \
python -c 'from signal import *;signal(SIGTERM, lambda x, y: None);pause()'
)
podman exec -it ${cid} ./build-all.sh "${target}"
podman stop ${cid}
podman rm ${cid}