games-util/pyfa:Version bump
This commit is contained in:
parent
6a9d5e5019
commit
6117d8f6e1
@ -3,5 +3,5 @@ AUX pyfa-1.1.11-import-pyfa.patch 880 SHA256 7a261bf8cb09845ec93f756437603abb132
|
||||
AUX pyfa-1.1.20-staticPath.patch 870 SHA256 3758e6c463650546be4c74241c55412652ca0c8e4f62261be76ea3e984fac9d0 SHA512 34aa6812a25d8d0f33976e74cb109040ae515042ab228fb14583038f0a87f43d09fd43d869ebe617076f1308df11bd943fca397fb9c80f95daddc591bbd824c0 WHIRLPOOL a9e3123233cd5e88b8821c7844dd1d01da84102c5f2fc29112b26f29edca34aa458ba1c9742c914c7751e0afa803ff0e0b584ecbd4aae85710a64a901c88d5a9
|
||||
AUX pyfa-1.1.8-html-export-path.patch 1219 SHA256 dfe776e75631750d3e18eba2d835359ba32d77ef8bec3db0fa74fd762dc3a7b6 SHA512 d60ce241af9228d18cccd74b2c6fbf81e40c17c4a396f4771c1ab44aa84b5fdb29fc859f1b5e7d9b097f3fc38e409e6f20593c73d674ea923e5564faa4f4cd45 WHIRLPOOL 8be74bf7f6224856279a21df2949856e98f2c2c1c9e358fa9518fc67b06693f350b96d8efe8e8f46e992e0983fa8a1ca775f9c9696e0e6c419a9c35caa9bf8b4
|
||||
AUX pyfa.desktop 155 SHA256 c395891d87eaaac64e3ba7954d623efaf161d906527099ed4b0c680c63a041eb SHA512 d62a44e4e724057581a360cc1eb10aa4c7a0c50cb1d95137e58ba14db17644c852da2582be8d508c50b7359e7f99dc893d78d15cb11c46967a9b7896ff667781 WHIRLPOOL 3f68f0cd6942380fc040a3578b054ea7cdb86fbd751ed17aa1fe1e1eda3c7ee6c35645c28c6529605856d5e74765ccd7037abe96c3efe2a5a54cc7fcb6c53793
|
||||
DIST v1.5.1.zip 6904483 SHA256 12c32968d59f5d3c3823eafd8d0f9fefd834cb5bd26111a69e96b6fc5e7e25a3 SHA512 66a6273dedc56eea4d2e825368433ff71c3cab7cbaa9b398b18c697fc15e4ecfad969acd68b6e986d6c0ad98fa543ad9e4b1b2f19f6dab1b2d7efdd50add0c64 WHIRLPOOL 8fcaef8d7b17bd55adc8e2fe0bba404e997027290edad051451f585d97c3aebb96461b6e5d8609276c3c9e070148cc93facb9bf390a79d7f997ab3f752b266a2
|
||||
EBUILD pyfa-1.5.1.ebuild 2592 SHA256 a746def8f89c299d89c9232dd259f0851634c1b9a792a915317c4349fddd2360 SHA512 af1707a89cbf99c889c4e2c9c1a23246e5094cb92a7f260909d390d8380e6af493d900b61e8370f452bf1cac922f0601ba425d549b8e23a65cc797f8b28c95b3 WHIRLPOOL ca92a3ae550cdbb959306e7053d14b629dac76689aa88ef37fa8f6d2c4064d996329382ce7e903aecfd22b651358add265e2f3fdd0c0a57e58cc9a238f1164d8
|
||||
DIST v1.6.0.zip 6940977 SHA256 f82313d79488be0b9ef9523ed9d80dd138e8fb02a7b99c3530779bdb515d5211 SHA512 521cf6e4d52b1a95f777dff2612240ebfbd2c566d0e20963d3eb2640fe69793e3d6eb36953eefa3fab8fb703ec2f764d04fff8947b3cedfb0f9e4962e4ecea8a WHIRLPOOL 3d0726a0cddb979d1e2e9d312bf5eb27ed81640fc0ab5bc8017f3edfcb46af46249b0c36196348f949381844ea48cc010483544d193b1b1d4f20e3680bf4e791
|
||||
EBUILD pyfa-1.6.0.ebuild 2592 SHA256 a746def8f89c299d89c9232dd259f0851634c1b9a792a915317c4349fddd2360 SHA512 af1707a89cbf99c889c4e2c9c1a23246e5094cb92a7f260909d390d8380e6af493d900b61e8370f452bf1cac922f0601ba425d549b8e23a65cc797f8b28c95b3 WHIRLPOOL ca92a3ae550cdbb959306e7053d14b629dac76689aa88ef37fa8f6d2c4064d996329382ce7e903aecfd22b651358add265e2f3fdd0c0a57e58cc9a238f1164d8
|
||||
|
336
scripts/build.sh
336
scripts/build.sh
@ -1,336 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# - builds a generic image from a stage3 tarball and portage snapshot
|
||||
#
|
||||
# based on work from JD Harrington https://github.com/psi/gentoo-aws
|
||||
# and Matsuu Takuto https://gist.github.com/870789
|
||||
|
||||
#===============================================================================
|
||||
GENTOO_MIRROR="http://distfiles.gentoo.org"
|
||||
LOCAL_CACHE=/var/tmp
|
||||
CHROOT=/mnt/gentoo
|
||||
|
||||
|
||||
set -o nounset
|
||||
|
||||
die() {
|
||||
echo $@
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
verify_digest() {
|
||||
local FILE_NAME=$1
|
||||
local TYPE=$2
|
||||
local DIGEST=$3
|
||||
local PURGE=$4
|
||||
|
||||
case $TYPE in
|
||||
sha512)
|
||||
FILE_DIGEST=$(sha512sum ${FILE_NAME} | awk '{print $1}')
|
||||
;;
|
||||
md5)
|
||||
FILE_DIGEST=$(md5sum ${FILE_NAME} | awk '{print $1}')
|
||||
;;
|
||||
*)
|
||||
echo "Unknown DIGEST"
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "${FILE_DIGEST}" = "${DIGEST}" ]; then
|
||||
echo "${TYPE} checksum for ${FILE_NAME} verified."
|
||||
return 0
|
||||
else
|
||||
echo "Invalid checksum for ${FILE_NAME}!"
|
||||
[ "x${PURGE}" != "x" ] && { echo "Removing cached copy." ; rm -f ${FILE_NAME}; }
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
fetch_file() {
|
||||
local URL=$1
|
||||
local DIGEST_URL=$2
|
||||
|
||||
local FILE_NAME=$(basename ${URL})
|
||||
|
||||
local DIGEST_TYPE
|
||||
|
||||
# Check cache
|
||||
if [ ! -d ${LOCAL_CACHE} ] || [ ! -w ${LOCAL_CACHE} ]; then
|
||||
echo "Cannot write to cache ${LOCAL_CACHE}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# If DIGEST requested get it
|
||||
if [ ! -z ${DIGEST_URL} ]; then
|
||||
DIGEST=$(curl -s -S ${DIGEST_URL} | grep -A1 -e "^# SHA512 HASH" | grep -o -E -e "^[0-9a-f]{128} *${FILE_NAME}$" | awk '{print $1}')
|
||||
if [ -z ${DIGEST} ]; then
|
||||
# Let's try md5sum before giving up
|
||||
DIGEST=$(curl -s -S ${DIGEST_URL} | grep -o -E -e "^[0-9a-f]{32} *${FILE_NAME}$" | awk '{print $1}')
|
||||
if [ -z ${DIGEST} ]; then
|
||||
echo "Unable to get checksum for ${FILE_NAME}, abort"
|
||||
return 2
|
||||
fi
|
||||
DIGEST_TYPE="md5"
|
||||
else
|
||||
DIGEST_TYPE="sha512"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Do we have local copy
|
||||
if [ -f ${LOCAL_CACHE}/${FILE_NAME} ]; then
|
||||
verify_digest ${LOCAL_CACHE}/${FILE_NAME} $DIGEST_TYPE ${DIGEST} 1
|
||||
if [ $? -eq 0 ]; then
|
||||
cp ${LOCAL_CACHE}/${FILE_NAME} .
|
||||
echo "Using cached ${LOCAL_CACHE}/${FILE_NAME}"
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# We we are here either we didnt have a copy or the cached file was invalid
|
||||
wget -q -O ${LOCAL_CACHE}/${FILE_NAME} ${URL}
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Downloaded ${URL} to ${LOCAL_CACHE}/${FILE_NAME}"
|
||||
|
||||
verify_digest ${LOCAL_CACHE}/${FILE_NAME} $DIGEST_TYPE ${DIGEST} 1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Could not get a verified version of ${FILE_NAME}"
|
||||
return 3
|
||||
fi
|
||||
cp ${LOCAL_CACHE}/${FILE_NAME} .
|
||||
else
|
||||
echo "Cannot download ${URL}!"
|
||||
return 4
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# bootstrap, download stage3 and portage snapshot
|
||||
bootstrap() {
|
||||
|
||||
[ -d ${CHROOT} ] || die "${CHROOT} does not exists"
|
||||
[ -w ${CHROOT} ] || die "${CHROOT} isn't writable"
|
||||
|
||||
cd ${CHROOT}
|
||||
|
||||
# first install stage 3
|
||||
if [ -d "usr" ] ; then
|
||||
echo "There seems to be already files in ${CHROOT} !"
|
||||
echo "Press <Ctrl+c> to abort, or <Return> to proceed without extracting stage3 ..."
|
||||
read -r REPLY
|
||||
else
|
||||
STAGE_TARBALL=${GENTOO_MIRROR}/releases/${ARCH}/autobuilds/$(curl -s ${LATEST_STAGE_FILE} | grep -v "^#" | head -n 1)
|
||||
|
||||
fetch_file "${STAGE_TARBALL}" "${STAGE_TARBALL}.DIGESTS" || die "Cannot get ${STAGE_TARBALL}"
|
||||
|
||||
echo "Extracting stage3 to ${CHROOT} ..."
|
||||
tar jxpf $(basename ${STAGE_TARBALL}) || die "Extracting stage3 failed"
|
||||
|
||||
rm -f $(basename ${STAGE_TARBALL})
|
||||
fi
|
||||
|
||||
# Portage snapshot
|
||||
PORTAGE_SNAPSHOT="${GENTOO_MIRROR}/releases/snapshots/current/portage-latest.tar.bz2"
|
||||
_PORTAGE_MOUNTED=0
|
||||
|
||||
if [ "x${BIND_PORTAGE}" != "x" -a -d ${BIND_PORTAGE} ] ; then
|
||||
mkdir -p ${CHROOT}/usr/portage
|
||||
mount --bind ${BIND_PORTAGE} ${CHROOT}/usr/portage || die "Error mounting ${BIND_PORTAGE}"
|
||||
|
||||
# Remember we mounted portage
|
||||
_PORTAGE_MOUNTED=1
|
||||
else
|
||||
# install latest portage snapshot
|
||||
if [ -d "usr/portage" ] ; then
|
||||
echo "There seems to be already portage files!"
|
||||
echo "Press <Ctrl+c> to abort, or <Return> to proceed without extracting portage ..."
|
||||
read -r REPLY
|
||||
else
|
||||
fetch_file "${PORTAGE_SNAPSHOT}" "${PORTAGE_SNAPSHOT}.md5sum"
|
||||
echo "Extracting latest portage snapshot to ${CHROOT}/usr ..."
|
||||
tar jxf $(basename ${PORTAGE_SNAPSHOT}) -C "${CHROOT}/usr" || die "Extracting portage snapshot failed"
|
||||
rm -f portage-latest.tar.bz2
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# setup_chroot CHROOT
|
||||
setup_chroot() {
|
||||
|
||||
# mount pseudo filesystems
|
||||
mount -t proc none ${CHROOT}/proc || die "Error mounting /proc"
|
||||
mount --rbind /dev ${CHROOT}/dev || die "Error mounting /dev"
|
||||
mount --rbind /sys ${CHROOT}/sys || die "Error mounting /sys"
|
||||
}
|
||||
|
||||
|
||||
# Actually prepare the install script running within chroot
|
||||
# and run it
|
||||
install_gentoo() {
|
||||
|
||||
if [ ${INTERACTIVE} = 1 ]; then
|
||||
echo "Done. Entering chroot environment. All yours..."
|
||||
chroot ${CHROOT} /bin/bash
|
||||
else
|
||||
# resolve.conf
|
||||
echo "Copy resolv.conf from host"
|
||||
cp -L /etc/resolv.conf ${CHROOT}/etc/resolv.conf || die "Can't copy resolv.conf"
|
||||
|
||||
# Install make.conf
|
||||
if [ "x${MAKE_CONF}" != "x" ]; then
|
||||
[ -r ${MAKE_CONF} ] || die "Cannot read ${MAKE_CONF}"
|
||||
|
||||
echo "Using custom make.conf"
|
||||
cp ${MAKE_CONF} ${CHROOT}/etc/portage/
|
||||
fi
|
||||
|
||||
# From here we create the install script and execute it within the chroot at the end
|
||||
cat << 'EOF' > ${CHROOT}/tmp/install.sh
|
||||
#!/bin/bash
|
||||
set -x
|
||||
|
||||
source /etc/profile
|
||||
export PS1="(chroot) $PS1"
|
||||
EOF
|
||||
# Sync portage if not mounted
|
||||
if [ ${_PORTAGE_MOUNTED} = 0 ]; then
|
||||
cat << 'EOF' >> ${CHROOT}/tmp/install.sh
|
||||
echo "Syncing portage snapshot..."
|
||||
emerge -p --sync --quiet
|
||||
EOF
|
||||
fi
|
||||
|
||||
# eselect profile
|
||||
cat << EOF >> ${CHROOT}/tmp/install.sh
|
||||
echo "Setting profile to ${ESELECT_PROFILE}"
|
||||
eselect profile set ${ESELECT_PROFILE}
|
||||
EOF
|
||||
|
||||
# Set Timezone
|
||||
|
||||
# Configure locales
|
||||
|
||||
# Compile own kernel later
|
||||
# boot + kernel + lib/modules
|
||||
|
||||
# /etc/fstab
|
||||
chmod 755 ${CHROOT}/tmp/install.sh
|
||||
chroot ${CHROOT} /tmp/install.sh
|
||||
|
||||
echo "Done !"
|
||||
echo "Press <Return> to tear down the chroot environment once you are done."
|
||||
read -r REPLY
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Clean up host
|
||||
cleanup() {
|
||||
umount ${CHROOT}/dev/pts ${CHROOT}/dev ${CHROOT}/sys ${CHROOT}/proc
|
||||
|
||||
if [ ${_PORTAGE_MOUNTED} != 0 ]; then
|
||||
umount ${CHROOT}/usr/portage
|
||||
else
|
||||
rm -rf ${CHROOT}/usr/portage/distfiles/*
|
||||
fi
|
||||
|
||||
# Clean up chroot
|
||||
rm -rf ${CHROOT}/tmp/*
|
||||
rm -rf ${CHROOT}/var/tmp/*
|
||||
}
|
||||
|
||||
|
||||
# print usage
|
||||
usage() {
|
||||
cat << EOF
|
||||
Usage: $0 [options]
|
||||
|
||||
This script builds a full Gentoo chroot
|
||||
|
||||
OPTIONS:
|
||||
-h Show this message
|
||||
-a arch, either i686 or x86_64, defaults to uname -m
|
||||
-p profile, [ hardened | hardened-no-multilib | default *]
|
||||
-t The timezone to use, default to GMT
|
||||
-r chroot location (default $CHROOT )
|
||||
-c local cache (default $LOCAL_CACHE)
|
||||
-b bind mount portage tree from, instead of downloading portage snapshot
|
||||
-i interactive, enter chroot only, do NOT run install script
|
||||
-m use custom make.conf
|
||||
-d debug (set -x)
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
DEBUG=0
|
||||
INTERACTIVE=0
|
||||
MAKE_CONF=""
|
||||
BIND_PORTAGE=""
|
||||
while getopts ":a:p:t:r:c:m:b:dhi" OPTIONS; do
|
||||
case $OPTIONS in
|
||||
a ) ARCH=$OPTARG;;
|
||||
p ) PROFILE=$OPTARG;;
|
||||
t ) TIMEZONE=$OPTARG;;
|
||||
d ) DEBUG=1;;
|
||||
b ) BIND_PORTAGE=$OPTARG;;
|
||||
r ) CHROOT=$OPTARG;;
|
||||
c ) LOCAL_CACHE=$OPTARG;;
|
||||
i ) INTERACTIVE=1;;
|
||||
m ) MAKE_CONF=$OPTARG;;
|
||||
? )
|
||||
usage
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Do some sanity checks first
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
die "Sorry, but we need root permissions to create DEVICE nodes etc.!"
|
||||
fi
|
||||
|
||||
ARCH=${ARCH-"$(uname -m)"}
|
||||
PROFILE=${PROFILE="default"}
|
||||
TIMEZONE=${TIMEZONE-"GMT"}
|
||||
|
||||
if [ "${ARCH}" = "i686" ] ; then
|
||||
# Why do they use x86 here ? :(
|
||||
STAGE_PATH="${GENTOO_MIRROR}/releases/x86/autobuilds"
|
||||
elif [ "${ARCH}" = "x86_64" ] ; then
|
||||
ARCH="amd64"
|
||||
STAGE_PATH="${GENTOO_MIRROR}/releases/${ARCH}/autobuilds"
|
||||
elif [ "${ARCH}" = "amd64" ] ; then
|
||||
STAGE_PATH="${GENTOO_MIRROR}/releases/${ARCH}/autobuilds"
|
||||
else
|
||||
die "Unknown architecture!"
|
||||
fi
|
||||
|
||||
if [ "${PROFILE}" = "hardened" ] ; then
|
||||
LATEST_STAGE_FILE="${STAGE_PATH}/latest-stage3-${ARCH}-hardened.txt"
|
||||
ESELECT_PROFILE="hardened/linux/${ARCH}"
|
||||
elif [ "${PROFILE}" = "hardened-no-multilib" ] ; then
|
||||
LATEST_STAGE_FILE="${STAGE_PATH}/latest-stage3-${ARCH}-hardened+nomultilib.txt"
|
||||
ESELECT_PROFILE="hardened/linux/${ARCH}/no-multilib"
|
||||
elif [ "${PROFILE}" = "default" ] ; then
|
||||
LATEST_STAGE_FILE="${STAGE_PATH}/latest-stage3-${ARCH}.txt"
|
||||
ESELECT_PROFILE="default/linux/${ARCH}/13.0"
|
||||
else
|
||||
die "Unknown profile!"
|
||||
fi
|
||||
|
||||
if [ ${DEBUG} -eq 1 ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
bootstrap
|
||||
|
||||
# From here make sure we don't leave stuff around on the host
|
||||
trap "cleanup" INT TERM EXIT
|
||||
|
||||
setup_chroot
|
||||
|
||||
install_gentoo
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +0,0 @@
|
||||
https://github.com/psi/gentoo-aws/blob/93d3bf2498c572832778a853b9307e47ef7f5b5b/scripts/build-stage3-image.sh
|
||||
https://raw.github.com/gist/870789/bf45e6c5b370445fc3c19111af0dd5eec4097480/create_gentoo_ami.sh
|
||||
http://www.agaffney.org/quickstart.php
|
||||
http://dev.gentoo.org/~swift/docs/gensetup-guide.xml
|
||||
http://rich0gentoo.wordpress.com/2010/04/02/gentoo-on-ec2-from-scratch/
|
||||
|
||||
http://gentoo.arcticnetwork.ca/releases/amd64/autobuilds/
|
||||
|
Loading…
Reference in New Issue
Block a user