Séparation des stages (continuation)
authorroot <root@364a67c3-989e-7be9-548d-dae8560ea662>
Fri, 12 Feb 2010 04:11:03 +0000 (04:11 +0000)
committerroot <root@364a67c3-989e-7be9-548d-dae8560ea662>
Fri, 12 Feb 2010 04:11:03 +0000 (04:11 +0000)
dependencies
stage3/packages-update
stage3/stage3-install
stage4/INSTALL [new file with mode: 0644]
stage4/TODO [new file with mode: 0644]
stage4/cis-ac [new symlink]
stage4/cis-ac-nobuild [new symlink]
stage4/packages-update [new file with mode: 0755]
stage4/stage4-additions [new file with mode: 0755]
stage4/stage4-install [new file with mode: 0755]

index 8bab353..5a1b1cb 100644 (file)
@@ -2,7 +2,6 @@
 
 ${INTLTOOL}: ${PERL_MOD_XML_PARSER}
 ${INKSCAPE}: ${LIBBOOST} ${INTLTOOL}
-${LIBXML2}: ${PYTHON}
 ${TETEX_SRC}: ${ED}
 ${PHP}: ${CURL}
 
@@ -55,6 +54,8 @@ ${FONTCONFIG}: ${FREETYPE} ${EXPAT}
 
 ${LIBRSVG}: ${GTK} ${LIBXML2}
 
+${GTK_ENGINES}: ${PERL_MOD_XML_PARSER}
+
 ${IMLIB2}: ${FREETYPE} ${LIBJPEG} ${LIBPNG} ${LIBTIFF} ${XORG} ${GIFLIB} ${LIBID3TAG}
 
 ${POPPLER}: ${FONTCONFIG} ${LIBJPEG} ${CAIRO} ${GLIB} ${LIBOPENJPEG}
@@ -72,3 +73,15 @@ ${GIT}: ${OPENSSL} ${EXPAT} ${ZLIB} ${PERL} ${CURL}
 ${NMAP}: ${OPENSSL} ${PCRE} ${LIBPCAP}
 
 ${GETDATE}: ${FCRON}
+
+${SGML_DTD3}: ${SGML_COMMON}
+${SGML_DTD4}: ${SGML_COMMON} ${UNZIP}
+${OPENSP}: ${SGML_COMMON}
+${OPENJADE}: ${OPENSP}
+${DOCBOOK_DSSSL}: ${OPENJADE}
+${DOCBOOK_UTILS}: ${DOCBOOK_DSSSL} ${SGML_SPM}
+${LIBXML2}: ${PYTHON}
+${DOCBOOK_XML}: ${LIBXML2}
+${DOCBOOK_XSL}: ${LIBXML2}
+
+${EMACS}: ${GTK}
index 27ce74c..68a5671 100755 (executable)
@@ -22,13 +22,11 @@ lpkg     1 ${NANO}
 
 # These packages were already downloaded for stage2:
 lpkg     2 ${INETUTILS}
-lpkg     2 ${EMACS}
 
 # These packages are only for stage3
-fpkg_gnu   ${EMACS}
 fpkg_gnu   ${WHICH}
-fpkg       ${REISERFSPROGS} http://www.kernel.org/pub/linux/utils/fs/reiserfs
 fpkg       ${PCIUTILS} ftp://ftp.kernel.org/pub/software/utils/pciutils
+fpkg       ${REISERFSPROGS} http://www.kernel.org/pub/linux/utils/fs/reiserfs
 fpkg       ${NET_TOOLS} http://www.tazenda.demon.co.uk/phil/net-tools
 fpkg       ${DHCP} ftp://ftp.isc.org/isc/dhcp/dhcp-3.0-history
 fpkg       ${POPT} http://rpm5.org/files/popt
@@ -44,12 +42,13 @@ fpkg_sf    ${TCL}
 fpkg       ${SQLITE} http://www.sqlite.org
 fpkg       ${SUBVERSION} http://subversion.tigris.org/downloads
 fpkg       ${SUDO} http://www.sudo.ws/sudo/dist
+fpkg_sf    ${STRACE}
+fpkg_sf    ${PCRE}
+
 fpkg_gnu   ${WGET}
 fpkg       ${TCPWRAPPERS} ftp://ftp.porcupine.org/pub/security
 fpkg       ${PORTMAP} http://neil.brown.name/portmap
 fpkg       ${NFS_UTILS} ftp://ftp.kernel.org/pub/linux/utils/nfs
-fpkg_sf    ${PCRE}
-fpkg_sf    ${STRACE}
 fpkg_sf    ${DDCLIENT}
 fpkg       ${LIBPCAP} "http://www.tcpdump.org/release"
 fpkg       ${TCPDUMP} "http://www.tcpdump.org/release"
@@ -57,14 +56,17 @@ fpkg       ${NMAP} "http://download.insecure.org/nmap/dist"
 ARCH_EXT=tar.gz fpkg ${BIND} "http://gd.tuwien.ac.at/infosys/servers/isc/bind9/$(get_pkg_ver ${BIND})"
 unset ARCH_EXT
 fpkg       ${IPTABLES} "http://www.netfilter.org/projects/iptables/files"
+fpkg       ${CURL} "http://curl.haxx.se/download"
+fpkg       ${RSYNC} "http://samba.org/ftp/rsync/src"
+
 fpkg       ${MYSQL} "ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/MySQL-$(get_pkg_ver_base ${MYSQL})"
+
 fpkg_mis   ${ZIP} "zip$(get_pkg_ver ${ZIP} | sed 's!\.!!g')" ${SOURCEFORGE_URL}/infozip
 fpkg_mis   ${UNZIP} "unzip$(get_pkg_ver ${UNZIP} | sed 's!\.!!g')" ${SOURCEFORGE_URL}/infozip
 fpkg_mis   ${UNRAR} "unrarsrc-$(get_pkg_ver ${UNRAR})" "http://www.rarlab.com/rar"
 fpkg_gnu   ${CPIO}
+
 fpkg_gnu   ${PARTED}
-fpkg       ${CURL} "http://curl.haxx.se/download"
-fpkg       ${RSYNC} "http://samba.org/ftp/rsync/src"
 fpkg_gnu   ${ED}
 fpkg_gnu   ${BC}
 fpkg_sf    ${FUSE}
@@ -72,270 +74,38 @@ fpkg       ${DOSFSTOOLS} "http://www.daniel-baumann.ch/software/dosfstools"
 fpkg       ${CVS} "ftp://ftp.gnu.org/non-gnu/cvs/source/stable/$(get_pkg_ver ${CVS})"
 fpkg       ${GIT}          "http://www.kernel.org/pub/software/scm/git"
 fpkg       ${GIT_MANPAGES} "http://www.kernel.org/pub/software/scm/git"
-fpkg_mis   ${LIBJPEG} "jpegsrc.v$(get_pkg_ver ${LIBJPEG})" "http://www.ijg.org/files"
-fpkg_mis   ${LIBOPENJPEG} "openjpeg_v$(get_pkg_ver ${LIBOPENJPEG} | sed 's!\.!_!g')" "http://www.openjpeg.org"
-fpkg_sf    ${LIBPNG}
-fpkg_gnome ${LIBART}
-fpkg_sf    ${LIBEXIF}
-fpkg       ${FRIBIDI} "http://fribidi.org/download"
-fpkg_sf    ${FREETYPE}
-fpkg       ${FONTCONFIG} "http://fontconfig.org/release"
-
-###fpkg_hv    ${XFREE86}
-
-fpkg       ${T1LIB} "http://www.ibiblio.org/pub/Linux/libs/graphics"
-fpkg_mis   ${TK} "${TK}-src" ${SOURCEFORGE_URL}/tcl
-
-fpkg       ${TIFF} "http://libtiff.maptools.org/dl"
-fpkg_sf    ${GIFLIB}
-fpkg       ${LCMS}    "http://www.littlecms.com"
-fpkg_sf    ${LIBMNG}
-
-fpkg       ${WINDOWMAKER}       "http://windowmaker.info/pub/source/release"
-fpkg       ${WINDOWMAKER_EXTRA} "http://windowmaker.info/pub/source/release"
-fpkg_sf    ${LESSTIF}
-
-exit 1
-
-
-
 
