Add missing ACPI volume and brightness scripts
[hvlinux.git] / stage2 / hv-install-1
index d16ed7a..26872a2 100755 (executable)
@@ -6,27 +6,35 @@ source /etc/profile
 check_for_root_user
 init_log_file
 
-rscr mult "Performing pre-install" pre-install
+if [ ${#} -eq 1 -a x"${1}" = x"log" ]; then
+    init_installed_packages_log
+fi
 
-ipkg -j -l "${PERL}-pass1" ${PERL}
-ipkg -c -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL}
+if [ -z "${LIST_INSTALLED_PACKAGES}" ]; then
+    rscr mult "Performing pre-install" pre-install
+fi
+
+ipkg -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL}
+ipkg -m acnb -j -l "${PERL}-pass1" ${PERL}
 ipkg -m noac ${MANPAGES}
-ipkg ${EGLIBC}
+ipkg ${GLIBC}
+ipkg -m noac -s tzdata -c ${TZDATA}
 
-rscr once "Adjusting toolchain" toolchain-adjust
-rscr mult "Testing toolchain"   toolchain-test
+if [ -z "${LIST_INSTALLED_PACKAGES}" ]; then
+    rscr once "Adjusting toolchain" toolchain-adjust
+    rscr once "Creating temporary C++ toolchain hack" toolchain-hack-cpp-add
+    rscr mult "Testing toolchain"   toolchain-test
+fi
 
 export CC="gcc -isystem /usr/include"
 export CXX="g++ -isystem /usr/include"
 export LDFLAGS="-Wl,-rpath-link,/lib"
 
-CPPFLAGS=-fexceptions \
-    ipkg ${GMP} "--enable-cxx --enable-mpbsd"
-ipkg ${MPFR} "--enable-shared --with-gmp=/usr"
+ipkg ${GMP} "--enable-cxx"
+ipkg ${MPFR} "--with-gmp=/usr"
 ipkg ${MPC}
-CPPFLAGS=-fexceptions \
-    ipkg ${PPL} "--enable-shared --disable-optimization"
-ipkg ${CLOOG} "--enable-shared"
+ipkg ${ISL}
+ipkg ${CLOOG} "--with-isl=system"
 
 unset CC
 unset CXX
@@ -35,7 +43,11 @@ unset LDFLAGS
 ipkg -m acnb ${ZLIB}
 ipkg ${BINUTILS}
 ipkg ${GCC}
-rscr mult "Testing toolchain" toolchain-test
+if [ -z "${LIST_INSTALLED_PACKAGES}" ]; then
+    rscr once "Deleting temporary C++ toolchain hack" toolchain-hack-cpp-remove
+    rscr mult "Testing toolchain" toolchain-test
+fi
+
 ipkg ${SED} "--bindir=/bin"
 ipkg ${LIBFFI}
 ipkg ${PYTHON} "--enable-shared"
@@ -45,18 +57,21 @@ ipkg ${PKG_CONFIG}
 ipkg ${NCURSES}
 ipkg ${UTIL_LINUX}
 ipkg ${E2FSPROGS}
-ipkg -s "icu" ${ICU}
+ipkg -d source ${ICU}
 ipkg -m noac ${GPTFDISK}
 
-FORCE_UNSAFE_CONFIGURE=1 ipkg  -m acnb ${COREUTILS}
+FORCE_UNSAFE_CONFIGURE=1 ipkg -m acnb ${COREUTILS} "\
+    --libexecdir=/usr/lib \
+    --enable-no-install-program=kill,uptime"
+
 ipkg -m noac ${IANA}
 ipkg ${MFOUR}
-ipkg ${BISON}
 ipkg -m noac ${PROCPS}
 ipkg ${LIBTOOL}
 ipkg ${FLEX}
+ipkg -m acnb -l "${PERL}-pass2" ${PERL}
+ipkg -m acnb ${BISON}
 ipkg -m noac ${IPROUTE2}
-ipkg -l "${PERL}-pass2" ${PERL}
 ipkg ${READLINE}
 ipkg ${AUTOCONF}
 ipkg ${AUTOMAKE}