diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-09-27 20:09:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-09-27 20:09:28 +0000 |
commit | 8f27ffc2e549d38c3989fe738b72139164c340f5 (patch) | |
tree | 9bb75fd5b2043c2e68a12c63783eb36a0ab1b3c8 /scripts | |
parent | Stable on sparc (diff) | |
download | historical-8f27ffc2e549d38c3989fe738b72139164c340f5.tar.gz historical-8f27ffc2e549d38c3989fe738b72139164c340f5.tar.bz2 historical-8f27ffc2e549d38c3989fe738b72139164c340f5.zip |
old stuff; use catalyst
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/autobuildimg.sh | 33 | ||||
-rw-r--r-- | scripts/autobuildimgppc.sh | 52 | ||||
-rw-r--r-- | scripts/autocompile.sh | 135 | ||||
-rw-r--r-- | scripts/autodist.sh | 167 | ||||
-rw-r--r-- | scripts/autoinstaller.sh | 103 | ||||
-rw-r--r-- | scripts/autosysimg.sh | 56 | ||||
-rw-r--r-- | scripts/build-dyn.sh | 19 | ||||
-rw-r--r-- | scripts/build.sh | 19 | ||||
-rw-r--r-- | scripts/sortpkglist.py | 45 |
9 files changed, 0 insertions, 629 deletions
diff --git a/scripts/autobuildimg.sh b/scripts/autobuildimg.sh deleted file mode 100644 index 5966968fe7de..000000000000 --- a/scripts/autobuildimg.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -export USE=build -export CFLAGS="-O2 -mcpu=i486 -march=i486 -O2 -pipe" -export CXXFLAGS="${CFLAGS}" -export CHOST="i486-pc-linux-gnu" -export ROOT=/tmp/autobuildimg -export STEPS="clean unpack compile install qmerge clean" - -TODAY=`date '+%Y%m%d'` - -[ -z "${PORTDIR}" ] && PORTDIR=/usr/portage -[ -z "${BUILDTARBALL}" ] && BUILDTARBALL="build-${TODAY}.tbz2" -[ -z "${BUILD_PACKAGES}" ] && BUILD_PACKAGES=`ls -1 ${PORTDIR}/files/build-*.packages | sort | tail -1` -mkdir -p ${PORTDIR}/distribution - -echo ">>> Cleaning up ${ROOT}..." -rm -rf "${ROOT}" -mkdir -p "${ROOT}" - -scripts/autocompile.sh "${BUILD_PACKAGES}" - -rm -rf "${ROOT}/tmp" -mkdir -p ${ROOT}/tmp -chown root.root ${ROOT}/tmp -chmod 1777 ${ROOT}/tmp -mv ${ROOT}/var/db/pkg ${ROOT}/var/db/pkg.build - -echo ">>> Creating ${BUILDTARBALL}..." -cd ${ROOT} -tar -cj --numeric-owner -p -f "${PORTDIR}/distribution/${BUILDTARBALL}" . - -rm -rf ${ROOT} diff --git a/scripts/autobuildimgppc.sh b/scripts/autobuildimgppc.sh deleted file mode 100644 index 0f1ed1fafe84..000000000000 --- a/scripts/autobuildimgppc.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -#I'm not sure who wrote the original autobuildimg.sh script, but thanks for -#the framework. - -cleanup() { - cp /etc/make.conf.build /etc/make.conf - exit $1 -} - -export USE="-* build bootstrap" -export CFLAGS=" -O2 -mpowerpc -pipe " -export CXXFLAGS="${CFLAGS}" -export CHOST="powerpc-unknown-linux-gnu" -#export ORIGUSE="`$PYTHON -c 'import portage; print portage.settings["USE"];'`" -export CONFIG_PROTECT="" -#export GENTOO_MIRRORS="`$PYTHON -c 'import portage; print portage.settings["GENTOO_MIRRORS"];'`" -export ROOT=/mnt/build-img -cp /etc/make.conf /etc/make.conf.build -#export STEPS="clean unpack compile install qmerge clean" - -TODAY=`date '+%Y%m%d'` - -[ -z "${PORTDIR}" ] && PORTDIR=/usr/portage -cp ${PORTDIR}/profiles/default-ppc-1.0/make.conf.buildimg /etc/make.conf -[ -z "${BUILDTARBALL}" ] && BUILDTARBALL="build-${TODAY}.tbz2" -#[ -z "${BUILD_PACKAGES}" ] && BUILD_PACKAGES=`ls -1 ${PORTDIR}/files/build-*.packages | sort | tail -1` -mkdir -p ${PORTDIR}/distribution - -echo ">>> Cleaning up ${ROOT}..." -rm -rf "${ROOT}" -mkdir -p "${ROOT}" - -#scripts/autocompile.sh "${BUILD_PACKAGES}" -emerge baselayout || cleanup 1 -emerge glibc || cleanup 1 -emerge portage || cleanup 1 -emerge `cat /etc/make.profile/packages.build` || cleanup 1 -rm -rf "${ROOT}/tmp" -mkdir -p ${ROOT}/tmp -mkdir -p ${ROOT}/proc -chown root.root ${ROOT}/proc -chown root.root ${ROOT}/tmp -chmod 1777 ${ROOT}/tmp -mv ${ROOT}/var/db/pkg ${ROOT}/var/db/pkg.build - -echo ">>> Creating ${BUILDTARBALL}..." -cd ${ROOT} -tar -cj --numeric-owner -p -f "${PORTDIR}/distribution/${BUILDTARBALL}" . - -rm -rf ${ROOT} -cleanup 0 diff --git a/scripts/autocompile.sh b/scripts/autocompile.sh deleted file mode 100644 index a8010883f505..000000000000 --- a/scripts/autocompile.sh +++ /dev/null @@ -1,135 +0,0 @@ -#!/bin/sh - -# description: -# -# ROOT is the root all packages are installed to -# -# if CHECK=yes then skip an already installed package -# if CHECK=package then skip a package if its tbz2 already exists -# -# ERRQUIT=no causes the script to keep trying to build packages even -# when one has failed. -# - -C_NORMAL=$'\033[0m' -C_HILITE=$'\e[36;01m' -C_END=$'\e[A\e[68G' -C_OK=$'\e[32m' -C_NO=$'\e[31m' -#eval `/usr/lib/portage/bin/import-settings PORTDIR PKGDIR` -PORTDIR=/usr/portage -LOGDIR=${ROOT}/tmp/portage-log -PKGDIR=/usr/portage/packages -[ -z "$CHECK" ] && CHECK="yes" -[ -z "$STEPS" ] && STEPS="check fetch clean compile install qmerge clean" -[ -z "$ERRQUIT" ] && ERRQUIT="no" - -do_step() { - - local tmpd - tmpd=`pwd` - echo "$C_END $C_HILITE " - echo "$C_END $C_HILITE [$1]$C_NORMAL " - cd `dirname $myd` - ebuild $myf $1 &> $myl/$1 - mye=$? - cd $tmpd - - if [ -f $LOGDIR/$1 ] - then - cp $LOGDIR/$1 /tmp/failed - grep -v "$i" /tmp/failed > $LOGDIR/$1 - fi - - if [ $mye -ne 0 ] - then - echo "$C_END $C_HILITE " - echo "$C_END $C_NO [$1]$C_NORMAL " - echo $i >> $LOGDIR/$1 - [ "${ERRQUIT}" = "yes" ] && exit 1 - fi - return $mye -} - -if [ -z "${ROOT}" ] -then - echo "ROOT not set !" - exit 1 -fi - -mylist=${PORTDIR}/current-packages - -if [ -f "${1}" ] -then - mylist=${1} -fi - -mypackages="`grep -v "\#.*" $mylist`" - -install -m1777 -d $ROOT/tmp/portage-log - -echo "$C_HILITE>>>$C_NORMAL Building from ${mylist}..." -for i in $mypackages -do - source /etc/profile - # full path - myd=${i/.\//$PORTDIR\/} - - # file name - myf="`basename $myd`" - - # category - myc="`echo $i | sed -e "s:^\(.*\).*/.*/.*$:\1:"`" - - # package name - myp=${myf%*.ebuild} - - # debugging -# echo $myp - - if [ -f "$myd" ] - then - - # Check if installed - if [ "$CHECK" = "yes" ] - then - if [ -d ${ROOT}/var/db/pkg/$myc/$myp ] - then - continue - fi - else - if [ "$CHECK" = "package" ] - then - if [ -f ${PKGDIR}/All/$myp.tbz2 ] - then - continue - fi - fi - fi - - echo "$C_NORMAL$myp ($myc)" - - myl="$LOGDIR/$myc/$myp/" - mkdir -p $myl - - for j in ${STEPS} - do - mye=0 - do_step $j - if [ $mye -ne 0 ] - then - break - fi - done - if [ $mye -eq 0 ] - then - echo "$C_END $C_OK [OK]$C_NORMAL " - echo $i >> ${LOGDIR}/ok - fi - - else - echo "!!! $myd does not exists !" - fi - env-update &>/dev/null - -done diff --git a/scripts/autodist.sh b/scripts/autodist.sh deleted file mode 100644 index 49d40820dc8b..000000000000 --- a/scripts/autodist.sh +++ /dev/null @@ -1,167 +0,0 @@ -#!/bin/bash - -runlog () { - echo "Running ${1+${@}}..." 1>&3 - ${1+"${@}"} 1>&3 2>&1 - echo 1>&3 -} - -TODAY=`date '+%Y%m%d'` -FIRSTDIR=`pwd` - -# ok, this script builds: -# -# 1. the build tarball -# 2. the sys tarball -# 3. the build iso -# 4. the sys iso (with all packages) - -[ -z "${PORTDIR}" ] && PORTDIR="/usr/portage" -[ -z "${DISTRODIR}" ] && DISTRODIR="${PORTDIR}/distribution" -[ -z "${AUTODISTDIR}" ] && AUTODISTDIR="/tmp/autodist" -BUILDROOT="${AUTODISTDIR}/buildroot" -ISOROOT="${AUTODISTDIR}/isoroot" -INITRDROOT="${AUTODISTDIR}/initrdroot" -INITRDIMG="${AUTODISTDIR}/initrdimg" -USRIMG="${AUTODISTDIR}/usrimg" -[ -z "${BUILDTARBALL}" ] && BUILDTARBALL="build-${TODAY}.tbz2" -[ -z "${SYSTARBALL}" ] && SYSTARBALL="sys-${TODAY}.tbz2" -# shouldn't allow CFLAGS to be overridden -export CFLAGS="-O2 -mcpu=i486 -march=i486" -export CXXFLAGS="${CFLAGS}" -export CHOST="i486-pc-linux-gnu" - -[ -d "${DISTRODIR}" ] || mkdir -p "${DISTRODIR}" -[ -z "${CONTINUE}" ] && CONTINUE=no -if [ "${CONTINUE}" = "yes" ] -then - CHECK=yes -fi - -[ -z "${ISOINITRD_PACKAGES}" ] && ISOINITRD_PACKAGES=`ls -1 ${PORTDIR}/files/isoinitrd-*.packages | sort | tail -1` -[ -z "${BUILD_PACKAGES}" ] && BUILD_PACKAGES=`ls -1 ${PORTDIR}/files/build-*.packages | sort | tail -1` -[ -z "${SYS_PACKAGES}" ] && SYS_PACKAGES=`ls -1 ${PORTDIR}/files/sys-*.packages | sort | tail -1` -[ -z "${KERNEL_SRC}" ] && KERNEL_SRC="/usr/src/`readlink /usr/src/linux`" -[ -z "${KERNEL_VERSION}" ] && KERNEL_VERSION="`echo ${KERNEL_SRC} | sed 's,.*-\([0-9]\.[0-9]\.[0-9]\+\(-ac[0-9]\+\)\?\)$,\1,'`" - -[ -z "${INITRD_USE}" ] && INITRD_USE="lvm ext3" -# size of the initrd in kbytes -[ -z "${INITRD_SIZE}" ] && INITRD_SIZE=24576 -[ -z "${INITRD_BSIZE}" ] && INITRD_BSIZE=4096 -[ -z "${LOOPDEV}" ] && LOOPDEV=/dev/loop/0 -# check to see if this loop device is in use -if losetup ${LOOPDEV} &> /dev/null -then - echo "${LOOPDEV} is in use. Please specify another loop device by" - echo "setting the environment variable LOOPDEV." - exit 1 -fi - -exec 3> ${AUTODISTDIR}/autodist.log - -export PORTDIR -export DISTRODIR -export AUTODISTDIR - -if grep -qs "${AUTODISTDIR}" /proc/mounts -then - cat << @@@ 1>&2 -${AUTODISTDIR} was found in /proc/mounts. If you have anything -mounted under ${AUTODISTDIR} using --bind, you should press ^C now and -unmount it, since ${AUTODISTDIR} is cleaned out by this script. (This -is probably the case if you have run this script and interrupted it -before it completed.) Note that this is just a safety precaution, and -if ${AUTODISTDIR} is a separate partition in itself, you might be OK. - -Press ENTER to continue. -@@@ - read -fi - -echo ">>> Using PORTDIR=${PORTDIR}" -echo ">>> Using AUTODISTDIR=${AUTODISTDIR}" -echo ">>> Using BUILDROOT=${BUILDROOT}" -echo ">>> Using ISOROOT=${ISOROOT}" -echo ">>> Using INITRDROOT=${INITRDROOT}" -echo ">>> Using ISOINITRD_PACKAGES=${ISOINITRD_PACKAGES}" -echo ">>> Using BUILD_PACKAGES=${BUILD_PACKAGES}" -echo ">>> Using SYS_PACKAGES=${SYS_PACKAGES}" -echo ">>> Using KERNEL_SRC=${KERNEL_SRC}" -echo ">>> Using KERNEL_VERSION=${KERNEL_VERSION}" - -if [ "${CONTINUE}" != "yes" ] -then - echo ">>> Cleaning up ${AUTODISTDIR}..." - rm -rf ${AUTODISTDIR} -fi - -echo ">>> Creating ISO directory tree..." -mkdir -pv ${ISOROOT}/{doc,gentoo{,/distfiles,/packages{,/All}},isolinux{,/kernels},stuff} - -echo ">>> Building initrd packages..." -mkdir -p ${INITRDROOT} -ERRQUIT=yes CHECK="${CHECK}" USE="${INITRD_USE}" ROOT="${INITRDROOT}" STEPS="clean unpack compile install qmerge clean" ${PORTDIR}/scripts/autocompile.sh ${ISOINITRD_PACKAGES} -if [ ${?} != 0 ] -then - echo "Error building initrd packages, quitting" - exit 1 -fi -echo ">>> Cleaning up ${INITRDROOT}/tmp" -rm -rf ${INITRDROOT}/tmp -mkdir -p ${INITRDROOT}/tmp -chown root.root ${INITRDROOT}/tmp -chmod 1777 ${INITRDROOT}/tmp - -echo ">>> Setting up initrd..." -find ${INITRDROOT}/etc -name "*._cfg_*" -exec rm -vf {} \; -ROOT=${INITRDROOT} rc-update autogen boot force -ROOT=${INITRDROOT} rc-update autogen normal force -ROOT=${INITRDROOT} rc-update autogen halt force - -echo ">>> Creating initrd.img..." -# /usr goes in its own image -if [ "${CONTINUE}" != "yes" ] || [ ! -d ${AUTODISTDIR}/initrdusr ] -then - mv ${INITRDROOT}/usr ${AUTODISTDIR}/initrdusr - mkdir ${INITRDROOT}/usr -fi - -runlog dd if=/dev/zero of=${AUTODISTDIR}/initrd.img bs=${INITRD_SIZE} count=1024 -runlog losetup ${LOOPDEV} ${AUTODISTDIR}/initrd.img -runlog mke2fs ${LOOPDEV} -mkdir -p ${INITRDIMG} -runlog mount ${LOOPDEV} ${INITRDIMG} -cd ${INITRDROOT} -# cpio is best for this kinda thing -echo -n ">>> Copying files" -find . -print0 | cpio -p -0dm --quiet --dot ${INITRDIMG} -echo -umount ${INITRDIMG} -runlog losetup -d ${LOOPDEV} -echo ">>> Compressing initrd..." -gzip -9 ${AUTODISTDIR}/initrd.img -mv -f ${AUTODISTDIR}/initrd.img.gz ${AUTODISTDIR}/initrd.img - -echo ">>> Creating usr.img..." -usrsize=`du -sk ${AUTODISTDIR}/initrdusr | sed 's,\([0-9]\+\).*,\1,'` -# it doesn't hurt to pad it a bit :) -usrsize=`expr ${usrsize} + 256` -# lets make it an even multiple of INITRD_BSIZE bytes -bsizek=`expr ${INITRD_BSIZE} / 1024` -usrsize=`expr ${usrsize} / ${bsizek}` -usrsize=`expr ${usrsize} + 1` -runlog dd if=/dev/zero of=${AUTODISTDIR}/usr.img bs=${INITRD_BSIZE} count=${usrsize} -mkdir -p ${AUTODISTDIR}/initrdusrimg -runlog losetup ${LOOPDEV} ${AUTODISTDIR}/usr.img -runlog mke2fs ${LOOPDEV} -runlog mount ${LOOPDEV} ${AUTODISTDIR}/initrdusrimg -cd ${AUTODISTDIR}/initrdusr -# cpio is best for this kinda thing -echo -n ">>> Copying files" -find . -print0 | cpio -p -0dm --quiet --dot ${AUTODISTDIR}/initrdusrimg -echo -runlog umount ${AUTODISTDIR}/initrdusrimg -runlog losetup -d ${LOOPDEV} -echo ">>> Compressing usr.img..." -create_compressed_fs ${AUTODISTDIR}/usr.img 65536 > ${AUTODISTDIR}/usr.img.compressed 2>&3 -mv ${AUTODISTDIR}/usr.img.compressed ${AUTODISTDIR}/usr.img diff --git a/scripts/autoinstaller.sh b/scripts/autoinstaller.sh deleted file mode 100644 index 27d00135bb10..000000000000 --- a/scripts/autoinstaller.sh +++ /dev/null @@ -1,103 +0,0 @@ -#! /bin/bash - -if [ "$ROOT" = "" ] -then - echo "Please set \$ROOT to the gentoo-linux install directory first." - exit -fi - -. ${ROOT}/etc/rc.d/config/functions -. ${ROOT}/etc/rc.d/config/runlevels -. $1 - - cp $1 ${ROOT}/var/db/pkg/install.config - -if [ -z "$NODEV" ] ; then - echo "Now setting up $OSNAME..." - echo "Creating device nodes (this takes a minute or so)..." - cd ${ROOT}/dev - ${ROOT}/usr/sbin/MAKEDEV generic-i386 - ${ROOT}/usr/sbin/MAKEDEV sg - ${ROOT}/usr/sbin/MAKEDEV scd - ${ROOT}/usr/sbin/MAKEDEV rtc -fi -echo -echo "Setting osname and architecture" -cp ${ROOT}/etc/rc.d/config/runlevels ${ROOT}/etc/rc.d/config/runlevels.orig -sed -e "s:##OSNAME##:$OSNAME:" -e "s:##ARCH##:$ARCH:" \ - ${ROOT}/etc/rc.d/config/runlevels.orig > ${ROOT}/etc/rc.d/config/runlevels -echo "OSNAME: $OSNAME" -echo "ARCH: $ARCH" -echo -echo "Now, we are getting ${ROOT}/etc/fstab set up for your root and swap partitions..." -cp ${ROOT}/etc/fstab ${ROOT}/etc/fstab.orig - - -echo "Root partition in /dev/$MYROOTPART" -echo "Swap partition in /dev/$MYSWAPPART" - -sed -e "s:#ROOT#:${MYROOTPART}:" -e "s:#SWAP#:${MYSWAPPART}:" ${ROOT}/etc/fstab.orig > ${ROOT}/etc/fstab - -echo "Generating library links and cache..." -cp ${ROOT}/etc/env.d/00basic ${ROOT}/etc/env.d/00basic.orig -sed -e "s/i686-pc-linux-gnu/$ARCH/" ${ROOT}/etc/env.d/00basic.orig > ${ROOT}/etc/env.d/00basic - -${ROOT}/usr/sbin/env-update - -case "$GMT" in - n|N|No|no) - echo "Your BIOS clock is set to localtime" - ;; - y|Y|Yes|yes) - echo "Your BIOS clock is set to GMT" - mv ${ROOT}/etc/rc.d/config/basic ${ROOT}/etc/rc.d/config/basic.bak - sed -e "s/GMT=no/GMT=yes/" ${ROOT}/etc/rc.d/config/basic.bak > ${ROOT}/etc/rc.d/config/basic - rm ${ROOT}/etc/rc.d/config/basic.bak -esac - - -echo "Keymap: $keymap" -mv ${ROOT}/etc/rc.d/config/basic ${ROOT}/etc/rc.d/config/basic.bak -sed -e "s/KEYMAP=.*/KEYMAP=\"$keymap\"/" \ - -e "s/CONSOLEFONT=.*/CONSOLEFONT=\"$consolefont\"/" \ - ${ROOT}/etc/rc.d/config/basic.bak > ${ROOT}/etc/rc.d/config/basic -mv ${ROOT}/etc/rc.d/config/basic ${ROOT}/etc/rc.d/config/basic.bak -sed -e "s/TIMED=.*/TIMED=\"$timed\"/" \ - ${ROOT}/etc/rc.d/config/basic.bak > ${ROOT}/etc/rc.d/config/basic - - -myzone="${ROOT}/usr/share/zoneinfo/$timezone" -echo "Timezone: $timezone" - - -cp ${myzone} ${ROOT}/etc/localtime - -echo "Hostname: $hostname" - -echo "$hostname" > ${ROOT}/etc/hostname -echo -n "domain " > ${ROOT}/etc/resolv.conf -echo "$hostname" | cut -f2- -d. >> ${ROOT}/etc/resolv.conf -echo "127.0.0.1 localhost" >> ${ROOT}/etc/hosts -echo "$eth0_ip ${hostname%%.*} ${hostname}" >> ${ROOT}/etc/hosts - -echo "nameserver $nameserver" >> ${ROOT}/etc/resolv.conf - -if [ -n $eth0 ] ; then - cp ${ROOT}/etc/rc.d/config/modules ${ROOT}/etc/rc.d/config/modules.orig - sed -e "s/\#eth0/$eth0/" ${ROOT}/etc/rc.d/config/modules.orig > ${ROOT}/etc/rc.d/config/modules - sed -e "s/IPNUM=.*/IPNUM=$eth0_ip/" -e "s/BCAST=.*/BCAST=$eth0_bcast/" \ - -e "s/NMASK=.*/NMASK=$eth0_mask/" -e "s/NETWK=.*/NETWK=$eth0_net/" \ - -e "s/GTWAY=.*/GTWAY=$eth0_gw/" \ - ${ROOT}/etc/rc.d/config/OFF_inet.eth0 > ${ROOT}/etc/rc.d/config/inet.eth0 -fi - -${ROOT}/etc/rc.d/init.d/initscripts-install - - - - - - - - - diff --git a/scripts/autosysimg.sh b/scripts/autosysimg.sh deleted file mode 100644 index 9a072e2fbc92..000000000000 --- a/scripts/autosysimg.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -export CFLAGS="-O2 -mcpu=i486 -march=i486 -O2 -pipe" -export CXXFLAGS="${CFLAGS}" -export CHOST="i486-pc-linux-gnu" -export SYSIMG_ROOT=/tmp/autosysimg -export STEPS="clean unpack compile install qmerge clean" -[ -z "${USE}" ] || USE="slang readline gpm tcpd pam libwww ssl nls perl python oss" - -TODAY=`date '+%Y%m%d'` - -[ -z "${PORTDIR}" ] && PORTDIR=/usr/portage -[ -z "${BUILD_TARBALL}" ] && BUILD_TARBALL=`ls -1 ${PORTDIR}/distribution/build-*.tbz2 2> /dev/null | sort | tail -1` -if [ -z "${BUILD_TARBALL}" ] -then - echo "You must create a build tarball before running this script." - exit 1 -fi -[ -z "${SYS_PACKAGES}" ] && SYS_PACKAGES=`ls -1 ${PORTDIR}/distribution/sys-*.tbz2 2> /dev/null | sort | tail -1` -[ -z "${BOOTSTRAP_PACKAGES}" ] && SYS_PACKAGES=`ls -1 ${PORTDIR}/files/bootstrap-*.packages 2> /dev/null | sort | tail -1` -[ -z "${SYS_TARBALL}" ] && SYS_TARBALL="sys-${TODAY}.tbz2" -mkdir -p ${PORTDIR}/distribution - -echo ">>> Cleaning up ${SYSIMG_ROOT}..." -rm -rf "${SYSIMG_ROOT}" -mkdir -p "${SYSIMG_ROOT}" - -mount --bind ${PORTDIR} ${SYSIMG_ROOT}/${PORTDIR} -mkdir ${SYSIMG_ROOT}/scripts -chroot bash -c "cd ${PORTDIR} ; ROOT=/sysimg scripts/bootstrap.sh ${BOOTSTRAP_PACKAGES}" -chroot bash -c "cd ${PORTDIR} ; scripts/autocompile.sh ${SYS_PACKAGES}" - -# now unmerge the build packages -mv ${SYSIMG_ROOT}/var/db/pkg ${SYSIMG_ROOT}/var/db/pkg.new -mv ${SYSIMG_ROOT}/var/db/pkg.build ${SYSIMG_ROOT}/var/db/pkg -FIRSTDIR=`pwd` -cd ${SYSIMG_ROOT}/var/db/pkg -for ebuildfile in `find . -type f -name '*.ebuild'` -do - ROOT=${SYSIMG_ROOT} ebuild ${ebuildfile} unmerge -done -rm -rf ${SYSIMG_ROOT}/var/db/pkg -mv ${SYSIMG_ROOT}/var/db/pkg.new ${SYSIMG_ROOT}/var/db/pkg -umount ${SYSIMG_ROOT}/${PORTDIR} - -rm -rf "${SYSIMG_ROOT}/tmp" -mkdir -p ${SYSIMG_ROOT}/tmp -chown root.root ${SYSIMG_ROOT}/tmp -chmod 1777 ${SYSIMG_ROOT}/tmp -mv ${SYSIMG_ROOT}/var/db/pkg ${ROOT}/var/db/pkg.build - -echo ">>> Creating ${SYS_TARBALL}..." -cd ${SYSIMG_ROOT} -tar -cj --numeric-owner -p -f "${PORTDIR}/distribution/${SYS_TARBALL}" . - -rm -rf ${SYSIMG_ROOT} diff --git a/scripts/build-dyn.sh b/scripts/build-dyn.sh deleted file mode 100644 index 1fa769df7bce..000000000000 --- a/scripts/build-dyn.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -x86_ver=1.0 -sparc_ver=1.0 -sparc64_ver=1.0 -unamem=`uname -m` - -case `uname -m` in - sparc64) profile=default-sparc64-${sparc64_ver} ;; - sparc) profile=default-sparc-${sparc_ver} ;; - i[0-9]86) profile=default-${x86_ver} ;; -esac - -profiledir=/usr/portage/profiles/${profile} - -for x in `cat ${profiledir}/packages.build` -do - grep -E "${x}(-[^[:space:]]*)?[[:space:]]*$" ${profiledir}/packages \ - | grep -v '^#' | sed -e 's:^\*::' | cat -done diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100644 index 25657a9c8455..000000000000 --- a/scripts/build.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -if [ "${1}" ]; then - ver=${1} -else - ver=x86-1.4 -fi - -for x in `cat /usr/portage/profiles/default-${ver}/packages.build | grep -v '^#'` -do - myp=$(grep -E "${x}(-[^[:space:]]*)?[[:space:]]*$" /usr/portage/profiles/default-${ver}/packages | grep -v '^#' | sed -e 's:^\*::' | cat ) - if [ "$myp" = "" ] - then - #if not in the system profile, include it anyway - echo $x - else - echo $myp - fi -done diff --git a/scripts/sortpkglist.py b/scripts/sortpkglist.py deleted file mode 100644 index 673b5de9de99..000000000000 --- a/scripts/sortpkglist.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env spython - -# This script will take a list of ebuild files, sort them in the order -# of their dependencies, then print them back out. (That is, for any -# given package, its dependencies will be printed out *before* the -# package itself.) Needed for the autodist.sh script. - -import portage -import sys -import os - -class depgraph: - pass - -class depgraph_node: - def __init__(self, info): - self.__info = info - -class packagelisttree(portage.packagetree): - def __init__(self, listfile, virtual=None): - portage.packagetree.__init__(self, virtual) - self.listfile = listfile - -class ebuildinfo: - def __init__(self, ebuildfile): - if not os.path.exists(ebuildfile): - print "!!! %s is an invalid ebuild file name!" % (ebuildfile) - sys.exit(1) - if ebuildfile[0:2] == './': - ebuildfile = ebuildfile[2:] - self.filename = ebuildfile - self.category = os.path.basename(os.path.normpath(os.path.dirname(ebuildfile) + "/..")) - self.pf = os.path.basename(ebuildfile[:-7]) - pkgsplit = portage.pkgsplit(self.pf, 0) - if pkgsplit == None: - print "!!! %s is an invalid ebuild file name!" % (ebuildfile) - sys.exit(1) - self.pn = pkgsplit[0] - self.pv = pkgsplit[1] - self.p = "%s-%s" % (self.pn, self.pv) - if pkgsplit[2] == "0": - self.pvr = self.pv - else: - self.pvr = "%s-r%s" % (self.pv, pkgsplit[2]) - |