X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fstage3-install;h=511bc41892207581248bb6b7cacf116ab1d5c91c;hb=df6e3aaab0e6630fce3992fd609c4210f628388d;hp=5963db00de420bf9de7463c507e72ef225a52a35;hpb=6a47d6d86ad7ac2d58c56499baaedb9fdd0aa800;p=hvlinux.git diff --git a/stage3/stage3-install b/stage3/stage3-install index 5963db0..511bc41 100755 --- a/stage3/stage3-install +++ b/stage3/stage3-install @@ -1,7 +1,9 @@ #!/bin/sh -export LFS_PKG_DIR="$(dirname $(pwd))/packages/stage3" -export LFS_LOG_DIR=/var/log/hvlinux-install/stage3 +LFS_STAGE=stage3 + +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,93 +20,102 @@ fi init_log_file -# For updating dynamic DNS entries. -if [ "x${USE_DYNAMIC_DNS}" = "xyes" ]; then - ipkg ${DDCLIENT} cis-ddclient -fi - -# Networking -ipkg ${INETUTILS} cis-inetutils +# Scripts directory +export SCRDIR=$(pwd) -# Network/debugging tools -ipkg_ac ${LIBPCAP} "--enable-yydebug" -ipkg_ac ${TCPDUMP} -ipkg_ac_nb ${NMAP} +ipkg_ac ${PCRE} \ + --docdir=/usr/share/doc/pcre \ + --enable-utf8 \ + --enable-unicode-properties \ + --enable-pcregrep-libz \ + --enable-pcregrep-libbz2 ipkg_ac ${STRACE} -# Bind server -ipkg ${BIND} cis-bind +# Networking +ipkg_cust ${INETUTILS} cis-inetutils +if [ "x${USE_DYNAMIC_DNS}" = "xyes" ]; then + # For updating dynamic DNS entries. + ipkg_cust ${DDCLIENT} cis-ddclient +fi +ipkg_ac_nb ${LIBPCAP} +ipkg_ac ${TCPDUMP} +ipkg_ac_nb ${NMAP} --without-nmapfe +ipkg_cust ${BIND} cis-bind +ipkg_cust ${IPTABLES} cis-iptables if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then - ipkg ${IPTABLES} cis-iptables - ipkg ${MYSQL} cis-mysql + ipkg_cust ${MYSQL} cis-mysql fi -ipkg ${UNZIP} cis-unzip -ipkg ${ZIP} cis-zip +ipkg_cust ${ZIP} cis-zip +ipkg_cust ${UNZIP} cis-unzip +ipkg_cust ${UNRAR} cis-unrar ipkg_ac ${CPIO} - -# Installing only CVS client. -ipkg_ac ${CVS_PACKAGE} "--disable-server" - -ipkg_ac ${PARTED} - -# Graphic libraries +ipkg_ac ${PARTED} --disable-device-mapper +ipkg_ac ${CURL} +ipkg_ac ${RSYNC} +ipkg_ac ${ED} +ipkg_ac ${BC} --with-readline +INIT_D_PATH=/etc/rc.d/init.d \ + ipkg_ac_nb ${FUSE} +ipkg_cust ${DOSFSTOOLS} cis-dosfstools +ipkg_ac ${CVS} --disable-server +ipkg_cust ${GIT} cis-git + +# Graphic libraries without X-Window dependencies ipkg_ac ${LIBJPEG} "--enable-static --enable-shared" +ipkg_cust ${LIBOPENJPEG} cis-libopenjpeg ipkg_ac ${LIBPNG} -ipkg_ac ${LIBTIFF} -ipkg_ac ${GIFLIB} -ipkg_ac_nb ${LCMS} -ipkg ${LIBMNG} cis-libmng -ipkg_ac ${LIBEXIF} ipkg_ac ${LIBART} +ipkg_ac ${LIBEXIF} ipkg_ac ${FRIBIDI} -# X +# X-Window 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 ${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_cust ${T1LIB} cis-t1lib + ipkg_cust ${TK} cis-tk +fi + +# Graphic libraries with optional X-Window dependencies +ipkg_ac ${LIBTIFF} +ipkg_ac ${GIFLIB} +ipkg_ac_nb ${LCMS} +ipkg_cust ${LIBMNG} cis-libmng - ipkg ${WINDOWMAKER} cis-windowmaker - ipkg_ac ${WINDOWMAKER_EXTRA} +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" + 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_ac ${SQLITE} -ipkg_ac ${PYTHON} "--enable-shared" - -ipkg ${LIBBOOST} cis-boost +ipkg_ac ${PYTHON} "--enable-shared" +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 +134,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_pm ${PERL_MOD_NET_DNS} --no-online-tests # Needed by OpenOffice ??? ipkg_pm ${PERL_MOD_ARCHIVE_ZIP} @@ -134,17 +145,16 @@ 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} "--without-libjasper" + ipkg_ac ${GTK} "--without-libjasper" ipkg_ac ${GTK_ENGINES} ipkg_ac ${PYGOBJECT} ipkg_ac ${PYGTK} - ipkg_ac ${LIBSIGCPP} ipkg_ac ${GC} ipkg_ac ${GLIBMM} @@ -166,14 +176,15 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the ipkg_ac ${LIBIDL} fi -ipkg_ac ${INTLTOOL} -ipkg_ac ${GSL} -ipkg ${CUPS} cis-cups -ipkg ${SPLIX} cis-splix # Drivers Samsung pour CUPS -ipkg ${ESPGS} cis-espgs +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 ${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" @@ -185,19 +196,20 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the ipkg_ac ${INKSCAPE} "CFLAGS=\"-DPOPPLER_NEW_GFXFONT\"" fi -ipkg_ac ${BC} "--with-readline" -ipkg ${CDRTOOLS} cis-cdrtools -ipkg ${DVDRWTOOLS} cis-dvd-rw-tools +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_ac ${ED} - ipkg ${TETEX_SRC} cis-tetex - ipkg ${JADETEX} cis-jadetex + 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} @@ -211,8 +223,8 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the 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 @@ -224,13 +236,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 ${XVIDCORE} cis-xvidcore + ipkg_cust ${XVIDCORE} cis-xvidcore # Audio libraries ipkg_ac_nb ${AUDIOFILE} @@ -238,11 +250,10 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the ipkg_ac ${LIBSNDFILE} # Audio servers - ipkg_ac ${ESOUND} - ipkg ${GDBM} cis-gdbm - ipkg_ac ${SPEEX} - 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} @@ -252,6 +263,7 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the 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 \ @@ -259,89 +271,89 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the fi ipkg_ac ${SYLPHEED} "--enable-ssl --enable-ldap" - 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 ${AGG} cis-agg - ipkg ${GNASH} cis-gnash + # Plugins for Firefox + ipkg_cust ${JAVA} cis-java + ipkg_cust ${AGG} cis-agg + ipkg_cust ${GNASH} cis-gnash fi -ipkg ${DBUS} cis-dbus -ipkg_ac ${DBUS_GLIB} "--disable-tests --disable-dependency-tracking --disable-xml-docs --disable-doxygen-docs" -ipkg ${HAL} cis-hal +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 ${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 - ipkg_ac ${CURL} - ipkg ${PHP} cis-php + ipkg_cust ${HTTPD} cis-apache + ipkg_cust ${PHP} cis-php - ipkg ${SQUIRRELMAIL} cis-squirrelmail - ipkg ${MAILMAN} cis-mailman - ipkg_ac ${FETCHMAIL} "--with-ssl" - ipkg_ac ${MUTT} "--enable-imap --with-ssl" + 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 - 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 ${GUILE} cis-guile +ipkg_ac ${GUILE} \ + --enable-posix \ + --disable-static \ + --enable-networking \ + --enable-regex -ipkg ${CKERMIT} cis-ckermit +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" +ipkg_ac ${LIBFFI} +ipkg_ac ${GOBJECT_INSTROSPECTION} -ipkg ${DOSFSTOOLS} cis-dosfstools +ipkg_cust ${POLKIT} cis-polkit +ipkg_ac ${GNUPG} "--libexecdir=/usr/lib" -./cis-postinstall +rscr mult "Performing post-install" cis-post-install exit $?