Browse Source

Long overdue commit

master
mid-kid 10 years ago
parent
commit
c94182efe8
  1. 29
      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. 2
      tools/satellites/perl.sat
  11. 2
      tools/satellites/stow.sat
  12. 15
      tools/satellites/tcl.sat

29
astronaut/astronaut

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

4
tools/mktools

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

8
tools/prepchroot

@ -27,10 +27,10 @@ echo "Creating directories"
install -dm750 "$rocket/root"
install -dm1777 "$rocket/tmp"
mkdir -p "$rocket/etc" "$rocket/usr/pkg" "$rocket/usr/sat"
if [ "$(uname -m)" == "x86_64" ]; then
ln -sf lib "$rocket/lib64"
ln -sf lib "$rocket/usr/lib64"
fi
#if [ "$(uname -m)" == "x86_64" ]; then
# ln -sf lib "$rocket/lib64"
# ln -sf lib "$rocket/usr/lib64"
#fi
echo "Creating temporary symlinks"
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 -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"
# 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"
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"
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)" \
--disable-profile \
--enable-kernel=2.6.32 \
--with-headers="$dir_install/tools/include" \
--with-headers=/tools/include \
libc_cv_forced_unwind=yes \
libc_cv_ctors_header=yes \
libc_cv_c_cleanup=yes

2
tools/satellites/perl.sat

@ -1,5 +1,5 @@
name=perl
version=5.20.1
version=5.20.1
dlextract "http://www.cpan.org/src/5.0/$name-$version.tar.gz" \
"7a195abb7d6769f751e90c7d30dcf2e0"

2
tools/satellites/stow.sat

@ -1,5 +1,5 @@
name=stow
version=2.2.0
version=2.2.0
dlextract "http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2" \
"5bb56592eff9aaf9dfb6c975b3004240"

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