Moved livecd-bash_profile to livecd-bashrc. Added check for /usr/livecd/profiles...
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 29 Mar 2005 17:09:49 +0000 (17:09 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 29 Mar 2005 17:09:49 +0000 (17:09 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@570 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
livecd/files/livecd-bashrc [moved from livecd/files/livecd-bash_profile with 100% similarity]
livecd/files/livecd-local.start
livecd/files/mkvardb [deleted file]
livecd/runscript-support/pre-kmerge.sh
livecd/runscript/default-runscript.sh

index 37e5a017e290f266e6b3f07ca0b5c4003ec8e11f..7f052f29336cb406c4990e0fd644ab7a86991467 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,16 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.195 2005/03/24 15:37:54 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.196 2005/03/29 17:09:49 wolf31o2 Exp $
+
+  29 Mar 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+  -livecd/files/livecd-bash_profile, +livecd/files/livecd-bashrc,
+  livecd/files/livecd-local.start, -livecd/files/mkvardb,
+  livecd/runscript-support/pre-kmerge.sh,
+  livecd/runscript/default-runscript.sh:
+  Moved livecd-bash_profile to livecd-bashrc. Added check for
+  /usr/livecd/profiles to livecd-local.start. Removed mkvardb. Removed legacy
+  sed call from pre-kmerge.sh since it has been fixed in genkernel for a long
+  time.
 
   24 Mar 2005; Chris Gianelloni <wolf31o2@gentoo.org> arch/arm.py, catalyst,
   modules/generic_stage_target.py:
index e98ab087386088cf9fc6fa886fb7d0d6bf04da71..f8fea18a54780fc65d1167aaec314255c28fb3b1 100644 (file)
@@ -12,3 +12,8 @@ if [ -d /usr/livecd/db ]
 then
        ln -sf /usr/livecd/db /var/db
 fi
+
+if [ -d /usr/livecd/profiles ]
+then
+       ln -sf /usr/livecd/profiles /usr/portage/profiles
+fi
diff --git a/livecd/files/mkvardb b/livecd/files/mkvardb
deleted file mode 100755 (executable)
index 9faca88..0000000
+++ /dev/null
@@ -1,185 +0,0 @@
-#!/bin/bash
-
-PROG=$(basename ${0})
-PORTDIR="$(portageq envvar PORTDIR)"
-DB="/var/db/pkg"
-filesindex=0
-
-declare -a exclude
-declare -a files
-
-function usage {
-       echo "Usage: $PROG [options] <files>"
-       echo
-       echo "Options:"
-       echo " -h|--help                 Show this message"
-       echo " -c|--category <category>  Specifies the category for the package to be created"
-       echo " -p|--pkgname <name>       Specifies the name for the package to be created"
-       echo " -v|--version <version>    Specifies the version for the package to be created"
-#      echo " -m|--makevardb            Creates the /var/db/pkg entry manually"
-#      echo " -e|--emerge               Uses emerge to install the created ebuild"
-#      echo " -x|--exclude              This is passed to tar when the specified files are"
-       echo "                           packaged. This option can be specified multiple times"
-       echo
-       echo "Parameters:"
-       echo " files                     These are the existing files that are to be packaged"
-}
-
-function create_ebuild {
-       DIR="${PORTDIR_OVERLAY}/${category}/${pkgname}"
-       EBUILD="${DIR}/${pkgname}-${pkgver}.ebuild"
-
-       mkdir -p $DIR
-       cat > $EBUILD <<EOE
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/files/Attic/mkvardb,v 1.1 2005/03/24 14:17:29 wolf31o2 Exp $
-
-inherit eutils
-
-DESCRIPTION="This is a sample skeleton ebuild file"
-HOMEPAGE=""
-SRC_URI=""
-LICENSE=""
-SLOT="0"
-KEYWORDS="$(portageq envvar ARCH)"
-IUSE=""
-DEPEND=""
-EOE
-}
-
-function echo_parent_dirs {
-       dir=$1
-       while $(/bin/true); do
-               tmpdir=$(dirname ${dir})
-               [ "$tmpdir" = "/" ] && break
-               echo $tmpdir
-               dir=$tmpdir
-       done
-}
-
-function sort_dirs_and_files {
-       curdir=""
-
-       rm /tmp/mkvardb_filelist
-       for i in $(ls -1AR --color=no ${files[@]} | sed -e 's/:$//' | grep -ve '^$'$); do
-               if [ -d ${i} ]; then
-                       if [ "${curdir}" != "$(dirname ${i})" ]; then
-                               echo_parent_dirs ${i} >> /tmp/mkvardb_filelist
-                       fi
-                       echo ${i} >> /tmp/mkvardb_filelist
-                       curdir=${i}
-               else
-                       [ -d "${curdir}/${i}" ] && continue
-                       echo "${curdir}/${i}" >> /tmp/mkvardb_filelist
-               fi
-       done
-       sort -u /tmp/mkvardb_filelist | sed -e 's://:/:'
-}
-
-function create_vardb {
-       VARDBDIR="${DB}/${category}/${pkgname}-${pkgver}"
-       mkdir -p $VARDBDIR
-       cd $VARDBDIR
-       cp $EBUILD $VARDBDIR
-       touch ASFLAGS CATEGORY CBUILD CC CDEPEND CFLAGS CHOST CONTENTS COUNTER CTARGET CXX CXXFLAGS DEPEND EXTRA_ECONF EXTRA_EINSTALL EXTRA_EMAKE FEATURES INHERITED IUSE LDFLAGS LDFLAGS LIBCFLAGS LIBCXXFLAGS LICENSE PDEPEND PF PKGUSE PROVIDE RDEPEND RESTRICT SLOT USE
-       echo ${category} > CATEGORY
-       echo $(portageq envvar CFLAGS) > CFLAGS
-       echo $(portageq envvar CHOST) > CHOST
-       echo $(portageq envvar CTARGET) > CTARGET
-       echo $(portageq envvar CXXFLAGS) > CXXFLAGS
-       echo eutils > INHERITED
-       echo ${pkgname}-${pkgver} > PF
-       echo 0 > SLOT
-       echo $(portageq envvar USE) > USE
-       for i in $(sort_dirs_and_files); do
-               if [ -d ${i} ]; then
-                       echo "dir ${i}" >> CONTENTS
-               else
-                       time=$(stat -c %Y ${i})
-                       md5=$(md5sum ${i} | cut -d ' ' -f 1)
-                       echo "obj ${i} $md5 $time" >> CONTENTS
-               fi
-       done
-}
-
-# Parse args
-params=${#}
-while [ ${#} -gt 0 ]
-do
-       a=${1}
-       shift
-       case "${a}" in
-
-       -h|--help)
-               usage
-               exit 0
-               ;;
-
-       -c|--category)
-               category=$1
-               shift
-               ;;
-
-       -p|--pkgname)
-               pkgname=$1
-               shift
-               ;;
-
-       -v|--pkgversion)
-               pkgver=$1
-               shift
-               ;;
-
-#      -m|--makevardb)
-#              makevardb=1
-#              emerge=0
-#              ;;
-#
-#      -e|--emerge)
-#              emerge=1
-#              makevardb=0
-#              ;;
-#
-#      -x|--exclude)
-#              exclude[#exclude[@]]=$1
-#              shift
-#              ;;
-#
-       -*)
-               echo "You have specified an invalid option: ${a}" 1>&2
-               usage
-               exit 1
-               ;;
-
-       *)
-               files[$filesindex]=$a
-               filesindex=$(expr $filesindex + 1)
-               ;;
-               
-       esac
-done
-
-if [ "$category" = "" ]; then
-       echo "You must specify a category" 1>&2
-       usage
-       exit 1
-fi
-if [ "$pkgname" = "" ]; then
-       echo "You must specify a package name" 1>&2
-       usage
-       exit 1
-fi
-if [ "$pkgver" = "" ]; then
-       echo "You must specify a package version" 1>&2
-       usage
-       exit 1
-fi
-if [ $filesindex -eq 0 ]; then
-       echo "You must specify files to include in the package" 1>&2
-       usage
-       exit 1
-fi
-
-create_ebuild
-create_vardb
index aff83103c5a9554f3b2e9dfef3812767d64e9c92..009d18678c0d2f82ea5249361c6c7c5c02ce9892 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/pre-kmerge.sh,v 1.11 2005/03/07 21:14:42 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/pre-kmerge.sh,v 1.12 2005/03/29 17:09:49 wolf31o2 Exp $
 
 /usr/sbin/env-update
 source /etc/profile
