Browse Source

Long overdue commit

master
mid-kid 10 years ago
parent
commit
c94182efe8
  1. 23
      astronaut/astronaut
  2. 4
      tools/mktools
  3. 8
      tools/prepchroot
  4. 2
      tools/satellites/binutils-2.sat
  5. 2
      tools/satellites/busybox.sat
  6. 12
      tools/satellites/check.sat
  7. 12
      tools/satellites/dejagnu.sat
  8. 13
      tools/satellites/expect.sat
  9. 2
      tools/satellites/glibc.sat
  10. 15
      tools/satellites/tcl.sat

23
astronaut/astronaut

@ -8,7 +8,7 @@ dir_source="$PWD/source"
dir_install="$PWD/install" dir_install="$PWD/install"
cmd_download="curl -#L -o {dst} {src}" cmd_download="curl -#L -o {dst} {src}"
cmd_extract="tar xf {src}" cmd_extract="tar xf {src}"
enable_movedirs=true enable_movedirs=false
enable_check=true enable_check=true
if [ -f /etc/astronaut.conf ]; then if [ -f /etc/astronaut.conf ]; then
. /etc/astronaut.conf . /etc/astronaut.conf
@ -144,12 +144,15 @@ extrafile() {
} }
do_check() { do_check() {
if $enable_check; then
if [ "$1" ]; then if [ "$1" ]; then
if $enable_check; then
$@ $@
fi
else else
echo true if $enable_check; then
return 0
fi fi
return 1
fi fi
} }
@ -163,17 +166,19 @@ mkdir -p "$dir_install"
cd "$dir_build" cd "$dir_build"
. "$satellite" . "$satellite"
movefiles() {
mkdir -p "$2"
mv $(find "$1" -maxdepth 1 -mindepth 1) "$2"
rm -rf "$1"
}
if $enable_movedirs; then if $enable_movedirs; then
if [ "$(uname -m)" == "x86_64" ]; then if [ "$(uname -m)" == "x86_64" ]; then
if [ -d "$dir_install/lib64" ]; then if [ -d "$dir_install/lib64" ]; then
mkdir -p "$dir_install/lib" movefiles "$dir_install/lib64" "$dir_install/lib"
mv $(find "$dir_install/lib64/" -maxdepth 1 -mindepth 1) "$dir_install/lib"
rmdir "$dir_install/lib64"
fi fi
if [ -d "$dir_install/usr/lib64" ]; then if [ -d "$dir_install/usr/lib64" ]; then
mkdir -p "$dir_install/usr/lib" movefiles "$dir_install/usr/lib64" "$dir_install/lib"
mv $(find "$dir_install/usr/lib64/" -maxdepth 1 -mindepth 1) "$dir_install/usr/lib"
rmdir "$dir_install/usr/lib64"
fi fi
fi fi
fi fi

4
tools/mktools

@ -62,6 +62,10 @@ astrobuild "bash"
astrobuild "gawk" astrobuild "gawk"
astrobuild "make" astrobuild "make"
astrobuild "m4" astrobuild "m4"
astrobuild "tcl"
astrobuild "expect"
astrobuild "dejagnu"
astrobuild "check"
astrobuild "perl" astrobuild "perl"
astrobuild "openssl" astrobuild "openssl"

8
tools/prepchroot

@ -27,10 +27,10 @@ echo "Creating directories"
install -dm750 "$rocket/root" install -dm750 "$rocket/root"
install -dm1777 "$rocket/tmp" install -dm1777 "$rocket/tmp"
mkdir -p "$rocket/etc" "$rocket/usr/pkg" "$rocket/usr/sat" mkdir -p "$rocket/etc" "$rocket/usr/pkg" "$rocket/usr/sat"
if [ "$(uname -m)" == "x86_64" ]; then #if [ "$(uname -m)" == "x86_64" ]; then
ln -sf lib "$rocket/lib64" # ln -sf lib "$rocket/lib64"
ln -sf lib "$rocket/usr/lib64" # ln -sf lib "$rocket/usr/lib64"
fi #fi
echo "Creating temporary symlinks" echo "Creating temporary symlinks"
mkdir -p "$rocket/usr/pkg/tmp-coreutils/bin" mkdir -p "$rocket/usr/pkg/tmp-coreutils/bin"

