X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage4%2Fstage4-install;h=fc484d756b04ffeac502510312092940b7bd576c;hb=049b8e35d7fd2eabb781f02b8022fdca43c980fb;hp=c19b3155b11d21ac3298dc2127da4018ccc5816a;hpb=aa229d2908422fce286bbd65710e31b086c8a2a2;p=hvlinux.git diff --git a/stage4/stage4-install b/stage4/stage4-install index c19b315..fc484d7 100755 --- a/stage4/stage4-install +++ b/stage4/stage4-install @@ -1,7 +1,9 @@ #!/bin/sh -export LFS_PKG_DIR="$(dirname $(pwd))/packages/stage4" -export LFS_LOG_DIR=/var/log/hvlinux-install/stage4 +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 @@ -18,102 +20,266 @@ fi init_log_file -# GNOME-2.X configuration -action_checkbox "Configuring ${GNOME2_VER}" ./cis-gnome-config -action_checkbox "Reloading /etc/profile" source /etc/profile - -# Gnome 2 core packages -ipkg_gnome ${ORBIT2} -ipkg_gnome ${LIBBONOBO} -ipkg_cust ${GCONF} cis-gconf -ipkg_gnome ${GNOME_MIME_DATA} -####ipkg_cust ${GNOME_VFS} cis-gnome-nb -####ipkg_gnome ${GNOME_VFS_MONIKERS} -ipkg_gnome ${LIBGNOME} -ipkg_gnome ${LIBGNOMECANVAS} -ipkg_gnome ${LIBBONOBOUI} -ipkg_ac ${GNOME_ICON_THEME} -ipkg_ac ${LIBTASN1} -ipkg_gnome ${GNOME_KEYRING} -ipkg_gnome ${LIBGNOMEUI} -ipkg_ac ${GNOME_THEMES} -ipkg_ac_nb ${SCROLLKEEPER} "--localstatedir=/var --disable-static --with-omfdirs=/usr/share/omf:/opt/${GNOME2_VER}/share/omf" -ipkg_gnome ${GNOME_DOC_UTILS} -ipkg_gnome ${GNOME_DESKTOP} -ipkg_gnome ${GNOME_BACKGROUNDS} -ipkg_gnome ${GNOME_MENUS} -ipkg_gnome ${GNOME_PANEL} -ipkg_ac ${GSTREAMER} -ipkg_ac ${GST_PLUGINS_BASE} -ipkg_ac ${GST_PLUGINS_GOOD} -ipkg_ac ${GST_PLUGINS_BAD} -ipkg_ac ${GST_PLUGINS_UGLY} -ipkg_ac ${GST_FFMPEG} -ipkg_ac ${VTE} "--libexecdir=/usr/sbin --disable-gtk-doc" -ipkg_gnome ${GNOME_TERMINAL} -ipkg_gnome ${LIBGTOP} -ipkg_gnome ${LIBGNOMEKBD} -ipkg_gnome ${LIBGAIL_GNOME} -ipkg_cust ${GNOME_APPLETS} cis-gnome-applets -ipkg_gnome ${EEL} -ipkg_gnome ${NAUTILUS} -ipkg_gnome ${YELP} -ipkg_cust ${METACITY} cis-metacity - -ipkg_gnome ${GNOME_CONTROL_CENTER} -ipkg_gnome ${GNOME_SESSION} -ipkg_gnome ${GNOME_USER_DOCS} -action_checkbox "Updating the MIME-type application database" update-desktop-database - -# Gnome 2 additional packages - Libraries -####ipkg_gnome ${LIBGNOMECUPS} -####ipkg_gnome ${LIBGNOMEPRINT} -####ipkg_gnome ${LIBGNOMEPRINTUI} -ipkg_gnome ${GTKHTML} -ipkg_gnome ${EVOLUTION_DATA_SERVER} "--with-nss-includes=/usr/include/nss --with-nspr-includes=/usr/include/nspr --with-openldap=yes --with-krb5=/usr" -ipkg_gnome ${GTKSOURCEVIEW} -ipkg_cust ${SYSTEM_TOOLS_BACKENDS} cis-gnome-nobuild -ipkg_cust ${GNOME_AUDIO} cis-gnome-audio - -# Gnome 2 additional packages - Utilities -ipkg_gnome ${GEDIT} "--disable-spell" -ipkg_gnome ${EOG} -ipkg_gnome ${EVINCE} -ipkg_gnome ${FILE_ROLLER} -ipkg_gnome ${GCONF_EDITOR} -ipkg_gnome ${GNOME_UTILS} -ipkg_gnome ${GNOME_SYSTEM_MONITOR} -ipkg_gnome ${NAUTILUS_CD_BURNER} -ipkg_gnome ${GNOME_MEDIA} -ipkg_gnome ${GNOME_NETSTATUS} -ipkg_cust ${GCALCTOOL} cis-gnome-nobuild -ipkg_gnome ${GUCHARMAP} -ipkg_gnome ${ZENITY} -ipkg_gnome ${GNOME_KEYRING_MANAGER} - -# Needs hal, which needs D-BUS... -ipkg_gnome ${GNOME_VOLUME_MANAGER} - -ipkg_cust ${LIBMUSICBRAINZ} cis-libmusicbrainz -ipkg_gnome ${GNOME_SOUND_JUICER} -ipkg_cust ${ISO_CODES} cis-iso-codes -ipkg_gnome ${GNOME_TOTEM} -ipkg_cust ${GDM} cis-gdm -ipkg_ac ${LIBNOTIFY} -ipkg_cust ${GNOME_MOUNT} cis-gnome-nobuild - -ipkg_ac ${RHYTHMBOX} "--disable-python" - -ipkg_ac ${LIBGSF} -ipkg_ac_nb ${GOFFICE} -ipkg_cust ${GNUMERIC} cis-gnumeric -ipkg_ac ${WV} -ipkg_ac ${ABIWORD} "--disable-spellcheck" -ipkg_gnome ${EVOLUTION} "--with-nss-includes=/usr/include/nss --with-nspr-includes=/usr/include/nspr --with-openldap=yes --with-krb5=/usr" -ipkg_gnome ${EVOLUTION_EXCHANGE} -ipkg_ac ${LIBGPG_ERROR} -ipkg_ac ${LIBGCRYPT} -ipkg_ac ${GNUTLS} -ipkg_ac ${PIDGIN} +# 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 $?