@@ -14,8 +14,6 @@ fi
 install -d /usr/portage/packages/gk_binaries
 rm -f /usr/src/linux
 
-sed -i 's/uchi-hcd/uhci-hcd/' /usr/share/genkernel/x86/modules_load
-
 if [ "${clst_livecd_type}" = "gentoo-release-minimal" ] \
 || [ "${clst_livecd_type}" = "gentoo-release-universal" ]
 then
index 87900db9c0407699c50f93e553f2594c43546c40..669e32c66635582a11fa02cd9235ed57266e2189 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript/Attic/default-runscript.sh,v 1.23 2005/03/24 14:17:29 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript/Attic/default-runscript.sh,v 1.24 2005/03/29 17:09:49 wolf31o2 Exp $
 
 #return codes to be used by archscript
 die() {
@@ -141,13 +141,10 @@ case $1 in
                fi
 
                # move over the environment
-               cp ${clst_sharedir}/livecd/files/livecd-bash_profile \
-                       ${clst_chroot_path}/root/.bash_profile
-               touch ${clst_chroot_path}/root/.bashrc
+               cp ${clst_sharedir}/livecd/files/livecd-bashrc \
+                       ${clst_chroot_path}/root/.bashrc
                cp ${clst_sharedir}/livecd/files/livecd-local.start \
                        ${clst_chroot_path}/etc/conf.d/local.start
-               cp ${clst_sharedir}/livecd/files/mkvardb \
-                       ${clst_chroot_path}/tmp
                mkdir -p /usr/share/faces
                cp ${clst_sharedir}/livecd/files/gentoo.png \
                        ${clst_chroot_path}/usr/share/faces