2
tools/satellites/binutils-2.sat

@ -19,7 +19,7 @@ RANLIB="$target-ranlib" \
make; make DESTDIR="$dir_install" install make; make DESTDIR="$dir_install" install
make -C ld clean make -C ld clean
make -C ld LIB_PATH=/usr/lib:/lib make -C ld LIB_PATH=/lib:/lib64:/usr/lib:/usr/lib64
cp ld/ld-new "$dir_install/tools/bin/ld-new" cp ld/ld-new "$dir_install/tools/bin/ld-new"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: # vim:set tabstop=4 shiftwidth=4 syntax=sh et:

2
tools/satellites/busybox.sat

@ -5,7 +5,7 @@ dlextract "http://www.busybox.net/downloads/$name-$version.tar.bz2" \
"337d1a15ab1cb1d4ed423168b1eb7d7e" "337d1a15ab1cb1d4ed423168b1eb7d7e"
extrafile "busybox.config" extrafile "busybox.config"
cat busybox.config | sed 's@./_install@'"$dir_install/tools"'@' > "$name-$version/.config" sed 's@./_install@'"$dir_install/tools"'@' busybox.config > "$name-$version/.config"
cd "$name-$version" cd "$name-$version"
make; make install make; make install

12
tools/satellites/check.sat

@ -0,0 +1,12 @@
name=check
version=0.9.14
dlextract "http://sourceforge.net/projects/$name/files/$name/$version/$name-$version.tar.gz" \
"38263d115d784c17aa3b959ce94be8b8"
cd "$name-$version"
PKG_CONFIG= ./configure --prefix=/tools
make; make DESTDIR="$dir_install" install
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

12
tools/satellites/dejagnu.sat

@ -0,0 +1,12 @@
name=dejagnu
version=1.5.1
dlextract "http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \
"8386e04e362345f50ad169f052f4c4ab"
cd "$name-$version"
./configure --prefix=/tools
make; make DESTDIR="$dir_install" install
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

13
tools/satellites/expect.sat

@ -0,0 +1,13 @@
name=expect
version=5.45
dlextract "http://sourceforge.net/projects/$name/files/Expect/$version/$name$version.tar.gz" \
"44e1a4f4c877e9ddc5a542dfa7ecc92b"
cd "$name$version"
sed -i 's:/usr/local/bin:/bin:' configure
./configure --prefix=/tools --with-tcl=/tools/lib --with-tclinclude=/tools/include
make; make DESTDIR="$dir_install" SCRIPTS="" install
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

2
tools/satellites/glibc.sat

@ -12,7 +12,7 @@ mkdir "$name-build"; cd "$name-build"
--build="$(../glibc-2.20/scripts/config.guess)" \ --build="$(../glibc-2.20/scripts/config.guess)" \
--disable-profile \ --disable-profile \
--enable-kernel=2.6.32 \ --enable-kernel=2.6.32 \
--with-headers="$dir_install/tools/include" \ --with-headers=/tools/include \
libc_cv_forced_unwind=yes \ libc_cv_forced_unwind=yes \
libc_cv_ctors_header=yes \ libc_cv_ctors_header=yes \
libc_cv_c_cleanup=yes libc_cv_c_cleanup=yes

15
tools/satellites/tcl.sat

@ -0,0 +1,15 @@
name=tcl
majver=8.6
version=$majver.3
dlextract "http://prdownloads.sourceforge.net/$name/$name$version-src.tar.gz" \
"db382feca91754b7f93da16dc4cdad1f"
cd "$name$version/unix"
./configure --prefix=/tools
make; make DESTDIR="$dir_install" install install-private-headers
chmod u+w "$dir_install/tools/lib/libtcl$majver.so"
ln -s tclsh$majver "$dir_install/tools/bin/tclsh"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
Loading…
Cancel
Save