X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fhv-install-1;h=1059d6768b7d451a18f80f15806b289da0f1de7f;hb=45c5a2f834c42e914e684c784988f369118aa31b;hp=665f23ad5f37a1f26cf56511b73cc4dabe177aa5;hpb=56e6ade2828debbb8210ffba1faa2193cb78d05c;p=hvlinux.git diff --git a/stage3/hv-install-1 b/stage3/hv-install-1 index 665f23a..1059d67 100755 --- a/stage3/hv-install-1 +++ b/stage3/hv-install-1 @@ -1,17 +1,9 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../config/sysinfos -source ../functions -hvtrap_setup -source ../config/packages-list +source ../functions/main source /etc/profile -if [ "x${USER}" != "xroot" ]; then - echo "You must be the superuser to install hvlinux." - exit 1 -fi - +check_for_root_user init_log_file ipkg ${WHICH} @@ -24,7 +16,7 @@ ipkg -m noac ${PCIUTILS} ipkg -m acnb ${LIBUSB} ipkg ${LIBUSB_COMPAT} ipkg ${USBUTILS} -ipkg ${FCRON} +ipkg -j ${FCRON} ipkg ${OPENSSH} ipkg -s lynx ${LYNX} ipkg ${EXPAT} @@ -32,8 +24,9 @@ ipkg ${APR} "--with-installbuilddir=/usr/lib/apr-1/build" ipkg ${APR_UTIL} "--with-apr=/usr/bin/apr-1-config" ipkg ${NEON} "--with-ssl" ipkg -s tcl ${TCL} -ipkg ${SQLITE} -ipkg ${SUBVERSION} "--without-berkeley-db" +CFLAGS="${CFLAGS} -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" \ + ipkg ${SQLITE} "--enable-threadsafe --enable-readline --enable-dynamic-extensions" +ipkg -j ${SUBVERSION} "--without-berkeley-db" ipkg ${SUDO} ipkg ${STRACE} ipkg ${PCRE} "--docdir=/usr/share/doc/pcre \ @@ -76,7 +69,6 @@ ipkg -m noac ${UNRAR} ipkg ${CPIO} ipkg ${PARTED} "--disable-device-mapper" -ipkg ${ED} ipkg ${BC} "--with-readline" INIT_D_PATH=/etc/rc.d/init.d \ ipkg -m acnb ${FUSE} @@ -123,6 +115,76 @@ ipkg -m noac ${LIBMNG} ipkg ${FREETYPE} ipkg ${FONTCONFIG} -echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h" +ipkg -m noac ${CKERMIT} + +ipkg ${LIBTASN1} +ipkg ${GUILE} \ + --enable-posix \ + --disable-static \ + --enable-networking \ + --enable-regex +ipkg ${LIBGPG_ERROR} +ipkg ${LIBGCRYPT} +ipkg -m acnb ${GNUTLS} + +# Mail +ipkg -l "${SASL2}-pass1" -s "cyrus-sasl" ${SASL2} +ipkg ${OPENLDAP} +ipkg -l "${SASL2}-pass2" -s "cyrus-sasl" ${SASL2} +ipkg -s "krb5" ${KERBEROS5} + +if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then + ipkg -m noac ${SENDMAIL} +else + ipkg -m acnb ${SSMTP} +fi + +ipkg ${GNUPG} "--libexecdir=/usr/lib" +ipkg ${MUTT} "--enable-imap --with-ssl --with-sasl" + +# Audio +if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then + if [ "x${SOUND_CARD}" = "xyes" ]; then + ipkg -m acnb ${NASM} + + ipkg ${ALSA_LIB} + ipkg -m acnb ${ALSA_UTILS} + + # Audio raw utilities + ipkg ${LIBSAMPLERATE} + + # Audio file formats + ipkg ${LIBOGG} + ipkg ${LIBVORBIS} + ipkg -m acnb ${FLAC} + ipkg ${LAME} + CFLAGS="-fPIC ${CFLAGS}" ipkg ${LIBA52} "--enable-shared" + + ipkg ${LIBID3TAG} + ipkg ${LIBMAD} + + ipkg -m acnb ${LIBFAAC} + ipkg -m acnb ${LIBFAAD2} + ipkg ${LIBTHEORA} + ipkg ${XVIDCORE} + + # Audio libraries + ipkg -m acnb ${AUDIOFILE} + ipkg ${PORTAUDIO} + ipkg ${LIBSNDFILE} + + # Audio servers + ipkg ${SPEEX} + ipkg ${JACK} "--disable-portaudio --libdir=/usr/lib" + + ipkg ${ALSA_PLUGINS} # Depends on pulseaudio + ipkg ${VORBIS_TOOLS} + + ipkg ${MOC} + fi +fi + +write_completed_stage +display_stage_build_stats exit $?