Ajout rsync
[hvlinux.git] / stage3 / stage3-install
index 0af34fb..ada115a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage3"
+export LFS_PKG_DIR="$(dirname $(pwd))/packages/stage3"
 export LFS_LOG_DIR=/var/log/hvlinux-install/stage3
 export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
 export LFS_TMP=/tmp
@@ -20,11 +20,11 @@ init_log_file
 
 # For updating dynamic DNS entries.
 if [ "x${USE_DYNAMIC_DNS}" = "xyes" ]; then
-    ipkg     ${DDCLIENT} cis-ddclient
+    ipkg_cust ${DDCLIENT} cis-ddclient
 fi
 
 # Networking
-ipkg       ${INETUTILS} cis-inetutils
+ipkg_cust  ${INETUTILS} cis-inetutils
 
 # Network/debugging tools
 ipkg_ac    ${LIBPCAP} "--enable-yydebug"
@@ -33,78 +33,78 @@ ipkg_ac_nb ${NMAP}
 ipkg_ac    ${STRACE}
 
 # Bind server
-ipkg     ${BIND} cis-bind
+ipkg_cust ${BIND} cis-bind
 
 if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg     ${IPTABLES} cis-iptables
-    ipkg     ${MYSQL} cis-mysql
+    ipkg_cust ${IPTABLES} cis-iptables
+    ipkg_cust ${MYSQL} cis-mysql
 fi
 
-ipkg       ${UNZIP} cis-unzip
-ipkg       ${ZIP}   cis-zip
+ipkg_cust  ${UNZIP} cis-unzip
+ipkg_cust  ${ZIP}   cis-zip
+ipkg_ac    ${CPIO}
 
 # Installing only CVS client.
 ipkg_ac    ${CVS_PACKAGE} "--disable-server"
 
 ipkg_ac    ${PARTED}
 
+ipkg_ac    ${RSYNC}
+
 # Graphic libraries
 ipkg_ac    ${LIBJPEG} "--enable-static --enable-shared"
 ipkg_ac    ${LIBPNG}
 ipkg_ac    ${LIBTIFF}
 ipkg_ac    ${GIFLIB}
 ipkg_ac_nb ${LCMS}
-ipkg       ${LIBMNG}   cis-libmng
+ipkg_cust  ${LIBMNG}   cis-libmng
 ipkg_ac    ${LIBEXIF}
 ipkg_ac    ${LIBART}
 ipkg_ac    ${FRIBIDI}
 
 # X
 if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_ac  ${FREETYPE}
-    ipkg     ${FONTCONFIG}  cis-fontconfig
-    ipkg     ${T1LIB}       cis-t1lib
-    ipkg     ${XFREE86}     cis-xfree86
+    ipkg_ac   ${FREETYPE}
+    ipkg_cust ${FONTCONFIG}  cis-fontconfig
+    ipkg_cust ${T1LIB}       cis-t1lib
+    ipkg_cust ${XFREE86}     cis-xfree86
     source /etc/profile
 
     # Some packages (Gnome control center) require a more
     # recent version of libxft than the one installed by XFree86.
-    ipkg_ac  ${LIBXFT}  "--prefix=/usr/X11R6"
+    ipkg_ac   ${LIBXFT}  "--prefix=/usr/X11R6"
 
-    ipkg     ${WINDOWMAKER} cis-windowmaker
-    ipkg_ac  ${WINDOWMAKER_EXTRA}
+    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"
+    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     ${EMACS} cis-emacs
+    ipkg_cust ${EMACS} cis-emacs
 fi
 
-ipkg     ${TCL} cis-tcl
-ipkg     ${TK}  cis-tk
+ipkg_cust ${TK}  cis-tk
 
-# Python is required by libxml2
 ipkg_ac ${PYTHON} "--enable-shared"
 
-# Needed by inkscape
-ipkg    ${LIBBOOST} cis-boost
+ipkg_cust${LIBBOOST} cis-boost
 
 if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
     # DocBook
