stage5 -> stage6
[hvlinux.git] / stage4 / packages-update
old mode 100644 (file)
new mode 100755 (executable)
index 203366d..831f943
 #!/bin/sh
 
-# Must be defined before sourcing other files.
 LFS_STAGE="stage4"
+USE_LFS_PATCHES=1
+USE_BLFS_PATCHES=1
+USE_HV_PATCHES=1
 
 # Reading system configuration informations, functions and package versions.
+source ../sysinfos
 source ../functions
 source ../functions-update
 source ../packages-list
 
-update_packages_init
-
-# Begin
-
-# Gnome 2 core packages
-fpkg_gnome ${ORBIT2}
-fpkg_gnome ${LIBBONOBO}
-fpkg_gnome ${GCONF}
-fpkg_gnome ${GNOME_MIME_DATA}
-fpkg_gnome ${GNOME_VFS}
-fpkg_gnome ${GNOME_VFS_MONIKERS}
-fpkg_gnome ${LIBGNOME}
-fpkg_gnome ${LIBGNOMECANVAS}
-fpkg_gnome ${LIBBONOBOUI}
-fpkg_gnome ${GNOME_ICON_THEME}
-fpkg_gnu   ${LIBTASN1}
-fpkg_gnome ${GNOME_KEYRING}
-fpkg_gnome ${LIBGNOMEUI}
-fpkg_gnome ${GNOME_THEMES}
-fpkg_gnome ${SCROLLKEEPER}
-fpkg_gnome ${GNOME_DOC_UTILS}
-fpkg_gnome ${GNOME_DESKTOP}
-fpkg_gnome ${GNOME_BACKGROUNDS}
-fpkg_gnome ${GNOME_MENUS}
-fpkg_gnome ${GNOME_PANEL}
-fpkg_gnome ${GNOME_SESSION}
-fpkg_gnome ${VTE}
-fpkg_gnome ${GNOME_TERMINAL}
-fpkg_gnome ${LIBGTOP}
-fpkg_gnome ${LIBGNOMEKBD}
-fpkg_gnome ${LIBGAIL_GNOME}
-fpkg_gnome ${GNOME_APPLETS}
-fpkg_gnome ${EEL}
-fpkg_gnome ${NAUTILUS}
-fpkg_gnome ${YELP}
-fpkg_gnome ${METACITY}
-fpkg_gnome ${GNOME_CONTROL_CENTER}
-fpkg_gnome ${GNOME_USER_DOCS}
-
-# Gnome 2 additional packages - Libraries
-fpkg_gnome ${LIBGNOMECUPS}
-fpkg_gnome ${LIBGNOMEPRINT}
-fpkg_gnome ${LIBGNOMEPRINTUI}
-fpkg_gnome ${GTKHTML}
-fpkg_gnome ${EVOLUTION_DATA_SERVER}
-fpkg_gnome ${GTKSOURCEVIEW}
-fpkg_gnome ${SYSTEM_TOOLS_BACKENDS}
-fpkg_gnome ${GNOME_AUDIO}
-
-# Gnome 2 additional packages - Utilities
-fpkg_gnome ${GEDIT}
-fpkg_gnome ${EOG}
-fpkg_gnome ${EVINCE}
-fpkg_gnome ${FILE_ROLLER}
-fpkg_gnome ${GCONF_EDITOR}
-fpkg_gnome ${GNOME_UTILS}
-fpkg_gnome ${GNOME_SYSTEM_MONITOR}
-fpkg_gnome ${NAUTILUS_CD_BURNER}
-fpkg_gnome ${GSTREAMER}
-fpkg_gnome ${GST_PLUGINS_BASE}
-fpkg       ${GST_PLUGINS_GOOD} "http://gstreamer.freedesktop.org/src/gst-plugins-good"
-fpkg       ${GST_PLUGINS_BAD}  "http://gstreamer.freedesktop.org/src/gst-plugins-bad"
-fpkg       ${GST_PLUGINS_UGLY} "http://gstreamer.freedesktop.org/src/gst-plugins-ugly"
-fpkg       ${GST_FFMPEG} "http://gstreamer.freedesktop.org/src/gst-ffmpeg"
-fpkg_gnome ${GNOME_MEDIA}
-fpkg_gnome ${GNOME_NETSTATUS}
-fpkg_gnome ${GCALCTOOL}
-fpkg_gnome ${GUCHARMAP}
-fpkg_gnome ${ZENITY}
+# Execute a return statement instead of exit, to be able to continue with
+# downloading other packages
+export RCMD_NO_EXIT=1
 
