#!/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
init_log_file
-# For updating dynamic DNS entries.
-if [ "x${USE_DYNAMIC_DNS}" = "xyes" ]; then
- ipkg_cust ${DDCLIENT} cis-ddclient
-fi
+# Scripts directory
+export SCRDIR=$(pwd)
+
+ipkg_ac ${PCRE} \
+ --docdir=/usr/share/doc/pcre \
+ --enable-utf8 \
+ --enable-unicode-properties \
+ --enable-pcregrep-libz \
+ --enable-pcregrep-libbz2
+ipkg_ac ${STRACE}
# Networking
ipkg_cust ${INETUTILS} cis-inetutils
-
-# Network/debugging tools
-ipkg_ac ${LIBPCAP} "--enable-yydebug"
+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}
-ipkg_ac ${STRACE}
-
-# Bind server
-ipkg_cust ${BIND} cis-bind
+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_cust ${IPTABLES} cis-iptables
ipkg_cust ${MYSQL} cis-mysql
fi
-ipkg_cust ${UNZIP} cis-unzip
ipkg_cust ${ZIP} cis-zip
+ipkg_cust ${UNZIP} cis-unzip
+ipkg_cust ${UNRAR} cis-unrar
ipkg_ac ${CPIO}
+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
-# Installing only CVS client.
-ipkg_ac ${CVS_PACKAGE} "--disable-server"
-
-ipkg_ac ${PARTED}
-
-# Graphic libraries
+# 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_cust ${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_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_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
+if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
ipkg_cust ${WINDOWMAKER} cis-windowmaker
ipkg_ac ${WINDOWMAKER_EXTRA}
ipkg_cust ${EMACS} cis-emacs
fi
-ipkg_cust ${TK} cis-tk
-
-ipkg_ac ${PYTHON} "--enable-shared"
-
-ipkg_cust${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_pm ${PERL_MOD_DIGEST_SHA1}
ipkg_pm ${PERL_MOD_URI}
ipkg_pm ${PERL_MOD_LWP}
- ipkg_cust ${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}
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}
ipkg_ac ${LIBIDL}
fi
+ipkg_ac ${HELP2MAN}
ipkg_ac ${INTLTOOL}
ipkg_ac ${GSL}
ipkg_cust ${CUPS} cis-cups
ipkg_ac ${INKSCAPE} "CFLAGS=\"-DPOPPLER_NEW_GFXFONT\""
fi
-ipkg_ac ${BC} "--with-readline"
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_cust ${TETEX_SRC} cis-tetex
ipkg_cust ${JADETEX} cis-jadetex
fi
ipkg_cust ${NSS} cis-nss
ipkg_cust ${FIREFOX} cis-firefox
- # Plugins for Opera and Firefox
+ # Plugins for Firefox
ipkg_cust ${JAVA} cis-java
ipkg_cust ${AGG} cis-agg
ipkg_cust ${GNASH} cis-gnash
# Apache
ipkg_cust ${HTTPD} cis-apache
- ipkg_ac ${CURL}
ipkg_cust ${PHP} cis-php
ipkg_cust ${SQUIRRELMAIL} cis-squirrelmail
ipkg_ac ${INDENT}
fi
- ipkg_ac_nb ${GIT}
- ipkg_cust ${GIT_MANPAGES} cis-git-manpages
-
if [ "x${USE_SAMBA}" = "xyes" ]; then
ipkg_cust ${SAMBA} cis-samba
fi
ipkg_ac_nb ${BRIDGE_UTILS}
ipkg_cust ${UML_UTILITIES} cis-uml-utilities
-ipkg_cust ${GUILE} cis-guile
+ipkg_ac ${GUILE} \
+ --enable-posix \
+ --disable-static \
+ --enable-networking \
+ --enable-regex
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}
ipkg_cust ${POLKIT} cis-polkit
ipkg_ac ${GNUPG} "--libexecdir=/usr/lib"
-./cis-postinstall
+rscr mult "Performing post-install" cis-post-install
exit $?