#!/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
ipkg -m acnb ${LIBUSB}
ipkg ${LIBUSB_COMPAT}
ipkg ${USBUTILS}
-ipkg ${FCRON}
+ipkg -j ${FCRON}
ipkg ${OPENSSH}
ipkg -s lynx ${LYNX}
ipkg ${EXPAT}
ipkg ${NEON} "--with-ssl"
ipkg -s tcl ${TCL}
ipkg ${SQLITE}
-ipkg ${SUBVERSION} "--without-berkeley-db"
+ipkg -j ${SUBVERSION} "--without-berkeley-db"
ipkg ${SUDO}
ipkg ${STRACE}
ipkg ${PCRE} "--docdir=/usr/share/doc/pcre \
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"
+
+write_completed_stage
+display_stage_build_stats
exit $?