-    ipkg       ${SGML_COMMON}   cis-sgml-common
-    ipkg       ${SGML_DTD3}     cis-sgml-dtd3
-    ipkg       ${SGML_DTD4}     cis-sgml-dtd4
-    ipkg       ${OPENSP}        cis-opensp
-    ipkg       ${OPENJADE}      cis-openjade
-    ipkg       ${DOCBOOK_DSSSL} cis-docbook-dsssl
-    ipkg       ${DOCBOOK_UTILS} cis-docbook-utils
-    ipkg_ac_nb ${LIBXML2}
-    ipkg_ac_nb ${LIBXSLT}
-    ipkg       ${DOCBOOK_XML}   cis-docbook-xml
-    ipkg       ${DOCBOOK_XSL}   cis-docbook-xsl
-    ipkg       ${SGML_SPM}      cis-sgml-spm
-
-    ipkg       ${XMLTOMAN}      cis-xmltoman
+    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}
@@ -123,7 +123,7 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the
     ipkg_pm    ${PERL_MOD_DIGEST_SHA1}
     ipkg_pm    ${PERL_MOD_URI}
     ipkg_pm    ${PERL_MOD_LWP}
-    ipkg       ${PERL_MOD_NET_DNS} cis-pm-net-dns
+    ipkg_cust  ${PERL_MOD_NET_DNS} cis-pm-net-dns
 
     # Needed by OpenOffice ???
     ipkg_pm    ${PERL_MOD_ARCHIVE_ZIP}
@@ -134,14 +134,15 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the
 
     # Gtk
     ipkg_ac    ${GTK_DOC}
-    ipkg_ac    ${GLIB2}
+    ipkg_ac    ${GLIB}
     ipkg_ac    ${PIXMAN}
     ipkg_ac    ${GLITZ}
     ipkg_ac    ${CAIRO} "--enable-glitz"
     ipkg_ac    ${PANGO}
     ipkg_ac    ${ATK}
-    ipkg_ac    ${GTK2}
+    ipkg_ac    ${GTK2} "--without-libjasper"
     ipkg_ac    ${GTK_ENGINES}
+    ipkg_ac    ${PYGOBJECT}
     ipkg_ac    ${PYGTK}
 
     ipkg_ac    ${LIBSIGCPP}
@@ -165,46 +166,38 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the
     ipkg_ac    ${LIBIDL}
 fi
 
-# Needed by inkscape SVN
-ipkg_ac ${INTLTOOL}
-
-ipkg_ac ${GSL}
-
-ipkg     ${CUPS}     cis-cups
-ipkg     ${ESPGS}    cis-espgs
+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       ${LIBUSB}  cis-libusb
+    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     ${FOX} cis-fox
-ipkg     ${XFE} cis-xfe
-
-ipkg_ac  ${BC} "--with-readline"
-ipkg     ${CDRTOOLS} cis-cdrtools
-ipkg     ${DVDRWTOOLS} cis-dvd-rw-tools
+ipkg_ac   ${BC} "--with-readline"
+ipkg_cust ${CDRTOOLS} cis-cdrtools
+ipkg_cust ${DVDRWTOOLS} cis-dvd-rw-tools
 
 if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    # TeTeX needs ed.
-    ipkg_ac  ${ED}
-    ipkg     ${TETEX_SRC} cis-tetex
-    ipkg     ${JADETEX}   cis-jadetex
-    ipkg_ac  ${PSTOEDIT}
+    ipkg_ac   ${ED}
+    ipkg_cust ${TETEX_SRC} cis-tetex
+    ipkg_cust ${JADETEX}   cis-jadetex
 fi
 
 if [ "x${SANE_SUPPORT}" = "xyes" ]; then
-    ipkg     ${SANE_BACKENDS} cis-sane-backends
-    ipkg     ${XSANE} cis-xsane
+    ipkg_cust ${SANE_BACKENDS} cis-sane-backends
+    ipkg_cust ${XSANE} cis-xsane
 fi
 
 ipkg_ac  ${ICON_NAMING_UTILS}
