#!/bin/bash source ~/.bashrc source ../functions/main init_log_file # Building temporary system HOST_CC=gcc CPPFLAGS=-fexceptions \ ipkg ${GMP} "--enable-cxx" ipkg ${MPFR} "--enable-shared" ipkg ${MPC} ipkg ${PPL} "\ --enable-shared \ --enable-interfaces=c,cxx \ --disable-optimization \ --with-libgmp-prefix=/tools \ --with-libgmpxx-prefix=/tools" ipkg ${CLOOG} "\ --enable-shared \ --with-gmp=/tools" ipkg -m acnb ${ZLIB} ipkg ${BINUTILS} ipkg ${GCC} ipkg ${NCURSES} "\ --with-shared \ --without-debug \ --without-ada \ --enable-overwrite \ --with-build-cc=gcc" ipkg ${BASH} "--without-bash-malloc" ipkg ${BISON} ipkg -m noac ${BZIP2} ipkg ${COREUTILS} "--enable-install-program=hostname" ipkg ${DIFFUTILS} ipkg ${FINDUTILS} ipkg ${FILE_PKG} ipkg ${FLEX} ipkg ${GAWK} ipkg ${GETTEXT} ipkg ${GREP} "\ --disable-perl-regexp \ --without-included-regex" ipkg ${GZIP} ipkg ${MFOUR} ipkg ${MAKE_PACKAGE} ipkg ${PATCH_PACKAGE} ipkg ${SED} ipkg ${TAR_PACKAGE} ipkg ${TEXINFO} ipkg ${XZ_UTILS} # Chapter 7 rscr once "Creating directory structure" create-directories rscr once "Creating symbolic links" create-symlinks ipkg ${NANO} "--enable-color --enable-multibuffer" PKG_CONFIG=true \ ipkg ${UTIL_LINUX} "\ --exec-prefix=/tools \ --enable-login-utils \ --disable-makeinstall-chown" ipkg ${E2FSPROGS} ipkg -m noac ${SYSVINIT} ipkg ${KMOD} ipkg ${UDEV} ipkg -c -m noac ${KERNEL} rscr once "Creating default users" create-users rscr once "Creating default groups" create-groups rscr once "Creating default log files" create-logfiles rscr once "Creating default config files" create-config-files rscr once "Installing bootscripts" install-bootscripts exit $?