+# Perl modules
+fpkg_sf    ${PERL_MOD_PDL} pdl
+fpkg       ${PERL_MOD_XML_WRITER} "http://www.cpan.org/modules/by-module/XML"
+fpkg       ${PERL_MOD_XML_PARSER} "http://www.cpan.org/modules/by-module/XML"
 
 fpkg       ${PYTHON} "http://www.python.org/ftp/python/$(get_pkg_ver ${PYTHON})"
+
 fpkg       ${SGML_COMMON} "http://gd.tuwien.ac.at/hci/kde/devel/docbook/SOURCES"
 fpkg_hv    ${SGML_DTD3}
 fpkg_hv    ${SGML_DTD4}
 fpkg_sf    ${OPENSP} "openjade"
 fpkg_sf    ${OPENJADE}
+fpkg_hv    ${SGML_SPM} # For re-generating fontconfig documentation.
 fpkg_sf    ${DOCBOOK_DSSSL} "docbook"
 fpkg       ${DOCBOOK_UTILS} "http://sources-redhat.mirrors.redwire.net/docbook-tools/new-trials/SOURCES"
 fpkg_gnome ${LIBXML2}
 fpkg       ${LIBXSLT} "http://xmlsoft.org/sources"
 fpkg_hv    ${DOCBOOK_XML}
 fpkg_sf    ${DOCBOOK_XSL} "docbook"
-# For re-generating fontconfig documentation.
-fpkg_hv    ${SGML_SPM}
-
 fpkg_sf    ${XMLTOMAN}
 
-# Perl modules
-fpkg_sf    ${PERL_MOD_PDL} pdl
-fpkg       ${PERL_MOD_XML_WRITER} "http://www.cpan.org/modules/by-module/XML"
-fpkg       ${PERL_MOD_XML_PARSER} "http://www.cpan.org/modules/by-module/XML"
-fpkg       ${PERL_MOD_XML_SIMPLE} "http://www.cpan.org/modules/by-module/XML"
-fpkg       ${PERL_MOD_PARSE_REDESCENT} "http://www.cpan.org/modules/by-module/Parse"
-
-# Gtk
-fpkg_gnome ${GTK_DOC}
-fpkg_gnome ${GLIB}
-fpkg       ${PIXMAN} "http://cairographics.org/releases"
-fpkg       ${GLITZ} "http://cairographics.org/snapshots"
-fpkg       ${CAIRO} "http://cairographics.org/releases"
-fpkg       ${CAIROMM} "http://cairographics.org/releases"
-fpkg_gnome ${PANGO}
-fpkg_gnome ${ATK}
-fpkg_gnome ${GTK2}
-fpkg_gnome ${GTK_ENGINES}
-fpkg_gnome ${PYGOBJECT}
-fpkg_gnome ${PYGTK}
-
-fpkg_gnome ${LIBSIGCPP}
-fpkg       ${GC} " http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source"
-fpkg_gnome ${GLIBMM}
-fpkg_gnome ${GTKMM}
+fpkg_mis   ${LIBJPEG} "jpegsrc.v$(get_pkg_ver ${LIBJPEG})" "http://www.ijg.org/files"
+fpkg_mis   ${LIBOPENJPEG} "openjpeg_v$(get_pkg_ver ${LIBOPENJPEG} | sed 's!\.!_!g')" "http://www.openjpeg.org"
+fpkg_sf    ${LIBPNG}
+fpkg_gnome ${LIBART}
+fpkg_sf    ${LIBEXIF}
+fpkg       ${FRIBIDI} "http://fribidi.org/download"
 fpkg       ${HICOLOR_ICON_THEME} "http://icon-theme.freedesktop.org/releases"