@@ -212,19 +205,18 @@ ipkg_ac  ${TANGO_ICON_THEME}
 ipkg_ac  ${TANGO_ICON_THEME_EXTRAS}
 
 if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    # Sound
+    # Audio
     if [ "x${SOUND_CARD}" = "xyes" ]; then
         # Needed by some packages, mostly audio applications.
         ipkg_ac    ${LIBOIL}
 
         # ALSA
-       ipkg       ${ALSA_LIB}   cis-alsa-lib
-       ipkg       ${ALSA_UTILS} cis-alsa-utils
+       ipkg_cust  ${ALSA_LIB}   cis-alsa-lib
+       ipkg_cust  ${ALSA_UTILS} cis-alsa-utils
        ipkg_ac    ${ALSA_OSS}
 
         # Audio raw utilities
         ipkg_ac    ${LIBSAMPLERATE}
-       ipkg_ac    ${TAGLIB}
 
         # Audio file formats
        ipkg_ac    ${LIBOGG}
@@ -232,11 +224,13 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the
        ipkg_ac_nb ${FLAC}
        ipkg_ac    ${LAME}
         ipkg_ac    ${LIBA52} "--enable-shared"
-       ipkg       ${LIBID3TAG} cis-libid3tag
-       ipkg       ${LIBMAD} cis-libmad
+       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}
@@ -244,109 +238,120 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the
        ipkg_ac    ${LIBSNDFILE}
 
         # Audio servers
-       ipkg_ac  ${ESOUND}
-        ipkg     ${PULSEAUDIO} cis-pulseaudio
-       ipkg_ac  ${JACK} "--disable-portaudio"
+       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 ${LIBMCS}
-        ipkg_ac_nb ${LIBMOWGLI}
-       ipkg_ac_nb ${AUDACIOUS} # Depends on mcs and libmowgli
-       ipkg_ac_nb ${AUDACIOUS_PLUGINS} "--disable-hotkey"
-       ipkg_ac_nb ${GRIP}
+       ipkg_ac_nb ${GRIP} "--disable-id3"
         ipkg_ac_nb ${CDRDAO}
-        ipkg_ac    ${WXGTK} "--enable-unicode"
-        ipkg       ${AUDACITY} cis-audacity # Depends on portaudio and wxgtk
+        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       ${QT} cis-qt
-    ipkg       ${OPERA} cis-opera
-
-    ipkg       ${NSS} cis-nss
-
-    ipkg       ${FIREFOX} cis-firefox
+    ipkg_cust  ${NSS} cis-nss
+    ipkg_cust  ${FIREFOX} cis-firefox
 
     # Plugins for Opera and Firefox
-    ipkg       ${JAVA} cis-java
-    ipkg       ${FLASH_PLUGIN} cis-flashplugin
-
-    ipkg_ac_nb ${FFMPEG} "--enable-shared --enable-pthreads --enable-swscaler --enable-liba52 \
-                          --enable-gpl --disable-ffplay --enable-libfaac --enable-libfaad \
-                          --enable-libmp3lame"
-    ipkg       ${XVIDCORE} cis-xvidcore
-    ipkg_ac    ${XINELIB}
-    ipkg_ac_nb ${GXINE}
-    ipkg       ${MPLAYER_CODECS} cis-mplayer-codecs
-    ipkg       ${MPLAYER} cis-mplayer
+    ipkg_cust  ${JAVA} cis-java
+    ipkg_cust  ${AGG} cis-agg
+    ipkg_cust  ${GNASH} cis-gnash
 fi
 
-ipkg_ac  ${MINICOM}
+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    ${DBUS}      cis-dbus
-ipkg_ac ${DBUS_GLIB} "--disable-tests --disable-dependency-tracking --disable-xml-docs --disable-doxygen-docs"
-ipkg    ${HAL}       cis-hal
+ipkg_ac   ${LIBGAMIN} "--libexecdir=/usr/sbin"
+ipkg_ac   ${PCMANFM}
 
 # Mail