-fpkg_gnome ${GNOME_KEYRING_MANAGER}
-fpkg_gnome ${GNOME_VOLUME_MANAGER}
-fpkg       ${LIBMUSICBRAINZ} "http://ftp.musicbrainz.org/pub/musicbrainz"
-fpkg_gnome ${GNOME_SOUND_JUICER}
-fpkg       ${ISO_CODES} "ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes"
-
-fpkg_gnome ${GNOME_TOTEM}
-fpkg_gnome ${GDM}
-fpkg       ${LIBNOTIFY} "http://www.galago-project.org/files/releases/source/libnotify"
-fpkg       ${GNOME_MOUNT} "http://people.freedesktop.org/~david/dist"
-
-fpkg_gnome ${RHYTHMBOX}
-
-fpkg_gnome ${LIBGSF}
-fpkg_gnome ${GOFFICE}
-fpkg_gnome ${GNUMERIC}
-fpkg_sf    ${WV}
-fpkg       ${ABIWORD} "http://www.abisource.com/downloads/abiword/$(get_pkg_ver ${ABIWORD})/source"
-
-fpkg_gnome ${EVOLUTION_EXCHANGE}
-fpkg_gnome ${EVOLUTION}
+update_packages_init
 
-fpkg       ${LIBGPG_ERROR} "http://ftp.gnupg.org/gcrypt/libgpg-error"
-fpkg       ${LIBGCRYPT} "http://ftp.gnupg.org/gcrypt/libgcrypt"
-fpkg       ${GNUTLS} "http://ftp.gnupg.org/gcrypt/gnutls"
-fpkg_sf    ${PIDGIN}
+XORG_MODULES_LIST="${XORG_APP} ${XORG_DATA} ${XORG_DRIVER} ${XORG_FONT} ${XORG_LIB} ${XORG_PROTO} ${XORG_UTIL}"
+
+BLFS_XORG_URL=http://anduin.linuxfromscratch.org/files/BLFS/svn/xorg
+XORG_URL=http://xorg.freedesktop.org/releases/individual
+
+for module in ${XORG_MODULES_LIST}; do
+    MOD_NAME=$(get_pkg_name ${module})
+    DEST=${LFS_PKG_DIR}/${MOD_NAME}
+
+    ARCH_EXT=wget fpkg ${module} ${BLFS_XORG_URL}
+    ARCH_EXT=md5  fpkg ${module} ${BLFS_XORG_URL}
+    unset ARCH_EXT
+
+    SUBMODS="$(grep -v '^#' ${LFS_PKG_DIR}/${module}.wget | sed 's!\.tar\.bz2$!!')"
+    
+    mkdir -v -p ${DEST} >> ${LFS_LOG_FILE} 2>&1
+
+    export FETCH_DIR=${DEST}
+    for submod in ${SUBMODS}; do
+        fpkg ${submod} ${XORG_URL}/${MOD_NAME}
+    done
+    unset FETCH_DIR
+
+    pushd ${DEST} >> ${LFS_LOG_FILE}
+    md5sum -c ${LFS_PKG_DIR}/${module}.md5 >> ${LFS_LOG_FILE}
+    if [ $? -ne 0 ]; then
+        echo "  md5sum error for ${module}"
+    fi
+    popd >> ${LFS_LOG_FILE}
+done
+
+fpkg ${LIBXAU}           ${XORG_URL}/lib
+fpkg ${LIBXDMCP}         ${XORG_URL}/lib
+fpkg ${XBITMAPS}         ${XORG_URL}/data
+fpkg ${XCURSOR_THEMES}   ${XORG_URL}/data
+fpkg ${XKEYBOARD_CONFIG} http://xlibs.freedesktop.org/xkbdesc
+fpkg ${LUIT}             ${XORG_URL}/app
+fpkg ${XORG_SERVER}      ${XORG_URL}/xserver
 
-# Return last error
 exit $?