Merge branche make
[hvlinux.git] / stage2 / packages-update
index 01ce4d0..501dad4 100755 (executable)
@@ -1,28 +1,35 @@
-#!/bin/sh
+#!/bin/bash
 
-LFS_STAGE="stage2"
 USE_LFS_PATCHES=1
 USE_BLFS_PATCHES=1
 USE_CLFS_PATCHES=1
 USE_HV_PATCHES=1
 
 # Reading system configuration informations, functions and package versions.
-source ../sysinfos
+source ../config/sysinfos
 source ../functions
-source ../functions-update
-source ../packages-list
+source ../functions-fpkg
+source ../config/packages-list
 
 update_packages_init
 
+if [ ${#} -eq 1 -a "x${1}" = "xtest" ]; then
+    export TEST_INTEGRITY=1
+fi
+
 # These packages were already downloaded for stage0:
 lpkg     0 ${KERNEL}
 lpkg     0 ${EGLIBC}
 lpkg     0 ${GMP}
 lpkg     0 ${MPFR}
+lpkg     0 ${MPC}
 lpkg     0 ${PPL}
 lpkg     0 ${CLOOG_PPL}
 lpkg     0 ${BINUTILS}
-lpkg     0 ${GCC_CORE}
+lpkg     0 ${GCC}
+
+# These packages were already downloaded for stage1:
+lpkg     1 ${NANO}
 
 # These packages were already downloaded for stage1:
 lpkg     1 ${ZLIB}
@@ -53,7 +60,7 @@ lpkg     1 ${UDEV}
 lpkg     1 ${XZ_UTILS}
 
 # These packages are only for stage2
-fpkg       ${PERL} http://ftp.funet.fi/pub/CPAN/src
+fpkg -e tar.gz ${PERL} http://www.cpan.org/src/5.0
 fpkg       ${MANPAGES} http://www.kernel.org/pub/linux/docs/manpages
 fpkg       ${PKG_CONFIG} http://pkgconfig.freedesktop.org/releases
 fpkg       ${IANA} http://www.sethwklein.net/projects/iana-etc/downloads
@@ -74,5 +81,6 @@ fpkg_hv    ${SHADOW}
 fpkg       ${SYSKLOGD} http://www.infodrom.org/projects/sysklogd/download
 fpkg       ${UDEV_CONFIG} http://www.linuxfromscratch.org/lfs/downloads/development
 fpkg       ${GRUB} ftp://alpha.gnu.org/gnu/grub
+fpkg       ${DHCP} ftp://ftp.isc.org/isc/dhcp/dhcp-3.0-history
 
 exit $?