Permalink
Browse files

Finished Chapter 5 scripts. Updated shared modules slightly.

  • Loading branch information...
1 parent 921fe70 commit 6d163d5394fa2a9fa07ff9ff6cdddd1f16116f0c @Vultaire committed May 30, 2011
View
@@ -14,17 +14,11 @@
source shared.sh
-function forgive_nothing () {
- set -o nounset
- set -o errexit
-}
-
function prep_build () {
user="$1"
- forgive_nothing
- source shared.sh
- match_user "$user" || die "This script must be run as the \"$user\" user."
+ forgive_nothing
+ match_user_or_die "$user"
cd $LFS/sources
tar -xf "$TARBALL"
View
@@ -17,3 +17,13 @@ function match_user () {
user=$1
[ "$(id -un)" == "$user" ]
}
+
+function forgive_nothing () {
+ set -o nounset
+ set -o errexit
+}
+
+function match_user_or_die () {
+ user="$1"
+ match_user "$user" || die "This script must be run as the \"$user\" user."
+}
View
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/bash.html
+
+source package_build.sh
+TARBALL=bash-4.2.tar.gz
+SRC_DIR=bash-4.2
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools --without-bash-malloc
+make
+#make tests
+make install
+ln -vs bash /tools/bin/sh
+
+cleanup_build
View
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/bzip2.html
+
+source package_build.sh
+TARBALL=bzip2-1.0.6.tar.gz
+SRC_DIR=bzip2-1.0.6
+BUILD_DIR=
+
+prep_build "lfs"
+
+make
+make PREFIX=/tools install
+
+cleanup_build
View
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/coreutils.html
+
+source package_build.sh
+TARBALL=coreutils-8.10.tar.gz
+SRC_DIR=coreutils-8.10
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools --enable-install-program=hostname
+make
+#make RUN_EXPENSIVE_TESTS=yes check
+make install
+
+cp -v src/su /tools/bin/su-tools
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/diffutils.html
+
+source package_build.sh
+TARBALL=diffutils-3.0.tar.gz
+SRC_DIR=diffutils-3.0
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/file.html
+
+source package_build.sh
+TARBALL=file-5.05.tar.gz
+SRC_DIR=file-5.05
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/findutils.html
+
+source package_build.sh
+TARBALL=findutils-4.4.2.tar.gz
+SRC_DIR=findutils-4.4.2
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gawk.html
+
+source package_build.sh
+TARBALL=gawk-3.1.8.tar.bz2
+SRC_DIR=gawk-3.1.8
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gettext.html
+
+source package_build.sh
+TARBALL=gettext-0.18.1.1.tar.gz
+SRC_DIR=gettext-0.18.1.1
+BUILD_DIR=
+
+prep_build "lfs"
+
+cd gettext-tools
+./configure --prefix=/tools --disable-shared
+make -C gnulib-lib
+make -C src msgfmt
+
+cp -v src/msgfmt /tools/bin
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/grep.html
+
+source package_build.sh
+TARBALL=grep-2.7.tar.gz
+SRC_DIR=grep-2.7
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools --disable-perl-regexp
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gzip.html
+
+source package_build.sh
+TARBALL=gzip-1.4.tar.gz
+SRC_DIR=gzip-1.4
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/m4.html
+
+source package_build.sh
+TARBALL=m4-1.4.15.tar.bz2
+SRC_DIR=m4-1.4.15
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/make.html
+
+source package_build.sh
+TARBALL=make-3.82.tar.bz2
+SRC_DIR=make-3.82
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/patch.html
+
+source package_build.sh
+TARBALL=patch-2.6.1.tar.bz2
+SRC_DIR=patch-2.6.1
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/perl.html
+
+source package_build.sh
+TARBALL=perl-5.12.3.tar.bz2
+SRC_DIR=perl-5.12.3
+BUILD_DIR=
+
+prep_build "lfs"
+
+patch -Np1 -i ../perl-5.12.3-libc-1.patch
+
+sh Configure -des -Dprefix=/tools \
+ -Dstatic_ext='Data/Dumper Fcntl IO'
+make perl utilities ext/Errno/pm_to_blib
+
+cp -v perl pod/pod2man /tools/bin
+mkdir -pv /tools/lib/perl5/5.12.3
+cp -Rv lib/* /tools/lib/perl5/5.12.3
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/sed.html
+
+source package_build.sh
+TARBALL=sed-4.2.1.tar.bz2
+SRC_DIR=sed-4.2.1
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/tar.html
+
+source package_build.sh
+TARBALL=tar-1.25.tar.bz2
+SRC_DIR=tar-1.25
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/texinfo.html
+
+source package_build.sh
+TARBALL=texinfo-4.13a.tar.gz
+SRC_DIR=texinfo-4.13
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# LFS Reference:
+# http://www.linuxfromscratch.org/lfs/view/stable/chapter05/xz-utils.html
+
+source package_build.sh
+TARBALL=xz-5.0.1.tar.bz2
+SRC_DIR=xz-5.0.1
+BUILD_DIR=
+
+prep_build "lfs"
+
+./configure --prefix=/tools
+make
+#make check
+make install
+
+cleanup_build
Oops, something went wrong.

0 comments on commit 6d163d5

Please sign in to comment.