-
-fpkg_hv    ${HVCLOCK}
-fpkg_hv    ${WMNOTIFY}
-
-fpkg       ${DESKTOP_FILE_UTILS} "http://freedesktop.org/software/desktop-file-utils/releases"
-fpkg       ${SHARED_MIME_INFO} "http://people.freedesktop.org/~hadess"
-fpkg_gnome ${STARTUP_NOTIFICATION}
-fpkg_gnome ${LIBWNCK}
-fpkg_sf    ${LIBXKLAVIER} gswitchit
-fpkg_gnome ${LIBGLADE}
-fpkg_gnome ${LIBSOUP}
-fpkg_gnome ${LIBIDL}
-fpkg_gnome ${LIBRSVG}
-
-fpkg_gnome ${INTLTOOL}
-fpkg_gnu   ${GSL}
-
-fpkg_sf    ${LIBUSB}
-fpkg_sf    ${LIBGPHOTO2} "gphoto"
-
-fpkg       ${BABL} "ftp://ftp.gtk.org/pub/babl/$(get_pkg_ver_base ${BABL})"
-fpkg       ${GEGL} "ftp://ftp.gimp.org/pub/gegl/$(get_pkg_ver_base ${BABL})"
-fpkg       ${GIMP} "ftp://ftp.gimp.org/pub/gimp/v$(get_pkg_ver_base ${GIMP})"
-fpkg_sf    ${GUTENPRINT}
-fpkg_hv    ${INKSCAPE}
-
-fpkg       ${CDRTOOLS} "ftp://ftp.berlios.de/pub/cdrecord"
-fpkg       ${DVDRWTOOLS} "http://fy.chalmers.se/~appro/linux/DVD+RW/tools"
-
-fpkg_mis   ${CUPS} "${CUPS}-source" "http://ftp.easysw.com/pub/cups/$(get_pkg_ver ${CUPS})"
-fpkg_sf    ${SPLIX}
-
-fpkg_mis   ${ESPGS} "${ESPGS}-source" "http://ftp.easysw.com/pub/ghostscript/$(get_pkg_ver ${ESPGS})"
-fpkg_sf    ${GHOSTSCRIPT_FONTS_STD} "ghostscript"
-fpkg_sf    ${GHOSTSCRIPT_FONTS_OTHER} "ghostscript"
-
-fpkg_hv    ${IMAGE_MAGICK}
-fpkg       ${ICON_NAMING_UTILS}       "http://tango.freedesktop.org/releases"
-fpkg       ${TANGO_ICON_THEME}        "http://tango-project.org/releases"
-fpkg       ${TANGO_ICON_THEME_EXTRAS} "http://tango-project.org/releases"
-
-
-fpkg       ${TETEX_SRC}      "${TETEX_URL}/$(get_pkg_ver ${TETEX_SRC})/distrib"
-fpkg       ${TETEX_TEXMF}    "${TETEX_URL}/$(get_pkg_ver ${TETEX_TEXMF})/distrib"
-fpkg       ${TETEX_TEXMFSRC} "${TETEX_URL}/$(get_pkg_ver ${TETEX_TEXMFSRC})/distrib"
-fpkg       ${TETEX_CM_SUPER} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/t"
-# For re-generating fontconfig documentation.
-fpkg_sf    ${JADETEX}
-
-fpkg       ${POPPLER} "http://poppler.freedesktop.org"
-
-fpkg       ${SANE_BACKENDS} "ftp://ftp.sane-project.org/pub/sane/${SANE_BACKENDS}"
-fpkg       ${XSANE}         "ftp://ftp.sane-project.org/pub/sane/xsane"
-
-fpkg_sf    ${JACK} "jackit"
-fpkg       ${ALSA_LIB}     "ftp://ftp.alsa-project.org/pub/lib"
-fpkg       ${ALSA_PLUGINS} "ftp://ftp.alsa-project.org/pub/plugins"
-fpkg       ${ALSA_UTILS}   "ftp://ftp.alsa-project.org/pub/utils"
-fpkg       ${ALSA_OSS}     "ftp://ftp.alsa-project.org/pub/oss-lib"
-
-# Multimedia libraries and drivers.
-fpkg       ${AUDIOFILE} "http://www.68k.org/~michael/audiofile"
-fpkg_gnome ${ESOUND}
-
-fpkg       ${LIBSAMPLERATE} "http://www.mega-nerd.com/SRC"
-fpkg       ${LIBOIL} "http://liboil.freedesktop.org/download"
-fpkg       ${SPEEX} "http://downloads.xiph.org/releases/speex"
-fpkg       ${PULSEAUDIO} "http://0pointer.de/lennart/projects/pulseaudio"
-
-# Temporaire, version beta
-fpkg       ${LIBSNDFILE} "http://www.mega-nerd.com/tmp"
-#fpkg       ${LIBSNDFILE} "http://www.mega-nerd.com/libsndfile"
-
-fpkg       ${LIBOGG}    "http://downloads.xiph.org/releases/ogg"
-fpkg       ${LIBVORBIS} "http://downloads.xiph.org/releases/vorbis"
-fpkg       ${LIBTHEORA} "http://downloads.xiph.org/releases/theora"
-
-fpkg_hv    ${FLAC}
-fpkg_hv    ${FFMPEG}
-fpkg       ${XVIDCORE} "http://downloads.xvid.org/downloads"
-
-# Audio utilities
-fpkg_sf    ${LAME}
-fpkg       ${VORBIS_TOOLS} "http://downloads.xiph.org/releases/vorbis"
-fpkg_hv    ${LIBA52}
-fpkg_hv    ${LIBID3TAG}
-fpkg       ${LIBMAD} "ftp://ftp.mars.org/pub/mpeg"
-fpkg_sf    ${LIBFAAC}
-fpkg       ${LIBFAAD2} "http://downloads.sourceforge.net/faac"
-fpkg_sf    ${GRIP}
-fpkg_sf    ${CDRDAO}
-fpkg_hv    ${PORTAUDIO}
-fpkg_hv    ${SWEEP}
-fpkg       ${LILYPOND} "http://lilypond.org/download/sources/v$(get_pkg_ver_base ${LILYPOND})"
-fpkg       ${SYLPHEED} "http://sylpheed.good-day.net/sylpheed/v$(get_pkg_ver_base ${SYLPHEED})"
-
-fpkg_hv    ${NSS}
-fpkg       ${FIREFOX} "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$(get_pkg_ver ${FIREFOX})/source"
-
-fpkg_hv    ${JAVA}
-fpkg_hv    ${AGG}
-fpkg       ${GNASH} "http://ftp.gnu.org/pub/gnu/gnash/$(get_pkg_ver ${GNASH})"
-
-fpkg       ${DBUS} "http://dbus.freedesktop.org/releases/dbus"
-fpkg       ${DBUS_GLIB} "http://dbus.freedesktop.org/releases/dbus-glib"
-fpkg       ${HAL} "http://people.freedesktop.org/~david/dist"
-
-fpkg       ${SASL2} "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail"
-fpkg_mis   ${OPENLDAP} "openldap-stable-20070831" \
-    "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable"
-fpkg_hv    ${KERBEROS5}
-
-fpkg_mis   ${SENDMAIL} "sendmail.$(get_pkg_ver ${SENDMAIL})" "ftp://ftp.sendmail.org/pub/sendmail"
-fpkg       ${LIBSPF2} "http://libspf2.org/spf"
-fpkg       ${MILTER_GREYLIST} "ftp://ftp.espci.fr/pub/milter-greylist"
-fpkg_hv    ${MILTER_SPF}
-fpkg       ${PROCMAIL} "http://www.procmail.org"
-fpkg       ${FETCHMAIL} "http://download.berlios.de/fetchmail"
-fpkg_sf    ${MUTT}
-
-fpkg_mis   ${FCRON} "${FCRON}.src" "ftp://ftp.seul.org/pub/fcron"
-fpkg_hv    ${GETDATE}
-
-fpkg_sf    ${CLAMAV}
-
-fpkg       ${PERL_MOD_HTML_TAGSET} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/perl-modules"
-fpkg       ${PERL_MOD_HTML_PARSER} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/perl-modules"
-fpkg       ${PERL_MOD_APACHE_LOGGED_AUTH_DBI} "http://search.cpan.org/CPAN/authors/id/S/SI/SIMKIN"
-fpkg       ${PERL_MOD_DB_FILE} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
-fpkg       ${PERL_MOD_DIGEST_SHA1} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/perl-modules"
-# URI is needed by LWP
-fpkg       ${PERL_MOD_URI} "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS"
-# LWP is Needed by LTSP
-fpkg       ${PERL_MOD_LWP} "http://www.linpro.no/lwp"
-
-# ZIP is Needed by OO
-fpkg       ${PERL_MOD_ARCHIVE_ZIP} "http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK"
-fpkg       ${PERL_MOD_COMPRESS_ZLIB} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
-fpkg       ${PERL_MOD_IO_COMPRESS_BASE} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
-fpkg       ${PERL_MOD_IO_COMPRESS_ZLIB} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
-fpkg       ${PERL_MOD_COMPRESS_RAW_ZLIB} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
-fpkg       ${PERL_MOD_NET_DNS} "http://search.cpan.org/CPAN/authors/id/O/OL/OLAF"
-
-fpkg       ${SPAMASSASSIN} "http://apache.sunsite.ualberta.ca/spamassassin/source"
-fpkg       ${UW_IMAP} "ftp://ftp.cac.washington.edu/imap"
-
-fpkg       ${HTTPD} "http://www.apache.org/dist/httpd"
-
-
-
-fpkg_sf    ${MAILMAN}
-
-fpkg       ${SAMBA} "ftp://ftp.samba.org/pub/samba/old-versions"
-
-fpkg       ${PHP}   "http://us2.php.net/distributions"
-
-lpkg     2 ${SUBVERSION}
-fpkg_gnu   ${INDENT}
-
-fpkg       ${LTSP_UTILS} "http://ltsp.mirrors.tds.net/pub/ltsp/utils"
-fpkg       ${TFTP_HPA} "http://www.kernel.org/pub/software/network/tftp"
-
-fpkg_sf    ${KVM}
-fpkg_hv    ${BRIDGE_UTILS}
-fpkg_hv    ${UML_UTILITIES}
-
-fpkg_gnu   ${GUILE}
-
-fpkg_sf    ${LIBBOOST}
-
-fpkg       ${TRANSMISSION} "http://mirrors.m0k.org/transmission/files"
-
-fpkg_hv    ${CKERMIT}
-
-fpkg       ${LIBGAMIN} "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
-fpkg_sf    ${PCMANFM}
-
-fpkg_gnu   ${HELP2MAN}
-
-fpkg       ${LIBDVDCSS}  "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
-fpkg       ${LIBDVDREAD} "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
-fpkg       ${DVDFS} "http://jspenguin.org:81/dvdfs"
-
-
-
-fpkg       ${LIBFFI} "ftp://sourceware.org/pub/libffi"
-fpkg_gnome ${GOBJECT_INSTROSPECTION}
-fpkg       ${EGGDBUS} "http://hal.freedesktop.org/releases"
-fpkg       ${POLKIT} "http://hal.freedesktop.org/releases"
-
-fpkg       ${GNUPG} "ftp://ftp.gnupg.org/gcrypt/gnupg"
-
-
+fpkg       ${TIFF} "http://libtiff.maptools.org/dl"
+fpkg_sf    ${GIFLIB}
+fpkg       ${LCMS}    "http://www.littlecms.com"
+fpkg_sf    ${LIBMNG}
 
 exit $?
index 513f03a..c6ad0d9 100755 (executable)
@@ -25,7 +25,6 @@ export SCRDIR=$(pwd)
 
 ipkg_cust  ${NANO} cis-nano --enable-color --enable-multibuffer
 ipkg_ac    ${WHICH}
-ipkg_cust  ${EMACS} cis-emacs
 ipkg_cust  ${PCIUTILS} cis-pciutils
 ipkg_cust  ${REISERFSPROGS} cis-reiserfsprogs
 ipkg_cust  ${NET_TOOLS} cis-net-tools
@@ -86,298 +85,39 @@ ipkg_cust  ${DOSFSTOOLS} cis-dosfstools
 ipkg_ac    ${CVS} --disable-server
 ipkg_cust  ${GIT} cis-git
 
-# Graphic libraries without X-Window dependencies
+# Perl modules
+ipkg_pm    ${PERL_MOD_PDL}
+ipkg_pm    ${PERL_MOD_XML_WRITER}
+ipkg_pm    ${PERL_MOD_XML_PARSER}
+
+ipkg_ac    ${PYTHON} "--enable-shared"
+
+# DocBook
+ipkg_cust  ${SGML_COMMON}   cis-sgml-common
+ipkg_cust  ${SGML_DTD3}     cis-sgml-dtd3
+ipkg_cust  ${SGML_DTD4}     cis-sgml-dtd4
+ipkg_cust  ${OPENSP}        cis-opensp
+ipkg_cust  ${OPENJADE}      cis-openjade
+ipkg_cust  ${DOCBOOK_DSSSL} cis-docbook-dsssl
+ipkg_cust  ${SGML_SPM}      cis-sgml-spm # Perl module
+ipkg_cust  ${DOCBOOK_UTILS} cis-docbook-utils
+ipkg_ac_nb ${LIBXML2}
+ipkg_ac_nb ${LIBXSLT}
+ipkg_cust  ${DOCBOOK_XML}   cis-docbook-xml
+ipkg_cust  ${DOCBOOK_XSL}   cis-docbook-xsl
+ipkg_cust  ${XMLTOMAN}      cis-xmltoman
+
+# Graphic libraries
 ipkg_ac    ${LIBJPEG} "--enable-static --enable-shared"
 ipkg_cust  ${LIBOPENJPEG} cis-libopenjpeg
 ipkg_ac    ${LIBPNG}
 ipkg_ac    ${LIBART}
 ipkg_ac    ${LIBEXIF}
 ipkg_ac    ${FRIBIDI}