-ipkg     ${SASL2}     cis-sasl2
-ipkg     ${OPENLDAP}  cis-openldap
-ipkg     ${KERBEROS5} cis-krb5
-ipkg     ${SENDMAIL}  cis-sendmail
+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     ${PROCMAIL} cis-procmail
-    ipkg_ac  ${LIBSPF2}
-    ipkg     ${MILTER_SPF} cis-milter-spf
-    ipkg     ${MILTER_GREYLIST} cis-milter-greylist
+    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     ${FCRON}   cis-fcron
-ipkg     ${GETDATE} cis-getdate
+ipkg_cust ${FCRON}   cis-fcron
+ipkg_cust ${GETDATE} cis-getdate
 
 if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg     ${CLAMAV}       cis-clamav
-    ipkg     ${SPAMASSASSIN} cis-spamassassin
-    ipkg     ${UW_IMAP}      cis-uw-imap
+    ipkg_cust ${CLAMAV}       cis-clamav
+    ipkg_cust ${SPAMASSASSIN} cis-spamassassin
+    ipkg_cust ${UW_IMAP}      cis-uw-imap
 
     # Apache
-    ipkg     ${HTTPD} cis-apache
-    # CURL is needed by PHP
-    ipkg_ac  ${CURL}
-    ipkg     ${PHP}   cis-php
-
-    ipkg     ${SQUIRRELMAIL} cis-squirrelmail
+    ipkg_cust ${HTTPD} cis-apache
+    ipkg_ac   ${CURL}
+    ipkg_cust ${PHP}   cis-php
 
-    ipkg     ${MAILMAN} cis-mailman
+    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     ${SUBVERSION} cis-subversion
+    ipkg_cust ${SUBVERSION} cis-subversion
+    ipkg_ac   ${INDENT}
 fi
 
     ipkg_ac_nb ${GIT}
-    ipkg       ${GIT_MANPAGES} cis-git-manpages
+    ipkg_cust  ${GIT_MANPAGES} cis-git-manpages
 
 if [ "x${USE_SAMBA}" = "xyes" ]; then
-    ipkg     ${SAMBA} cis-samba
+    ipkg_cust ${SAMBA} cis-samba
 fi
 
 if [ "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg     ${TFTP_HPA} cis-tftp-hpa
-    ipkg     ${LTSP_UTILS} cis-ltsp-utils
+    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       ${UML_UTILITIES} cis-uml-utilities
+ipkg_cust  ${UML_UTILITIES} cis-uml-utilities
+
+ipkg_cust  ${GUILE} cis-guile
+
+ipkg_cust  ${CKERMIT} cis-ckermit
+
+# BitTorrent client
+ipkg_ac    ${TRANSMISSION} "--disable-daemon"
+
+# For bitbake
+ipkg_ac    ${HELP2MAN}
+
+ipkg_ac    ${LIBDVDCSS}
+ipkg_ac    ${LIBDVDREAD} "--with-libdvdcss"
+INIT_D_PATH=/etc/rc.d/init.d \
+    ipkg_ac_nb ${FUSE}
+ipkg_cust  ${DVDFS} cis-dvdfs
+
+ipkg_cust  ${DOSFSTOOLS} cis-dosfstools
+
+ipkg_ac    ${LIBFFI}
+ipkg_ac    ${GOBJECT_INSTROSPECTION}
 
-# Pour lilypond
-ipkg_ac   ${GMP} "--enable-cxx --enable-mpbsd ABI=32"
-ipkg      ${GUILE} cis-guile
-#ipkg mftrace
+ipkg_cust  ${POLKIT} cis-polkit
+ipkg_ac    ${GNUPG} "--libexecdir=/usr/lib"
 
 ./cis-postinstall