splitting spinbase for more flexibility
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# no need for timeout 1
|
||||
set timeout -1
|
||||
|
||||
spawn equo rescue generate
|
||||
|
||||
expect {
|
||||
"*Understood*" { send "Yes\r\n" ; exp_continue }
|
||||
"*Really*" { send "Yes\r\n" ; exp_continue }
|
||||
"*Ok*" { send "Yes\r\n" ; exp_continue }
|
||||
"*generation complete*" { sleep 3; send "exit\r"; exit }
|
||||
# timeout { puts "timed out during generation"; exit 1 }
|
||||
}
|
||||
|
||||
expect EOF
|
||||
|
||||
puts $expect_out(buffer)
|
||||
|
||||
lassign [wait] pid spawnid os_error_flag value
|
||||
|
||||
if {$os_error_flag == 0} {
|
||||
puts "exit status: $value"
|
||||
} else {
|
||||
puts "errno: $value"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /var/lib/entropy/client/database/amd64
|
||||
cd /var/lib/entropy/client/database/amd64
|
||||
cat /equo.sql | sqlite3 equo.db
|
||||
|
||||
# remove files used to generate a correct equo db
|
||||
rm -rfv /equo.sql
|
||||
rm -rfv /generate-equo-db.sh
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# fetch the bits!
|
||||
cd /opt
|
||||
git clone git://github.com/Sabayon/build.git sabayon-build
|
||||
cd /opt/sabayon-build/conf/intel/portage
|
||||
# keep your specific stuff in "myconf" branch:
|
||||
git checkout -b myconf
|
||||
# symlink to your <arch>:
|
||||
ln -sf make.conf.amd64 make.conf
|
||||
ln -sf package.env.amd64 package.env
|
||||
# add & commit
|
||||
git add make.conf package.env
|
||||
git config --global user.name "root"
|
||||
git config --global user.email "root@localhost"
|
||||
git commit -m "saving my configurations"
|
||||
# rename the gentoo /etc/make.conf and /etc/portage/:
|
||||
cd /etc/
|
||||
mv portage portage-gentoo
|
||||
#mv make.conf make.conf-gentoo
|
||||
# symlink to sabayon /etc/make.conf /etc/portage/:
|
||||
ln -sf /opt/sabayon-build/conf/intel/portage portage
|
||||
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Setting locale.conf
|
||||
for f in /etc/env.d/02locale /etc/locale.conf; do
|
||||
echo LANG=en_US.UTF-8 > "${f}"
|
||||
echo LANGUAGE=en_US.UTF-8 >> "${f}"
|
||||
echo LC_ALL=en_US.UTF-8 >> "${f}"
|
||||
done
|
||||
|
||||
# Defyning /usr/local/portage configuration
|
||||
mkdir /usr/local/portage
|
||||
mkdir -p /usr/local/portage/metadata/
|
||||
mkdir -p /usr/local/portage/profiles/
|
||||
echo "masters = gentoo" > /usr/local/portage/metadata/layout.conf
|
||||
echo "user_defined" > /usr/local/portage/profiles/repo_name
|
||||
|
||||
emerge -C =dev-python/python-exec-0.3.1
|
||||
|
||||
mkdir -p /etc/portage/package.keywords/
|
||||
echo "app-admin/equo ~amd64
|
||||
sys-apps/entropy ~amd64
|
||||
" > /etc/portage/package.keywords/00-sabayon.package.keywords
|
||||
|
||||
mkdir -p /etc/portage/package.use/
|
||||
echo "dev-lang/python sqlite
|
||||
sys-apps/file python
|
||||
" > /etc/portage/package.use/00-sabayon.package.use
|
||||
|
||||
|
||||
# emerging equo and expect
|
||||
emerge -vt equo --autounmask-write || exit 1
|
||||
emerge expect || exit 1
|
||||
|
||||
# Choosing only python2.7 for now, cleaning others
|
||||
eselect python set python2.7
|
||||
|
||||
# Removing other versions of python
|
||||
emerge -C python:3.2 python:3.3
|
||||
|
||||
# Specifying a gentoo profile
|
||||
eselect profile set default/linux/amd64/13.0/desktop
|
||||
|
||||
# default to opendns for next stage(s)
|
||||
echo "nameserver 208.67.222.222" > /etc/resolv.conf
|
||||
|
||||
# set default shell
|
||||
chsh -s /bin/bash
|
||||
|
||||
rm -rf /etc/make.profile
|
||||
|
||||
|
||||
Reference in New Issue
Block a user