This commit is contained in:
*****DEAD ACCOUNT 2021-03-15 01:04:56 -04:00
commit f5ac532027
No known key found for this signature in database
GPG Key ID: 7AF3499CBA8E6251
6 changed files with 1320 additions and 0 deletions

8
README.md Normal file

@ -0,0 +1,8 @@
# Quickstart
- fetch `wget -P stage3 -r -A .tar.xz ftp://ftp.oregonstate.edu/pub/gentoo/releases`
- import `docker import stage3-whichever.tar.xz gentoo:whatever`
# Notes
- Run cross arch containers with binfmt https://github.com/multiarch/qemu-user-static

11
vanilla/README.md Normal file

@ -0,0 +1,11 @@
```
docker run -it --rm \
-v $PWD/gentoo-distfiles:/var/cache/distfiles \
-v $PWD/gentoo-binpkgs:/var/cache/binpkgs \
-v $PWD/gentoo-layman:/var/lib/layman \
-v $PWD/gentoo-repos:/var/db/repos \
-v $PWD/gentoo-etc:/etc/portage \
gentoo /bin/bash
```

@ -0,0 +1,41 @@
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
LC_MESSAGES=C
USE="mmx sse sse2 ssse3 sse4_1 sse4_2 zsh-completion bash-completion ipv6 threads"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
GRUB_PLATFORMS="efi-64"
VIDEO_CARDS="intel nvidia"
INPUT_DEVICES="evdev keyboard mouse synaptics wacom joystick"
QEMU_SOFTMMU_TARGETS="*"
QEMU_USER_TARGETS="*"
LINGUAS="en en_US"
MAKEOPTS="-j7 -l7"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs=7 --load-average=7 -va --newuse"
ACCEPT_LICENSE="*"
FEATURES="buildpkg -pid-sandbox -ipc-sandbox -network-sandbox"

@ -0,0 +1 @@
../../var/db/repos/gentoo/profiles/default/linux/amd64/17.1

@ -0,0 +1,64 @@
#!/bin/bash
# Example /etc/portage/repo.postsync.d script. Make it executable (chmod +x) for
# Portage to process it.
#
# With portage-2.2.16 and newer, all repo.postsync.d hooks will be called multiple
# times after syncing each repository.
#
# Older versions of Portage support syncing only one repository.
# In those versions, the postsync.d hooks will be called only once,
# and they will not be passed any parameters.
# On a repo.postsync.d hook call, positional parameters contain
# information about the just-synced repository.
# Your hook can control it's actions depending on any of the three
# parameters passed in to it.
#
# They are as follows:
#
# The repository name.
repository_name=${1}
# The URI to which the repository was synced.
sync_uri=${2}
# The path to the repository.
repository_path=${3}
# Portage assumes that a hook succeeded if it exits with 0 code. If no
# explicit exit is done, the exit code is the exit code of last spawned
# command. Since our script is a bit more complex, we want to control
# the exit code explicitly.
ret=0
if [ -n "${repository_name}" ]; then
# Repository name was provided, so we're in a post-repository hook.
echo "* In post-repository hook for ${repository_name}"
echo "** synced from remote repository ${sync_uri}"
echo "** synced into ${repository_path}"
# Gentoo comes with pregenerated cache but the other repositories
# usually don't. Generate them to improve performance.
if [ "${repository_name}" != "gentoo" ]; then
if ! egencache --update --repo="${repository_name}" --jobs=4
then
echo "!!! egencache failed!"
ret=1
fi
fi
fi
if [ -n "${repository_name}" ] && ! [ -e "${repository_path}/metadata/pkg_desc_index" ]; then
# Regenerate the metadata/pkg_desc_index file. This is not
# needed for https://gitweb.gentoo.org/repo/sync/gentoo.git which
# provides a freshly generated copy. The --external-cache-only
# option causes the metadata/pkg_desc_index file to be written under
# /var/cache/edb/dep instead of the repository itself, so that it
# does not interfere with repository verification.
if ! egencache --update-pkg-desc-index --external-cache-only --repo="${repository_name}" ${PORTAGE_VERBOSE+--verbose}
then
echo "!!! egencache failed!"
ret=1
fi
fi
# Return explicit status.
exit "${ret}"

File diff suppressed because it is too large Load Diff