-
-# X-Window
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_ac   ${FREETYPE}
-    ipkg_cust ${FONTCONFIG}  cis-fontconfig
-    ipkg_cust ${XFREE86}     cis-xfree86
-    source /etc/profile
-
-    ipkg_cust ${T1LIB}       cis-t1lib
-    ipkg_cust ${TK}  cis-tk
-fi
-
-# Graphic libraries with optional X-Window dependencies
+ipkg_ac_nb ${HICOLOR_ICON_THEME}
 ipkg_ac    ${LIBTIFF}
 ipkg_ac    ${GIFLIB}
 ipkg_ac_nb ${LCMS}
 ipkg_cust  ${LIBMNG}   cis-libmng
 
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_cust ${WINDOWMAKER} cis-windowmaker
-    ipkg_ac   ${WINDOWMAKER_EXTRA}
-
-    # Open Source version of OSF/Motif
-    ipkg_ac   ${LESSTIF} "--disable-debug --enable-production --with-xdnd --disable-build-tests"
-    # Re-installing emacs now that X is present (it was installed in stage 2)
-    ipkg_cust ${EMACS} cis-emacs
-fi
-
-ipkg_ac   ${PYTHON} "--enable-shared"
-ipkg_cust ${LIBBOOST} cis-boost
-
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    # DocBook
-    ipkg_cust   ${SGML_COMMON}   cis-sgml-common
-    ipkg_cust   ${SGML_DTD3}     cis-sgml-dtd3
-    ipkg_cust   ${SGML_DTD4}     cis-sgml-dtd4
-    ipkg_cust   ${OPENSP}        cis-opensp
-    ipkg_cust   ${OPENJADE}      cis-openjade
-    ipkg_cust   ${DOCBOOK_DSSSL} cis-docbook-dsssl
-    ipkg_cust   ${DOCBOOK_UTILS} cis-docbook-utils
-    ipkg_ac_nb  ${LIBXML2}
-    ipkg_ac_nb  ${LIBXSLT}
-    ipkg_cust   ${DOCBOOK_XML}   cis-docbook-xml
-    ipkg_cust   ${DOCBOOK_XSL}   cis-docbook-xsl
-    ipkg_cust   ${SGML_SPM}      cis-sgml-spm
-
-    ipkg_cust   ${XMLTOMAN}      cis-xmltoman
-
-    # Perl modules
-    ipkg_pm    ${PERL_MOD_PDL}
-    ipkg_pm    ${PERL_MOD_XML_WRITER}
-    ipkg_pm    ${PERL_MOD_XML_PARSER}
-
-    # Needed by Tango
-    ipkg_pm    ${PERL_MOD_XML_SIMPLE}
-    ipkg_pm    ${PERL_MOD_PARSE_REDESCENT}
-
-    # Required PERL modules for SpamAssassin
-    ipkg_pm    ${PERL_MOD_HTML_TAGSET}
-    ipkg_pm    ${PERL_MOD_HTML_PARSER}
-    ipkg_pm    ${PERL_MOD_APACHE_LOGGED_AUTH_DBI}
-    ipkg_pm    ${PERL_MOD_DB_FILE}
-    ipkg_pm    ${PERL_MOD_DIGEST_SHA1}
-    ipkg_pm    ${PERL_MOD_URI}
-    ipkg_pm    ${PERL_MOD_LWP}
-    ipkg_pm    ${PERL_MOD_NET_DNS} --no-online-tests
-
-    # Needed by OpenOffice ???
-    ipkg_pm    ${PERL_MOD_ARCHIVE_ZIP}
-    ipkg_pm    ${PERL_MOD_COMPRESS_ZLIB}
-    ipkg_pm    ${PERL_MOD_IO_COMPRESS_BASE}
-    ipkg_pm    ${PERL_MOD_COMPRESS_RAW_ZLIB}
-    ipkg_pm    ${PERL_MOD_IO_COMPRESS_ZLIB}
-
-    # Gtk
-    ipkg_ac    ${GTK_DOC}
-    ipkg_ac    ${GLIB}
-    ipkg_ac    ${PIXMAN}
-    ipkg_ac    ${GLITZ}
-    ipkg_ac    ${CAIRO} "--enable-glitz"
-    ipkg_ac    ${PANGO}
-    ipkg_ac    ${ATK}
-    ipkg_ac    ${GTK} "--without-libjasper"
-    ipkg_ac    ${GTK_ENGINES}
-    ipkg_ac    ${PYGOBJECT}
-    ipkg_ac    ${PYGTK}
-    ipkg_ac    ${LIBSIGCPP}
-    ipkg_ac    ${GC}
-    ipkg_ac    ${GLIBMM}
-    ipkg_ac    ${CAIROMM}
-    ipkg_ac    ${GTKMM}
-    ipkg_ac_nb ${HICOLOR_ICON_THEME}
-
-    ipkg_ac    ${HVCLOCK}
-    ipkg_ac    ${WMNOTIFY}
-
-    # Needed by GNOME-2
-    ipkg_ac    ${DESKTOP_FILE_UTILS}
-    ipkg_ac    ${SHARED_MIME_INFO}
-    ipkg_ac    ${STARTUP_NOTIFICATION}
-    ipkg_ac    ${LIBWNCK}
-    ipkg_ac    ${LIBXKLAVIER}
-    ipkg_ac    ${LIBGLADE}
-    ipkg_ac    ${LIBSOUP}
-    ipkg_ac    ${LIBIDL}
-fi
-
-ipkg_ac   ${HELP2MAN}
-ipkg_ac   ${INTLTOOL}
-ipkg_ac   ${GSL}
-ipkg_cust ${CUPS}     cis-cups
-ipkg_cust ${SPLIX}    cis-splix # Drivers Samsung pour CUPS
-ipkg_cust ${ESPGS}    cis-espgs
-
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_cust  ${LIBUSB}  cis-libusb
-    ipkg_ac    ${LIBGPHOTO2}
-    ipkg_ac    ${IMAGE_MAGICK} "--with-modules"
-    ipkg_ac    ${POPPLER} "--enable-xpdf-headers --enable-zlib"
-    ipkg_ac    ${LIBRSVG} "--disable-gtk-doc --disable-mozilla-plugin"
-    ipkg_ac    ${BABL}
-    ipkg_ac    ${GEGL}
-    ipkg_ac    ${GIMP} "--disable-print"
-    ipkg_ac_nb ${GUTENPRINT}
-    ipkg_ac    ${INKSCAPE} "CFLAGS=\"-DPOPPLER_NEW_GFXFONT\""
-fi
-
-ipkg_cust ${CDRTOOLS} cis-cdrtools
-ipkg_cust ${DVDRWTOOLS} cis-dvd-rw-tools
-ipkg_ac   ${LIBDVDCSS}
-ipkg_ac   ${LIBDVDREAD} "--with-libdvdcss"
-ipkg_cust ${DVDFS} cis-dvdfs
-
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_cust ${TETEX_SRC} cis-tetex
-    ipkg_cust ${JADETEX}   cis-jadetex
-fi
-
-if [ "x${SANE_SUPPORT}" = "xyes" ]; then
-    ipkg_cust ${SANE_BACKENDS} cis-sane-backends
-    ipkg_cust ${XSANE} cis-xsane
-fi
-
-ipkg_ac  ${ICON_NAMING_UTILS}
-ipkg_ac  ${TANGO_ICON_THEME}
-ipkg_ac  ${TANGO_ICON_THEME_EXTRAS}
-
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    # Audio
-    if [ "x${SOUND_CARD}" = "xyes" ]; then
-        # Needed by some packages, mostly audio applications.
-        ipkg_ac    ${LIBOIL}
-
-        # ALSA
-       ipkg_cust  ${ALSA_LIB}   cis-alsa-lib
-       ipkg_cust  ${ALSA_UTILS} cis-alsa-utils
-       ipkg_ac    ${ALSA_OSS}
-
-        # Audio raw utilities
-        ipkg_ac    ${LIBSAMPLERATE}
-
-        # Audio file formats
-       ipkg_ac    ${LIBOGG}
-       ipkg_ac    ${LIBVORBIS}
-       ipkg_ac_nb ${FLAC}
-       ipkg_ac    ${LAME}
-        ipkg_ac    ${LIBA52} "--enable-shared"
-       ipkg_cust  ${LIBID3TAG} cis-libid3tag
-       ipkg_cust  ${LIBMAD} cis-libmad
-
-        ipkg_ac_nb ${LIBFAAC}
-        ipkg_ac_nb ${LIBFAAD2}
-        ipkg_ac    ${LIBTHEORA}
-        ipkg_cust  ${XVIDCORE} cis-xvidcore
-
-        # Audio libraries
-       ipkg_ac_nb ${AUDIOFILE}
-        ipkg_ac    ${PORTAUDIO}
-       ipkg_ac    ${LIBSNDFILE}
-
-        # Audio servers
-       ipkg_ac   ${ESOUND}
-        ipkg_ac   ${SPEEX}
-        ipkg_cust ${PULSEAUDIO} cis-pulseaudio
-       ipkg_ac   ${JACK} "--disable-portaudio"
-
-       ipkg_ac  ${ALSA_PLUGINS} # Depends on pulseaudio
-       ipkg_ac  ${VORBIS_TOOLS}
-        
-        # Audio applications
-       ipkg_ac_nb ${GRIP} "--disable-id3"
-        ipkg_ac_nb ${CDRDAO}
-        ipkg_ac    ${SWEEP} "--enable-pulseaudio"
-        ipkg_ac    ${EASYTAG}
-        ipkg_ac_nb ${LILYPOND}
-
-        ipkg_ac_nb ${FFMPEG} "--enable-shared --enable-pthreads --enable-gpl --enable-nonfree --disable-ffplay \
-                              --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora \
-                              --enable-libvorbis --enable-libxvid"
-    fi
-
-    ipkg_ac    ${SYLPHEED} "--enable-ssl --enable-ldap"
-    ipkg_cust  ${NSS} cis-nss
-    ipkg_cust  ${FIREFOX} cis-firefox
-
-    # Plugins for Firefox
-    ipkg_cust  ${JAVA} cis-java
-    ipkg_cust  ${AGG} cis-agg
-    ipkg_cust  ${GNASH} cis-gnash
-fi
-
-ipkg_cust ${DBUS}      cis-dbus
-ipkg_ac   ${DBUS_GLIB} "--disable-tests --disable-dependency-tracking --disable-xml-docs --disable-doxygen-docs"
-ipkg_ac   ${EGGDBUS}
-ipkg_cust ${HAL}       cis-hal
-
-ipkg_ac   ${LIBGAMIN} "--libexecdir=/usr/sbin"
-ipkg_ac   ${PCMANFM}
-
-# Mail
-ipkg_cust ${SASL2}     cis-sasl2
-ipkg_cust ${OPENLDAP}  cis-openldap
-ipkg_cust ${KERBEROS5} cis-krb5
-ipkg_cust ${SENDMAIL}  cis-sendmail
-
-if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_cust ${PROCMAIL} cis-procmail
-    ipkg_ac   ${LIBSPF2}
-    ipkg_cust ${MILTER_SPF} cis-milter-spf
-    ipkg_cust ${MILTER_GREYLIST} cis-milter-greylist
-fi
-
-# fcron needs sendmail installed.
-ipkg_cust ${FCRON}   cis-fcron
-ipkg_cust ${GETDATE} cis-getdate
-
-if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_cust ${CLAMAV}       cis-clamav
-    ipkg_cust ${SPAMASSASSIN} cis-spamassassin
-    ipkg_cust ${UW_IMAP}      cis-uw-imap
-
-    # Apache
-    ipkg_cust ${HTTPD} cis-apache
-    ipkg_cust ${PHP}   cis-php
-
-    ipkg_cust ${SQUIRRELMAIL} cis-squirrelmail
-    ipkg_cust ${MAILMAN} cis-mailman
-    ipkg_ac   ${FETCHMAIL} "--with-ssl"
-    ipkg_ac   ${MUTT} "--enable-imap --with-ssl"
-
-    # Subversion server (client was already installed in stage2) 
-    ipkg_cust ${SUBVERSION} cis-subversion
-    ipkg_ac   ${INDENT}
-fi
-
-if [ "x${USE_SAMBA}" = "xyes" ]; then
-    ipkg_cust ${SAMBA} cis-samba
-fi
-
-if [ "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_cust ${TFTP_HPA} cis-tftp-hpa
-    ipkg_cust ${LTSP_UTILS} cis-ltsp-utils
-fi
-
-ipkg_ac_nb ${KVM}
-ipkg_ac_nb ${BRIDGE_UTILS}
-ipkg_cust  ${UML_UTILITIES} cis-uml-utilities
-
-ipkg_ac    ${GUILE} \
-    --enable-posix \
-    --disable-static \
-    --enable-networking \
-    --enable-regex
-
-ipkg_cust  ${CKERMIT} cis-ckermit
-
-# BitTorrent client
-ipkg_ac    ${TRANSMISSION} "--disable-daemon"
-
-ipkg_ac    ${LIBFFI}
-ipkg_ac    ${GOBJECT_INSTROSPECTION}
-
-ipkg_cust  ${POLKIT} cis-polkit
-ipkg_ac    ${GNUPG} "--libexecdir=/usr/lib"
-
-rscr mult  "Performing post-install" cis-post-install
-
 exit $?
diff --git a/stage4/INSTALL b/stage4/INSTALL
new file mode 100644 (file)
index 0000000..52383c5
--- /dev/null
@@ -0,0 +1,5 @@
+
+Installation instructions
+-------------------------
+
+1. ./stage4-install
diff --git a/stage4/TODO b/stage4/TODO
new file mode 100644 (file)
index 0000000..9799439
--- /dev/null
@@ -0,0 +1,3 @@
+
+                      TODO
+
diff --git a/stage4/cis-ac b/stage4/cis-ac
new file mode 120000 (symlink)
index 0000000..9214a69
--- /dev/null
@@ -0,0 +1 @@
+../stage2/cis-ac
\ No newline at end of file
diff --git a/stage4/cis-ac-nobuild b/stage4/cis-ac-nobuild
new file mode 120000 (symlink)
index 0000000..06c3fe7
--- /dev/null
@@ -0,0 +1 @@
+../stage2/cis-ac-nobuild
\ No newline at end of file
diff --git a/stage4/packages-update b/stage4/packages-update
new file mode 100755 (executable)
index 0000000..860cd83
--- /dev/null
@@ -0,0 +1,249 @@
+#!/bin/sh
+
+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
+
+# Execute a return statement instead of exit, to be able to continue with
+# downloading other packages
+export RCMD_NO_EXIT=1
+
+update_packages_init
+
+
+fpkg_sf    ${FREETYPE}
+fpkg       ${FONTCONFIG} "http://fontconfig.org/release"
+###fpkg_hv    ${XFREE86}
+
+
+fpkg       ${T1LIB} "http://www.ibiblio.org/pub/Linux/libs/graphics"
+fpkg_mis   ${TK} "${TK}-src" ${SOURCEFORGE_URL}/tcl
+
+fpkg_gnu   ${EMACS}
+
+fpkg       ${WINDOWMAKER}       "http://windowmaker.info/pub/source/release"
+fpkg       ${WINDOWMAKER_EXTRA} "http://windowmaker.info/pub/source/release"
+fpkg_sf    ${LESSTIF}
+
+fpkg       ${PERL_MOD_XML_SIMPLE} "http://www.cpan.org/modules/by-module/XML"
+fpkg       ${PERL_MOD_PARSE_REDESCENT} "http://www.cpan.org/modules/by-module/Parse"
+
+# Gtk
+fpkg_gnome ${GTK_DOC}
+fpkg_gnome ${GLIB}
+fpkg       ${PIXMAN} "http://cairographics.org/releases"
+fpkg       ${GLITZ} "http://cairographics.org/snapshots"
+fpkg       ${CAIRO} "http://cairographics.org/releases"
+fpkg       ${CAIROMM} "http://cairographics.org/releases"
+fpkg_gnome ${PANGO}
+fpkg_gnome ${ATK}
+fpkg_gnome ${GTK2}
+fpkg_gnome ${GTK_ENGINES}
+fpkg_gnome ${PYGOBJECT}
+fpkg_gnome ${PYGTK}
+
+fpkg_gnome ${LIBSIGCPP}
+fpkg       ${GC} " http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source"
+fpkg_gnome ${GLIBMM}
+fpkg_gnome ${GTKMM}
+
+
+fpkg_hv    ${HVCLOCK}
+fpkg_hv    ${WMNOTIFY}
+
+fpkg       ${DESKTOP_FILE_UTILS} "http://freedesktop.org/software/desktop-file-utils/releases"
+fpkg       ${SHARED_MIME_INFO} "http://people.freedesktop.org/~hadess"
+fpkg_gnome ${STARTUP_NOTIFICATION}
+fpkg_gnome ${LIBWNCK}
+fpkg_sf    ${LIBXKLAVIER} gswitchit
+fpkg_gnome ${LIBGLADE}
+fpkg_gnome ${LIBSOUP}
+fpkg_gnome ${LIBIDL}
+fpkg_gnome ${LIBRSVG}
+
+fpkg_gnome ${INTLTOOL}
+fpkg_gnu   ${GSL}
+
+fpkg_sf    ${LIBUSB}
+fpkg_sf    ${LIBGPHOTO2} "gphoto"
+
+fpkg       ${BABL} "ftp://ftp.gtk.org/pub/babl/$(get_pkg_ver_base ${BABL})"
+fpkg       ${GEGL} "ftp://ftp.gimp.org/pub/gegl/$(get_pkg_ver_base ${BABL})"
+fpkg       ${GIMP} "ftp://ftp.gimp.org/pub/gimp/v$(get_pkg_ver_base ${GIMP})"
+fpkg_sf    ${GUTENPRINT}
+fpkg_hv    ${INKSCAPE}
+
+fpkg       ${CDRTOOLS} "ftp://ftp.berlios.de/pub/cdrecord"
+fpkg       ${DVDRWTOOLS} "http://fy.chalmers.se/~appro/linux/DVD+RW/tools"
+
+fpkg_mis   ${CUPS} "${CUPS}-source" "http://ftp.easysw.com/pub/cups/$(get_pkg_ver ${CUPS})"
+fpkg_sf    ${SPLIX}
+
+fpkg_mis   ${ESPGS} "${ESPGS}-source" "http://ftp.easysw.com/pub/ghostscript/$(get_pkg_ver ${ESPGS})"
+fpkg_sf    ${GHOSTSCRIPT_FONTS_STD} "ghostscript"
+fpkg_sf    ${GHOSTSCRIPT_FONTS_OTHER} "ghostscript"
+
+fpkg_hv    ${IMAGE_MAGICK}
+fpkg       ${ICON_NAMING_UTILS}       "http://tango.freedesktop.org/releases"
+fpkg       ${TANGO_ICON_THEME}        "http://tango-project.org/releases"
+fpkg       ${TANGO_ICON_THEME_EXTRAS} "http://tango-project.org/releases"
+
+
+fpkg       ${TETEX_SRC}      "${TETEX_URL}/$(get_pkg_ver ${TETEX_SRC})/distrib"
+fpkg       ${TETEX_TEXMF}    "${TETEX_URL}/$(get_pkg_ver ${TETEX_TEXMF})/distrib"
+fpkg       ${TETEX_TEXMFSRC} "${TETEX_URL}/$(get_pkg_ver ${TETEX_TEXMFSRC})/distrib"
+fpkg       ${TETEX_CM_SUPER} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/t"
+# For re-generating fontconfig documentation.
+fpkg_sf    ${JADETEX}
+
+fpkg       ${POPPLER} "http://poppler.freedesktop.org"
+
+fpkg       ${SANE_BACKENDS} "ftp://ftp.sane-project.org/pub/sane/${SANE_BACKENDS}"
+fpkg       ${XSANE}         "ftp://ftp.sane-project.org/pub/sane/xsane"
+
+fpkg_sf    ${JACK} "jackit"
+fpkg       ${ALSA_LIB}     "ftp://ftp.alsa-project.org/pub/lib"
+fpkg       ${ALSA_PLUGINS} "ftp://ftp.alsa-project.org/pub/plugins"
+fpkg       ${ALSA_UTILS}   "ftp://ftp.alsa-project.org/pub/utils"
+fpkg       ${ALSA_OSS}     "ftp://ftp.alsa-project.org/pub/oss-lib"
+
+# Multimedia libraries and drivers.
+fpkg       ${AUDIOFILE} "http://www.68k.org/~michael/audiofile"
+fpkg_gnome ${ESOUND}
+
+fpkg       ${LIBSAMPLERATE} "http://www.mega-nerd.com/SRC"
+fpkg       ${LIBOIL} "http://liboil.freedesktop.org/download"
+fpkg       ${SPEEX} "http://downloads.xiph.org/releases/speex"
+fpkg       ${PULSEAUDIO} "http://0pointer.de/lennart/projects/pulseaudio"
+
+# Temporaire, version beta
+fpkg       ${LIBSNDFILE} "http://www.mega-nerd.com/tmp"
+#fpkg       ${LIBSNDFILE} "http://www.mega-nerd.com/libsndfile"
+
+fpkg       ${LIBOGG}    "http://downloads.xiph.org/releases/ogg"
+fpkg       ${LIBVORBIS} "http://downloads.xiph.org/releases/vorbis"
+fpkg       ${LIBTHEORA} "http://downloads.xiph.org/releases/theora"
+
+fpkg_hv    ${FLAC}
+fpkg_hv    ${FFMPEG}
+fpkg       ${XVIDCORE} "http://downloads.xvid.org/downloads"
+
+# Audio utilities
+fpkg_sf    ${LAME}
+fpkg       ${VORBIS_TOOLS} "http://downloads.xiph.org/releases/vorbis"
+fpkg_hv    ${LIBA52}
+fpkg_hv    ${LIBID3TAG}
+fpkg       ${LIBMAD} "ftp://ftp.mars.org/pub/mpeg"
+fpkg_sf    ${LIBFAAC}
+fpkg       ${LIBFAAD2} "http://downloads.sourceforge.net/faac"
+fpkg_sf    ${GRIP}
+fpkg_sf    ${CDRDAO}
+fpkg_hv    ${PORTAUDIO}
+fpkg_hv    ${SWEEP}
+fpkg       ${LILYPOND} "http://lilypond.org/download/sources/v$(get_pkg_ver_base ${LILYPOND})"
+fpkg       ${SYLPHEED} "http://sylpheed.good-day.net/sylpheed/v$(get_pkg_ver_base ${SYLPHEED})"
+
+fpkg_hv    ${NSS}
+fpkg       ${FIREFOX} "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$(get_pkg_ver ${FIREFOX})/source"
+
+fpkg_hv    ${JAVA}
+fpkg_hv    ${AGG}
+fpkg       ${GNASH} "http://ftp.gnu.org/pub/gnu/gnash/$(get_pkg_ver ${GNASH})"
+
+fpkg       ${DBUS} "http://dbus.freedesktop.org/releases/dbus"
+fpkg       ${DBUS_GLIB} "http://dbus.freedesktop.org/releases/dbus-glib"
+fpkg       ${HAL} "http://people.freedesktop.org/~david/dist"
+
+fpkg       ${SASL2} "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail"
+fpkg_mis   ${OPENLDAP} "openldap-stable-20070831" \
+    "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable"
+fpkg_hv    ${KERBEROS5}
+
+fpkg_mis   ${SENDMAIL} "sendmail.$(get_pkg_ver ${SENDMAIL})" "ftp://ftp.sendmail.org/pub/sendmail"
+fpkg       ${LIBSPF2} "http://libspf2.org/spf"
+fpkg       ${MILTER_GREYLIST} "ftp://ftp.espci.fr/pub/milter-greylist"
+fpkg_hv    ${MILTER_SPF}
+fpkg       ${PROCMAIL} "http://www.procmail.org"
+fpkg       ${FETCHMAIL} "http://download.berlios.de/fetchmail"
+fpkg_sf    ${MUTT}
+
+fpkg_mis   ${FCRON} "${FCRON}.src" "ftp://ftp.seul.org/pub/fcron"
+fpkg_hv    ${GETDATE}
+
+fpkg_sf    ${CLAMAV}
+
+fpkg       ${PERL_MOD_HTML_TAGSET} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/perl-modules"
+fpkg       ${PERL_MOD_HTML_PARSER} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/perl-modules"
+fpkg       ${PERL_MOD_APACHE_LOGGED_AUTH_DBI} "http://search.cpan.org/CPAN/authors/id/S/SI/SIMKIN"
+fpkg       ${PERL_MOD_DB_FILE} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
+fpkg       ${PERL_MOD_DIGEST_SHA1} "http://anduin.linuxfromscratch.org/sources/BLFS/svn/perl-modules"
+# URI is needed by LWP
+fpkg       ${PERL_MOD_URI} "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS"
+# LWP is Needed by LTSP
+fpkg       ${PERL_MOD_LWP} "http://www.linpro.no/lwp"
+
+# ZIP is Needed by OO
+fpkg       ${PERL_MOD_ARCHIVE_ZIP} "http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK"
+fpkg       ${PERL_MOD_COMPRESS_ZLIB} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
+fpkg       ${PERL_MOD_IO_COMPRESS_BASE} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
+fpkg       ${PERL_MOD_IO_COMPRESS_ZLIB} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
+fpkg       ${PERL_MOD_COMPRESS_RAW_ZLIB} "http://search.cpan.org/CPAN/authors/id/P/PM/PMQS"
+fpkg       ${PERL_MOD_NET_DNS} "http://search.cpan.org/CPAN/authors/id/O/OL/OLAF"
+
+fpkg       ${SPAMASSASSIN} "http://apache.sunsite.ualberta.ca/spamassassin/source"
+fpkg       ${UW_IMAP} "ftp://ftp.cac.washington.edu/imap"
+
+fpkg       ${HTTPD} "http://www.apache.org/dist/httpd"
+
+
+
+fpkg_sf    ${MAILMAN}
+
+fpkg       ${SAMBA} "ftp://ftp.samba.org/pub/samba/old-versions"
+
+fpkg       ${PHP}   "http://us2.php.net/distributions"
+
+lpkg     2 ${SUBVERSION}
+fpkg_gnu   ${INDENT}
+
+fpkg       ${LTSP_UTILS} "http://ltsp.mirrors.tds.net/pub/ltsp/utils"
+fpkg       ${TFTP_HPA} "http://www.kernel.org/pub/software/network/tftp"
+
+fpkg_sf    ${KVM}
+fpkg_hv    ${BRIDGE_UTILS}
+fpkg_hv    ${UML_UTILITIES}
+
+fpkg_gnu   ${GUILE}
+
+fpkg_sf    ${LIBBOOST}
+
+fpkg       ${TRANSMISSION} "http://mirrors.m0k.org/transmission/files"
+
+fpkg_hv    ${CKERMIT}
+
+fpkg       ${LIBGAMIN} "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
+fpkg_sf    ${PCMANFM}
+
+fpkg_gnu   ${HELP2MAN}
+
+fpkg       ${LIBDVDCSS}  "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
+fpkg       ${LIBDVDREAD} "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
+fpkg       ${DVDFS} "http://jspenguin.org:81/dvdfs"
+
+
+
+fpkg       ${LIBFFI} "ftp://sourceware.org/pub/libffi"
+fpkg_gnome ${GOBJECT_INSTROSPECTION}
+fpkg       ${EGGDBUS} "http://hal.freedesktop.org/releases"
+fpkg       ${POLKIT} "http://hal.freedesktop.org/releases"
+
+fpkg       ${GNUPG} "ftp://ftp.gnupg.org/gcrypt/gnupg"
+
+exit $?
diff --git a/stage4/stage4-additions b/stage4/stage4-additions
new file mode 100755 (executable)
index 0000000..73591b1
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+LFS_STAGE=stage4
+
+export LFS_PKG_DIR="$(dirname $(pwd))/packages/${LFS_STAGE}"
+export LFS_LOG_DIR=/var/log/hvlinux-install/${LFS_STAGE}
+export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
+export LFS_TMP=/tmp
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+source /etc/profile
+
+if [ "x${USER}" != "xroot" ]; then
+    echo "You must be the superuser to install hvlinux."
+    exit 1
+fi
+
+init_log_file
+
+# Scripts directory
+export SCRDIR=$(pwd)
+
+exit $?
diff --git a/stage4/stage4-install b/stage4/stage4-install
new file mode 100755 (executable)
index 0000000..fc484d7
--- /dev/null
@@ -0,0 +1,285 @@
+#!/bin/sh
+
+LFS_STAGE=stage4
+
+export LFS_PKG_DIR="$(dirname $(pwd))/packages/${LFS_STAGE}"
+export LFS_LOG_DIR=/var/log/hvlinux-install/${LFS_STAGE}
+export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
+export LFS_TMP=/tmp
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+source /etc/profile
+
+if [ "x${USER}" != "xroot" ]; then
+    echo "You must be the superuser to install hvlinux."
+    exit 1
+fi
+
+init_log_file
+
+# Scripts directory
+export SCRDIR=$(pwd)
+
+# X-Window
+if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg_ac   ${FREETYPE}
+    ipkg_cust ${FONTCONFIG}  cis-fontconfig
+    ipkg_cust ${XFREE86}     cis-xfree86
+    source /etc/profile
+
+    ipkg_cust ${T1LIB}       cis-t1lib
+    ipkg_cust ${TK}  cis-tk
+
+    # Re-installing python now that tk is present???
+    ipkg_ac   ${PYTHON} "--enable-shared"
+
+    ipkg_cust ${WINDOWMAKER} cis-windowmaker
+    ipkg_ac   ${WINDOWMAKER_EXTRA}
+
+    ipkg_ac   ${LESSTIF} "--disable-debug --enable-production --with-xdnd --disable-build-tests"
+
+    # Gtk
+    ipkg_ac    ${GTK_DOC}
+    ipkg_ac    ${GLIB}
+    ipkg_ac    ${PIXMAN}
+    ipkg_ac    ${GLITZ}
+    ipkg_ac    ${CAIRO} "--enable-glitz"
+    ipkg_ac    ${PANGO}
+    ipkg_ac    ${ATK}
+    ipkg_ac    ${GTK} "--without-libjasper"
+
+    ipkg_ac    ${GTK_ENGINES}
+    ipkg_ac    ${PYGOBJECT}
+    ipkg_ac    ${PYGTK}
+    ipkg_ac    ${LIBSIGCPP}
+    ipkg_ac    ${GC}
+    ipkg_ac    ${GLIBMM}
+    ipkg_ac    ${CAIROMM}
+    ipkg_ac    ${GTKMM}
+
+    ipkg_cust ${EMACS} cis-emacs
+
+    ipkg_ac    ${HVCLOCK}
+    ipkg_ac    ${WMNOTIFY}
+
+    # Needed by GNOME-2
+    ipkg_ac    ${DESKTOP_FILE_UTILS}
+    ipkg_ac    ${SHARED_MIME_INFO}
+    ipkg_ac    ${STARTUP_NOTIFICATION}
+    ipkg_ac    ${LIBWNCK}
+    ipkg_ac    ${LIBXKLAVIER}
+    ipkg_ac    ${LIBGLADE}
+    ipkg_ac    ${LIBSOUP}
+    ipkg_ac    ${LIBIDL}
+fi
+
+ipkg_ac   ${HELP2MAN}
+ipkg_ac   ${INTLTOOL}
+ipkg_ac   ${GSL}
+ipkg_cust ${CUPS}     cis-cups
+ipkg_cust ${SPLIX}    cis-splix # Drivers Samsung pour CUPS
+ipkg_cust ${ESPGS}    cis-espgs
+
+ipkg_cust ${LIBBOOST} cis-boost
+
+if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg_cust  ${LIBUSB}  cis-libusb
+    ipkg_ac    ${LIBGPHOTO2}
+    ipkg_ac    ${IMAGE_MAGICK} "--with-modules"
+    ipkg_ac    ${POPPLER} "--enable-xpdf-headers --enable-zlib"
+    ipkg_ac    ${LIBRSVG} "--disable-gtk-doc --disable-mozilla-plugin"
+    ipkg_ac    ${BABL}
+    ipkg_ac    ${GEGL}
+    ipkg_ac    ${GIMP} "--disable-print"
+    ipkg_ac_nb ${GUTENPRINT}
+    ipkg_ac    ${INKSCAPE} "CFLAGS=\"-DPOPPLER_NEW_GFXFONT\""
+fi
+
+ipkg_cust ${CDRTOOLS} cis-cdrtools
+ipkg_cust ${DVDRWTOOLS} cis-dvd-rw-tools
+ipkg_ac   ${LIBDVDCSS}
+ipkg_ac   ${LIBDVDREAD} "--with-libdvdcss"
+ipkg_cust ${DVDFS} cis-dvdfs
+
+if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg_cust ${TETEX_SRC} cis-tetex
+    ipkg_cust ${JADETEX}   cis-jadetex
+fi
+
+if [ "x${SANE_SUPPORT}" = "xyes" ]; then
+    ipkg_cust ${SANE_BACKENDS} cis-sane-backends
+    ipkg_cust ${XSANE} cis-xsane
+fi
+
+# Needed by Tango
+ipkg_pm    ${PERL_MOD_XML_SIMPLE}
+ipkg_pm    ${PERL_MOD_PARSE_REDESCENT}
+
+ipkg_ac  ${ICON_NAMING_UTILS}
+ipkg_ac  ${TANGO_ICON_THEME}
+ipkg_ac  ${TANGO_ICON_THEME_EXTRAS}
+
+if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    # Audio
+    if [ "x${SOUND_CARD}" = "xyes" ]; then
+        # Needed by some packages, mostly audio applications.
+        ipkg_ac    ${LIBOIL}
+
+        # ALSA
+       ipkg_cust  ${ALSA_LIB}   cis-alsa-lib
+       ipkg_cust  ${ALSA_UTILS} cis-alsa-utils
+       ipkg_ac    ${ALSA_OSS}
+
+        # Audio raw utilities
+        ipkg_ac    ${LIBSAMPLERATE}
+
+        # Audio file formats
+       ipkg_ac    ${LIBOGG}
+       ipkg_ac    ${LIBVORBIS}
+       ipkg_ac_nb ${FLAC}
+       ipkg_ac    ${LAME}
+        ipkg_ac    ${LIBA52} "--enable-shared"
+       ipkg_cust  ${LIBID3TAG} cis-libid3tag
+       ipkg_cust  ${LIBMAD} cis-libmad
+
+        ipkg_ac_nb ${LIBFAAC}
+        ipkg_ac_nb ${LIBFAAD2}
+        ipkg_ac    ${LIBTHEORA}
+        ipkg_cust  ${XVIDCORE} cis-xvidcore
+
+        # Audio libraries
+       ipkg_ac_nb ${AUDIOFILE}
+        ipkg_ac    ${PORTAUDIO}
+       ipkg_ac    ${LIBSNDFILE}
+
+        # Audio servers
+       ipkg_ac   ${ESOUND}
+        ipkg_ac   ${SPEEX}
+        ipkg_cust ${PULSEAUDIO} cis-pulseaudio
+       ipkg_ac   ${JACK} "--disable-portaudio"
+
+       ipkg_ac  ${ALSA_PLUGINS} # Depends on pulseaudio
+       ipkg_ac  ${VORBIS_TOOLS}
+        
+        # Audio applications
+       ipkg_ac_nb ${GRIP} "--disable-id3"
+        ipkg_ac_nb ${CDRDAO}
+        ipkg_ac    ${SWEEP} "--enable-pulseaudio"
+        ipkg_ac    ${EASYTAG}
+        ipkg_ac_nb ${LILYPOND}
+
+        ipkg_ac_nb ${FFMPEG} "--enable-shared --enable-pthreads --enable-gpl --enable-nonfree --disable-ffplay \
+                              --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora \
+                              --enable-libvorbis --enable-libxvid"
+    fi
+
+    ipkg_ac    ${SYLPHEED} "--enable-ssl --enable-ldap"
+    ipkg_cust  ${NSS} cis-nss
+    ipkg_cust  ${FIREFOX} cis-firefox
+
+    # Plugins for Firefox
+    ipkg_cust  ${JAVA} cis-java
+    ipkg_cust  ${AGG} cis-agg
+    ipkg_cust  ${GNASH} cis-gnash
+fi
+
+ipkg_cust ${DBUS}      cis-dbus
+ipkg_ac   ${DBUS_GLIB} "--disable-tests --disable-dependency-tracking --disable-xml-docs --disable-doxygen-docs"
+ipkg_ac   ${EGGDBUS}
+ipkg_cust ${HAL}       cis-hal
+
+ipkg_ac   ${LIBGAMIN} "--libexecdir=/usr/sbin"
+ipkg_ac   ${PCMANFM}
+
+# Mail
+ipkg_cust ${SASL2}     cis-sasl2
+ipkg_cust ${OPENLDAP}  cis-openldap
+ipkg_cust ${KERBEROS5} cis-krb5
+ipkg_cust ${SENDMAIL}  cis-sendmail
+
+if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg_cust ${PROCMAIL} cis-procmail
+    ipkg_ac   ${LIBSPF2}
+    ipkg_cust ${MILTER_SPF} cis-milter-spf
+    ipkg_cust ${MILTER_GREYLIST} cis-milter-greylist
+fi
+
+# fcron needs sendmail installed.
+ipkg_cust ${FCRON}   cis-fcron
+ipkg_cust ${GETDATE} cis-getdate
+
+if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg_cust ${CLAMAV}       cis-clamav
+
+    # Required PERL modules for SpamAssassin
+    ipkg_pm    ${PERL_MOD_HTML_TAGSET}
+    ipkg_pm    ${PERL_MOD_HTML_PARSER}
+    ipkg_pm    ${PERL_MOD_APACHE_LOGGED_AUTH_DBI}
+    ipkg_pm    ${PERL_MOD_DB_FILE}
+    ipkg_pm    ${PERL_MOD_DIGEST_SHA1}
+    ipkg_pm    ${PERL_MOD_URI}
+    ipkg_pm    ${PERL_MOD_LWP}
+    ipkg_pm    ${PERL_MOD_NET_DNS} --no-online-tests
+
+    # Needed by OpenOffice ???
+    #ipkg_pm    ${PERL_MOD_ARCHIVE_ZIP}
+    #ipkg_pm    ${PERL_MOD_COMPRESS_ZLIB}
+    #ipkg_pm    ${PERL_MOD_IO_COMPRESS_BASE}
+    #ipkg_pm    ${PERL_MOD_COMPRESS_RAW_ZLIB}
+    #ipkg_pm    ${PERL_MOD_IO_COMPRESS_ZLIB}
+
+
+
+    ipkg_cust ${SPAMASSASSIN} cis-spamassassin
+    ipkg_cust ${UW_IMAP}      cis-uw-imap
+
+    # Apache
+    ipkg_cust ${HTTPD} cis-apache
+    ipkg_cust ${PHP}   cis-php
+
+    ipkg_cust ${SQUIRRELMAIL} cis-squirrelmail
+    ipkg_cust ${MAILMAN} cis-mailman
+    ipkg_ac   ${FETCHMAIL} "--with-ssl"
+    ipkg_ac   ${MUTT} "--enable-imap --with-ssl"
+
+    # Subversion server (client was already installed in stage2) 
+    ipkg_cust ${SUBVERSION} cis-subversion
+    ipkg_ac   ${INDENT}
+fi
+
+if [ "x${USE_SAMBA}" = "xyes" ]; then
+    ipkg_cust ${SAMBA} cis-samba
+fi
+
+if [ "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg_cust ${TFTP_HPA} cis-tftp-hpa
+    ipkg_cust ${LTSP_UTILS} cis-ltsp-utils
+fi
+
+ipkg_ac_nb ${KVM}
+ipkg_ac_nb ${BRIDGE_UTILS}
+ipkg_cust  ${UML_UTILITIES} cis-uml-utilities
+
+ipkg_ac    ${GUILE} \
+    --enable-posix \
+    --disable-static \
+    --enable-networking \
+    --enable-regex
+
+ipkg_cust  ${CKERMIT} cis-ckermit
+
+# BitTorrent client
+ipkg_ac    ${TRANSMISSION} "--disable-daemon"
+
+ipkg_ac    ${LIBFFI}
+ipkg_ac    ${GOBJECT_INSTROSPECTION}
+
+ipkg_cust  ${POLKIT} cis-polkit
+ipkg_ac    ${GNUPG} "--libexecdir=/usr/lib"
+
+rscr mult  "Performing post-install" cis-post-install
+
+exit $?