Ré-organisatrion stage3 et stage5 comme les stages 0 à 2
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Wed, 2 Mar 2011 05:40:17 +0000 (05:40 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Wed, 2 Mar 2011 05:40:17 +0000 (05:40 +0000)
222 files changed:
functions
packages-list
stage3/bootscripts/alsa [deleted file]
stage3/bootscripts/apache [deleted file]
stage3/bootscripts/clamav [deleted file]
stage3/bootscripts/mailman [deleted file]
stage3/bootscripts/milter-greylist [deleted file]
stage3/bootscripts/milter-spf [deleted file]
stage3/bootscripts/openldap [deleted file]
stage3/bootscripts/pulseaudio [deleted file]
stage3/bootscripts/samba [deleted file]
stage3/bootscripts/saslauthd [deleted file]
stage3/bootscripts/sendmail [deleted file]
stage3/cis-agg [deleted file]
stage3/cis-alsa-lib [deleted file]
stage3/cis-alsa-utils [deleted file]
stage3/cis-apache [deleted file]
stage3/cis-bind [deleted file]
stage3/cis-boost [deleted file]
stage3/cis-ckermit [deleted file]
stage3/cis-clamav [deleted file]
stage3/cis-ddclient [deleted file]
stage3/cis-docbook-dsssl [deleted file]
stage3/cis-docbook-utils [deleted file]
stage3/cis-docbook-xml [deleted file]
stage3/cis-docbook-xsl [deleted file]
stage3/cis-dosfstools [deleted file]
stage3/cis-fcron [deleted file]
stage3/cis-firefox [deleted file]
stage3/cis-flashplugin [deleted file]
stage3/cis-fontconfig [deleted file]
stage3/cis-getdate [deleted file]
stage3/cis-git [deleted file]
stage3/cis-gnash [deleted file]
stage3/cis-inetutils [deleted file]
stage3/cis-iptables [deleted file]
stage3/cis-java [deleted file]
stage3/cis-krb5 [deleted file]
stage3/cis-libid3tag [deleted file]
stage3/cis-libmad [deleted file]
stage3/cis-libmng [deleted file]
stage3/cis-libopenjpeg [deleted file]
stage3/cis-libusb [deleted file]
stage3/cis-ltsp [deleted file]
stage3/cis-ltsp-utils [deleted file]
stage3/cis-mailman [deleted file]
stage3/cis-milter-greylist [deleted file]
stage3/cis-milter-spf [deleted file]
stage3/cis-mysql [deleted file]
stage3/cis-nano [deleted file]
stage3/cis-net-tools [deleted file]
stage3/cis-nfs-utils [deleted file]
stage3/cis-nss [deleted file]
stage3/cis-openjade [deleted file]
stage3/cis-openldap [deleted file]
stage3/cis-opensp [deleted file]
stage3/cis-openssh [deleted file]
stage3/cis-openssl [deleted file]
stage3/cis-pam [deleted file]
stage3/cis-pciutils [deleted file]
stage3/cis-php [deleted file]
stage3/cis-pm [deleted file]
stage3/cis-portmap [deleted file]
stage3/cis-postinstall [deleted file]
stage3/cis-procmail [deleted file]
stage3/cis-pulseaudio [deleted file]
stage3/cis-reiserfsprogs [deleted file]
stage3/cis-samba [deleted file]
stage3/cis-sasl2 [deleted file]
stage3/cis-sendmail [deleted file]
stage3/cis-sgml-common [deleted file]
stage3/cis-sgml-dtd3 [deleted file]
stage3/cis-sgml-dtd4 [deleted file]
stage3/cis-sgml-spm [deleted file]
stage3/cis-spamassassin [deleted file]
stage3/cis-squirrelmail [deleted file]
stage3/cis-subversion [deleted file]
stage3/cis-sudo [deleted file]
stage3/cis-tcl [deleted file]
stage3/cis-tcp-wrappers [deleted file]
stage3/cis-tftp-hpa [deleted file]
stage3/cis-uml-utilities [deleted file]
stage3/cis-unrar [deleted file]
stage3/cis-unzip [deleted file]
stage3/cis-usbutils [deleted file]
stage3/cis-uw-imap [deleted file]
stage3/cis-xmltoman [deleted file]
stage3/cis-xvidcore [deleted file]
stage3/cis-zip [deleted file]
stage3/install-1 [new file with mode: 0755]
stage3/ipkg.def [new file with mode: 0644]
stage3/packages-update
stage3/pkg/Linux-PAM [new file with mode: 0644]
stage3/pkg/bind [new file with mode: 0644]
stage3/pkg/ddclient [new file with mode: 0644]
stage3/pkg/docbook-dsssl [new file with mode: 0644]
stage3/pkg/docbook-utils [new file with mode: 0644]
stage3/pkg/docbook-xml [new file with mode: 0644]
stage3/pkg/docbook-xsl [new file with mode: 0644]
stage3/pkg/dosfstools [new file with mode: 0644]
stage3/pkg/fcron [new file with mode: 0644]
stage3/pkg/fontconfig [new file with mode: 0644]
stage3/pkg/freetype [new file with mode: 0644]
stage3/pkg/git [new file with mode: 0644]
stage3/pkg/inetutils [new file with mode: 0644]
stage3/pkg/iptables [new file with mode: 0644]
stage3/pkg/libmng [new file with mode: 0644]
stage3/pkg/libopenjpeg [new file with mode: 0644]
stage3/pkg/mysql [new file with mode: 0644]
stage3/pkg/nano [new file with mode: 0644]
stage3/pkg/nfs-utils [new file with mode: 0644]
stage3/pkg/openjade [new file with mode: 0644]
stage3/pkg/opensp [new file with mode: 0644]
stage3/pkg/openssh [new file with mode: 0644]
stage3/pkg/openssl [new file with mode: 0644]
stage3/pkg/pciutils [new file with mode: 0644]
stage3/pkg/portmap [new file with mode: 0644]
stage3/pkg/reiserfsprogs [new file with mode: 0644]
stage3/pkg/sgml-common [new file with mode: 0644]
stage3/pkg/sgml-dtd3 [new file with mode: 0644]
stage3/pkg/sgml-dtd4 [new file with mode: 0644]
stage3/pkg/sgml-spm [new file with mode: 0644]
stage3/pkg/subversion [new file with mode: 0644]
stage3/pkg/sudo [new file with mode: 0644]
stage3/pkg/tcl [new file with mode: 0644]
stage3/pkg/tcp-wrappers [new file with mode: 0644]
stage3/pkg/unrar [new file with mode: 0644]
stage3/pkg/unzip [new file with mode: 0644]
stage3/pkg/usbutils [new file with mode: 0644]
stage3/pkg/xmltoman [new file with mode: 0644]
stage3/pkg/zip [new file with mode: 0644]
stage3/resources/mail-files.sh [deleted file]
stage3/resources/nanorc
stage3/stage.def [new file with mode: 0644]
stage3/stage3-additions [deleted file]
stage3/stage3-install [deleted file]
stage5/bootscripts/alsa [new file with mode: 0755]
stage5/bootscripts/apache [new file with mode: 0755]
stage5/bootscripts/clamav [new file with mode: 0755]
stage5/bootscripts/mailman [new file with mode: 0755]
stage5/bootscripts/milter-greylist [new file with mode: 0755]
stage5/bootscripts/milter-spf [new file with mode: 0755]
stage5/bootscripts/openldap [new file with mode: 0755]
stage5/bootscripts/pulseaudio [new file with mode: 0755]
stage5/bootscripts/samba [new file with mode: 0755]
stage5/bootscripts/saslauthd [new file with mode: 0755]
stage5/bootscripts/sendmail [new file with mode: 0755]
stage5/cis-boost [deleted file]
stage5/cis-cdrtools [deleted file]
stage5/cis-cups [deleted file]
stage5/cis-cups-pdf [deleted file]
stage5/cis-dvd-rw-tools [deleted file]
stage5/cis-dvdfs [deleted file]
stage5/cis-emacs [deleted file]
stage5/cis-gconf [deleted file]
stage5/cis-ghostscript [deleted file]
stage5/cis-gnome [deleted file]
stage5/cis-gnome-config [deleted file]
stage5/cis-gnome-nobuild [deleted file]
stage5/cis-iso-codes [deleted file]
stage5/cis-jadetex [deleted file]
stage5/cis-pm [deleted file]
stage5/cis-sane-backends [deleted file]
stage5/cis-splix [deleted file]
stage5/cis-tetex [deleted file]
stage5/cis-xsane [deleted file]
stage5/install-1 [new file with mode: 0755]
stage5/pkg/agg [new file with mode: 0644]
stage5/pkg/alsa-lib [new file with mode: 0644]
stage5/pkg/alsa-utils [new file with mode: 0644]
stage5/pkg/apache [new file with mode: 0644]
stage5/pkg/boost [new file with mode: 0644]
stage5/pkg/cdrtools [new file with mode: 0644]
stage5/pkg/ckermit [new file with mode: 0644]
stage5/pkg/clamav [new file with mode: 0644]
stage5/pkg/cups [new file with mode: 0644]
stage5/pkg/cups-pdf [new file with mode: 0644]
stage5/pkg/dvd-rw-tools [new file with mode: 0644]
stage5/pkg/dvdfs [new file with mode: 0644]
stage5/pkg/emacs [new file with mode: 0644]
stage5/pkg/firefox [new file with mode: 0644]
stage5/pkg/gconf [new file with mode: 0644]
stage5/pkg/getdate [new file with mode: 0644]
stage5/pkg/ghostscript [new file with mode: 0644]
stage5/pkg/gnash [new file with mode: 0644]
stage5/pkg/gnome [new file with mode: 0644]
stage5/pkg/gnome-config [new file with mode: 0644]
stage5/pkg/gnome-nobuild [new file with mode: 0644]
stage5/pkg/iso-codes [new file with mode: 0644]
stage5/pkg/jadetex [new file with mode: 0644]
stage5/pkg/java [new file with mode: 0644]
stage5/pkg/krb5 [new file with mode: 0644]
stage5/pkg/libid3tag [new file with mode: 0644]
stage5/pkg/libmad [new file with mode: 0644]
stage5/pkg/ltsp [new file with mode: 0644]
stage5/pkg/ltsp-utils [new file with mode: 0644]
stage5/pkg/mailman [new file with mode: 0644]
stage5/pkg/milter-greylist [new file with mode: 0644]
stage5/pkg/milter-spf [new file with mode: 0644]
stage5/pkg/nss [new file with mode: 0644]
stage5/pkg/openldap [new file with mode: 0644]
stage5/pkg/php [new file with mode: 0644]
stage5/pkg/pm [new file with mode: 0644]
stage5/pkg/procmail [new file with mode: 0644]
stage5/pkg/pulseaudio [new file with mode: 0644]
stage5/pkg/samba [new file with mode: 0644]
stage5/pkg/sane-backends [new file with mode: 0644]
stage5/pkg/sasl2 [new file with mode: 0644]
stage5/pkg/sendmail [new file with mode: 0644]
stage5/pkg/spamassassin [new file with mode: 0644]
stage5/pkg/splix [new file with mode: 0644]
stage5/pkg/squirrelmail [new file with mode: 0644]
stage5/pkg/tetex [new file with mode: 0644]
stage5/pkg/tftp-hpa [new file with mode: 0644]
stage5/pkg/uml-utilities [new file with mode: 0644]
stage5/pkg/uw-imap [new file with mode: 0644]
stage5/pkg/xsane [new file with mode: 0644]
stage5/pkg/xvidcore [new file with mode: 0644]
stage5/post-install [new file with mode: 0755]
stage5/resources/mail-files.sh [new file with mode: 0755]
stage5/stage5-additions [deleted file]
stage5/stage5-install [deleted file]

index 8052648..ea18ae2 100644 (file)
--- a/functions
+++ b/functions
@@ -216,7 +216,7 @@ static_bootscript_add()
        echo "${FUNCNAME}(), invalid level argument : ${*}"
        return 1
     fi
-    
+
     # Making sure bootscript has correct permissions
     chmod -v 740 ${LFS}/etc/rc.d/init.d/${SCRIPTNAME}
 
@@ -310,7 +310,7 @@ var_export()
        echo "${FUNCNAME}(), wrong number of arguments: ${*}"
        return 1
     fi
-    
+
     # Checking if file exists
     if [ ! -f ${FILE} ]; then
        echo "${FUNCNAME}(), file not found: ${FILE}"
@@ -357,7 +357,7 @@ var_add()
        echo "${FUNCNAME}(), wrong number of arguments: ${*}"
        return 1
     fi
-    
+
     # Checking if file exists
     if [ ! -f ${FILE} ]; then
        echo "${FUNCNAME}(), file not found: ${FILE}"
@@ -400,7 +400,7 @@ var_add()
        # Variable value is NOT enclosed by double-quotes
        sed -i "s!\(^export ${VARIABLE}=.*\)!\1${SEP}${VALUE}!" ${FILE}
     fi
-    
+
     return $?
 }
 
@@ -438,7 +438,7 @@ string_add()
        echo "${FUNCNAME}(), wrong number of arguments: ${*}"
        return 1
     fi
-    
+
     # Checking if file exists
     if [ ! -f ${FILE} ]; then
        echo "${FUNCNAME}(), file not found: ${FILE}"
@@ -450,7 +450,7 @@ string_add()
        echo "${FUNCNAME}(), string already defined: ${STRING}"
        return 0
     fi
-    
+
     echo "${STRING}" >> ${FILE}
 }
 
@@ -470,7 +470,7 @@ var_add_shadow()
        echo "${FUNCNAME}(), wrong number of arguments: ${*}"
        return 1
     fi
-    
+
     # Checking if file exists
     if [ ! -f ${FILE} ]; then
        echo "${FUNCNAME}(), file not found: ${FILE}"
@@ -502,7 +502,7 @@ hv_groupadd()
        last_argument=${*}
        shift
     done
-    
+
     groupadd ${arguments}
     error=$?
 
@@ -522,24 +522,14 @@ hv_useradd()
 {
     arguments="${*}"
 
-    set +e
-
     # The last argument is the username
     while [ $# -ne 0 ]; do
-       last_argument=${*}
+       username=${*}
        shift
     done
 
-    useradd ${arguments}
-    error=$?
-
-    set -e
-
-    if [ ${error} -eq 0 -o ${error} -eq 9 ]; then
-        # 9 means the user already exists
-        return ${EXIT_SUCCESS}
-    else
-        exit ${EXIT_FAILURE}
+    if ! cat /etc/passwd | egrep "^${username}:" 1> /dev/null 2>&1; then
+        useradd ${arguments}
     fi
 }
 
@@ -585,13 +575,13 @@ apply_patches()
        echo "Usage: ${FUNCNAME} PACKAGE-NAME"
        exit ${EXIT_FAILURE}
     fi
-    
+
     if [ $# -eq 2 ]; then
        TARGET_DIR=${2}
     else
        TARGET_DIR=${PACKAGE}
     fi
-    
+
     # Checking if we can find at least one patch.
     if ls ${LFS_PKG_DIR}/${1}-*.patch 1> /dev/null 2>&1; then
        cd ${LFS_PKG_DIR}
@@ -640,7 +630,7 @@ static_decompressed_dirname()
 
 # Decompression of a package
 # First argument: package name
-# Second argument: directory where decompressing (optional)
+# Second argument: directory where decompressing (optional, defaults to LFS_TMP)
 decompress_package()
 {
     # Checking for correct number of arguments
index b49b911..b4bf9b4 100644 (file)
@@ -40,7 +40,7 @@ CLAMAV="clamav-0.93.3"
 CLOOG_PPL="cloog-ppl-0.15.10"
 CONSOLEKIT="ConsoleKit-0.4.1"
 COREUTILS="coreutils-8.5"
-CPIO="cpio-2.9"
+CPIO="cpio-2.11"
 CUPS="cups-1.4.2"
 CUPS_PDF="cups-pdf-2.5.0"
 CURL="curl-7.19.7"
@@ -76,7 +76,7 @@ EMACS="emacs-23.1"
 ESOUND="esound-0.2.37"
 EXPAT="expat-2.0.1"
 
-FCRON="fcron-3.0.0"
+FCRON="fcron-3.0.6"
 FETCHMAIL="fetchmail-6.3.12"
 FFMPEG="ffmpeg-svn-20539"
 FIREFOX="firefox-3.6.source"
@@ -269,7 +269,7 @@ LIBOGG="libogg-1.1.4"
 LIBOIL="liboil-0.3.17"
 LIBOPENJPEG="libopenjpeg-1.2"
 LIBPCAP="libpcap-1.0.0"
-LIBPNG="libpng-1.2.39"
+LIBPNG="libpng-1.2.44"
 LIBPROXY="libproxy-0.2.3"
 LIBPTHREAD_STUBS="libpthread-stubs-0.1"
 LIBRSVG="librsvg-2.26.0"
@@ -319,10 +319,10 @@ OPENJADE="openjade-1.3.2"
 OPENLDAP="openldap-2.3.38"
 OPENSP="OpenSP-1.5.2"
 OPENSSH="openssh-5.1p1"
-OPENSSL="openssl-0.9.8l"
-OPENSSL_ROOT_CERTS="BLFS-ca-bundle-20090409"
+OPENSSL="openssl-1.0.0b"
+OPENSSL_ROOT_CERTS="BLFS-ca-bundle-3.12.8.0"
 
-PAM="Linux-PAM-1.1.0"
+PAM="Linux-PAM-1.1.3"
 PANGO="pango-1.26.2"
 PANGOMM="pangomm-2.26.0"
 PARTED="parted-1.9.0"
@@ -411,7 +411,7 @@ TETEX_TEXMFSRC="tetex-texmfsrc-3.0"
 TETEX_CM_SUPER="tetex-cm-super"
 TEXINFO="texinfo-4.13a"
 TFTP_HPA="tftp-hpa-0.49"
-TIFF="tiff-3.8.2"
+TIFF="tiff-3.9.4"
 TK="tk8.5.8-src"
 TRANSMISSION="transmission-1.34"
 
diff --git a/stage3/bootscripts/alsa b/stage3/bootscripts/alsa
deleted file mode 100755 (executable)
index c0de296..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-# alsa
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-alsactl=/usr/sbin/alsactl
-
-# See how we were called.
-case "$1" in
-    start)
-       cmd_run_log_box "Loading sound settings" ${alsactl} restore
-       ;;
-
-    stop)
-       cmd_run_log_box "Saving sound settings" ${alsactl} store
-       ;;
-    
-    *)
-        echo "Usage: $0 {start|stop}"
-        exit ${EXIT_CODE_FAILURE}
-        ;;
-    
-esac
-
-exit 0
diff --git a/stage3/bootscripts/apache b/stage3/bootscripts/apache
deleted file mode 100755 (executable)
index f2d0522..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-# apache
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-APACHECTL=/usr/sbin/apachectl
-
-# Check that the program is present and executable.
-if [ ! -x ${APACHECTL} ]; then
-    log_message "*** ERROR: ${APACHECTL} program not found."
-    exit ${EXIT_CODE_FAILURE}
-fi
-
-case "$1" in
-    start)
-       cmd_run_log_box "Starting Apache server" ${APACHECTL} -k start
-       ;;
-    
-    stop)
-       cmd_run_log_box "Stopping Apache server" ${APACHECTL} -k stop
-       ;;
-    
-    restart)
-       cmd_run_log_box "Re-starting Apache server" ${APACHECTL} -k restart
-       ;;
-
-    status)
-       statusproc httpd
-       ;;
-
-    *)
-       echo "Usage: $0 {start|stop|restart|status}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-    
-esac
-
-exit $?
diff --git a/stage3/bootscripts/clamav b/stage3/bootscripts/clamav
deleted file mode 100755 (executable)
index 5ffe846..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-# clamav
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-SOCKET_DIR="/var/run/clamav"
-
-start()
-{
-    if statusproc clamd | grep "not running" 1> /dev/null 2>&1; then
-       # Not taking any chances, removing left-over files
-       rm -f ${SOCKET_DIR}/clamd.{sock,pid} || return 1
-    fi
-    loadproc /usr/sbin/clamd || return 1
-
-    sleep 1
-
-    if statusproc clamav-milter | grep "not running" 1> /dev/null 2>&1; then
-       # Not taking any chances, removing left-over files
-       rm -f ${SOCKET_DIR}/clmilter.sock || return 1
-    fi
-    # Option "--postmaster-only" is to send warnings only to postmaster.
-    loadproc /usr/sbin/clamav-milter --local --outgoing --headers --postmaster-only ${SOCKET_DIR}/clmilter.sock
-
-    return $?
-}
-
-stop()
-{
-    killproc clamd &&
-    killproc clamav-milter
-
-    return $?
-}
-
-log_script_name "$0 $*"
-
-case "$1" in
-    start)
-       cmd_run_log_box_warn "Clam AntiVirus start" start
-        ;;
-
-    stop)
-       cmd_run_log_box_warn "Clam AntiVirus stop" stop
-        ;;
-                
-    status)
-        statusproc clamd
-        statusproc clamav-milter
-        ;;
-    
-    restart)
-        $0 stop
-        sleep 1
-        $0 start
-        ;;
-    
-    *)
-       echo "Usage: $0 {restart|start|status|stop}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/mailman b/stage3/bootscripts/mailman
deleted file mode 100755 (executable)
index 89aa0fc..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-# mailman
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-PYTHON=/usr/bin/python
-MAILMANHOME=/usr/lib/mailman
-MAILMANCTL=${MAILMANHOME}/bin/mailmanctl
-
-case "$1" in
-    start)
-       # rm -f $MAILMANHOME/locks/*
-       cmd_run_log_box "Starting Mailman daemon" ${PYTHON} ${MAILMANCTL} -s -q start
-        ;;
-    
-    stop)
-       cmd_run_log_box "Stopping Mailman daemon" ${PYTHON} ${MAILMANCTL} -q stop
-       ;;
-    
-    restart)
-       ${PYTHON} ${MAILMANCTL} -q restart
-        ;;
-
-    status)
-       statusproc mailman
-        ;;
-    
-    *)
-       echo "Usage: $0 {start|stop|restart|status}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/milter-greylist b/stage3/bootscripts/milter-greylist
deleted file mode 100755 (executable)
index a771554..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-# milter-greylist
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-prog="Milter-Greylist"
-
-pidfile="/var/run/milter-greylist/milter-greylist.pid"
-socket="/var/run/milter-greylist/milter-greylist.sock"
-OPTIONS="-P $pidfile -p $socket -v"
-
-if [ -f /etc/sysconfig/milter-greylist ]; then
-    . /etc/sysconfig/milter-greylist
-fi
-
-case "$1" in
-    start)
-       cmd_run_log_box_warn "Starting $prog" loadproc /usr/bin/milter-greylist ${OPTIONS}
-        touch /var/lock/subsys/milter-greylist
-        ;;
-
-    stop)
-       cmd_run_log_box_warn "Stopping $prog" killproc /usr/bin/milter-greylist
-        rm -f /var/lock/subsys/milter-greylist
-        ;;
-
-    restart)
-        $0 stop
-        sleep 1
-        $0 start
-        ;;
-    
-    status)
-        statusproc milter-greylist
-        ;;
-    
-    *)
-       echo "Usage: $0 {start|stop|restart|status}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/milter-spf b/stage3/bootscripts/milter-spf
deleted file mode 100755 (executable)
index b26502b..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-# Milter-SPF
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-prog="Milter-SPF"
-socket="/var/run/smfs/smf-spf.sock"
-
-case "$1" in
-    start)
-       cmd_run_log_box_warn "Starting $prog" loadproc /usr/sbin/smf-spf
-        ;;
-
-    stop)
-       cmd_run_log_box_warn "Stopping $prog" killproc /usr/sbin/smf-spf
-        ;;
-
-    restart)
-        $0 stop
-        sleep 1
-        $0 start
-        ;;
-    
-    status)
-        statusproc smf-spf
-        ;;
-    
-    *)
-       echo "Usage: $0 {start|stop|restart|status}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/openldap b/stage3/bootscripts/openldap
deleted file mode 100755 (executable)
index 2896184..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-# openldap
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-piddir=/srv/ldap/run
-
-case "$1" in
-    start)
-       cmd_run_log_box_warn "Starting LDAP Server" loadproc slapd
-        ;;
-    
-    stop)
-       cmd_run_log_box_warn "Stopping LDAP Server" killproc_path slapd ${piddir}
-        ;;
-                
-    restart)
-        $0 stop
-        sleep 1
-        $0 start
-        ;;
-
-    status)
-       statusproc_path slapd ${piddir}
-        ;;
-    
-    *)
-       echo "Usage: $0 {start|stop|restart|status}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/pulseaudio b/stage3/bootscripts/pulseaudio
deleted file mode 100755 (executable)
index 273b6a5..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-# fcron
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-
-PULSE_SERVER="tcp:via:16002"
-ESPEAKER="via:16001"
-
-# See how we were called.
-case "$1" in
-    start)
-        cmd_run_log_box_warn "PulseAudio sound server start" loadproc pulseaudio
-        ;;
-    
-    stop)
-       cmd_run_log_box_warn "PulseAudio sound server stop" killproc pulseaudio
-        ;;
-    
-    restart)
-        $0 stop
-        sleep 1
-        $0 start
-        ;;
-    
-    status)
-        statusproc pulseaudio
-        ;;
-    
-    *)
-        echo "Usage: $0 {start|stop|restart|status}"
-        exit ${EXIT_CODE_FAILURE}
-        ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/samba b/stage3/bootscripts/samba
deleted file mode 100755 (executable)
index 09e2bfe..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-# See how we were called
-case "$1" in
-    start)
-       cmd_run_log_box_warn "Starting nmbd daemon" loadproc nmbd -D -d 1 -l /var/log/samba
-       cmd_run_log_box_warn "Starting smbd daemon" loadproc smbd -D -l /var/log/samba
-       ;;
-    
-    stop)
-       cmd_run_log_box_warn "Stopping smbd daemon" killproc smbd
-       cmd_run_log_box_warn "Stopping nmbd daemon" killproc nmbd
-       ;;
-    
-    restart)
-       $0 stop
-       sleep 1
-       $0 start
-       ;;
-    
-    status)
-       statusproc nmbd
-       statusproc smbd
-       ;;
-    
-    *)
-       echo "Usage: $0 {start|stop|restart|status}"
-       exit 1
-       ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/saslauthd b/stage3/bootscripts/saslauthd
deleted file mode 100755 (executable)
index 6d271a5..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# saslauthd
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-case "$1" in
-    start)
-       cmd_run_log_box_warn "SASL daemon start" loadproc /usr/sbin/saslauthd -a shadow
-        ;;
-
-    stop)
-       cmd_run_log_box_warn "SASL daemon stop" killproc saslauthd
-        ;;
-                
-    status)
-        statusproc saslauthd
-        ;;
-        
-    restart)
-        $0 stop
-        sleep 1
-        $0 start
-        ;;
-
-    *)
-       echo "Usage: $0 {restart|start|status|stop}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-esac
-
-exit $?
diff --git a/stage3/bootscripts/sendmail b/stage3/bootscripts/sendmail
deleted file mode 100755 (executable)
index 14aea57..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-# sendmail
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-case "$1" in
-    start)
-       cmd_run_log_box_warn "sendmail start" loadproc /usr/sbin/sendmail -bs -bd -q5m start
-        ;;
-
-    stop)
-       cmd_run_log_box_warn "sendmail stop" killproc sendmail
-        ;;
-
-    reload)
-        cmd_run_log_box_warn reloadproc sendmail
-        ;;
-                
-    restart)
-        $0 stop
-        sleep 1
-        $0 start
-        ;;
-
-    status)
-        statusproc sendmail
-        ;;
-    
-    *)
-       echo "Usage: $0 {start|stop|reload|restart|status}"
-       exit ${EXIT_CODE_FAILURE}
-       ;;
-esac
-
-exit $?
diff --git a/stage3/cis-agg b/stage3/cis-agg
deleted file mode 100755 (executable)
index 2cf3c93..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-sh autogen.sh
-./configure \
-    --prefix=/usr \
-    --disable-static \
-    --enable-ctrl \
-    --enable-gpc \
-    ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-exit $?
diff --git a/stage3/cis-alsa-lib b/stage3/cis-alsa-lib
deleted file mode 100755 (executable)
index 81d877c..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --enable-static
-make
-make install
-install -v -m644 -D doc/asoundrc.txt /usr/share/doc/${1}/asoundrc.txt
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-alsa-utils b/stage3/cis-alsa-utils
deleted file mode 100755 (executable)
index 558b0c3..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-./configure
-make
-make install
-
-# The first time the alsa bootscript is run, it will complain that there is no state in
-# /etc/asound.state. You can prevent this by running the following commands after
-# installing alsa-utils:
-touch /etc/asound.state
-
-install -v -m740 ${SCRDIR}/bootscripts/alsa /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rcS alsa 95 85
-
-exit $?
diff --git a/stage3/cis-apache b/stage3/cis-apache
deleted file mode 100755 (executable)
index 2aa25e1..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-groupadd -f ${APACHE_USER}
-hv_useradd -c WebServer -d /dev/null -g ${APACHE_USER} -s /bin/false ${APACHE_USER}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --enable-layout=FHS \
-    --enable-mods-shared=all \
-    --enable-ssl \
-    --with-z
-#    --enable-rewrite \
-#    --enable-deflate \
-#    --enable-dav \
-make
-make install
-
-# There's a problem with the ISAPI DSO module caused from compiling with GCC-4.1.2.
-# Commenting out the module from the configuration:
-if grep "LoadModule isapi_module" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
-    sed -i -e "s/^LoadModule isapi_module/# &/" /etc/apache/httpd.conf
-fi
-
-# Modifying the listening port if an alternate one is specified.
-if [ -n "${HTTPD_PORT}" ]; then
-    if ! grep "Listen ${HTTPD_PORT}" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
-       # Adding alternate port to default port of 80
-       sed -i -e "s%\(Listen 80\)%\1\nListen ${HTTPD_PORT}%" /etc/apache/httpd.conf
-    fi
-fi
-
-# Modifying the configuration file to run the server as a dedicated user:
-sed -i \
-    -e "s!^\(User\).*!\1 ${APACHE_USER}!g" \
-    -e "s!^\(Group\).*!\1 ${APACHE_USER}!g" \
-    /etc/apache/httpd.conf
-
-# SSL Certificates generation script
-cat > /etc/apache/generate-ssl-certs << "EOF"
-#!/bin/sh
-
-# Creation of SSL directories for Apache
-cd /etc/apache
-mkdir -p ssl
-
-cd ssl
-
-echo "-------------------------------------------------"
-echo "Generation of the RSA private key"
-echo "-------------------------------------------------"
-openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out server.key 1024
-
-echo "-------------------------------------------------"
-echo "Removing pass-phrase from the private key"
-echo "-------------------------------------------------"
-cp server.key server.key.orig
-openssl rsa -in server.key.orig -out server.key
-# The unencrypted key must be readable only by root!
-chown root:root server.*
-chmod 0400 server.*
-
-echo "-------------------------------------------------"
-echo "Generation of a Certificate Signing Request (CSR)"
-echo ""
-echo "Example fields:"
-echo "Country name:             CA"
-echo "State or Province Name:   Quebec"
-echo "Locality Name:            Montreal"
-echo "Organization Name:        Hugo Villeneuve"
-echo "Organizational Unit Name: ."
-echo "Common Name:              www.hugovil.com"
-echo "Email Address:            webmaster@hugovil.com"
-echo ""
-echo "Please enter the following 'extra' attributes"
-echo "to be sent with your certificate request"
-echo "A challenge password []:     (press enter)   "
-echo "An optional company name []: (press enter)   "
-echo ""
-echo "-------------------------------------------------"
-
-openssl req -new -key server.key -out server.csr
-
-echo "-------------------------------------------------"
-echo "Generation of a self-signed certificate"
-echo "-------------------------------------------------"
-openssl x509 -req -days 10000 -in server.csr -signkey server.key -out server.crt
-
-exit $?
-EOF
-
-chmod 740 /etc/apache/generate-ssl-certs
-
-mkdir -p /etc/apache/ssl
-cp /etc/apache/extra/httpd-ssl.conf /etc/apache/ssl/ssl.conf
-
-sed -i -e "s!^<IfModule ssl_module>!<IfModule ssl_module>\n  Include /etc/apache/ssl/ssl.conf!" /etc/apache/httpd.conf
-
-mkdir -p /srv/www/htdocs/ssl
-chown apache:apache /srv/www/htdocs/ssl
-
-sed -i -e "s!^DocumentRoot .*!DocumentRoot /srv/www/htdocs/ssl!" /etc/apache/ssl/ssl.conf
-sed -i -e "s!^ServerName .*:443!ServerName www.${DOMAIN}:443!" /etc/apache/ssl/ssl.conf
-sed -i -e "s!^ServerAdmin .*!ServerAdmin webmaster@${DOMAIN}!" /etc/apache/ssl/ssl.conf
-sed -i -e "s!/etc/apache!/etc/apache/ssl!" /etc/apache/ssl/ssl.conf
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/apache /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 apache 70 20
-
-exit $?
diff --git a/stage3/cis-bind b/stage3/cis-bind
deleted file mode 100755 (executable)
index a908d68..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-groupadd -f named
-hv_useradd -c BindOwner -g named -m -s /bin/false named
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var \
-    --mandir=/usr/share/man \
-    --enable-threads \
-    --with-libtool
-# Use updated address for L.ROOT-SERVERS.NET.
-sed -i "s@198.32.64.12@199.7.83.42@" lib/dns/rootns.c
-make
-make install
-
-# Enable the execute bit to prevent a warning when using ldd to check library dependencies.
-chmod 755 /usr/lib/lib{bind9,isc{,cc,cfg},lwres,dns}.so.*.?.?
-
-cd doc
-install -d -m755 /usr/share/doc/${1}/{arm,draft,misc,rfc}
-install -m644 arm/*.html /usr/share/doc/${1}/arm
-install -m644 draft/*.txt /usr/share/doc/${1}/draft
-install -m644 rfc/* /usr/share/doc/${1}/rfc
-install -m644 misc/{dnssec,ipv6,migrat*,options,rfc-compliance,roadmap,sdb} \
-    /usr/share/doc/${1}/misc
-
-# Generation of a key for use in the named.conf and rdnc.conf files using the rndc-confgen command.
-BINDKEY=$(rndc-confgen -b 512 | grep -m 1 "secret" | cut -d '"' -f 2)
-
-cd /home/named
-mkdir -p dev etc/namedb/{pz,slave} var/run
-rm -f /home/named/dev/null
-mknod /home/named/dev/null c 1 3
-rm -f /home/named/dev/random
-mknod /home/named/dev/random c 1 8
-chmod 666 /home/named/dev/{null,random}
-cp /etc/localtime /home/named/etc
-
-# Creating the named.conf file from which named will read the location of zone files,
-# root name servers and secure DNS keys.
-cat > /home/named/etc/named.conf << "EOF"
- options {
-     directory "/etc/namedb";
-    pid-file "/var/run/named.pid";
-    statistics-file "/var/run/named.stats";
-       
- };
- controls {
-     inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
- };
- key "rndc_key" {
-     algorithm hmac-md5;
-     secret "_BIND_KEY_";
- };
- zone "." {
-     type hint;
-     file "root.hints";
- };
- zone "0.0.127.in-addr.arpa" {
-     type master;
-     file "pz/127.0.0";
- };
-
-// Bind 9 now logs by default through syslog (except debug).
-// These are the default logging rules.
-
-logging {
-     category default { default_syslog; default_debug; };
-     category unmatched { null; };
-
-  channel default_syslog {
-      syslog daemon;                      // send to syslog's daemon
-                                          // facility
-      severity info;                      // only send priority info
-                                          // and higher
-  };
-
-  channel default_debug {
-      file "named.run";                   // write to named.run in
-                                          // the working directory
-                                          // Note: stderr is used instead
-                                          // of "named.run"
-                                          // if the server is started
-                                          // with the '-f' option.
-      severity dynamic;                   // log at the server's
-                                          // current debug level
-  };
-
-  channel default_stderr {
-      stderr;                             // writes to stderr
-      severity info;                      // only send priority info
-                                          // and higher
-  };
-
-  channel null {
-     null;                                // toss anything sent to
-                                          // this channel
-  };
-};
-EOF
-sed -i -e "s!_BIND_KEY_!${BINDKEY}!g" /home/named/etc/named.conf
-
-cat > /etc/rndc.conf << "EOF"
-key rndc_key {
-algorithm "hmac-md5";
-    secret
-    "_BIND_KEY_";
-    };
-options {
-    default-server localhost;
-    default-key    rndc_key;
-};
-EOF
-sed -i -e "s!_BIND_KEY_!${BINDKEY}!g" /etc/rndc.conf
-
-cat > /home/named/etc/namedb/pz/127.0.0 << "EOF"
-$TTL 3D
-@      IN      SOA     ns.local.domain. hostmaster.local.domain. (
-                        1       ; Serial
-                        8H      ; Refresh
-                        2H      ; Retry
-                        4W      ; Expire
-                        1D)     ; Minimum TTL
-                NS      ns.local.domain.
-1               PTR     localhost.
-EOF
-
-cat > /home/named/etc/namedb/root.hints << "EOF"
-.                       6D  IN      NS      A.ROOT-SERVERS.NET.
-.                       6D  IN      NS      B.ROOT-SERVERS.NET.
-.                       6D  IN      NS      C.ROOT-SERVERS.NET.
-.                       6D  IN      NS      D.ROOT-SERVERS.NET.
-.                       6D  IN      NS      E.ROOT-SERVERS.NET.
-.                       6D  IN      NS      F.ROOT-SERVERS.NET.
-.                       6D  IN      NS      G.ROOT-SERVERS.NET.
-.                       6D  IN      NS      H.ROOT-SERVERS.NET.
-.                       6D  IN      NS      I.ROOT-SERVERS.NET.
-.                       6D  IN      NS      J.ROOT-SERVERS.NET.
-.                       6D  IN      NS      K.ROOT-SERVERS.NET.
-.                       6D  IN      NS      L.ROOT-SERVERS.NET.
-.                       6D  IN      NS      M.ROOT-SERVERS.NET.
-A.ROOT-SERVERS.NET.     6D  IN      A       198.41.0.4
-B.ROOT-SERVERS.NET.     6D  IN      A       192.228.79.201
-C.ROOT-SERVERS.NET.     6D  IN      A       192.33.4.12
-D.ROOT-SERVERS.NET.     6D  IN      A       128.8.10.90
-E.ROOT-SERVERS.NET.     6D  IN      A       192.203.230.10
-F.ROOT-SERVERS.NET.     6D  IN      A       192.5.5.241
-G.ROOT-SERVERS.NET.     6D  IN      A       192.112.36.4
-H.ROOT-SERVERS.NET.     6D  IN      A       128.63.2.53
-I.ROOT-SERVERS.NET.     6D  IN      A       192.36.148.17
-J.ROOT-SERVERS.NET.     6D  IN      A       192.58.128.30
-K.ROOT-SERVERS.NET.     6D  IN      A       193.0.14.129
-L.ROOT-SERVERS.NET.     6D  IN      A       198.32.64.12
-M.ROOT-SERVERS.NET.     6D  IN      A       202.12.27.33
-EOF
-
-chown -R named.named /home/named
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/named /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 named 25 65
-
-exit $?
diff --git a/stage3/cis-boost b/stage3/cis-boost
deleted file mode 100755 (executable)
index 65cf30f..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-./configure \
-    --prefix=/usr
-make
-make install
-ldconfig
-
-exit $?
diff --git a/stage3/cis-ckermit b/stage3/cis-ckermit
deleted file mode 100755 (executable)
index 5bd062b..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make linux
-make prefix=/usr install
-
-cat > /etc/skel/.kermrc << "EOF"
-set line /dev/ttyUSB0
-set speed 115200
-set carrier-watch off
-set handshake none
-set flow-control none
-robust
-set file type bin
-set file name lit
-set rec pack 1000
-set send pack 1000
-set window 5
-xecho \27[32m\27[40m
-EOF
-
-exit $?
diff --git a/stage3/cis-clamav b/stage3/cis-clamav
deleted file mode 100755 (executable)
index afdaec3..0000000
+++ /dev/null
@@ -1,213 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-groupadd -f clamav
-hv_useradd -g clamav -s /bin/false -c Clam-AntiVirus clamav
-
-cd ${LFS_TMP}/${1}
-SENDMAIL="/usr/sbin/sendmail" ./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --with-dbdir=/srv/clamav \
-    --enable-milter
-make
-make install
-touch /var/log/clamd.log
-chmod 600 /var/log/clamd.log
-chown clamav /var/log/clamd.log
-touch /var/log/freshclam.log
-chmod 600 /var/log/freshclam.log
-chown clamav /var/log/freshclam.log
-
-# Addition to /etc/fcron/fcrontab to update virus database
-string_add "Update the Clam AV database every hour"            /etc/fcron/fcrontab
-string_add "&mail(false) 0 * * * * /usr/bin/freshclam --quiet" /etc/fcron/fcrontab
-
-# Configuration file
-cat > /etc/clamd.conf << "EOF"
-# clamd.conf
-# Configuration file for the Clam AV daemon
-
-# Uncomment this option to enable logging.
-# LogFile must be writable for the user running the daemon.
-# A full path is required.
-LogFile /var/log/clamd.log
-
-# Maximal size of the log file. Default is 1 Mb.
-# Value of 0 disables the limit.
-# You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
-# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
-# in bytes just don't use modifiers.
-LogFileMaxSize 0
-
-# Log time with each message.
-LogTime 1
-
-# Enable verbose logging.
-#LogVerbose
-
-# This option allows you to save the process identifier of the listening
-# daemon (main thread).
-PidFile /var/run/clamav/clamd.pid
-
-# Path to the database directory.
-# Default: hardcoded (depends on installation options)
-DatabaseDirectory /srv/clamav
-
-# The daemon works in a local OR a network mode. Due to security reasons we
-# recommend the local mode.
-
-# Path to a local socket file the daemon will listen on.
-LocalSocket /var/run/clamav/clamd.sock
-
-# Remove stale socket after unclean shutdown.
-FixStaleSocket 1
-
-# Maximal number of a threads running at the same time.
-# Default is 5, and it should be sufficient for a typical workstation.
-# You may need to increase threads number for a server machine.
-MaxThreads 200
-
-# Maximal depth directories are scanned at.
-# Default: 15
-MaxDirectoryRecursion 15
-
-# Follow directory symlinks.
-# Default: disabled
-#FollowDirectorySymlinks
-
-# Follow regular file symlinks.
-# Default: disabled
-#FollowFileSymlinks
-
-# Perform internal sanity check (database integrity and freshness).
-# Default: 1800 (30 min)
-#SelfCheck 600
-
-# Execute a command when virus is found. In the command string %v will
-# be replaced by a virus name.
-# Default: disabled
-#VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"
-
-# Run as a selected user (clamd must be started by root).
-# Default: disabled
-User clamav
-
-# By default clamd uses scan options recommended by libclamav. This option
-# disables recommended options and allows you to enable selected ones below.
-# DO NOT TOUCH IT unless you know what you are doing.
-# Default: disabled
-#DisableDefaultScanOptions
-
-##
-## Documents
-##
-
-# This option enables scanning of Microsoft Office document macros.
-ScanOLE2 1
-
-##
-## Mail files
-##
-
-# Enable internal e-mail scanner.
-ScanMail 1
-
-##
-## Archives
-##
-
-# ClamAV can scan within archives and compressed files.
-ScanArchive 1
-
-# The options below protect your system against Denial of Service attacks
-# using archive bombs.
-
-# Files larger than this limit won't be scanned.
-# Value of 0 disables the limit.
-MaxFileSize 10M
-
-# Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR
-# file, all files within it will also be scanned. This options specifies how
-# deep the process should be continued.
-# Value of 0 disables the limit.
-MaxRecursion 100
-
-# Number of files to be scanned within an archive.
-# Value of 0 disables the limit.
-MaxFiles 0
-EOF
-
-
-# Freshclam configuration file
-cat > /etc/freshclam.conf << "EOF"
-# freshclam.conf
-# Configuration file for Freshclam
-
-# Path to the database directory.
-DatabaseDirectory /srv/clamav
-
-# Path to the log file (make sure it has proper permissions)
-UpdateLogFile /var/log/freshclam.log
-
-# Enable verbose logging.
-#LogVerbose
-
-# By default when started freshclam drops privileges and switches to the
-# "clamav" user. This directive allows you to change the database owner.
-DatabaseOwner clamav
-
-# Use DNS to verify virus database version. Freshclam uses DNS TXT records
-# to verify database and software versions. We highly recommend enabling
-# this option.
-DNSDatabaseInfo current.cvd.clamav.net
-
-# Uncomment the following line and replace XY with your country
-# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
-DatabaseMirror db.ca.clamav.net
-
-# database.clamav.net is a round-robin record which points to our most 
-# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is 
-# not working.
-DatabaseMirror database.clamav.net
-
-# Send the RELOAD command to clamd.
-# Default: disabled
-#NotifyClamd
-
-# Run command after successful database update.
-# Default: disabled
-#OnUpdateExecute command
-
-# Run command when database update process fails.
-# Default: disabled
-#OnErrorExecute command
-EOF
-
-# Create the DB directory
-mkdir -p /srv/clamav
-chown clamav:clamav /srv/clamav
-chmod 755 /srv/clamav
-
-# Create the run directory
-mkdir -p /var/run/clamav
-chown clamav:clamav /var/run/clamav
-chmod 755 /var/run/clamav
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/clamav /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 clamav 55 35
-
-exit $?
diff --git a/stage3/cis-ddclient b/stage3/cis-ddclient
deleted file mode 100755 (executable)
index 46de4af..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-install ddclient /usr/sbin
-mkdir -p /etc/ddclient
-cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
-
-cat > /var/lib/dhcpc/dhcpcd.exe << "EOF"
-#!/bin/sh
-
-## Update the DNS server unless the IP address is a private address
-## that may be used as a internal LAN address. This may be true if
-## other interfaces are assigned private addresses from internal
-## DHCP server.
-
-# Arg #1: <HostInfoFilePath>
-# Arg #2: <up|down|new>
-# Arg #3: -d option
-
-source ${1}
-
-case "${IPADDR}" in
-    10.*)
-       ;;
-    
-    172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*)
-        ;;
-    
-    192.168.*)
-       ;;
-
-    *)
-       case "${2}" in
-           up)
-               logger -t dhcpcd "IP address remaining at ${IPADDR}"
-               ;;
-           down)
-               ;;
-           new)
-               logger -t dhcpcd "IP address changed to ${IPADDR}"
-               ddclient -daemon=0 -syslog -use=ip -ip=${IPADDR} >/dev/null 2>&1
-               ;;
-       esac
-       ;;
-esac
-
-exit $?
-EOF
-
-chmod 740 /var/lib/dhcpc/dhcpcd.exe
-
-exit $?
diff --git a/stage3/cis-docbook-dsssl b/stage3/cis-docbook-dsssl
deleted file mode 100755 (executable)
index 835103a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-
-install -m755 bin/collateindex.pl /usr/bin
-install -m644 bin/collateindex.pl.1 /usr/share/man/man1
-install -d -m755 /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}
-cp -R * /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}
-install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
-    /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}/catalog
-install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
-    /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}/common/catalog
-install-catalog --add /etc/sgml/sgml-docbook.cat \
-    /etc/sgml/dsssl-docbook-stylesheets.cat
-
-exit $?
diff --git a/stage3/cis-docbook-utils b/stage3/cis-docbook-utils
deleted file mode 100755 (executable)
index 46636ec..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-sed -i 's:/html::' doc/HTML/Makefile.in
-./configure \
-    --prefix=/usr
-make
-make install
-
-for doctype in html ps dvi man pdf rtf tex texi txt; do
-    ln -sf docbook2$doctype /usr/bin/db2$doctype
-done
-
-exit $?
diff --git a/stage3/cis-docbook-xml b/stage3/cis-docbook-xml
deleted file mode 100755 (executable)
index 98a1f6b..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-install -d -m755 /usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}
-install -d -m755 /etc/xml
-chown -R root:root .
-cp -af docbook.cat *.dtd ent/ *.mod \
-    /usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}
-
-if [ ! -e /etc/xml/docbook ]; then
-    xmlcatalog --noout --create /etc/xml/docbook
-fi
-xmlcatalog --noout --add "public" \
-    "-//OASIS//DTD DocBook XML V${DOCBOOK_XML_VER}//EN" \
-    "http://www.oasis-open.org/docbook/xml/${DOCBOOK_XML_VER}/docbookx.dtd" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//DTD DocBook XML CALS Table Model V${DOCBOOK_XML_VER}//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/calstblx.dtd" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/soextblx.dtd" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//ELEMENTS DocBook XML Information Pool V${DOCBOOK_XML_VER}//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbpoolx.mod" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V${DOCBOOK_XML_VER}//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbhierx.mod" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//ELEMENTS DocBook XML HTML Tables V${DOCBOOK_XML_VER}//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/htmltblx.mod" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//ENTITIES DocBook XML Notations V${DOCBOOK_XML_VER}//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbnotnx.mod" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//ENTITIES DocBook XML Character Entities V${DOCBOOK_XML_VER}//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbcentx.mod" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "public" \
-    "-//OASIS//ENTITIES DocBook XML Additional General Entities V${DOCBOOK_XML_VER}//EN" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbgenent.mod" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "rewriteSystem" \
-    "http://www.oasis-open.org/docbook/xml/${DOCBOOK_XML_VER}" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
-    /etc/xml/docbook
-xmlcatalog --noout --add "rewriteURI" \
-    "http://www.oasis-open.org/docbook/xml/${DOCBOOK_XML_VER}" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
-    /etc/xml/docbook
-
-if [ ! -e /etc/xml/catalog ]; then
-    xmlcatalog --noout --create /etc/xml/catalog
-fi
-xmlcatalog --noout --add "delegatePublic" \
-    "-//OASIS//ENTITIES DocBook XML" \
-    "file:///etc/xml/docbook" \
-    /etc/xml/catalog
-xmlcatalog --noout --add "delegatePublic" \
-    "-//OASIS//DTD DocBook XML" \
-    "file:///etc/xml/docbook" \
-    /etc/xml/catalog
-xmlcatalog --noout --add "delegateSystem" \
-    "http://www.oasis-open.org/docbook/" \
-    "file:///etc/xml/docbook" \
-    /etc/xml/catalog
-xmlcatalog --noout --add "delegateURI" \
-    "http://www.oasis-open.org/docbook/" \
-    "file:///etc/xml/docbook" \
-    /etc/xml/catalog
-
-for DTDVERSION in ${DOCBOOK_XML_VER_PREV}; do
-  xmlcatalog --noout --add "public" \
-    "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
-    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
-    /etc/xml/docbook
-  xmlcatalog --noout --add "rewriteSystem" \
-    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
-    /etc/xml/docbook
-  xmlcatalog --noout --add "rewriteURI" \
-    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
-    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
-    /etc/xml/docbook
-  xmlcatalog --noout --add "delegateSystem" \
-    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
-    "file:///etc/xml/docbook" \
-    /etc/xml/catalog
-  xmlcatalog --noout --add "delegateURI" \
-    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
-    "file:///etc/xml/docbook" \
-    /etc/xml/catalog
-done
-
-exit $?
diff --git a/stage3/cis-docbook-xsl b/stage3/cis-docbook-xsl
deleted file mode 100755 (executable)
index 1068189..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-install -v -m 755 -d /usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}
-chown -R root:root .
-cp -v -R VERSION common eclipse extensions fo highlighting html \
-         htmlhelp images javahelp lib manpages params profiling \
-         slides template tools website xhtml                    \
-    /usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}
-install -v -m644 -D README \
-    /usr/share/doc/docbook-xsl-${DOCBOOK_XSL_VERSION}/README.XSL &&
-install -v -m755    RELEASE-NOTES* NEWS* \
-    /usr/share/doc/docbook-xsl-${DOCBOOK_XSL_VERSION}
-
-if [ ! -f /etc/xml/catalog ]; then
-    mkdir -p /etc/xml
-    xmlcatalog --noout --create /etc/xml/catalog
-fi
-if [ ! -e /etc/xml/docbook ]; then
-    xmlcatalog --noout --create /etc/xml/docbook
-fi
-xmlcatalog --noout --add "rewriteSystem" \
-    "http://docbook.sourceforge.net/release/xsl/current" \
-    "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}" /etc/xml/catalog
-xmlcatalog --noout --add "rewriteURI" \
-    "http://docbook.sourceforge.net/release/xsl/current" \
-    "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}" /etc/xml/catalog
-xmlcatalog --noout --add "delegateSystem" \
-    "http://docbook.sourceforge.net/release/xsl/" \
-    "file:///etc/xml/docbook" /etc/xml/catalog
-xmlcatalog --noout --add "delegateURI" \
-    "http://docbook.sourceforge.net/release/xsl/" \
-    "file:///etc/xml/docbook" /etc/xml/catalog
-
-var_add_str "XML_CATALOG_FILES" /etc/profile \
-    "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}/catalog.xml /etc/xml/catalog"
-var_export  "XML_CATALOG_FILES" /etc/profile
-
-exit $?
diff --git a/stage3/cis-dosfstools b/stage3/cis-dosfstools
deleted file mode 100755 (executable)
index 72498ae..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make
-make PREFIX=/usr SBINDIR=/sbin install
-ldconfig
-
-exit $?
diff --git a/stage3/cis-fcron b/stage3/cis-fcron
deleted file mode 100755 (executable)
index 4f12551..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-groupadd -f fcron
-hv_useradd -c fcron -g fcron fcron
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --with-sendmail \
-    --with-answer-all=no
-make
-make install
-
-rm -f /etc/fcron.conf
-mkdir -p /etc/fcron
-mv -f /etc/fcron.allow /etc/fcron
-mv -f /etc/fcron.deny /etc/fcron
-
-cat > /etc/fcron/fcron.conf << "EOF"
-# fcron.conf - Configuration file for fcron(8) and fcrontab(1).
-#       See fcron.conf(5) for syntax and explanations.
-#
-# WARNING : this file must be owned by root:fcron and 640.
-#
-#
-# The spool directory where fcron stores its files
-fcrontabs  = /var/spool/fcron
-#
-# The locations of the pid file and the fifo file
-pidfile    = /var/run/fcron.pid
-fifofile   = /var/run/fcron.fifo
-#
-# allow/deny files to determine which users are allowed to use fcrontab
-fcronallow = /etc/fcron/fcron.allow
-fcrondeny  = /etc/fcron/fcron.deny
-#
-# Location of the programs used by fcron
-shell      = /bin/sh
-sendmail   = /usr/sbin/sendmail
-#
-# Location of the default editor for "fcrontab -e"
-editor     = /usr/bin/vi
-EOF
-chmod 640 /etc/fcron/fcron.conf
-
-cat > /etc/fcron/fcrontab << "EOF"
-# &options min hrs day-of-month month day-of-week command
-# Run rotatelogs every day at 00:05
-#&mail(false) 05 00 * * * /usr/local/bin/rotatelogs
-EOF
-chmod 640 /etc/fcron/fcrontab
-chown -R root.fcron /etc/fcron
-
-cat > /etc/fcron/configure << "EOF"
-#!/bin/sh
-
-fcrontab -c /etc/fcron/fcron.conf /etc/fcron/fcrontab
-
-exit $?
-EOF
-chmod 740 /etc/fcron/configure
-
-# Executing fcron configure script.
-/etc/fcron/configure
-
-install -v -m740 ${SCRDIR}/bootscripts/fcron /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rcS fcron 95 84
-
-exit $?
diff --git a/stage3/cis-firefox b/stage3/cis-firefox
deleted file mode 100755 (executable)
index e42e0be..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-FIREFOX_BUILD_DIR="${1}-build"
-FIREFOX_PKG_VERSION="firefox-$(get_pkg_ver ${PACKAGE})"
-
-cd ${LFS_TMP}/${PACKAGE}
-cat > .mozconfig << "EOF"
-# This file contains the options used in the Firefox build.
-
-# Use the default settings specified in the source tree
-. $topsrcdir/browser/config/mozconfig
-
-# build the browser
-ac_add_options --enable-application=browser
-
-# Create an object directory and specify to build the package in that
-# directory. If desired, modify the location of the object directory
-# to a directory inside the source tree by removing '../' from the
-# line below.
-mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../_FIREFOX_BUILD_DIR_
-
-# Specify the installation prefix. If you would prefer Firefox
-# installed in a different prefix, modify the line below to fit
-# your needs. You'll also need to modify some of the instructions in
-# the BLFS book to point to your desired prefix.
-ac_add_options --prefix=/usr
-
-# Compile with a minimal level of optimization
-ac_add_options --enable-optimize
-
-# These options are used so that the Firefox binaries are linked to
-# the system-installed copies of the specified libraries instead of
-# the source tree code which may not be the most recent versions.
-ac_add_options --with-system-zlib
-ac_add_options --with-system-jpeg
-ac_add_options --enable-system-cairo
-ac_add_options --enable-system-lcms
-ac_add_options --enable-system-sqlite
-# comment this if you have not installed png with the apng patch
-ac_add_options --with-system-png
-
-# This option is used to enable support for rendering SVG files in the
-# Firefox browser. Comment out the line to disable the option.
-ac_add_options --enable-svg
-
-# These two options enable support for building Firefox with
-# system-installed versions of the Network Security Services (NSS)
-# and Netscape Portable Runtime (NSPR) libraries. We build these
-# as part of xulrunner, so we can use them here.  For a standalone
-# firefox you might want to comment these.
-#ac_add_options --with-system-nspr
-#ac_add_options --with-system-nss
-
-# uncomment this if you did not build curl
-ac_add_options --disable-crashreporter
-
-# This option is added so that the Mozilla Installer program is not
-# built or installed. The program is not required for a BLFS
-# installation of Firefox.
-ac_add_options --disable-installer
-
-# The updater is not useful if you build from source.
-ac_add_options --disable-updater
-
-# This option is used to disable the a11y support in the Firefox
-# binaries. Comment out this option if you require a11y support.
-ac_add_options --disable-accessibility
-
-# This option is added so that test libraries and programs are not
-# built. These would only be required for debugging purposes.
-ac_add_options --disable-tests
-
-# The mochitest is a separate test feature and has caused problems
-# in the past.
-ac_add_options --disable-mochitest
-
-# This option is used to enable source tree included LDAP support in
-# the Firefox binaries.
-###################################################################
-#
-# NOTE: You must uncomment this option if there is any chance of
-# compiling the OpenOffice package from source code using this copy
-# of Firefox for your Mozilla support.
-#
-###################################################################
-# Removed this option to fix bug with:
-#   make[3]: Entering directory `/tmp/firefox-3.0.1-build/directory/c-sdk'
-#   make[3]: *** No targets specified and no makefile found.  Stop.
-######ac_add_options --enable-ldap
-
-# This option causes the installed binaries to have the official
-# Firefox name embedded in them. Due to license restrictions, you
-# may not distribute binaries created using this option.
-ac_add_options --enable-official-branding
-
-# use the anti-phishing blacklist
-ac_add_options --enable-safe-browsing
-
-# This option is used so that the debugging symbols are removed from
-# the installed binaries during the installation process. Comment out
-# this option if you may have a need to retain the debugging symbols
-# in the installed binaries. Note that this can substantially
-# increase the size of the installed binaries.
-ac_add_options --enable-strip
-
-# Point to the xulrunner libraries - comment this for a standalone browser
-#ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9.0.7
-
-EOF
-
-sed -i -e "s!_FIREFOX_BUILD_DIR_!${FIREFOX_BUILD_DIR}!g" .mozconfig
-
-make -f client.mk build
-make -f client.mk install
-
-# Many applications look for netscape when they need to open a browser...
-ln -v -sf firefox /usr/bin/netscape
-
-# Remove old links
-rm -f /usr/lib/mozilla
-rm -f /usr/lib/firefox
-rm -f /usr/lib/${FIREFOX_PKG_VERSION}/plugins/libjavaplugin_oji.so
-
-ln -v -sf ${FIREFOX_PKG_VERSION} /usr/lib/mozilla
-ln -v -sf ${FIREFOX_PKG_VERSION} /usr/lib/firefox
-# To use the installed Java plugin.
-ln -v -s ${JAVA_HOME}/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/${FIREFOX_PKG_VERSION}/plugins
-
-# Addition to /etc/ld.so.conf
-# This is necessary for shared library libmozjs.so (needed by gxine)
-string_add "/usr/lib/${FIREFOX_PKG_VERSION}" /etc/ld.so.conf
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-flashplugin b/stage3/cis-flashplugin
deleted file mode 100755 (executable)
index 27e1271..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PLUGINS_DIR=/usr/lib/firefox/plugins
-
-# Applying patches (if any)
-apply_patches ${1}
-
-# Decompression of a package
-# First argument: package name
-# Second argument: directory where decompressing (optional)
-decompress_package ${1}
-
-if [ ! -d ${PLUGINS_DIR} ]; then
-    echo "Plugins directory not found."
-    return 1
-fi
-
-install -v -m755 ${LFS_TMP}/${1}/flashplayer.xpt   ${PLUGINS_DIR}
-install -v -m755 ${LFS_TMP}/${1}/libflashplayer.so ${PLUGINS_DIR}
-
-exit $?
diff --git a/stage3/cis-fontconfig b/stage3/cis-fontconfig
deleted file mode 100755 (executable)
index fd696a2..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-if [ -z "${HV_FONTS_PATH}" ]; then
-    echo "Missing HV_FONTS_PATH environment variable"
-    exit 1
-fi
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}-build
-../${PACKAGE}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var \
-    --disable-docs \
-    --without-add-fonts \
-    --with-docdir=/usr/share/doc/${PACKAGE} \
-    ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-mkdir -v -p ${HV_FONTS_PATH}/{TrueType,Type1}
-mkdir -v -p /etc/fonts
-
-if [ -f /etc/fonts/local.conf ]; then
-    mv -v /etc/fonts/local.conf /etc/fonts/local.conf.old
-fi
-
-# Adding X and our local fonts directory to local configuration file
-cat > /etc/fonts/local.conf << "EOF"
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<!-- /etc/fonts/local.conf file for local customizations -->
-<fontconfig>
-    <dir>_HV_FONTS_PATH_/TrueType</dir>
-    <dir>_HV_FONTS_PATH_/Type1</dir>
-</fontconfig>
-EOF
-
-sed -i -e "s!_HV_FONTS_PATH_!${HV_FONTS_PATH}!g" /etc/fonts/local.conf
-
-# Updating cache database.
-fc-cache -f
-
-exit $?
diff --git a/stage3/cis-getdate b/stage3/cis-getdate
deleted file mode 100755 (executable)
index 0c7bebb..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make
-make install
-make installman
-
-cat > /usr/local/bin/hvgetdate << EOF
-#!/bin/sh
-
-# Time server informations:
-# US VA: nist1.aol-va.truetime.com (205.188.185.33)
-# Location: AOL Time Warner facility, Dulles, Virginia
-# Synchronization: Lockclock Algorithm and ACTS dial-up, GPS-stabilized oscillator for short-term stabilization
-# Service Area: Eastern US
-# Access Policy: Open access for up to 20 queries per hour (one-day average) from any one address, others by arrangement
-# Contact: Judah Levine, jlevine@boulder.nist.gov, 303 492 7785
-NTP_HOST1=205.188.185.33
-
-#CA time.nrc.ca (132.246.168.148)
-#Location: National Research Council of Canada, Ottawa, Ontario, Canada
-#Geographic Coordinates: 45:27N, 75:37W
-#Synchronization: NTP V3 secondary (stratum 2), PC/Linux
-#Service Area: Canada
-#Access Policy: open access
-#Contact: time@nrc.ca
-#Note: time is an alias and the IP address may change; please use DNS. 
-NTP_HOST2=132.246.168.148
-
-echo -n "Synchronizing kernel time via NTP server:"
-getdate -adjust 1 600 \${NTP_HOST1} \${NTP_HOST2}
-exit 0
-EOF
-chmod 740 /usr/local/bin/hvgetdate
-
-# Adding fcron entry
-string_add "# Run after five minutes of execution the first time, then run every hours" \
-    /etc/fcron/fcrontab
-string_add "@mail(false),first(5) 6h /usr/local/bin/hvgetdate" \
-    /etc/fcron/fcrontab
-
-exit $?
diff --git a/stage3/cis-git b/stage3/cis-git
deleted file mode 100755 (executable)
index 5ae0711..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-decompress_package ${GIT_MANPAGES} /usr/share/man
-
-exit $?
diff --git a/stage3/cis-gnash b/stage3/cis-gnash
deleted file mode 100755 (executable)
index d80ac37..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}-build
-../${PACKAGE}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --enable-gui=gtk \
-    ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-install -m 755 plugin/.libs/libgnashplugin.so /usr/lib/firefox/plugins
-
-exit $?
diff --git a/stage3/cis-inetutils b/stage3/cis-inetutils
deleted file mode 100755 (executable)
index 76ce396..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --libexecdir=/usr/sbin \
-    --sysconfdir=/etc \
-    --localstatedir=/var \
-    --infodir=/usr/share/info \
-    --mandir=/usr/share/man \
-    --disable-dependancy-tracking \
-    --disable-syslogd \
-    --with-pam \
-    --with-wrap
-make
-make install
-mv /usr/bin/ping /bin
-
-# Creating /etc/inetd.conf
-touch /etc/inetd.conf
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/inetd /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 inetd 30 60
-
-exit $?
diff --git a/stage3/cis-iptables b/stage3/cis-iptables
deleted file mode 100755 (executable)
index e6f05fd..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make PREFIX=/usr
-make PREFIX=/usr install
-
-# Firewall boot script
-install -v -m740 ${SCRDIR}/bootscripts/firewall /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 firewall 35 55
-
-exit $?
diff --git a/stage3/cis-java b/stage3/cis-java
deleted file mode 100755 (executable)
index a81c6df..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-install -v -d /usr/java
-cp -a ${LFS_TMP}/${1}/* /usr/java
-
-ln -svf ../java/bin/java /usr/bin/java
-
-var_add_path JAVA_HOME /etc/profile "/usr/java"
-var_export   JAVA_HOME /etc/profile
-
-exit $?
diff --git a/stage3/cis-krb5 b/stage3/cis-krb5
deleted file mode 100755 (executable)
index 8e27d37..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}/src
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var/lib \
-    --mandir=/usr/share/man \
-    --enable-dns \
-    --enable-static
-make
-make install
-mv -v /usr/bin/ksu /bin
-mv -v /usr/lib/libkrb5.so.3* /lib
-mv -v /usr/lib/libkrb4.so.2* /lib
-mv -v /usr/lib/libdes425.so.3* /lib
-mv -v /usr/lib/libk5crypto.so.3* /lib
-mv -v /usr/lib/libcom_err.so.3* /lib
-ln -v -sf ../../lib/libkrb5.so.3 /usr/lib/libkrb5.so
-ln -v -sf ../../lib/libkrb4.so.2 /usr/lib/libkrb4.so
-ln -v -sf ../../lib/libdes425.so.3 /usr/lib/libdes425.so
-ln -v -sf ../../lib/libk5crypto.so.3 /usr/lib/libk5crypto.so
-ln -v -sf ../../lib/libcom_err.so.3 /usr/lib/libcom_err.so
-ldconfig
-
-cat > /etc/krb5.conf << EOF
-[libdefaults]
-    default_realm = <LFS.ORG>
-    encrypt = true
-
-[realms]
-    <LFS.ORG> = {
-        kdc = <belgarath.lfs.org>
-        admin_server = <belgarath.lfs.org>
-    }
-
-[domain_realm]
-    .<lfs.org> = <LFS.ORG>
-
-[logging]
-    kdc = SYSLOG[:INFO[:AUTH]]
-    admin_server = SYSLOG[INFO[:AUTH]]
-    default = SYSLOG[[:SYS]]
-EOF
-
-exit $?
diff --git a/stage3/cis-libid3tag b/stage3/cis-libid3tag
deleted file mode 100755 (executable)
index 4275204..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc
-make
-make install
-
-# Some packages check for the pkg-config file for libid3tag.
-# This file is particularly needed so that gst-plugins-ugly can
-# recognize the installed libid3tag.
-cat > /usr/lib/pkgconfig/id3tag.pc << "EOF"
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: id3tag
-Description: ID3 tag library
-Requires:
-Version: _LIBID3TAG_VERSION_
-Libs: -L${libdir} -lid3tag -lz
-Cflags: -I${includedir}
-EOF
-
-sed -i -e "s!_LIBID3TAG_VERSION_!$(get_pkg_ver ${1})!g" /usr/lib/pkgconfig/id3tag.pc
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-libmad b/stage3/cis-libmad
deleted file mode 100755 (executable)
index ef83338..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc
-make
-make install
-
-# Some packages check for the pkg-config file for libmad.
-# This file is particularly needed so that Cdrdao can
-# recognize the installed libmad.
-cat > /usr/lib/pkgconfig/mad.pc << "EOF"
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: mad
-Description: MPEG audio decoder
-Requires:
-Version: _LIBMAD_VERSION_
-Libs: -L${libdir} -lmad
-Cflags: -I${includedir}
-EOF
-
-sed -i -e "s!_LIBMAD_VERSION_!$(get_pkg_ver ${1})!g" /usr/lib/pkgconfig/mad.pc
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-libmng b/stage3/cis-libmng
deleted file mode 100755 (executable)
index f161e60..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-cp makefiles/makefile.linux Makefile
-
-case "${HVL_TARGET}" in
-    "x86_64")
-        # -fPIC is required for x86_64
-        sed -i -e "s!^CFLAGS=!CFLAGS=-fPIC !" Makefile
-        ;;
-esac
-
-make prefix=/usr install
-
-# The documentation files are not installed by the installation procedure,
-# so they are copied manually.
-install -v -m644 doc/man/*.3 /usr/share/man/man3
-install -v -m644 doc/man/*.5 /usr/share/man/man5
-install -v -m755 -d /usr/share/doc/${PACKAGE}
-install -v -m644 doc/*.{png,txt} /usr/share/doc/${PACKAGE}
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-libopenjpeg b/stage3/cis-libopenjpeg
deleted file mode 100755 (executable)
index 07fce86..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make
-make install
-
-exit $?
diff --git a/stage3/cis-libusb b/stage3/cis-libusb
deleted file mode 100755 (executable)
index 0d047a8..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-cat > /etc/udev/rules.d/23-usb.rules << "EOF"
-# Set group ownership for raw USB devices
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb"
-EOF
-
-# Checking if string exists
-#if ! grep "/proc/bus/usb" /etc/fstab 1> /dev/null 2>&1; then
-#    echo "usbfs            /proc/bus/usb      usbfs    ddevgid=14,devmode=0660  0 0" >> /etc/fstab
-#fi
-
-exit $?
diff --git a/stage3/cis-ltsp b/stage3/cis-ltsp
deleted file mode 100755 (executable)
index 30ed74c..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-LTSROOT="/opt/ltsp/i386"
-MAC_ADDRESS="01-00-40-63-c0-35-8f"
-LTSP_KERNEL="2.6.17.8-ltsp-1"
-LTSP_SERVER="192.168.0.4"
-
-if [ -d /tftpboot ]; then
-    if [ -d /srv/tftpboot ]; then
-       rm -v -rf /srv/tftpboot
-    fi
-
-    mv -v /tftpboot /srv/tftpboot
-fi
-
-cd /srv/tftpboot/lts/${LTSP_KERNEL}/pxelinux.cfg
-ln -v -s -f default ${MAC_ADDRESS}
-
-cat > ${LTSROOT}/etc/lts.conf << "EOF"
-[Default]
-  # Uncomment to use custom XF86Config:
-  ### XF86CONFIG_FILE = /tmp/XF86Config.1
-
-  RAMDISK_SIZE       = "8192"
-
-  SERVER             = _LTSP_SERVER_
-  XSERVER            = trident
-  X_HORZSYNC         = "31.5-80"
-  X_VERTREFRESH      = "60-70"
-  X_COLOR_DEPTH      = 16
-  X_MODE_0           = 1280x1024
-  X_MODE_1           = 1024x768
-
-  # Keyboard configuration
-  XkbLayout          = "ca_enhanced"
-
-  # Mouse configuration
-  X_MOUSE_PROTOCOL    = "IMPS/2"
-  X_MOUSE_DEVICE      = "/dev/input/mice"
-
-  X_MOUSE_RESOLUTION  = "400"
-  X_MOUSE_BUTTONS     = "5"
-  X_MOUSE_EMULATE3BTN = "Y"
-  X_ZAxisMapping      = "4 5"
-
-  USE_XFS            = N
-  LOCAL_APPS         = N
-  USE_NFS_SWAP       = N
-
-  SCREEN_01          = startx
-  SCREEN_02          = shell
-
-  SOUND = Y
-  SOUND_DAEMON = esd
-EOF
-
-sed -i -e "s!_LTSP_SERVER_!${LTSP_SERVER}!g" ${LTSROOT}/etc/lts.conf
-
-# LTSP-4.2 update 4: The "-public" option is absolutely necessary...
-sed -i -e "s!\( */bin/esd -nobeeps -tcp -port 16001\)\( -as 1 &\)!\1 -public\2!g" \
-    ${LTSROOT}/etc/rc.sound
-
-string_add "${LTSROOT}   192.168.0.0/24(rw,sync,no_root_squash)" /etc/exports
-
-string_add "option root-path  \"${LTSP_SERVER}:${LTSROOT}\";" /etc/dhcpd.conf
-
-# no spaces but tabs to separate items.
-sed -i -e "s!^#\*\(.*#any host.*\)!\*\1!g" /etc/X11/xdm/Xaccess
-
-# By default this line is set, so that it is not listening to XDMCP connection.
-# This is for security reasons.
-sed -i -e "s%\(^DisplayManager\.requestPort:.*\)%!\1%g" /etc/X11/xdm/xdm-config
-
-exit $?
diff --git a/stage3/cis-ltsp-utils b/stage3/cis-ltsp-utils
deleted file mode 100755 (executable)
index b5e6381..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/ltsp-utils
-./install.sh
-
-exit $?
diff --git a/stage3/cis-mailman b/stage3/cis-mailman
deleted file mode 100755 (executable)
index c27c30f..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-MMPREFIX="/usr/lib/mailman"
-
-groupadd -f mailman
-hv_useradd -c "GNU-Mailman" -d ${MMPREFIX} -g mailman -s /bin/false mailman
-
-# Creating installation directory with correct permissions and ownerships.
-install --owner=mailman --group=mailman --mode=02775 -d ${MMPREFIX}
-
-# Problems when using a separate build directory
-cd ${LFS_TMP}/${1}
-../${1}/configure \
-    --prefix=${MMPREFIX} \
-    --with-cgi-gid=${APACHE_USER} \
-    --with-mail-gid=${SENDMAIL_GID} \
-    --sysconfdir=/etc
-make
-make install
-# Checking installation directory permissions
-${MMPREFIX}/bin/check_perms -f
-
-# Configure the web server to enable CGI script permission in the $prefix/cgi-bin
-# to run CGI scripts.
-string_add "ScriptAlias /mailman/ ${MMPREFIX}/cgi-bin/" /etc/apache/httpd.conf
-
-# Creating directory for mailman icons with correct permissions and ownerships.
-install --owner=mailman --group=mailman --mode=2775 -d /srv/www/icons/mailman
-# Copy the Mailman, Python, and GNU logos to a location accessible to the web server.
-cp ${MMPREFIX}/icons/*.{jpg,png} /srv/www/icons/mailman
-# Specify location of icons directory in mailman configuration file.
-string_add "IMAGE_LOGOS = '/icons/mailman/'" ${MMPREFIX}/Mailman/mm_cfg.py
-
-# Addition to /etc/apache/httpd.conf
-# First, checking if section exists
-if ! grep "/pipermail/" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
-    echo "Alias /pipermail/ ${MMPREFIX}/archives/public/" >> /etc/apache/httpd.conf
-    echo "<Directory /usr/lib/mailman/archives/public/>" >> /etc/apache/httpd.conf
-    echo "    Options FollowSymLinks" >> /etc/apache/httpd.conf
-    echo "    AllowOverride None" >> /etc/apache/httpd.conf
-    echo "    AddDefaultCharset Off" >> /etc/apache/httpd.conf
-    echo "</Directory>" >> /etc/apache/httpd.conf
-fi
-
-# Setting default password
-/usr/lib/mailman/bin/mmsitepass mailman
-
-# Adding cron entries
-cat > /etc/fcron/mailman.crontab << "EOF"
-#
-# !mailto(postmaster)
-#
-# This is needed because the mailman user doesn't have a
-# login shell defined in /etc/passwd.
-SHELL = /bin/sh
-#
-# At 8AM every day, mail reminders to admins as to pending requests.
-# They are less likely to ignore these reminders if they're mailed
-# early in the morning, but of course, this is local time... ;)
-0 8 * * * /usr/bin/python -S _MMPREFIX_/cron/checkdbs
-#
-# At 9AM, send notifications to disabled members that are due to be
-# reminded to re-enable their accounts.
-0 9 * * * /usr/bin/python -S _MMPREFIX_/cron/disabled
-#
-# Noon, mail digests for lists that do periodic as well as threshhold delivery.
-0 12 * * * /usr/bin/python -S _MMPREFIX_/cron/senddigests
-#
-# 5 AM on the first of each month, mail out password reminders.
-0 5 1 * * /usr/bin/python -S _MMPREFIX_/cron/mailpasswds
-#
-# Every 5 mins, try to gate news to mail.  You can comment this one out
-# if you don't want to allow gating, or don't have any going on right now,
-# or want to exclusively use a callback strategy instead of polling.
-#0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/python -S _MMPREFIX_/cron/gate_news
-#
-# At 3:27am every night, regenerate the gzip'd archive file.  Only
-# turn this on if the internal archiver is used and
-# GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py
-#27 3 * * * /usr/bin/python -S _MMPREFIX_/cron/nightly_gzip
-EOF
-sed -i -e "s!_MMPREFIX_!${MMPREFIX}!g" /etc/fcron/mailman.crontab
-string_add "fcrontab -u mailman -c /etc/fcron/fcron.conf /etc/fcron/mailman.crontab" \
-    /etc/fcron/configure
-# Reloading cron configuration
-/etc/fcron/configure
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/mailman /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 mailman 75 15
-
-# URL
-string_add "DEFAULT_EMAIL_HOST = '_DOMAIN_'" ${MMPREFIX}/Mailman/mm_cfg.py
-string_add "DEFAULT_URL_HOST = 'www._DOMAIN_'" ${MMPREFIX}/Mailman/mm_cfg.py
-if test -n ${HTTPD_PORT}; then
-    string_add "DEFAULT_URL_PATTERN = 'http://%s:_DOMAIN_/mailman'" ${MMPREFIX}/Mailman/mm_cfg.py
-    string_add "PUBLIC_ARCHIVE_URL = 'http://%(hostname)s:_HTTPD_PORT_/pipermail/%(listname)s'" ${MMPREFIX}/Mailman/mm_cfg.py
-fi
-string_add "add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)" \
-    ${MMPREFIX}/Mailman/mm_cfg.py
-sed -i -e "s!_HTTPD_PORT_!${HTTPD_PORT}!g" ${MMPREFIX}/Mailman/mm_cfg.py
-sed -i -e "s!_DOMAIN_!${DOMAIN}!g" ${MMPREFIX}/Mailman/mm_cfg.py
-
-exit $?
diff --git a/stage3/cis-milter-greylist b/stage3/cis-milter-greylist
deleted file mode 100755 (executable)
index 4bc471a..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var/run
-make
-make install
-
-# Configuration file
-cat > /etc/mail/greylist.conf << EOF
-# greylist.conf
-
-pidfile "/var/run/milter-greylist/milter-greylist.pid"
-socket "/var/run/milter-greylist/milter-greylist.sock"
-dumpfile "/var/run/milter-greylist/greylist.db"
-user "root"
-
-# Be verbose (or use -v flag)
-verbose
-
-# Do not tell spammer how long they have to wait
-quiet
-
-# Your own network, which should not suffer greylisting
-list "my network" addr { 127.0.0.1/8 192.168.0.0/24 }
-
-# This is a list of broken MTAs that break with greylisting. Derived from
-# http://cvs.puremagic.com/viewcvs/greylisting/schema/whitelist_ip.txt?rev=1.16
-list "broken mta" addr {   \
-       12.5.136.141/32    \ # Southwest Airlines (unique sender)
-       12.5.136.142/32    \ # Southwest Airlines
-       12.5.136.143/32    \ # Southwest Airlines
-       12.5.136.144/32    \ # Southwest Airlines
-       12.107.209.244/32  \ # kernel.org (unique sender)
-       12.107.209.250/32  \ # sourceware.org (unique sender)
-       63.82.37.110/32    \ # SLmail
-       63.169.44.143/32   \ # Southwest Airlines
-       63.169.44.144/32   \ # Southwest Airlines
-       64.7.153.18/32     \ # sentex.ca (common pool)
-       64.12.136.0/24     \ # AOL (common pool)
-       64.12.137.0/24     \ # AOL
-       64.12.138.0/24     \ # AOL
-       64.124.204.39      \ # moveon.org (unique sender)
-       64.125.132.254/32  \ # collab.net (unique sender)
-       66.94.237.16/28    \ # Yahoo Groups servers (common pool)
-       66.94.237.32/28    \ # Yahoo Groups servers (common pool)
-       66.94.237.48/30    \ # Yahoo Groups servers (common pool)
-       66.100.210.82/32   \ # Groupwise?
-       66.135.192.0/19    \ # Ebay
-       66.162.216.166/32  \ # Groupwise?
-       66.206.22.82/32    \ # Plexor
-       66.206.22.83/32    \ # Plexor
-       66.206.22.84/32    \ # Plexor
-       66.206.22.85/32    \ # Plexor
-       66.218.66.0/23     \ # Yahoo Groups servers (common pool)
-       66.218.67.0/23     \ # Yahoo Groups servers (common pool)
-       66.218.68.0/23     \ # Yahoo Groups servers (common pool)
-       66.218.69.0/23     \ # Yahoo Groups servers (common pool)
-       66.27.51.218/32    \ # ljbtc.com (Groupwise)
-       152.163.225.0/24   \ # AOL
-       194.245.101.88/32  \ # Joker.com
-       195.235.39.19/32   \ # Tid InfoMail Exchanger v2.20
-       195.238.2.0/24     \ # skynet.be (wierd retry pattern, common pool)
-       195.238.3.0/24     \ # skynet.be
-       195.46.220.208/32  \ # mgn.net
-       195.46.220.209/32  \ # mgn.net
-       195.46.220.210/32  \ # mgn.net
-       195.46.220.211/32  \ # mgn.net
-       195.46.220.221/32  \ # mgn.net
-       195.46.220.222/32  \ # mgn.net
-       195.238.2.0/24     \ # skynet.be (wierd retry pattern)
-       195.238.3.0/24     \ # skynet.be
-       204.107.120.10/32  \ # Ameritrade (no retry)
-       205.188.0.0/16     \ # AOL
-       205.206.231.0/24   \ # SecurityFocus.com (unique sender)
-       207.115.63.0/24    \ # Prodigy - retries continually
-       207.171.168.0/24   \ # Amazon.com
-       207.171.180.0/24   \ # Amazon.com
-       207.171.187.0/24   \ # Amazon.com
-       207.171.188.0/24   \ # Amazon.com
-       207.171.190.0/24   \ # Amazon.com
-       209.132.176.174/32 \ # sourceware.org mailing lists (unique sender)
-       211.29.132.0/24    \ # optusnet.com.au (wierd retry pattern)
-       213.136.52.31/32   \ # Mysql.com (unique sender)
-       216.33.244.0/24    \ # Ebay
-       217.158.50.178/32  \ # AXKit mailing list (unique sender)
-}
-
-# List of users that want greylisting
-list "grey users" rcpt {  \
-       *@mydomain.com \
-}
-
-# List of senders that are automatically whitelisted
-list "white users" from { \
-     user@domain1 \
-     user@domain2 \
-}
-
-# Perform DNS Reverse Black List verification
-dnsrbl "SORBS DUN" dnsbl.sorbs.net 127.0.0.10
-
-# And here is the access list
-acl whitelist addr 127.0.0.0/8
-acl whitelist addr 192.168.0.0/24 
-
-acl greylist list "grey users" dnsrbl "SORBS DUN" delay 24h autowhite 3d
-acl greylist list "grey users" delay 10m autowhite 10d
-acl whitelist list "white users"
-acl whitelist default
-EOF
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/milter-greylist /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 milter-greylist 57 33
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-milter-spf b/stage3/cis-milter-spf
deleted file mode 100755 (executable)
index 4ff7ac3..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make
-make PREFIX=/usr install
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/milter-spf /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 milter-spf 56 34
-
-exit $?
diff --git a/stage3/cis-mysql b/stage3/cis-mysql
deleted file mode 100755 (executable)
index 08d9f88..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-groupadd -f mysql
-hv_useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --libexecdir=/usr/sbin \
-    --localstatedir=/srv/mysql \
-    --enable-thread-safe-client \
-    --enable-assembler \
-    --enable-local-infile \
-    --with-unix-socket-path=/var/run/mysql/mysql.sock \
-    --without-debug \
-    --without-readline \
-    --with-plugins=innobase,myisam \
-    --with-extra-charsets=all \
-    --with-ssl
-make
-make benchdir_root=/tmp/mysql-bench install
-rm -rf /tmp/mysql
-cd /usr/lib
-ln -v -sf mysql/libmysqlclient{,_r}.so* .
-
-# Copying default configuration file.
-install -v -m644 /usr/share/mysql/my-medium.cnf /etc/my.cnf
-sed -i -e s/^skip-federated/#skip-federated/ /etc/my.cnf
-
-mysql_install_db --user=mysql
-chgrp mysql /srv/mysql{,/test,/mysql}
-
-install -m750 -o mysql -g mysql -d /var/run/mysql
-
-# Further configuration requires that the MySQL server be running (see cis-postinstall)
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/mysql /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 mysql 45 45
-
-# Addition to /etc/ld.so.conf
-string_add "/usr/lib/mysql" /etc/ld.so.conf
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-nano b/stage3/cis-nano
deleted file mode 100755 (executable)
index 824eeff..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}-build
-../${PACKAGE}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    ${CONFIGURE_OPTS}
-make
-make install
-install -m644 ${SCRDIR}/resources/nanorc /etc
-ldconfig
-
-exit $?
diff --git a/stage3/cis-net-tools b/stage3/cis-net-tools
deleted file mode 100755 (executable)
index cb0940a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-yes "" | make config
-sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
-    -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h
-sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
-    -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make
-make -j ${MAKEJOBS}
-make update
-
-exit $?
diff --git a/stage3/cis-nfs-utils b/stage3/cis-nfs-utils
deleted file mode 100755 (executable)
index 6a5eeda..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-# Problem with build directory
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --disable-nfsv4 \
-    --disable-gss
-make -j ${MAKEJOBS}
-make install
-
-cat > /etc/exports << "EOF"
-# NFS file systems export list
-#
-# An entry in /etc/exports will typically look like this: 
-#    directory machine1(option11,option12) machine2(option21,option22)
-
-#/root                 192.168.0.0/24(rw,sync,no_root_squash)
-#/srv/www/htdocs       192.168.0.0/24(rw,sync)
-EOF
-
-install -v -m740 ${SCRDIR}/bootscripts/nfs /etc/rc.d/init.d
-bootscript_add_rc3 nfs 15 74
-
-exit $?
diff --git a/stage3/cis-nss b/stage3/cis-nss
deleted file mode 100755 (executable)
index 41f8a9c..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-# Define to 1 to test this package.
-RUN_TESTS=0
-
-cd ${LFS_TMP}/${1}
-export WORKINGDIR=${PWD}
-
-# Non-debug optimized build
-export BUILD_OPT=1
-
-cd mozilla/security/nss
-make nss_build_all
-
-cd ../..
-
-export NSS_LINUXDIR=$(basename `ls -d $WORKINGDIR/mozilla/dist/Linux*`)
-
-if [ ${RUN_TESTS} -eq 1 ]; then
-    # Running tests
-    export DOMSUF="${DOMAIN}"
-    export PATH=$PATH:$WORKINGDIR/mozilla/dist/$NSS_LINUXDIR/bin
-    export TEST_RESULTSDIR=$WORKINGDIR/mozilla/tests_results/security
-    cd security/nss/tests
-    sed -i 's/gmake/make/' common/init.sh
-    ./all.sh
-    TEST_RESULTS=$(grep Passed $TEST_RESULTSDIR/$(hostname --short).1/results.html | wc -l)
-    if [ ${TEST_RESULTS} -ne 770 ]; then
-       echo "Number of tests that passed: ${TEST_RESULTS}"
-       echo "Number of tests expected to pass: 770"
-       exit 1
-    fi
-fi
-
-cd ${LFS_TMP}/${1}/mozilla
-install -v -m755 nsprpub/$NSS_LINUXDIR/config/nspr-config /usr/bin
-#install -v -m755 -d /usr/lib/pkgconfig
-#install -v -m644 nsprpub/lib/pkgconfig/nspr.pc \
-#    security/nss/lib/pkgconfig/nss.pc \
-#   /usr/lib/pkgconfig
-
-cd dist
-install -v -m755 $NSS_LINUXDIR/lib/*.so /usr/lib
-install -v -m644 $NSS_LINUXDIR/lib/{*.chk,libcrmf.a} /usr/lib
-install -v -m755 -d /usr/include/{nss,nspr}
-install -v -m644 {public,private}/nss/* /usr/include/nss
-cp -v -RL $NSS_LINUXDIR/include/* /usr/include/nspr
-chmod -v 644 /usr/include/nspr/prvrsion.h
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-openjade b/stage3/cis-openjade
deleted file mode 100755 (executable)
index da5b36d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --enable-http \
-    --disable-static \
-    --enable-default-catalog=/etc/sgml/catalog \
-    --enable-default-search-path=/usr/share/sgml \
-    --datadir=/usr/share/sgml/${1}
-make
-make install
-ln -sf openjade /usr/bin/jade
-ln -sf libogrove.so /usr/lib/libgrove.so
-ln -sf libospgrove.so /usr/lib/libspgrove.so
-ln -sf libostyle.so /usr/lib/libstyle.so
-install -m644 dsssl/catalog /usr/share/sgml/${1}/
-install -m644 dsssl/*.{dtd,dsl,sgm} /usr/share/sgml/${1}
-install-catalog --add /etc/sgml/${1}.cat \
-    /usr/share/sgml/${1}/catalog
-install-catalog --add /etc/sgml/sgml-docbook.cat \
-    /etc/sgml/${1}.cat
-
-var_add_path "SGML_BASE_DIR" /etc/profile "/usr/share/sgml"
-var_export   "SGML_BASE_DIR" /etc/profile
-
-var_add_path "SGML_CATALOGS_DIR" /etc/profile "/etc/sgml"
-var_export   "SGML_CATALOGS_DIR" /etc/profile
-
-exit $?
diff --git a/stage3/cis-openldap b/stage3/cis-openldap
deleted file mode 100755 (executable)
index eebb006..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --libexecdir=/usr/sbin \
-    --sysconfdir=/etc \
-    --localstatedir=/srv/ldap \
-    --disable-debug \
-    --enable-dynamic \
-    --enable-crypt \
-    --enable-modules \
-    --enable-rlookups \
-    --enable-backends \
-    --enable-overlays
-make depend
-make
-make install
-
-for LINK in lber ldap ldap_r; do
-    chmod -v 0755 /usr/lib/$(readlink /usr/lib/lib${LINK}.so)
-done
-
-cd ${LFS_TMP}/${1}
-install -v -m755 -d /usr/share/doc/${1}/{drafts,guide,rfc}
-install -v -m644 doc/drafts/* /usr/share/doc/${1}/drafts
-install -v -m644 doc/rfc/*    /usr/share/doc/${1}/rfc
-cp -v -R doc/guide/*          /usr/share/doc/${1}/guide
-
-# Only the slapd daemon is needed.
-# The slurpd daemon is used for coordinating multiple LDAP servers so they
-# cooperate in a hierarchy, much like DNS servers.
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/openldap /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 openldap 60 30
-
-exit $?
diff --git a/stage3/cis-opensp b/stage3/cis-opensp
deleted file mode 100755 (executable)
index 577a8f7..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-CAT1="/etc/sgml/${PACKAGE}.cat"
-CAT2="/usr/share/sgml/${PACKAGE}/catalog"
-
-CAT3="/etc/sgml/sgml-docbook.cat"
-CAT4="/etc/sgml/${PACKAGE}.cat"
-
-# Remove the old catalog items prior to upgrading...
-# First test for presence of 'install-catalog' program
-INSTALL_CATALOG=/usr/bin/install-catalog
-if [ -x ${INSTALL_CATALOG} ]; then
-    if [ -f ${CAT1} ]; then
-        ${INSTALL_CATALOG} --remove ${CAT1} ${CAT2}
-    fi
-    if [ -f ${CAT4} ]; then
-        ${INSTALL_CATALOG} --remove ${CAT3} ${CAT4}
-    fi
-fi
-
-cd ${LFS_TMP}/${PACKAGE}
-sed -i 's:32,:253,:' lib/Syntax.cxx
-sed -i 's:LITLEN          240 :LITLEN          8092:' \
-    unicode/{gensyntax.pl,unicode.syn}
-./configure \
-    --prefix=/usr \
-    --disable-static \
-    --disable-doc-build \
-    --enable-default-catalog=/etc/sgml/catalog \
-    --enable-http \
-    --enable-default-search-path=/usr/share/sgml
-make pkgdatadir=/usr/share/sgml/${PACKAGE}
-make pkgdatadir=/usr/share/sgml/${PACKAGE} install
-ln -v -sf onsgmls /usr/bin/nsgmls
-ln -v -sf osgmlnorm /usr/bin/sgmlnorm
-ln -v -sf ospam /usr/bin/spam
-ln -v -sf ospcat /usr/bin/spcat
-ln -v -sf ospent /usr/bin/spent
-ln -v -sf osx /usr/bin/sx
-ln -v -sf osx /usr/bin/sgml2xml
-ln -v -sf libosp.so /usr/lib/libsp.so
-
-exit $?
diff --git a/stage3/cis-openssh b/stage3/cis-openssh
deleted file mode 100755 (executable)
index 2e36ee0..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-install -v -m700 -d /var/lib/sshd
-chown -v root:sys /var/lib/sshd
-
-groupadd -f sshd
-hv_useradd -c sshd-privsep -d /var/lib/sshd -g sshd -s /bin/false sshd
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc/ssh \
-    --datadir=/usr/share/sshd \
-    --with-pam \
-    --libexecdir=/usr/lib/openssh \
-    --with-md5-passwords \
-    --with-privsep-path=/var/lib/sshd
-make -j ${MAKEJOBS}
-make -j ${MAKEJOBS} install
-
-cd ${LFS_TMP}/${1}
-install -v -m755 -d /usr/share/doc/${1}
-install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
-    /usr/share/doc/${1}
-
-# Disabling root logins
-sed -i -e "s!^#PermitRootLogin.*!PermitRootLogin no!g" /etc/ssh/sshd_config
-
-# Enabling X11 forwarding
-sed -i -e "s!^#X11Forwarding.*!X11Forwarding yes!g" /etc/ssh/sshd_config
-
-# Setting MaxAuthTries to 2
-sed -i -e "s!^[#]*MaxAuthTries.*!MaxAuthTries 3!g" /etc/ssh/sshd_config
-
-install -v -m740 ${SCRDIR}/bootscripts/sshd /etc/rc.d/init.d
-bootscript_add_rc3 sshd 25 70
-
-exit $?
diff --git a/stage3/cis-openssl b/stage3/cis-openssl
deleted file mode 100755 (executable)
index 6299cee..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-decompress_package ${OPENSSL_ROOT_CERTS} ./ 1> /dev/null
-MAKEDEPPROG=gcc CC=gcc ./config \
-    --prefix=/usr \
-    --openssldir=/etc/ssl \
-    shared \
-    zlib-dynamic
-MAKEDEPPROG=gcc CC=gcc make
-
-# Install man pages in /usr/share/man instead of /etc/ssl/man
-make MANDIR=/usr/share/man install
-install -v -d -m755 /usr/share/doc/${PACKAGE}
-cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
-    /usr/share/doc/${PACKAGE}
-
-cp -rv certs /etc/ssl
-
-# Create a single file that contains all of the installed certificates:
-for pem in /etc/ssl/certs/*.pem; do
-   cat $pem
-   echo ""
-done > /etc/ssl/ca-bundle.crt
-
-exit $?
diff --git a/stage3/cis-pam b/stage3/cis-pam
deleted file mode 100755 (executable)
index e65418e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-# --libdir=/lib
-#   Necessary to prevent PAM from instaling into /lib64
-../${1}/configure \
-    --libdir=/lib \
-    --sbindir=/lib/security \
-    --docdir=/usr/share/doc/${1} \
-    --enable-read-both-confs
-make -j ${MAKEJOBS}
-make install
-
-chmod -v 4755 /lib/security/unix_chkpwd
-
-mv -v /lib/security/pam_tally /sbin
-
-mv -v /lib/libpam{,c,_misc}.la /usr/lib
-sed -i 's| /lib| /usr/lib|' /usr/lib/libpam_misc.la
-
-if [ -L /lib/libpam.so ]; then
-   for LINK in libpam{,c,_misc}.so; do
-       ln -svfT ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK}
-       rm -v /lib/${LINK}
-   done
-fi
-
-mkdir -p /etc/pam.d
-cat > /etc/pam.d/other << EOF
-# /etc/pam.d/other
-
-auth            required        pam_unix.so     nullok
-account         required        pam_unix.so
-session         required        pam_unix.so
-password        required        pam_unix.so     nullok
-EOF
-
-cat > /etc/pam.conf << EOF
-# /etc/pam.conf
-
-other           auth            required        pam_unix.so     nullok
-other           account         required        pam_unix.so
-other           session         required        pam_unix.so
-other           password        required        pam_unix.so     nullok
-EOF
-
-exit $?
diff --git a/stage3/cis-pciutils b/stage3/cis-pciutils
deleted file mode 100755 (executable)
index 24983fa..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd /${LFS_TMP}/${1}
-
-# ZLIB=no: Prevents compression of the pci.ids file which is needed by HAL.
-make PREFIX=/usr ZLIB=no
-
-make PREFIX=/usr install
-
-# Some packages require the PCI static library:
-make PREFIX=/usr install-lib
-
-exit $?
diff --git a/stage3/cis-php b/stage3/cis-php
deleted file mode 100755 (executable)
index 2ff7172..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-sed -i 's/const char \*errpfx,/const DB_ENV *dbenv, & const/' ext/dba/dba_db4.c
-
-# Since PHP 5, you need to explicitly bundle PHP with MySQL by --with-mysql directive
-# (make sure you specified path to where MySQL is installed on your system).
-
-# Build directory doesn't work:
-# gcc: Zend/zend_language_scanner.c: No such file or directory
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --with-apxs2=/usr/sbin/apxs \
-    --enable-force-cgi-redirect \
-    --enable-discard-path \
-    --with-config-file-path=/etc \
-    --with-zlib \
-    --enable-bcmath \
-    --with-bz2 \
-    --with-gd \
-    --with-freetype-dir=/usr \
-    --with-t1lib \
-    --enable-gd-native-ttf \
-    --enable-calendar \
-    --enable-dba \
-    --enable-exif \
-    --enable-ftp \
-    --with-gettext \
-    --enable-mbstring \
-    --with-ncurses \
-    --with-readline \
-    --with-openssl=/usr \
-    --with-ldap \
-    --with-mysql=/usr \
-    --with-imap=/usr/lib/uw-imap \
-    --with-imap-ssl=/usr/include/openssl
-make
-make install
-
-if [ -f /etc/php.ini ]; then
-    cp /etc/php.ini /etc/php.ini.old
-fi
-cp ../${1}/php.ini-dist /etc/php.ini
-
-# To enable PHP support in the Apache web server, a new AddType directive
-# must be added to the httpd.conf file.
-if ! grep "application/x-httpd-php" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
-    echo "AddType application/x-httpd-php .php" >> /etc/apache/httpd.conf
-fi
-
-if ! grep "DirectoryIndex" /etc/apache/httpd.conf | grep "index.php" 1> /dev/null 2>&1; then
-    sed -i -e "s!\(^DirectoryIndex index.html.*\)!\1 index.php!g" /etc/apache/httpd.conf
-fi
-
-exit $?
diff --git a/stage3/cis-pm b/stage3/cis-pm
deleted file mode 100755 (executable)
index ace1555..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-# The option "-n" is used to avoid having to answer a question and accept the
-# default configuration.
-perl Makefile.PL -n ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-exit $?
diff --git a/stage3/cis-portmap b/stage3/cis-portmap
deleted file mode 100755 (executable)
index 6c45582..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make -j ${MAKEJOBS}
-make install
-
-install -v -m740 ${SCRDIR}/bootscripts/portmap /etc/rc.d/init.d
-bootscript_add_rc3 portmap 10 75
-
-exit $?
diff --git a/stage3/cis-postinstall b/stage3/cis-postinstall
deleted file mode 100755 (executable)
index e76a0a7..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    
-    #########################################
-    # MySQL
-    #########################################
-    READ_VALID="no"
-    
-    while [ "${READ_VALID}" = "no" ]; do
-       echo "Do you want to set MySQL root password? (y/n): "
-       read SET_MYSQL_ROOT_PASS
-       
-       if [ "${SET_MYSQL_ROOT_PASS}" = "y" -o "${SET_MYSQL_ROOT_PASS}" = "n" ]; then
-           READ_VALID="yes"
-       else
-           echo "Error, answer y or n"
-       fi
-    done
-    
-    if [ "${SET_MYSQL_ROOT_PASS}" = "y" ]; then
-       # Further configuration requires that the MySQL server be running: 
-       mysqld_safe --user=mysql 2>&1 >/dev/null &
-       
-       PASS_MATCH="no"
-       
-       while [ "${PASS_MATCH}" = "no" ]; do
-           echo -n "Enter new MySQL root password: " >&2
-           read PASS1
-           echo -n "Re-enter password to confirm : " >&2
-           read PASS2
-           
-           if [ "${PASS1}" != "${PASS2}" ]; then
-               echo "Error, passwords don't match"
-           else
-               PASS_MATCH="yes"
-           fi
-       done
-       
-       mysqladmin -u root password ${PASS1}
-       echo "MySQL root password set."
-       
-       echo "Shutting down MySQL server:"
-       # Configuration of the server is now finished. Shuting down the server.
-       mysqladmin -p shutdown
-    fi
-
-    #########################################
-    # Apache
-    #########################################
-    READ_VALID="no"
-    
-    while [ "${READ_VALID}" = "no" ]; do
-       echo "Do you want to generate SSL self-signed"
-       echo -n "certificate for Apache? (y/n): "
-       read USE_SSL
-       
-       if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
-           READ_VALID="yes"
-       else
-           echo "Error, answer y or n"
-       fi
-    done
-    
-    if [ "${USE_SSL}" = "y" ]; then
-       /etc/apache/generate-ssl-certs
-    fi
-    
-    #########################################
-    # imap
-    #########################################
-    READ_VALID="no"
-    
-    while [ "${READ_VALID}" = "no" ]; do
-       echo "Do you want to generate SSL self-signed"
-       echo -n "certificate for IMAP server? (y/n): "
-       read USE_SSL
-       
-       if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
-           READ_VALID="yes"
-       else
-           echo "Error, answer y or n"
-       fi
-    done
-    
-    if [ "${USE_SSL}" = "y" ]; then
-       /etc/mail/imap-ssl-certs
-    fi
-    
-fi
-
-exit $?
diff --git a/stage3/cis-procmail b/stage3/cis-procmail
deleted file mode 100755 (executable)
index 7e72d39..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make \
-    BASENAME=/usr \
-    LOCKINGTEST=/tmp \
-    install
-make install-suid
-
-cat > /etc/procmailrc << "EOF"
-# /etc/procmailrc
-#
-SHELL=/bin/sh
-PATH=/bin:/usr/bin:/usr/sbin
-MAILDIR=/var/mail
-LOGFILE=/var/log/procmail.log
-LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "
-#DEFAULT=$MAILDIR/${LOGNAME}
-VERBOSE=yes
-
-# The default internal egrep of procmailrc igore case.
-
-##################################
-# Clam AV
-##################################
-# A recipe to match a From line:
-:0
-* ^Subject: Virus intercepted
-clamav
-
-# All mail destined to spam@yourdomain and to ham@yourdomain should go
-# directly to the spam-sure and ham mail folders respectively.
-# This rule is usefull because we don't need to setup a spam or
-# ham account on the mail server.
-:0
-* ^To:.*spam@_DOMAIN_
-spam-sure
-:0
-* ^To:.*ham@_DOMAIN_
-ham
-
-
-##################################
-# SpamAssassin
-##################################
-# The condition line ensures that only messages smaller than 250 kB
-# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
-# isn't bigger than a few k and working with big messages can bring
-# SpamAssassin to its knees.
-#
-# The lock file ensures that only 1 spamassassin invocation happens
-# at 1 time, to keep the load down.
-#
-:0fw: spamassassin.lock
-* < 256000
-| /usr/bin/spamassassin
-
-# All mail tagged as spam (eg. with a score higher than the set threshold)
-# is moved to "spam".
-:0:
-* ^X-Spam-Status: Yes
-spam
-
-##################################
-# Last resort rule
-##################################
-# Accept all the rest to your default mailbox
-:0:
-${DEFAULT}
-EOF
-
-DOMAIN1=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\1!")
-DOMAIN2=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\2!")
-sed -i -e "s!_DOMAIN_!${DOMAIN1}\\\.${DOMAIN2}!g" /etc/procmailrc
-
-exit $?
diff --git a/stage3/cis-pulseaudio b/stage3/cis-pulseaudio
deleted file mode 100755 (executable)
index 2dd8a07..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-groupadd -f pulse
-groupadd -f pulse-access
-hv_useradd -g pulse -d /var/run/pulse pulse
-
-gpasswd -a hugo pulse-access
-
-# Il faut ajouter l'usager pulse au groupe audio.
-gpasswd -a pulse audio
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var
-# Workaround pour éliminer les messages de warning
-# reliés à SHM...
-sed -i -e "s!\(#define HAVE_SHM_OPEN 1\)!/* \1 */!g" config.h
-
-make
-make install
-ldconfig
-
-cat > /etc/pulse/daemon.conf << "EOF"
-## Extra verbositiy
-verbose = debug
-
-## Daemonize after startup
-daemonize = 1
-
-## Quit if startup fails
-fail = 1
-
-## Renice the daemon to level -15 and try to get SCHED_FIFO
-## scheduling. This a good idea if you hear annyoing noise in the
-## playback. However, this is a certain security issue, since it works 
-## when called SUID root only. root is dropped immediately after gaining
-## the nice level and SCHED_FIFO scheduling on startup.
-high-priority = 1
-
-## The resampling algorithm to use. Use one of src-sinc-best-quality,
-## src-sinc-medium-quality, src-sinc-fastest, src-zero-order-hold,
-## src-linear, trivial. See the documentation of libsamplerate for an
-## explanation for the different methods. The method 'trivial' is the
-## only algorithm implemented without usage of floating point
-## numbers. If you're tight on CPU consider using this. On the other
-## hand it has the worst quality of all.
-resample-method = src-sinc-best-quality
-
-## Create a PID file in /tmp/pulseaudio-$USER/pid. Of this is enabled
-## you may use commands like "pulseaudio --kill" or "pulseaudio
-## --check". If you are planning to start more than one pulseaudio
-## process per user, you better disable this option since it
-## effectively disables multiple instances.
-use-pid-file = 1
-
-## Do not install the CPU load limit, even on platforms where it is
-## supported. This option is useful when debugging/profiling 
-## PulseAudio to disable disturbing SIGXCPU signals.
-no-cpu-limit = 1
-
-## Run the daemon as system-wide instance, requires root priviliges
-system-instance = 1
-
-## Disable shared memory data transfer 
-disable-shm = 1
-EOF
-
-cat > /etc/pulse/default.pa << "EOF"
-#!/usr/bin/pulseaudio -nF 
-
-#            ----------------
-#   SOURCE   |  PulseAudio  |  SINK
-#  --------->|              |--------->
-#    ALSA    |    Daemon    |  EsounD
-#            ----------------
-#
-
-# SOURCE: Application -> Alsa -> PulseAudio
-load-module module-alsa-source device=default
-
-# SINK: PulseAudio -> Network
-load-module module-esound-sink server=via:16001
-
-# Network protocols
-load-module module-esound-protocol-unix auth-anonymous=1 
-
-# The native protocol is used for communications between
-# ALSA and PulseAudio.
-load-module module-native-protocol-unix auth-anonymous=1
-
-# Automatically restore the volume of playback streams
-load-module module-volume-restore
-
-# Automatically move streams to the default sink if the sink they are
-# connected to dies, similar for sources
-load-module module-rescue-streams
-EOF
-
-install -v -m740 ${SCRDIR}/bootscripts/pulseaudio /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 pulseaudio 95 16
-
-exit $?
diff --git a/stage3/cis-reiserfsprogs b/stage3/cis-reiserfsprogs
deleted file mode 100755 (executable)
index c330a8f..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --sbindir=/sbin
-# Doesn't seem to use CFLAGS...
-make -j ${MAKEJOBS}
-make install
-ln -sf reiserfsck /sbin/fsck.reiserfs
-ln -sf mkreiserfs /sbin/mkfs.reiserfs
-
-exit $?
diff --git a/stage3/cis-samba b/stage3/cis-samba
deleted file mode 100755 (executable)
index 24ab9e9..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-install -d /var/cache/samba
-
-cd ${LFS_TMP}/${1}/source
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --localstatedir=/var \
-    --with-piddir=/var/run \
-    --with-fhs \
-    --with-smbmount
-make
-make install
-mv /usr/lib/samba/libsmbclient.so /usr/lib
-ln -sf ../libsmbclient.so /usr/lib/samba
-
-mkdir -p /var/log/samba
-
-# libsmbclient.a doesn't seem to be installed...
-#chmod 644 /usr/include/libsmbclient.h /usr/lib/samba/libsmbclient.a
-chmod 644 /usr/include/libsmbclient.h
-
-install -m755 nsswitch/libnss_win{s,bind}.so /lib
-ln -sf libnss_winbind.so /lib/libnss_winbind.so.2
-ln -sf libnss_wins.so /lib/libnss_wins.so.2
-cp ../examples/smb.conf.default /etc/samba
-install -m644 ../docs/*.pdf /usr/share/samba
-
-if [ -f nsswitch/pam_winbind.so ]; then 
-    install -m755 nsswitch/pam_winbind.so /lib/security
-fi
-
-ldconfig
-
-# Configuring SWAT
-string_add "swat            901/tcp" /etc/services
-string_add "swat_tunnel     902/tcp" /etc/services
-string_add "swat stream tcp nowait.400 root /usr/sbin/swat swat" /etc/inetd.conf
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/samba /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 samba 85 10
-
-exit $?
diff --git a/stage3/cis-sasl2 b/stage3/cis-sasl2
deleted file mode 100755 (executable)
index abda5e6..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-
-# Fixes an issue when compiling Cyrus SASL with GCC-4:
-sed -i '/sasl_global/s/^static //' lib/client.c
-
-# Puts the saslauthd man page in a more standard location:
-sed -i 's/cat8/man8/' saslauthd/Makefile.in
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --with-dbpath=/var/lib/sasl/sasldb2 \
-    --with-saslauthd=/var/run
-make
-make install
-
-cd ${LFS_TMP}/${1}
-install -v -m755 -d /usr/share/doc/${1}
-install -v -m644 doc/{*.{html,txt,fig},ONEWS,TODO} \
-    saslauthd/LDAP_SASLAUTHD /usr/share/doc/${1}
-install -v -m700 -d /var/lib/sasl
-
-# Creating SASL configuration file for Sendmail:
-cat > /usr/lib/sasl2/Sendmail.conf << "EOF"
-pwcheck_method:saslauthd
-EOF
-
-ldconfig
-
-# Bootscript
-install -v -m740 ${SCRDIR}/bootscripts/saslauthd /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 saslauthd 50 40
-
-exit $?
diff --git a/stage3/cis-sendmail b/stage3/cis-sendmail
deleted file mode 100755 (executable)
index c503ba1..0000000
+++ /dev/null
@@ -1,255 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-groupadd -f smmsp
-groupadd -f mail
-hv_useradd -g smmsp -G mail smmsp
-chmod 1777 /var/mail
-mkdir -p /var/spool/mqueue
-mkdir -p /etc/mail
-
-cd ${LFS_TMP}/${1}
-cat > devtools/Site/site.config.m4 << "EOF"
-define(`confMANGRP',`root')
-define(`confMANOWN',`root')
-define(`confSBINGRP',`root')
-define(`confUBINGRP',`root')
-define(`confUBINOWN',`root')
-EOF
-
-if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    # Adding support for SASL2 and MILTER
-    cat >> devtools/Site/site.config.m4 << "EOF"
-APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL=2')
-APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
-APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
-EOF
-    
-    # Configuration file for SASL2
-    echo "pwcheck_method: saslauthd" /usr/lib/sasl2/Sendmail.conf
-fi
-
-cd sendmail
-sh Build
-cd ../
-
-if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    cd libmilter
-    sh Build install
-    cd ../
-fi
-
-cd cf/cf
-cp generic-linux.mc sendmail.mc
-sh Build sendmail.mc
-sh Build install-cf
-cd ../../
-sh Build install
-
-if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    # Configuration Information
-    cat > /etc/mail/sendmail.mc << "EOF"
-dnl
-include(`./m4/cf.m4')
-VERSIONID(`sendmail.mc    Hugo Villeneuve   2003/10/06')
-OSTYPE(linux)
-DOMAIN(generic)
-dnl
-dnl ---------- Procmail settings ----------
-define(`PROCMAIL_MAILER_ARGS', procmail -a $h -d $u)dnl
-define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
-dnl
-dnl ---------- Log messages level ----------
-define(`confLOG_LEVEL', `14')
-dnl
-dnl ---------- confPRIVACY_FLAGS ----------
-dnl   "vrfy": (verify) pour verifier l'existence d'une adresse sur le serveur.
-dnl   "expn": (expand) qui est identique a "vrfy" mais qui permet aussi de lister
-dnl           les personnes d'une liste et autres alias.
-dnl   "noreceipts": To disable sending DSN receipts.
-dnl   "goaway": Disable all SMTP status queries.
-dnl   "authwarnings": Adds x-authentication-warning.
-dnl   "restrictmailq": mqueue group can see queue.
-dnl   "restrictqrun": mqueue owner to run queue.
-dnl   "nobodyreturn": Does not return mail body
-define(`confPRIVACY_FLAGS', `goaway authwarnings restrictmailq restrictqrun nobodyreturn novrfy noexpn noreceipts')
-dnl
-dnl ---------- Maximum message size (in bytes) ----------
-define(`confMAX_MESSAGE_SIZE',10000000)
-dnl
-define(`confMAX_DAEMON_CHILDREN',`30')
-define(`confCONNECTION_RATE_THROTTLE',`10')
-define(`confMAX_RCPTS_PER_MESSAGE',`50')
-dnl
-dnl ---------- MILTER support ----------
-define(`confINPUT_MAIL_FILTERS',`clmilter')
-dnl
-dnl ---------- SMTP Authorization options ----------
-define(`confAUTH_OPTIONS', `A')
-define(`confAUTH_MECHANISMS', `LOGIN PLAIN')
-TRUST_AUTH_MECH(`LOGIN PLAIN')
-dnl
-dnl ---------- Don't send the version number of sendmail ----------
-define(`confSMTP_LOGIN_MSG',`_HOSTNAME_')
-MASQUERADE_AS(_DOMAIN_)
-dnl Uncomment the following line to use a non-standard port
-dnl DAEMON_OPTIONS(`Port=_ALTERNATE_PORT_NUMBER_,Name=MTA')
-dnl
-dnl This is necessary for the local Sendmail to work, when using
-dnl an alternate port number:
-DAEMON_OPTIONS('Port=25','Name=MTA')
-dnl
-FEATURE(nouucp, nospecial)
-FEATURE(use_cw_file)
-FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')
-FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
-FEATURE(`local_procmail')
-FEATURE(`mailertable')
-MAILER(procmail)
-INPUT_MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
-dnl INPUT_MAIL_FILTER(`smf-spf', `S=local:/var/run/smfs/smf-spf.sock, T=S:30s;R:1m')
-dnl INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/milter-greylist.sock')
-MAILER(smtp)
-EOF
-
-    sed -i -e "s!_HOSTNAME_!${MACHINE_NAME}\.${DOMAIN}!g" /etc/mail/sendmail.mc
-    sed -i -e "s!_DOMAIN_!${DOMAIN}!g" /etc/mail/sendmail.mc
-    
-    if [ -n "${SENDMAIL_INCOMING_PORT}" ]; then
-       # Uncommenting the alternate port line
-       sed -i -e "s!\(dnl \)\(.*_ALTERNATE_PORT_NUMBER_.*\)!\2!g" /etc/mail/sendmail.mc
-       # Replacing the port number
-       sed -i -e "s!_ALTERNATE_PORT_NUMBER_!${SENDMAIL_INCOMING_PORT}!g" /etc/mail/sendmail.mc
-    fi
-    
-    # We must put the domain name, and not the hostname in local-host-names
-    echo "${DOMAIN}" > /etc/mail/local-host-names
-    
-    if [ -n "${MAIL_ADMIN}" ]; then
-       echo "postmaster: ${MAIL_ADMIN}" > /etc/mail/aliases
-    else
-       exit 1
-    fi
-    cat >> /etc/mail/aliases << "EOF"
-mailer-daemon: postmaster
-abuse: postmaster
-root: postmaster
-EOF
-    
-    cat > /etc/mail/access << "EOF"
-# This is absolutely needed for each 192.168.0.x computer to send mail...
-Connect:192.168.0 RELAY
-EOF
-    
-    cd /etc/mail
-    cp -R ${LFS_TMP}/${1}/cf/* .
-
-    cat > /etc/mail/submit.mc << "EOF"
-dnl
-include(`./m4/cf.m4')dnl
-dnl
-EOF
-    cat ${LFS_TMP}/${1}/cf/cf/submit.mc >> /etc/mail/submit.mc
-    sed -i "s!\(^FEATURE.*\)127.0.0.1\(.*\)!\1${MACHINE_NAME}\.${DOMAIN}\2!" /etc/mail/submit.mc
-    newaliases -v
-   
-    cat > /etc/mail/virtusertable << "EOF"
-# MAKE SURE ALL ENTRIES ARE SEPARATED WITH <TAB>
-#
-EOF
-
-    if [ -n "${SENDMAIL_ALT_MAILER}" ]; then
-       echo ".     ${SENDMAIL_ALT_MAILER}" > /etc/mail/mailertable
-    else
-       echo "# Define alternate mailer in this file" > /etc/mail/mailertable
-    fi
-
-    cat > /etc/mail/configure << "EOF"
-#!/bin/sh
-
-PID_FILE="/var/run/sendmail.pid"
-
-cd /etc/mail
-
-m4 sendmail.mc > sendmail.cf
-m4 submit.mc   > submit.cf
-newaliases
-makemap hash access.db < access
-makemap hash virtusertable < virtusertable
-makemap hash mailertable.db < mailertable || exit 1
-
-# Restarting sendmail
-if [ -f ${PID_FILE} ]; then
-    kill -HUP `head -1 /var/run/sendmail.pid` || exit 1
-else
-    /etc/rc.d/init.d/sendmail start || exit 1
-fi
-
-exit $?
-EOF
-    chmod 740 /etc/mail/configure
-
-    # Bootscript
-    install -v -m740 ${SCRDIR}/bootscripts/sendmail /etc/rc.d/init.d
-
-    # script-name start stop
-    bootscript_add_rc3 sendmail 65 25
-
-    cat > /usr/local/bin/mail-if-fail << "EOF"
-#!/bin/sh
-
-# This script is used to run a command. If the command failed,
-# an email is sent to the address specified by MAILTO.
-
-# Begin of user modifiable variables
-MAILFROM="${USER}@_DOMAIN_"
-MAILTO="root@_DOMAIN_"
-# End of User modifiable variables
-
-SENDMAIL="/usr/sbin/sendmail -t -r ${MAILFROM}"
-MAILFILE="/tmp/mail-if-fail-output$$"
-LOGFILE="/tmp/mail-if-fail-log$$"
-
-# Running the specified command
-${*} 1> ${LOGFILE} 2>&1
-
-ERROR_CODE=${?}
-
-if [ ${ERROR_CODE} -ne "0" ]; then
-    echo "From: ${MAILFROM}" > ${MAILFILE}
-    echo "To: ${MAILTO}" >> ${MAILFILE}
-    echo "Subject: \"${1}\" FAILED (${ERROR_CODE})" >> ${MAILFILE}
-    echo "Content-type: text/plain" >> ${MAILFILE}
-    echo "Output of command ${*}:" >> ${MAILFILE}
-    echo >> ${MAILFILE}
-    cat ${LOGFILE} >> ${MAILFILE}
-    cat ${MAILFILE} | ${SENDMAIL} || exit 1
-    rm -f ${MAILFILE}
-fi
-
-rm -f ${LOGFILE}
-
-exit ${ERROR_CODE}
-EOF
-
-    sed -i -e "s!_DOMAIN_!${DOMAIN}!g" /usr/local/bin/mail-if-fail
-    chmod 755 /usr/local/bin/mail-if-fail
-
-    cp ${SCRDIR}/resources/mail-files.sh /usr/local/bin
-    chmod 755 /usr/local/bin/mail-files.sh
-
-    # Executing configure script.
-    /etc/mail/configure
-fi
-
-exit $?
diff --git a/stage3/cis-sgml-common b/stage3/cis-sgml-common
deleted file mode 100755 (executable)
index 91e66a5..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-CAT1="/etc/sgml/sgml-ent.cat"
-CAT2="/usr/share/sgml/sgml-iso-entities-8879.1986/catalog"
-
-CAT3="/etc/sgml/sgml-docbook.cat"
-CAT4="/etc/sgml/sgml-ent.cat"
-
-# Remove the old catalog items prior to upgrading...
-# First test for presence of 'install-catalog' program
-INSTALL_CATALOG=/usr/bin/install-catalog
-if [ -x ${INSTALL_CATALOG} ]; then
-    if [ -f ${CAT2} ]; then
-        ${INSTALL_CATALOG} --remove ${CAT1} ${CAT2}
-    fi
-    if [ -f ${CAT4} ]; then
-        ${INSTALL_CATALOG} --remove ${CAT3} ${CAT4}
-    fi
-fi
-
-cd ${LFS_TMP}/${PACKAGE}
-autoreconf -f -i
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    ${CONFIGURE_OPTS}
-make
-make install
-
-${INSTALL_CATALOG} --add ${CAT1} ${CAT2}
-${INSTALL_CATALOG} --add ${CAT3} ${CAT4}
-
-exit $?
diff --git a/stage3/cis-sgml-dtd3 b/stage3/cis-sgml-dtd3
deleted file mode 100755 (executable)
index 7a5c2a6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-sed -i -e '/ISO 8879/d' \
-    -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
-    docbook.cat
-install -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}
-chown -R root:root .
-install docbook.cat /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog
-cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}
-install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \
-    /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog
-install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \
-    /etc/sgml/sgml-docbook.cat
-
-# Using only the most current 3.x version of sgml-dtd requires the following:
-cat >> /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog << "EOF"
-  -- Begin Single Major Version catalog changes --
-
-PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
-
-  -- End Single Major Version catalog changes --
-EOF
-
-exit $?
diff --git a/stage3/cis-sgml-dtd4 b/stage3/cis-sgml-dtd4
deleted file mode 100755 (executable)
index 192af58..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-sed -i -e '/ISO 8879/d' \
-    -e '/gml/d' docbook.cat
-install -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}
-chown -R root:root .
-install docbook.cat /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog
-cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}
-install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD4_VER}.cat \
-    /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog
-install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD4_VER}.cat \
-    /etc/sgml/sgml-docbook.cat
-
-# Using only the most current 4.x version of sgml-dtd requires the following:
-cat >> /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog << "EOF"
-  -- Begin Single Major Version catalog changes --
-
-PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
-PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
-PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
-PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
-
-  -- End Single Major Version catalog changes --
-EOF
-
-exit $?
diff --git a/stage3/cis-sgml-spm b/stage3/cis-sgml-spm
deleted file mode 100755 (executable)
index 029344b..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-sed -i -e "s@/usr/local/bin@/usr/bin@" \
-    -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/$(get_pkg_ver ${PERL})@" \
-    -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
-    Makefile
-make install
-ldconfig
-
-exit $?
diff --git a/stage3/cis-spamassassin b/stage3/cis-spamassassin
deleted file mode 100755 (executable)
index b833c0e..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-perl Makefile.PL -n \
-    CONTACT_ADDRESS="postmaster" \
-    ENABLE_SSL="no" \
-    RUN_NET_TESTS="no"
-make
-make install
-
-cat > /usr/local/bin/hv-sa-learn << "EOF"
-#!/bin/sh
-
-SA_LEARN="/usr/bin/sa-learn"
-SA_LEARN_FLAGS="--showdots --mbox"
-
-SA_USERS="hugo"
-USER_MAIL_FOLDER=".imap"
-
-for user in ${SA_USERS}; do
-    if [ -f /home/${user}/${USER_MAIL_FOLDER}/SPAM ]; then
-        echo "Scanning SPAM folder for user <${user}>:"
-        ${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --spam /home/${user}/${USER_MAIL_FOLDER}/SPAM || exit 1
-    fi
-    if [ -f /home/${user}/${USER_MAIL_FOLDER}/HAM ]; then
-        echo "Scanning HAM folder for user <${user}:>"
-        ${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --ham /home/${user}/${USER_MAIL_FOLDER}/HAM || exit 1
-    fi
-done
-
-echo "Scanning /var/mail/spam-sure..."
-${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --spam /var/mail/spam-sure || exit 1
-
-echo "Scanning /var/mail/spam..."
-${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --spam /var/mail/spam || exit 1
-
-echo "Scanning /var/mail/ham..."
-${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --ham  /var/mail/ham || exit 1
-
-exit $?
-EOF
-chmod 755 /usr/local/bin/hv-sa-learn
-
-# Addition to /etc/fcron/fcrontab
-string_add "# Run SpamAssassin sa-learn every hour + 25 minutes" /etc/fcron/fcrontab
-string_add "&mail(false) 25 * * * * /usr/local/bin/mail-if-fail /usr/local/bin/hv-sa-learn" \
-    /etc/fcron/fcrontab
-
-# Add rule to procmailrc...
-
-# Put spamassassin databases in /srv
-mkdir -v -p /srv/spamassassin
-sed -i -e "s!^bayes_path.*!bayes_path /srv/spamassassin/bayes!g" /etc/mail/spamassassin/local.cf
-
-exit $?
diff --git a/stage3/cis-squirrelmail b/stage3/cis-squirrelmail
deleted file mode 100755 (executable)
index aa699e2..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-mv ${LFS_TMP}/${1} /srv/www/htdocs/squirrelmail
-chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/www/htdocs/squirrelmail
-
-mkdir -v -p /srv/squirrelmail/{data,attach}
-chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/squirrelmail
-chmod -v 0730 /srv/squirrelmail/attach
-
-cp /srv/www/htdocs/squirrelmail/config/config_default.php /srv/www/htdocs/squirrelmail/config/config.php
-
-sed -i -e "s!\(\$data_dir .* =\).*!\1 \'/srv/squirrelmail/data/\';!g" \
-    /srv/www/htdocs/squirrelmail/config/config.php
-sed -i -e "s!\(\$attachment_dir .* =\).*!\1 \'/srv/squirrelmail/attach/\';!g" \
-    /srv/www/htdocs/squirrelmail/config/config.php
-exit $?
diff --git a/stage3/cis-subversion b/stage3/cis-subversion
deleted file mode 100755 (executable)
index 8a6e0aa..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --with-apxs=/usr/sbin/apxs \
-    --without-berkeley-db
-make
-make install
-
-cd ${LFS_TMP}/${1}
-rm doc/doxygen.conf
-find doc -type d -exec chmod 755 {} \;
-find doc -type f -exec chmod 644 {} \;
-install -v -m755 -d /usr/share/doc/${1}
-cp -v -R doc/* /usr/share/doc/${1}
-
-# Creating repositories directory
-mkdir -p /srv/svn
-chown ${APACHE_USER}:${APACHE_USER} /srv/svn
-
-ldconfig
-
-exit $?
diff --git a/stage3/cis-sudo b/stage3/cis-sudo
deleted file mode 100755 (executable)
index dc2a573..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc
-make -j ${MAKEJOBS}
-make install
-
-cat > /etc/sudoers << EOF
-# User alias specification
-User_Alias  ADMIN = _REGUSER_
-
-# Allow people in group ADMIN to run all commands without a password
-ADMIN       ALL = NOPASSWD: ALL
-EOF
-
-sed -i -e "s!_REGUSER_!${REGUSER}!g" /etc/sudoers
-chmod 600 /etc/sudoers
-
-exit $?
diff --git a/stage3/cis-tcl b/stage3/cis-tcl
deleted file mode 100755 (executable)
index 5be0be5..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-cd unix
-./configure --prefix=/usr \
-            --enable-threads \
-            --mandir=/usr/share/man
-make
-
-# removes the references to the build directory and replaces them with saner
-# system-wide locations:
-sed -i \
-    -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
-    -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
-    -e "/SEARCH/s/=.*/=''/" \
-    tclConfig.sh
-
-make install
-make install-private-headers
-
-PKG_VER_BASE=$(echo ${PACKAGE} | sed "s!^tcl\([0-9]*\.[0-9]*\).*!\1!g")
-
-ln -svfT tclsh${PKG_VER_BASE} /usr/bin/tclsh
-
-exit $?
diff --git a/stage3/cis-tcp-wrappers b/stage3/cis-tcp-wrappers
deleted file mode 100755 (executable)
index 5a0adeb..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
-make -j ${MAKEJOBS} REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
-make install
-
-# Creating /etc/hosts.allow
-cat > /etc/hosts.allow << "EOF"
-ALL : LOCAL 192.168.0.0/255.255.255.0 : RFC931
-EOF
-
-# Creating /etc/hosts.deny
-cat > /etc/hosts.deny << "EOF"
-ALL: ALL: RFC931
-EOF
-
-exit $?
diff --git a/stage3/cis-tftp-hpa b/stage3/cis-tftp-hpa
deleted file mode 100755 (executable)
index 4fe70ce..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-# Need to specify mandir manually because of a stupid programming error in tftpd sources...
-cd ${LFS_TMP}/${PACKAGE}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --mandir=/usr/man \
-    --without-tcpwrappers \
-    ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-mkdir -v -p /srv/tftpboot
-
-# Addition to /etc/inetd.conf
-string_add "tftp  dgram  udp wait       root  /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot -v -v -v -v -v" /etc/inetd.conf
-
-exit $?
diff --git a/stage3/cis-uml-utilities b/stage3/cis-uml-utilities
deleted file mode 100755 (executable)
index 0034151..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make -C tunctl install
-
-exit $?
diff --git a/stage3/cis-unrar b/stage3/cis-unrar
deleted file mode 100755 (executable)
index 6c007e3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make -f makefile.unix
-install -v -m755 unrar /usr/bin
-
-exit $?
diff --git a/stage3/cis-unzip b/stage3/cis-unzip
deleted file mode 100755 (executable)
index 24295b2..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-case "${HVL_TARGET}" in
-    "x86_64")
-        UNZIP_TARGET=linux_noasm
-        ;;
-    *)
-        UNZIP_TARGET=linux
-esac
-
-cd ${LFS_TMP}/${PACKAGE}
-make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 ${UNZIP_TARGET}
-make prefix=/usr install
-ldconfig
-
-exit $?
diff --git a/stage3/cis-usbutils b/stage3/cis-usbutils
deleted file mode 100755 (executable)
index 80ad22d..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}-build
-../${PACKAGE}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --disable-zlib \
-    ${CONFIGURE_OPTS}
-make
-make install
-install -v -m755 update-usbids.sh /usr/sbin/update-usbids
-ldconfig
-
-# Addition to /etc/fcron/fcrontab
-#string_add "# Run update-usbids every day" /etc/fcron/fcrontab
-#string_add "&mail(false) * 3 * * * /usr/sbin/update-usbids" /etc/fcron/fcrontab
-
-# Update database
-/usr/sbin/update-usbids
-
-exit $?
diff --git a/stage3/cis-uw-imap b/stage3/cis-uw-imap
deleted file mode 100755 (executable)
index 1124c95..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# This server is configured to use SSL only, no plain-text passwords.
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-
-# Setting default mailbox format for imapd
-sed -i -e "s!^\(CREATEPROTO=\)unixproto!\1${MAILBOX_FORMAT}proto!" src/osdep/unix/Makefile
-
-make lnp
-
-# Installing imapd
-install -m 755 imapd/imapd /usr/bin
-install -m 644 src/imapd/imapd.8 /usr/man/man8/imapd.8
-
-# Installing mailutil
-install -m 755 mailutil/mailutil /usr/bin
-install -m 644 src/mailutil/mailutil.1 /usr/man/man1/mailutil.1
-
-# Installing dmail
-install -m 755 dmail/dmail /usr/bin
-install -m 644 src/dmail/dmail.1 /usr/man/man1/dmail.1
-
-# Installing C-library
-mkdir -p /usr/lib/uw-imap/{include,lib}
-install -m 644 c-client/c-client.a /usr/lib/uw-imap/lib
-ln -sf /usr/lib/uw-imap/lib/c-client.a /usr/lib/uw-imap/lib/libc-client.a
-install -m 644 c-client/*.h /usr/lib/uw-imap/include
-install -m 644 src/osdep/tops-20/shortsym.h /usr/lib/uw-imap/include
-
-# Addition to /etc/inetd.conf
-string_add "imaps stream tcp nowait.400 root /usr/bin/imapd imapd" /etc/inetd.conf
-
-# Addition to /etc/services
-string_add "imaps     993/tcp " /etc/services
-
-# Addition to /etc/pam.conf
-string_add "# IMAP server"                                             /etc/pam.conf
-string_add "imap   auth       required   pam_unix.so   nullok"         /etc/pam.conf
-string_add "imap   account    required   pam_unix.so   try_first_pass" /etc/pam.conf
-string_add "imap   session    required   pam_deny.so"                  /etc/pam.conf
-
-# SSL Certificates generation script
-cat > /etc/mail/imap-ssl-certs << "EOF"
-#!/bin/sh
-
-echo "-------------------------------------------------"
-echo "Generation of a Certificate Signing Request (CSR)"
-echo ""
-echo "Example fields:"
-echo "Country name:             CA"
-echo "State or Province Name:   Quebec"
-echo "Locality Name:            Montreal"
-echo "Organization Name:        Hugo Villeneuve"
-echo "Organizational Unit Name: ."
-echo "Common Name:              mail.hugovil.com"
-echo "Email Address:            postmaster@hugovil.com"
-echo ""
-echo "Please enter the following 'extra' attributes"
-echo "to be sent with your certificate request"
-echo "A challenge password []:     (press enter)   "
-echo "An optional company name []: (press enter)   "
-echo "-------------------------------------------------"
-echo ""
-echo "-------------------------------------------------"
-echo "Generation of a self-signed certificate"
-echo "-------------------------------------------------"
-cd /etc/ssl/certs
-openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem -days 10000
-
-exit $?
-EOF
-
-chmod 740 /etc/mail/imap-ssl-certs
-
-# Making sure cram-md5.pwd is created.
-if [ ! -f /etc/cram-md5.pwd ]; then
-    echo "# CRAM-MD5 authentication database" > /etc/cram-md5.pwd
-    echo "# Entries are in the form:" >> /etc/cram-md5.pwd
-    echo "#   USERNAME <SINGLE-TAB> PASSWORD" >> /etc/cram-md5.pwd
-    echo "# Its mandatory that there is a single tab" >> /etc/cram-md5.pwd
-    echo "# between the usernasme and password." >> /etc/cram-md5.pwd
-    echo "# Lines starting with \"#\" are comments." >> /etc/cram-md5.pwd
-    echo "" >> /etc/cram-md5.pwd
-
-    chmod 600 /etc/cram-md5.pwd
-fi
-
-exit $?
diff --git a/stage3/cis-xmltoman b/stage3/cis-xmltoman
deleted file mode 100755 (executable)
index 2127de5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make PREFIX=/usr
-make install PREFIX=/usr
-
-exit $?
diff --git a/stage3/cis-xvidcore b/stage3/cis-xvidcore
deleted file mode 100755 (executable)
index 841455e..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}/build/generic
-./configure \
-    --prefix=/usr
-make 
-make install
-ln -sf libxvidcore.so.4.0 /usr/lib/libxvidcore.so.4
-ln -sf libxvidcore.so.4 /usr/lib/libxvidcore.so
-ldconfig
-
-exit $?
diff --git a/stage3/cis-zip b/stage3/cis-zip
deleted file mode 100755 (executable)
index f9fe719..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-sed -i -e 's@$(INSTALL) man/zip.1@$(INSTALL_PROGRAM) man/zip.1@' \
-    unix/Makefile
-make prefix=/usr -f unix/Makefile generic_gcc
-make prefix=/usr -f unix/Makefile install
-ldconfig
-
-exit $?
diff --git a/stage3/install-1 b/stage3/install-1
new file mode 100755 (executable)
index 0000000..5e9469d
--- /dev/null
@@ -0,0 +1,125 @@
+#!/bin/bash
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+hvtrap_setup
+source ../packages-list
+source /etc/profile
+
+if [ "x${USER}" != "xroot" ]; then
+    echo "You must be the superuser to install hvlinux."
+    exit 1
+fi
+
+init_log_file
+
+ipkg ${NANO}
+ipkg ${WHICH}
+ipkg -m acnb ${REISERFSPROGS}
+ipkg -m acnb ${POPT}
+ipkg ${PAM}
+ipkg -m noac ${OPENSSL}
+ipkg ${WGET}
+ipkg -m noac ${PCIUTILS}
+ipkg -m acnb ${LIBUSB}
+ipkg ${LIBUSB_COMPAT}
+ipkg ${USBUTILS}
+ipkg ${FCRON}
+
+exit 1
+
+ipkg ${OPENSSH}
+ipkg ${EXPAT}
+ipkg ${APR} "--with-installbuilddir=/usr/lib/apr-1/build"
+ipkg ${APR_UTIL} "--with-apr=/usr/bin/apr-1-config"
+ipkg ${NEON} "--with-ssl"
+ipkg ${TCL}
+ipkg ${SQLITE}
+ipkg ${SUBVERSION}
+ipkg ${SUDO}
+ipkg ${STRACE}
+ipkg ${PCRE} \
+    --docdir=/usr/share/doc/pcre \
+    --enable-utf8 \
+    --enable-unicode-properties \
+    --enable-pcregrep-libz \
+    --enable-pcregrep-libbz2
+
+# Networking
+ipkg ${TCPWRAPPERS}
+ipkg ${PORTMAP}
+ipkg ${NFS_UTILS}
+ipkg ${INETUTILS}
+if [ "x${USE_DYNAMIC_DNS}" = "xyes" ]; then
+    ipkg ${DDCLIENT}
+fi
+ipkg -m acnb ${LIBPCAP}
+ipkg ${TCPDUMP}
+ipkg -m acnb ${NMAP} "--without-nmapfe"
+ipkg ${BIND}
+ipkg ${IPTABLES}
+ipkg ${CURL}
+ipkg ${RSYNC}
+
+if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg ${MYSQL}
+fi
+
+# Archiving
+ipkg ${ZIP}
+ipkg ${UNZIP}
+ipkg ${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}
+ipkg ${DOSFSTOOLS}
+ipkg ${GIT}
+
+# Perl modules
+ipkg -m pm ${PERL_MOD_PDL}
+ipkg -m pm ${PERL_MOD_XML_WRITER}
+ipkg -m pm ${PERL_MOD_XML_PARSER}
+
+ipkg ${INTLTOOL}
+ipkg ${PYTHON} "--enable-shared"
+
+# DocBook
+ipkg  ${SGML_COMMON}
+ipkg  ${SGML_DTD3}
+ipkg  ${SGML_DTD4}
+ipkg  ${OPENSP}
+ipkg  ${OPENJADE}
+ipkg  ${DOCBOOK_DSSSL}
+ipkg -m pm ${SGML_SPM}
+ipkg  ${DOCBOOK_UTILS}
+ipkg -m acnb ${LIBXML2}
+ipkg -m acnb ${LIBXSLT}
+ipkg ${DOCBOOK_XML}
+ipkg ${DOCBOOK_XSL}
+ipkg ${XMLTOMAN}
+ipkg ${XMLTO}
+
+# Graphic libraries
+ipkg ${LIBJPEG} "--enable-static --enable-shared"
+ipkg ${LIBOPENJPEG}
+ipkg ${LIBPNG}
+ipkg ${LIBART}
+ipkg ${LIBEXIF}
+ipkg ${FRIBIDI}
+ipkg -m acnb ${HICOLOR_ICON_THEME}
+ipkg ${TIFF}
+ipkg ${GIFLIB}
+ipkg -m acnb ${LCMS}
+ipkg ${LIBMNG}
+
+ipkg ${FREETYPE}
+ipkg ${FONTCONFIG}
+
+echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h"
+
+exit $?
diff --git a/stage3/ipkg.def b/stage3/ipkg.def
new file mode 100644 (file)
index 0000000..135c8da
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Setting default configure options for all scripts
+CONFIGURE_OPTS="\
+      --prefix=/usr \
+      --sysconfdir=/etc \
+      ${CONFIGURE_OPTS}"
index 58f0bbd..60d825d 100755 (executable)
@@ -29,9 +29,9 @@ fpkg_sf    ${LIBUSB}
 fpkg_sf    ${LIBUSB_COMPAT} libusb
 fpkg       ${USBUTILS} ${SOURCEFORGE_URL}/project/linux-usb/usbutils
 fpkg       ${REISERFSPROGS} http://www.kernel.org/pub/linux/utils/fs/reiserfs
-fpkg       ${NET_TOOLS} http://www.tazenda.demon.co.uk/phil/net-tools
 fpkg       ${POPT} http://rpm5.org/files/popt
 fpkg       ${PAM} http://www.kernel.org/pub/linux/libs/pam/library
+fpkg -e "tar.gz" -f "${FCRON}.src" ${FCRON} http://fcron.free.fr/archives
 fpkg       ${OPENSSL} ftp://ftp.openssl.org/source
 fpkg       ${OPENSSL_ROOT_CERTS} http://anduin.linuxfromscratch.org/files/BLFS
 fpkg       ${OPENSSH} ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
@@ -71,7 +71,7 @@ fpkg_gnu   ${ED}
 fpkg_gnu   ${BC}
 fpkg_sf    ${FUSE}
 fpkg       ${DOSFSTOOLS} "http://www.daniel-baumann.ch/software/dosfstools"
-fpkg       ${CVS} "ftp://ftp.gnu.org/non-gnu/cvs/source/stable/$(get_pkg_ver ${CVS})"
+##fpkg       ${CVS} "ftp://ftp.gnu.org/non-gnu/cvs/source/stable/$(get_pkg_ver ${CVS})"
 fpkg       ${GIT}          "http://www.kernel.org/pub/software/scm/git"
 fpkg       ${GIT_MANPAGES} "http://www.kernel.org/pub/software/scm/git"
 
@@ -105,7 +105,7 @@ fpkg_gnome ${LIBART}
 fpkg_sf    ${LIBEXIF}
 fpkg       ${FRIBIDI} "http://fribidi.org/download"
 fpkg       ${HICOLOR_ICON_THEME} "http://icon-theme.freedesktop.org/releases"
-fpkg       ${TIFF} "http://libtiff.maptools.org/dl"
+fpkg       ${TIFF} "http://download.osgeo.org/libtiff"
 fpkg_sf    ${GIFLIB}
 fpkg       ${LCMS}    "http://www.littlecms.com"
 fpkg_sf    ${LIBMNG}
diff --git a/stage3/pkg/Linux-PAM b/stage3/pkg/Linux-PAM
new file mode 100644 (file)
index 0000000..26e4915
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+hvconfig_pre()
+{
+    # --libdir=/lib
+    #   Necessary to prevent PAM from instaling into /lib64
+    CONFIGURE_OPTS="\
+        ${CONFIGURE_OPTS} \
+        --libdir=/lib \
+        --sbindir=/lib/security \
+        --enable-securedir=/lib/security \
+        --enable-shared \
+        --docdir=/usr/share/doc/${1}"
+}
+
+hvbuild_post()
+{
+    chmod -v 4755 /lib/security/unix_chkpwd
+
+    mv -v /lib/security/pam_tally /sbin
+
+    mv -v /lib/libpam{,c,_misc}.la /usr/lib
+    sed -i 's| /lib| /usr/lib|' /usr/lib/libpam_misc.la
+
+    if [ -L /lib/libpam.so ]; then
+        for LINK in libpam{,c,_misc}.so; do
+            ln -svfT ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK}
+            rm -v /lib/${LINK}
+        done
+    fi
+
+    mkdir -p /etc/pam.d
+    cat > /etc/pam.d/other << EOF
+# /etc/pam.d/other
+
+auth            required        pam_unix.so     nullok
+account         required        pam_unix.so
+session         required        pam_unix.so
+password        required        pam_unix.so     nullok
+EOF
+}
diff --git a/stage3/pkg/bind b/stage3/pkg/bind
new file mode 100644 (file)
index 0000000..a908d68
--- /dev/null
@@ -0,0 +1,179 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+groupadd -f named
+hv_useradd -c BindOwner -g named -m -s /bin/false named
+
+cd ${LFS_TMP}/${1}
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --mandir=/usr/share/man \
+    --enable-threads \
+    --with-libtool
+# Use updated address for L.ROOT-SERVERS.NET.
+sed -i "s@198.32.64.12@199.7.83.42@" lib/dns/rootns.c
+make
+make install
+
+# Enable the execute bit to prevent a warning when using ldd to check library dependencies.
+chmod 755 /usr/lib/lib{bind9,isc{,cc,cfg},lwres,dns}.so.*.?.?
+
+cd doc
+install -d -m755 /usr/share/doc/${1}/{arm,draft,misc,rfc}
+install -m644 arm/*.html /usr/share/doc/${1}/arm
+install -m644 draft/*.txt /usr/share/doc/${1}/draft
+install -m644 rfc/* /usr/share/doc/${1}/rfc
+install -m644 misc/{dnssec,ipv6,migrat*,options,rfc-compliance,roadmap,sdb} \
+    /usr/share/doc/${1}/misc
+
+# Generation of a key for use in the named.conf and rdnc.conf files using the rndc-confgen command.
+BINDKEY=$(rndc-confgen -b 512 | grep -m 1 "secret" | cut -d '"' -f 2)
+
+cd /home/named
+mkdir -p dev etc/namedb/{pz,slave} var/run
+rm -f /home/named/dev/null
+mknod /home/named/dev/null c 1 3
+rm -f /home/named/dev/random
+mknod /home/named/dev/random c 1 8
+chmod 666 /home/named/dev/{null,random}
+cp /etc/localtime /home/named/etc
+
+# Creating the named.conf file from which named will read the location of zone files,
+# root name servers and secure DNS keys.
+cat > /home/named/etc/named.conf << "EOF"
+ options {
+     directory "/etc/namedb";
+    pid-file "/var/run/named.pid";
+    statistics-file "/var/run/named.stats";
+       
+ };
+ controls {
+     inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
+ };
+ key "rndc_key" {
+     algorithm hmac-md5;
+     secret "_BIND_KEY_";
+ };
+ zone "." {
+     type hint;
+     file "root.hints";
+ };
+ zone "0.0.127.in-addr.arpa" {
+     type master;
+     file "pz/127.0.0";
+ };
+
+// Bind 9 now logs by default through syslog (except debug).
+// These are the default logging rules.
+
+logging {
+     category default { default_syslog; default_debug; };
+     category unmatched { null; };
+
+  channel default_syslog {
+      syslog daemon;                      // send to syslog's daemon
+                                          // facility
+      severity info;                      // only send priority info
+                                          // and higher
+  };
+
+  channel default_debug {
+      file "named.run";                   // write to named.run in
+                                          // the working directory
+                                          // Note: stderr is used instead
+                                          // of "named.run"
+                                          // if the server is started
+                                          // with the '-f' option.
+      severity dynamic;                   // log at the server's
+                                          // current debug level
+  };
+
+  channel default_stderr {
+      stderr;                             // writes to stderr
+      severity info;                      // only send priority info
+                                          // and higher
+  };
+
+  channel null {
+     null;                                // toss anything sent to
+                                          // this channel
+  };
+};
+EOF
+sed -i -e "s!_BIND_KEY_!${BINDKEY}!g" /home/named/etc/named.conf
+
+cat > /etc/rndc.conf << "EOF"
+key rndc_key {
+algorithm "hmac-md5";
+    secret
+    "_BIND_KEY_";
+    };
+options {
+    default-server localhost;
+    default-key    rndc_key;
+};
+EOF
+sed -i -e "s!_BIND_KEY_!${BINDKEY}!g" /etc/rndc.conf
+
+cat > /home/named/etc/namedb/pz/127.0.0 << "EOF"
+$TTL 3D
+@      IN      SOA     ns.local.domain. hostmaster.local.domain. (
+                        1       ; Serial
+                        8H      ; Refresh
+                        2H      ; Retry
+                        4W      ; Expire
+                        1D)     ; Minimum TTL
+                NS      ns.local.domain.
+1               PTR     localhost.
+EOF
+
+cat > /home/named/etc/namedb/root.hints << "EOF"
+.                       6D  IN      NS      A.ROOT-SERVERS.NET.
+.                       6D  IN      NS      B.ROOT-SERVERS.NET.
+.                       6D  IN      NS      C.ROOT-SERVERS.NET.
+.                       6D  IN      NS      D.ROOT-SERVERS.NET.
+.                       6D  IN      NS      E.ROOT-SERVERS.NET.
+.                       6D  IN      NS      F.ROOT-SERVERS.NET.
+.                       6D  IN      NS      G.ROOT-SERVERS.NET.
+.                       6D  IN      NS      H.ROOT-SERVERS.NET.
+.                       6D  IN      NS      I.ROOT-SERVERS.NET.
+.                       6D  IN      NS      J.ROOT-SERVERS.NET.
+.                       6D  IN      NS      K.ROOT-SERVERS.NET.
+.                       6D  IN      NS      L.ROOT-SERVERS.NET.
+.                       6D  IN      NS      M.ROOT-SERVERS.NET.
+A.ROOT-SERVERS.NET.     6D  IN      A       198.41.0.4
+B.ROOT-SERVERS.NET.     6D  IN      A       192.228.79.201
+C.ROOT-SERVERS.NET.     6D  IN      A       192.33.4.12
+D.ROOT-SERVERS.NET.     6D  IN      A       128.8.10.90
+E.ROOT-SERVERS.NET.     6D  IN      A       192.203.230.10
+F.ROOT-SERVERS.NET.     6D  IN      A       192.5.5.241
+G.ROOT-SERVERS.NET.     6D  IN      A       192.112.36.4
+H.ROOT-SERVERS.NET.     6D  IN      A       128.63.2.53
+I.ROOT-SERVERS.NET.     6D  IN      A       192.36.148.17
+J.ROOT-SERVERS.NET.     6D  IN      A       192.58.128.30
+K.ROOT-SERVERS.NET.     6D  IN      A       193.0.14.129
+L.ROOT-SERVERS.NET.     6D  IN      A       198.32.64.12
+M.ROOT-SERVERS.NET.     6D  IN      A       202.12.27.33
+EOF
+
+chown -R named.named /home/named
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/named /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 named 25 65
+
+exit $?
diff --git a/stage3/pkg/ddclient b/stage3/pkg/ddclient
new file mode 100644 (file)
index 0000000..46de4af
--- /dev/null
@@ -0,0 +1,63 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+install ddclient /usr/sbin
+mkdir -p /etc/ddclient
+cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
+
+cat > /var/lib/dhcpc/dhcpcd.exe << "EOF"
+#!/bin/sh
+
+## Update the DNS server unless the IP address is a private address
+## that may be used as a internal LAN address. This may be true if
+## other interfaces are assigned private addresses from internal
+## DHCP server.
+
+# Arg #1: <HostInfoFilePath>
+# Arg #2: <up|down|new>
+# Arg #3: -d option
+
+source ${1}
+
+case "${IPADDR}" in
+    10.*)
+       ;;
+    
+    172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*)
+        ;;
+    
+    192.168.*)
+       ;;
+
+    *)
+       case "${2}" in
+           up)
+               logger -t dhcpcd "IP address remaining at ${IPADDR}"
+               ;;
+           down)
+               ;;
+           new)
+               logger -t dhcpcd "IP address changed to ${IPADDR}"
+               ddclient -daemon=0 -syslog -use=ip -ip=${IPADDR} >/dev/null 2>&1
+               ;;
+       esac
+       ;;
+esac
+
+exit $?
+EOF
+
+chmod 740 /var/lib/dhcpc/dhcpcd.exe
+
+exit $?
diff --git a/stage3/pkg/docbook-dsssl b/stage3/pkg/docbook-dsssl
new file mode 100644 (file)
index 0000000..835103a
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+
+install -m755 bin/collateindex.pl /usr/bin
+install -m644 bin/collateindex.pl.1 /usr/share/man/man1
+install -d -m755 /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}
+cp -R * /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}
+install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
+    /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}/catalog
+install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
+    /usr/share/sgml/docbook/dsssl-stylesheets-${DOCBOOK_DSSSL_VER}/common/catalog
+install-catalog --add /etc/sgml/sgml-docbook.cat \
+    /etc/sgml/dsssl-docbook-stylesheets.cat
+
+exit $?
diff --git a/stage3/pkg/docbook-utils b/stage3/pkg/docbook-utils
new file mode 100644 (file)
index 0000000..46636ec
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+sed -i 's:/html::' doc/HTML/Makefile.in
+./configure \
+    --prefix=/usr
+make
+make install
+
+for doctype in html ps dvi man pdf rtf tex texi txt; do
+    ln -sf docbook2$doctype /usr/bin/db2$doctype
+done
+
+exit $?
diff --git a/stage3/pkg/docbook-xml b/stage3/pkg/docbook-xml
new file mode 100644 (file)
index 0000000..98a1f6b
--- /dev/null
@@ -0,0 +1,112 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+install -d -m755 /usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}
+install -d -m755 /etc/xml
+chown -R root:root .
+cp -af docbook.cat *.dtd ent/ *.mod \
+    /usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}
+
+if [ ! -e /etc/xml/docbook ]; then
+    xmlcatalog --noout --create /etc/xml/docbook
+fi
+xmlcatalog --noout --add "public" \
+    "-//OASIS//DTD DocBook XML V${DOCBOOK_XML_VER}//EN" \
+    "http://www.oasis-open.org/docbook/xml/${DOCBOOK_XML_VER}/docbookx.dtd" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//DTD DocBook XML CALS Table Model V${DOCBOOK_XML_VER}//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/calstblx.dtd" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/soextblx.dtd" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//ELEMENTS DocBook XML Information Pool V${DOCBOOK_XML_VER}//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbpoolx.mod" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V${DOCBOOK_XML_VER}//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbhierx.mod" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//ELEMENTS DocBook XML HTML Tables V${DOCBOOK_XML_VER}//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/htmltblx.mod" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//ENTITIES DocBook XML Notations V${DOCBOOK_XML_VER}//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbnotnx.mod" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//ENTITIES DocBook XML Character Entities V${DOCBOOK_XML_VER}//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbcentx.mod" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "public" \
+    "-//OASIS//ENTITIES DocBook XML Additional General Entities V${DOCBOOK_XML_VER}//EN" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}/dbgenent.mod" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "rewriteSystem" \
+    "http://www.oasis-open.org/docbook/xml/${DOCBOOK_XML_VER}" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
+    /etc/xml/docbook
+xmlcatalog --noout --add "rewriteURI" \
+    "http://www.oasis-open.org/docbook/xml/${DOCBOOK_XML_VER}" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
+    /etc/xml/docbook
+
+if [ ! -e /etc/xml/catalog ]; then
+    xmlcatalog --noout --create /etc/xml/catalog
+fi
+xmlcatalog --noout --add "delegatePublic" \
+    "-//OASIS//ENTITIES DocBook XML" \
+    "file:///etc/xml/docbook" \
+    /etc/xml/catalog
+xmlcatalog --noout --add "delegatePublic" \
+    "-//OASIS//DTD DocBook XML" \
+    "file:///etc/xml/docbook" \
+    /etc/xml/catalog
+xmlcatalog --noout --add "delegateSystem" \
+    "http://www.oasis-open.org/docbook/" \
+    "file:///etc/xml/docbook" \
+    /etc/xml/catalog
+xmlcatalog --noout --add "delegateURI" \
+    "http://www.oasis-open.org/docbook/" \
+    "file:///etc/xml/docbook" \
+    /etc/xml/catalog
+
+for DTDVERSION in ${DOCBOOK_XML_VER_PREV}; do
+  xmlcatalog --noout --add "public" \
+    "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
+    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
+    /etc/xml/docbook
+  xmlcatalog --noout --add "rewriteSystem" \
+    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
+    /etc/xml/docbook
+  xmlcatalog --noout --add "rewriteURI" \
+    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
+    "file:///usr/share/xml/docbook/xml-dtd-${DOCBOOK_XML_VER}" \
+    /etc/xml/docbook
+  xmlcatalog --noout --add "delegateSystem" \
+    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
+    "file:///etc/xml/docbook" \
+    /etc/xml/catalog
+  xmlcatalog --noout --add "delegateURI" \
+    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
+    "file:///etc/xml/docbook" \
+    /etc/xml/catalog
+done
+
+exit $?
diff --git a/stage3/pkg/docbook-xsl b/stage3/pkg/docbook-xsl
new file mode 100644 (file)
index 0000000..1068189
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+install -v -m 755 -d /usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}
+chown -R root:root .
+cp -v -R VERSION common eclipse extensions fo highlighting html \
+         htmlhelp images javahelp lib manpages params profiling \
+         slides template tools website xhtml                    \
+    /usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}
+install -v -m644 -D README \
+    /usr/share/doc/docbook-xsl-${DOCBOOK_XSL_VERSION}/README.XSL &&
+install -v -m755    RELEASE-NOTES* NEWS* \
+    /usr/share/doc/docbook-xsl-${DOCBOOK_XSL_VERSION}
+
+if [ ! -f /etc/xml/catalog ]; then
+    mkdir -p /etc/xml
+    xmlcatalog --noout --create /etc/xml/catalog
+fi
+if [ ! -e /etc/xml/docbook ]; then
+    xmlcatalog --noout --create /etc/xml/docbook
+fi
+xmlcatalog --noout --add "rewriteSystem" \
+    "http://docbook.sourceforge.net/release/xsl/current" \
+    "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}" /etc/xml/catalog
+xmlcatalog --noout --add "rewriteURI" \
+    "http://docbook.sourceforge.net/release/xsl/current" \
+    "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}" /etc/xml/catalog
+xmlcatalog --noout --add "delegateSystem" \
+    "http://docbook.sourceforge.net/release/xsl/" \
+    "file:///etc/xml/docbook" /etc/xml/catalog
+xmlcatalog --noout --add "delegateURI" \
+    "http://docbook.sourceforge.net/release/xsl/" \
+    "file:///etc/xml/docbook" /etc/xml/catalog
+
+var_add_str "XML_CATALOG_FILES" /etc/profile \
+    "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}/catalog.xml /etc/xml/catalog"
+var_export  "XML_CATALOG_FILES" /etc/profile
+
+exit $?
diff --git a/stage3/pkg/dosfstools b/stage3/pkg/dosfstools
new file mode 100644 (file)
index 0000000..72498ae
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make
+make PREFIX=/usr SBINDIR=/sbin install
+ldconfig
+
+exit $?
diff --git a/stage3/pkg/fcron b/stage3/pkg/fcron
new file mode 100644 (file)
index 0000000..517298a
--- /dev/null
@@ -0,0 +1,87 @@
+#!/bin/bash
+
+hvconfig_pre()
+{
+    groupadd -f fcron
+    hv_useradd -c fcron -g fcron fcron
+
+    # Create a dummy sendmail executable to fool fcron
+    DUMMY_SM_PATH=/usr/sbin/sendmail
+    if [ ! -f ${DUMMY_SM_PATH} ]; then
+        DUMMY_SM=yes
+        touch ${DUMMY_SM_PATH}
+        chmod 755 ${DUMMY_SM_PATH}
+    fi
+
+    CONFIGURE_OPTS="${CONFIGURE_OPTS} \
+        --with-editor=/usr/bin/nano \
+        --with-boot-install=no \
+        --with-answer-all=no"
+}
+
+hvbuild_post()
+{
+    if [ "x${DUMMY_SM}" = "xyes" ]; then
+        rm ${DUMMY_SM_PATH}
+    fi
+
+    rm -f /etc/fcron.conf
+    mkdir -p /etc/fcron
+    mv -f /etc/fcron.allow /etc/fcron
+    mv -f /etc/fcron.deny /etc/fcron
+
+    cat > /etc/fcron/fcron.conf << "EOF"
+# fcron.conf - Configuration file for fcron(8) and fcrontab(1).
+#       See fcron.conf(5) for syntax and explanations.
+#
+# WARNING : this file must be owned by root:fcron and 640.
+#
+#
+# The spool directory where fcron stores its files
+fcrontabs  = /var/spool/fcron
+#
+# The locations of the pid file and the fifo file
+pidfile    = /var/run/fcron.pid
+fifofile   = /var/run/fcron.fifo
+#
+# allow/deny files to determine which users are allowed to use fcrontab
+fcronallow = /etc/fcron/fcron.allow
+fcrondeny  = /etc/fcron/fcron.deny
+#
+# Location of the programs used by fcron
+shell      = /bin/sh
+sendmail   = /usr/sbin/sendmail
+#
+# Location of the default editor for "fcrontab -e"
+editor     = /usr/bin/nano
+EOF
+    chmod 640 /etc/fcron/fcron.conf
+
+    cat > /etc/fcron/fcrontab << "EOF"
+# &options min hrs day-of-month month day-of-week command
+# Run rotatelogs every day at 00:05
+#&mail(false) 05 00 * * * /usr/local/bin/rotatelogs
+EOF
+    chmod 640 /etc/fcron/fcrontab
+    chown -R root.fcron /etc/fcron
+
+    install -d /var/spool/fcron
+    chown fcron.fcron /var/spool/fcron
+
+    cat > /etc/fcron/configure << "EOF"
+#!/bin/sh
+
+fcrontab -c /etc/fcron/fcron.conf /etc/fcron/fcrontab
+
+exit $?
+EOF
+    chmod 740 /etc/fcron/configure
+
+    # Executing fcron configure script.
+    /etc/fcron/configure
+
+    install -v -m740 ${SCRDIR}/bootscripts/fcron /etc/rc.d/init.d
+
+    # script-name start stop
+    bootscript_add_rcsysinit fcron 95 84
+}
diff --git a/stage3/pkg/fontconfig b/stage3/pkg/fontconfig
new file mode 100644 (file)
index 0000000..fd696a2
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+if [ -z "${HV_FONTS_PATH}" ]; then
+    echo "Missing HV_FONTS_PATH environment variable"
+    exit 1
+fi
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}-build
+../${PACKAGE}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --disable-docs \
+    --without-add-fonts \
+    --with-docdir=/usr/share/doc/${PACKAGE} \
+    ${CONFIGURE_OPTS}
+make
+make install
+ldconfig
+
+mkdir -v -p ${HV_FONTS_PATH}/{TrueType,Type1}
+mkdir -v -p /etc/fonts
+
+if [ -f /etc/fonts/local.conf ]; then
+    mv -v /etc/fonts/local.conf /etc/fonts/local.conf.old
+fi
+
+# Adding X and our local fonts directory to local configuration file
+cat > /etc/fonts/local.conf << "EOF"
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- /etc/fonts/local.conf file for local customizations -->
+<fontconfig>
+    <dir>_HV_FONTS_PATH_/TrueType</dir>
+    <dir>_HV_FONTS_PATH_/Type1</dir>
+</fontconfig>
+EOF
+
+sed -i -e "s!_HV_FONTS_PATH_!${HV_FONTS_PATH}!g" /etc/fonts/local.conf
+
+# Updating cache database.
+fc-cache -f
+
+exit $?
diff --git a/stage3/pkg/freetype b/stage3/pkg/freetype
new file mode 100644 (file)
index 0000000..7aa6483
--- /dev/null
@@ -0,0 +1,4 @@
+
+
+sed -i -r 's:.*(#.*SUBPIXEL.*) .*:\1:' \
+          include/freetype/config/ftoption.h &&
diff --git a/stage3/pkg/git b/stage3/pkg/git
new file mode 100644 (file)
index 0000000..5ae0711
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    ${CONFIGURE_OPTS}
+make
+make install
+ldconfig
+
+decompress_package ${GIT_MANPAGES} /usr/share/man
+
+exit $?
diff --git a/stage3/pkg/inetutils b/stage3/pkg/inetutils
new file mode 100644 (file)
index 0000000..76ce396
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --libexecdir=/usr/sbin \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --infodir=/usr/share/info \
+    --mandir=/usr/share/man \
+    --disable-dependancy-tracking \
+    --disable-syslogd \
+    --with-pam \
+    --with-wrap
+make
+make install
+mv /usr/bin/ping /bin
+
+# Creating /etc/inetd.conf
+touch /etc/inetd.conf
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/inetd /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 inetd 30 60
+
+exit $?
diff --git a/stage3/pkg/iptables b/stage3/pkg/iptables
new file mode 100644 (file)
index 0000000..e6f05fd
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+make PREFIX=/usr
+make PREFIX=/usr install
+
+# Firewall boot script
+install -v -m740 ${SCRDIR}/bootscripts/firewall /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 firewall 35 55
+
+exit $?
diff --git a/stage3/pkg/libmng b/stage3/pkg/libmng
new file mode 100644 (file)
index 0000000..f161e60
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+cp makefiles/makefile.linux Makefile
+
+case "${HVL_TARGET}" in
+    "x86_64")
+        # -fPIC is required for x86_64
+        sed -i -e "s!^CFLAGS=!CFLAGS=-fPIC !" Makefile
+        ;;
+esac
+
+make prefix=/usr install
+
+# The documentation files are not installed by the installation procedure,
+# so they are copied manually.
+install -v -m644 doc/man/*.3 /usr/share/man/man3
+install -v -m644 doc/man/*.5 /usr/share/man/man5
+install -v -m755 -d /usr/share/doc/${PACKAGE}
+install -v -m644 doc/*.{png,txt} /usr/share/doc/${PACKAGE}
+
+ldconfig
+
+exit $?
diff --git a/stage3/pkg/libopenjpeg b/stage3/pkg/libopenjpeg
new file mode 100644 (file)
index 0000000..07fce86
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make
+make install
+
+exit $?
diff --git a/stage3/pkg/mysql b/stage3/pkg/mysql
new file mode 100644 (file)
index 0000000..08d9f88
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+groupadd -f mysql
+hv_useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql
+
+cd ${LFS_TMP}/${1}
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --libexecdir=/usr/sbin \
+    --localstatedir=/srv/mysql \
+    --enable-thread-safe-client \
+    --enable-assembler \
+    --enable-local-infile \
+    --with-unix-socket-path=/var/run/mysql/mysql.sock \
+    --without-debug \
+    --without-readline \
+    --with-plugins=innobase,myisam \
+    --with-extra-charsets=all \
+    --with-ssl
+make
+make benchdir_root=/tmp/mysql-bench install
+rm -rf /tmp/mysql
+cd /usr/lib
+ln -v -sf mysql/libmysqlclient{,_r}.so* .
+
+# Copying default configuration file.
+install -v -m644 /usr/share/mysql/my-medium.cnf /etc/my.cnf
+sed -i -e s/^skip-federated/#skip-federated/ /etc/my.cnf
+
+mysql_install_db --user=mysql
+chgrp mysql /srv/mysql{,/test,/mysql}
+
+install -m750 -o mysql -g mysql -d /var/run/mysql
+
+# Further configuration requires that the MySQL server be running (see cis-postinstall)
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/mysql /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 mysql 45 45
+
+# Addition to /etc/ld.so.conf
+string_add "/usr/lib/mysql" /etc/ld.so.conf
+
+ldconfig
+
+exit $?
diff --git a/stage3/pkg/nano b/stage3/pkg/nano
new file mode 100644 (file)
index 0000000..d1c986f
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# On re-installe nano car il a ete installe au stage0 avec un path non-standard
+
+hvbuild_post()
+{
+    install -m644 ${SCRDIR}/resources/nanorc /etc
+}
diff --git a/stage3/pkg/nfs-utils b/stage3/pkg/nfs-utils
new file mode 100644 (file)
index 0000000..6a5eeda
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+# Problem with build directory
+cd ${LFS_TMP}/${1}
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --disable-nfsv4 \
+    --disable-gss
+make -j ${MAKEJOBS}
+make install
+
+cat > /etc/exports << "EOF"
+# NFS file systems export list
+#
+# An entry in /etc/exports will typically look like this: 
+#    directory machine1(option11,option12) machine2(option21,option22)
+
+#/root                 192.168.0.0/24(rw,sync,no_root_squash)
+#/srv/www/htdocs       192.168.0.0/24(rw,sync)
+EOF
+
+install -v -m740 ${SCRDIR}/bootscripts/nfs /etc/rc.d/init.d
+bootscript_add_rc3 nfs 15 74
+
+exit $?
diff --git a/stage3/pkg/openjade b/stage3/pkg/openjade
new file mode 100644 (file)
index 0000000..da5b36d
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+./configure \
+    --prefix=/usr \
+    --enable-http \
+    --disable-static \
+    --enable-default-catalog=/etc/sgml/catalog \
+    --enable-default-search-path=/usr/share/sgml \
+    --datadir=/usr/share/sgml/${1}
+make
+make install
+ln -sf openjade /usr/bin/jade
+ln -sf libogrove.so /usr/lib/libgrove.so
+ln -sf libospgrove.so /usr/lib/libspgrove.so
+ln -sf libostyle.so /usr/lib/libstyle.so
+install -m644 dsssl/catalog /usr/share/sgml/${1}/
+install -m644 dsssl/*.{dtd,dsl,sgm} /usr/share/sgml/${1}
+install-catalog --add /etc/sgml/${1}.cat \
+    /usr/share/sgml/${1}/catalog
+install-catalog --add /etc/sgml/sgml-docbook.cat \
+    /etc/sgml/${1}.cat
+
+var_add_path "SGML_BASE_DIR" /etc/profile "/usr/share/sgml"
+var_export   "SGML_BASE_DIR" /etc/profile
+
+var_add_path "SGML_CATALOGS_DIR" /etc/profile "/etc/sgml"
+var_export   "SGML_CATALOGS_DIR" /etc/profile
+
+exit $?
diff --git a/stage3/pkg/opensp b/stage3/pkg/opensp
new file mode 100644 (file)
index 0000000..577a8f7
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+CAT1="/etc/sgml/${PACKAGE}.cat"
+CAT2="/usr/share/sgml/${PACKAGE}/catalog"
+
+CAT3="/etc/sgml/sgml-docbook.cat"
+CAT4="/etc/sgml/${PACKAGE}.cat"
+
+# Remove the old catalog items prior to upgrading...
+# First test for presence of 'install-catalog' program
+INSTALL_CATALOG=/usr/bin/install-catalog
+if [ -x ${INSTALL_CATALOG} ]; then
+    if [ -f ${CAT1} ]; then
+        ${INSTALL_CATALOG} --remove ${CAT1} ${CAT2}
+    fi
+    if [ -f ${CAT4} ]; then
+        ${INSTALL_CATALOG} --remove ${CAT3} ${CAT4}
+    fi
+fi
+
+cd ${LFS_TMP}/${PACKAGE}
+sed -i 's:32,:253,:' lib/Syntax.cxx
+sed -i 's:LITLEN          240 :LITLEN          8092:' \
+    unicode/{gensyntax.pl,unicode.syn}
+./configure \
+    --prefix=/usr \
+    --disable-static \
+    --disable-doc-build \
+    --enable-default-catalog=/etc/sgml/catalog \
+    --enable-http \
+    --enable-default-search-path=/usr/share/sgml
+make pkgdatadir=/usr/share/sgml/${PACKAGE}
+make pkgdatadir=/usr/share/sgml/${PACKAGE} install
+ln -v -sf onsgmls /usr/bin/nsgmls
+ln -v -sf osgmlnorm /usr/bin/sgmlnorm
+ln -v -sf ospam /usr/bin/spam
+ln -v -sf ospcat /usr/bin/spcat
+ln -v -sf ospent /usr/bin/spent
+ln -v -sf osx /usr/bin/sx
+ln -v -sf osx /usr/bin/sgml2xml
+ln -v -sf libosp.so /usr/lib/libsp.so
+
+exit $?
diff --git a/stage3/pkg/openssh b/stage3/pkg/openssh
new file mode 100644 (file)
index 0000000..2e36ee0
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+install -v -m700 -d /var/lib/sshd
+chown -v root:sys /var/lib/sshd
+
+groupadd -f sshd
+hv_useradd -c sshd-privsep -d /var/lib/sshd -g sshd -s /bin/false sshd
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc/ssh \
+    --datadir=/usr/share/sshd \
+    --with-pam \
+    --libexecdir=/usr/lib/openssh \
+    --with-md5-passwords \
+    --with-privsep-path=/var/lib/sshd
+make -j ${MAKEJOBS}
+make -j ${MAKEJOBS} install
+
+cd ${LFS_TMP}/${1}
+install -v -m755 -d /usr/share/doc/${1}
+install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
+    /usr/share/doc/${1}
+
+# Disabling root logins
+sed -i -e "s!^#PermitRootLogin.*!PermitRootLogin no!g" /etc/ssh/sshd_config
+
+# Enabling X11 forwarding
+sed -i -e "s!^#X11Forwarding.*!X11Forwarding yes!g" /etc/ssh/sshd_config
+
+# Setting MaxAuthTries to 2
+sed -i -e "s!^[#]*MaxAuthTries.*!MaxAuthTries 3!g" /etc/ssh/sshd_config
+
+install -v -m740 ${SCRDIR}/bootscripts/sshd /etc/rc.d/init.d
+bootscript_add_rc3 sshd 25 70
+
+exit $?
diff --git a/stage3/pkg/openssl b/stage3/pkg/openssl
new file mode 100644 (file)
index 0000000..132dc4f
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+hvconfig_pre()
+{
+    cd ${LFS_TMP}/${PACKAGE}
+    decompress_package ${OPENSSL_ROOT_CERTS} ./
+}
+
+hvbuild()
+{
+    MAKEDEPPROG=gcc CC=gcc ./config \
+        --prefix=/usr \
+        --openssldir=/etc/ssl \
+        shared \
+        zlib-dynamic
+
+    MAKEDEPPROG=gcc CC=gcc make
+
+    # Install man pages in /usr/share/man instead of /etc/ssl/man
+    make MANDIR=/usr/share/man install
+    install -v -d -m755 /usr/share/doc/${PACKAGE}
+    cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
+        /usr/share/doc/${PACKAGE}
+
+    cp -rv certs /etc/ssl
+
+    # Create a single file that contains all of the installed certificates:
+    for pem in /etc/ssl/certs/*.pem; do
+        cat $pem
+        echo ""
+    done > /etc/ssl/ca-bundle.crt
+}
diff --git a/stage3/pkg/pciutils b/stage3/pkg/pciutils
new file mode 100644 (file)
index 0000000..a63b8ac
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+hvbuild()
+{
+    cd ${LFS_TMP}/${PACKAGE}
+
+    # ZLIB=no: Prevents compression of the pci.ids file which is needed by HAL.
+    make PREFIX=/usr ZLIB=no
+
+    make PREFIX=/usr install
+
+    # Some packages require the PCI static library:
+    make PREFIX=/usr install-lib
+}
diff --git a/stage3/pkg/portmap b/stage3/pkg/portmap
new file mode 100644 (file)
index 0000000..6c45582
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+make -j ${MAKEJOBS}
+make install
+
+install -v -m740 ${SCRDIR}/bootscripts/portmap /etc/rc.d/init.d
+bootscript_add_rc3 portmap 10 75
+
+exit $?
diff --git a/stage3/pkg/reiserfsprogs b/stage3/pkg/reiserfsprogs
new file mode 100644 (file)
index 0000000..36c50d2
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+hvconfig_pre()
+{
+    CONFIGURE_OPTS="\
+        ${CONFIGURE_OPTS} \
+        --sbindir=/sbin"
+}
+
+hvbuild_post()
+{
+    ln -sf reiserfsck /sbin/fsck.reiserfs
+    ln -sf mkreiserfs /sbin/mkfs.reiserfs
+}
diff --git a/stage3/pkg/sgml-common b/stage3/pkg/sgml-common
new file mode 100644 (file)
index 0000000..91e66a5
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+CAT1="/etc/sgml/sgml-ent.cat"
+CAT2="/usr/share/sgml/sgml-iso-entities-8879.1986/catalog"
+
+CAT3="/etc/sgml/sgml-docbook.cat"
+CAT4="/etc/sgml/sgml-ent.cat"
+
+# Remove the old catalog items prior to upgrading...
+# First test for presence of 'install-catalog' program
+INSTALL_CATALOG=/usr/bin/install-catalog
+if [ -x ${INSTALL_CATALOG} ]; then
+    if [ -f ${CAT2} ]; then
+        ${INSTALL_CATALOG} --remove ${CAT1} ${CAT2}
+    fi
+    if [ -f ${CAT4} ]; then
+        ${INSTALL_CATALOG} --remove ${CAT3} ${CAT4}
+    fi
+fi
+
+cd ${LFS_TMP}/${PACKAGE}
+autoreconf -f -i
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    ${CONFIGURE_OPTS}
+make
+make install
+
+${INSTALL_CATALOG} --add ${CAT1} ${CAT2}
+${INSTALL_CATALOG} --add ${CAT3} ${CAT4}
+
+exit $?
diff --git a/stage3/pkg/sgml-dtd3 b/stage3/pkg/sgml-dtd3
new file mode 100644 (file)
index 0000000..7a5c2a6
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+sed -i -e '/ISO 8879/d' \
+    -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
+    docbook.cat
+install -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}
+chown -R root:root .
+install docbook.cat /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog
+cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}
+install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \
+    /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog
+install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD3_VER}.cat \
+    /etc/sgml/sgml-docbook.cat
+
+# Using only the most current 3.x version of sgml-dtd requires the following:
+cat >> /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD3_VER}/catalog << "EOF"
+  -- Begin Single Major Version catalog changes --
+
+PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
+
+  -- End Single Major Version catalog changes --
+EOF
+
+exit $?
diff --git a/stage3/pkg/sgml-dtd4 b/stage3/pkg/sgml-dtd4
new file mode 100644 (file)
index 0000000..192af58
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+sed -i -e '/ISO 8879/d' \
+    -e '/gml/d' docbook.cat
+install -d /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}
+chown -R root:root .
+install docbook.cat /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog
+cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}
+install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD4_VER}.cat \
+    /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog
+install-catalog --add /etc/sgml/sgml-docbook-dtd-${SGML_DTD4_VER}.cat \
+    /etc/sgml/sgml-docbook.cat
+
+# Using only the most current 4.x version of sgml-dtd requires the following:
+cat >> /usr/share/sgml/docbook/sgml-dtd-${SGML_DTD4_VER}/catalog << "EOF"
+  -- Begin Single Major Version catalog changes --
+
+PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
+PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
+PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
+PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
+
+  -- End Single Major Version catalog changes --
+EOF
+
+exit $?
diff --git a/stage3/pkg/sgml-spm b/stage3/pkg/sgml-spm
new file mode 100644 (file)
index 0000000..029344b
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+sed -i -e "s@/usr/local/bin@/usr/bin@" \
+    -e "s@/usr/local/lib/perl5@/usr/lib/perl5/site_perl/$(get_pkg_ver ${PERL})@" \
+    -e "s@/usr/local/lib/www/docs@/usr/share/doc/perl5@" \
+    Makefile
+make install
+ldconfig
+
+exit $?
diff --git a/stage3/pkg/subversion b/stage3/pkg/subversion
new file mode 100644 (file)
index 0000000..8a6e0aa
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --with-apxs=/usr/sbin/apxs \
+    --without-berkeley-db
+make
+make install
+
+cd ${LFS_TMP}/${1}
+rm doc/doxygen.conf
+find doc -type d -exec chmod 755 {} \;
+find doc -type f -exec chmod 644 {} \;
+install -v -m755 -d /usr/share/doc/${1}
+cp -v -R doc/* /usr/share/doc/${1}
+
+# Creating repositories directory
+mkdir -p /srv/svn
+chown ${APACHE_USER}:${APACHE_USER} /srv/svn
+
+ldconfig
+
+exit $?
diff --git a/stage3/pkg/sudo b/stage3/pkg/sudo
new file mode 100644 (file)
index 0000000..dc2a573
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc
+make -j ${MAKEJOBS}
+make install
+
+cat > /etc/sudoers << EOF
+# User alias specification
+User_Alias  ADMIN = _REGUSER_
+
+# Allow people in group ADMIN to run all commands without a password
+ADMIN       ALL = NOPASSWD: ALL
+EOF
+
+sed -i -e "s!_REGUSER_!${REGUSER}!g" /etc/sudoers
+chmod 600 /etc/sudoers
+
+exit $?
diff --git a/stage3/pkg/tcl b/stage3/pkg/tcl
new file mode 100644 (file)
index 0000000..5be0be5
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+cd unix
+./configure --prefix=/usr \
+            --enable-threads \
+            --mandir=/usr/share/man
+make
+
+# removes the references to the build directory and replaces them with saner
+# system-wide locations:
+sed -i \
+    -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
+    -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
+    -e "/SEARCH/s/=.*/=''/" \
+    tclConfig.sh
+
+make install
+make install-private-headers
+
+PKG_VER_BASE=$(echo ${PACKAGE} | sed "s!^tcl\([0-9]*\.[0-9]*\).*!\1!g")
+
+ln -svfT tclsh${PKG_VER_BASE} /usr/bin/tclsh
+
+exit $?
diff --git a/stage3/pkg/tcp-wrappers b/stage3/pkg/tcp-wrappers
new file mode 100644 (file)
index 0000000..5a0adeb
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
+make -j ${MAKEJOBS} REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
+make install
+
+# Creating /etc/hosts.allow
+cat > /etc/hosts.allow << "EOF"
+ALL : LOCAL 192.168.0.0/255.255.255.0 : RFC931
+EOF
+
+# Creating /etc/hosts.deny
+cat > /etc/hosts.deny << "EOF"
+ALL: ALL: RFC931
+EOF
+
+exit $?
diff --git a/stage3/pkg/unrar b/stage3/pkg/unrar
new file mode 100644 (file)
index 0000000..6c007e3
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make -f makefile.unix
+install -v -m755 unrar /usr/bin
+
+exit $?
diff --git a/stage3/pkg/unzip b/stage3/pkg/unzip
new file mode 100644 (file)
index 0000000..24295b2
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+case "${HVL_TARGET}" in
+    "x86_64")
+        UNZIP_TARGET=linux_noasm
+        ;;
+    *)
+        UNZIP_TARGET=linux
+esac
+
+cd ${LFS_TMP}/${PACKAGE}
+make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 ${UNZIP_TARGET}
+make prefix=/usr install
+ldconfig
+
+exit $?
diff --git a/stage3/pkg/usbutils b/stage3/pkg/usbutils
new file mode 100644 (file)
index 0000000..c20f9b0
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+hvconfig_pre()
+{
+    CONFIGURE_OPTS="\
+        ${CONFIGURE_OPTS} \
+        --disable-zlib"
+}
+
+hvbuild_post()
+{
+    install -v -m755 update-usbids.sh /usr/sbin/update-usbids
+
+    # Addition to /etc/fcron/fcrontab
+    #string_add "# Run update-usbids every day" /etc/fcron/fcrontab
+    #string_add "&mail(false) * 3 * * * /usr/sbin/update-usbids" /etc/fcron/fcrontab
+
+    # Update database
+    /usr/sbin/update-usbids
+}
diff --git a/stage3/pkg/xmltoman b/stage3/pkg/xmltoman
new file mode 100644 (file)
index 0000000..2127de5
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make PREFIX=/usr
+make install PREFIX=/usr
+
+exit $?
diff --git a/stage3/pkg/zip b/stage3/pkg/zip
new file mode 100644 (file)
index 0000000..f9fe719
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+sed -i -e 's@$(INSTALL) man/zip.1@$(INSTALL_PROGRAM) man/zip.1@' \
+    unix/Makefile
+make prefix=/usr -f unix/Makefile generic_gcc
+make prefix=/usr -f unix/Makefile install
+ldconfig
+
+exit $?
diff --git a/stage3/resources/mail-files.sh b/stage3/resources/mail-files.sh
deleted file mode 100755 (executable)
index b910580..0000000
+++ /dev/null
@@ -1,307 +0,0 @@
-#!/bin/sh
-
-# script to email files as attachments.
-# ------------------------------------
-
-# Additional documentation for this script, including a brief introdcution 
-# to MIME can be found at:  http://home.clara.net/dwotton/unix/mail_files.htm
-
-# Written: Dave Wotton, July 1998, (Cambridge UK)
-#          This script comes with no warranty or support. You are
-#          free to modify it as you wish, but please retain an
-#          acknowledgement of my original authorship.
-
-# Amended: Dave Wotton, 6/3/99
-#          -t flag now optional. subject also optional
-#
-# Amended: Dave Wotton, 3/8/00
-#          added -b and -u  options. By default a file-list which is not
-#          preceded by a -n, -b, or -u flag is now NOT encoded (the previous
-#          default was to base64 encode it.).
-#
-# Amended: Dave Wotton, 10/10/00
-#          added a -c (cc:) option.
-#          Added a tty -s test to prevent the prompt to enter the text body
-#          being displayed when not connected to a tty. (The text body is
-#          still required though. /dev/null will suffice.)
-#
-# Amended: Dave Wotton, 24/2/01
-#          Now uses perl to perform the base64 encoding, as it comes as
-#          standard on most modern Unixes. (You need the perl MIME package
-#          though, which I believe is standard. )
-
-# Amended: Dave Wotton, 22/09/01
-#          Now creates a "To:" header and uses the sendmail -t flag to
-#          duplicate this as the envelope recipients, rather than using the
-#          user supplied list of addresses simply as envelope recipients.
-#          This confused some mail clients, specifically Lotus Notes.
-
-# Amended: Dave Wotton, 30/09/01
-#          Now initialises the main variables, so that previously set
-#          environment variable values (eg. $CC) aren't used instead.
-#          Enable multiple occurrences of the -t and -c flags. Thanks to
-#          Jason Judge for these suggestions.
-
-
-# Usage:   mail_files [-t] mailid [ -c mailid ] [ -s subject ] [ -f mailid ] 
-#          [-n file_list] [-u file_list] [-b file_list] file_list
-#
-#    -f      : The mailid of the sender ( defaults to your userid )
-#              Only userids that have been defined as "trusted" in the sendmail
-#              config file can make use of the -f option. For non-trusted users
-#              any value specified by this parameter will be ignored by 
-#              sendmail.
-#    -t      : The mailid of the recipient. Mandatory, no default
-#              multiple mailids can be specified, separated by commas.
-#    -c      : The mailid of any carbon-copy recipients. Optional.
-#              multiple mailids can be specified, separated by commas.
-#    -s      : The subject string. Optional, default = "Not specified".
-#              Enclose in quotes.
-#    -n      : no-encode: indicates a list of files which are NOT to be base64
-#              or uuencode encoded. Multiple files may be enclosed in double
-#              quotes. Usual wildcard notation can be used. This option is
-#              for completeness and can be omitted because the default action 
-#              is not to encode the file-list.
-#    -b      : base64 encoding: indicates a list of files which are to be 
-#              base64 encoded. Multiple files may be enclosed in double quotes.
-#              Usual wildcard notation can be used.
-#    -u      : uuencode encoding: indicates a list of files which are to be 
-#              uuencode encoded. Multiple files may be enclosed in double 
-#              quotes. Usual wildcard notation can be used.
-#  file_list : The list of files to send as attachments with no-encoding
-#              (same as -n option, but the file list does not need to be
-#              enclosed in quotes if more than one file specified). 
-#              Usual wildcard notation can be used.
-
-# The program will also prompt for text to be supplied on standard input
-# as the main text of the message.
-
-# eg.
-#      1) mail_files Dave.Wotton -b file9.gif t*.htm < /dev/null
-#
-#         email file9.gif as a base64 encoded attachment and the t*.htm
-#         files unencoded.
-#
-#      2) mail_files Dave.Wotton -s "my test" -b "file1.gif file2.gif" \
-#                    < /dev/null
-#
-#         email file1.gif and file2.gif as base64 encoded attachments.
-
-# The script makes use of perl's MIME package to perform the base-64 
-# encoding/decoding. 
-
-# Note that files destined for Windows environments should have a name of
-# the form aaaa.bbb where aaaa is up to 8 characters long, and bbb is a
-# 3 character sufix. The suffix determines which program is used to
-# display/process the data at the remote end.
-
-# Simple text files can be emailed unencoded. Binary files, or text files
-# with long lines ( ie > 1000 chars ) should use the  base64 or uuencode 
-# encoding procedures. Base64 is preferred because it is more universally
-# supported. In particular, most PC mail-clients can automatically decode
-# base64 encoded attachments. Note that simple text files with short lines 
-# which are destined for PC environments should not be base64 encoded.
-# This is because PCs use a different line-break character to Unix.
-# If the text is base64 encoded, the line-breaks are not converted
-# automatically and so the data arrives at the remote end without
-# line-breaks.
-
-# set up a 'usage' routine
-# ------------------------
-
-usage()
-{
-  [ "$1" ] && ( echo $* ; echo "" )
-
-  cat <<!
-  Usage:   mail_files [-t] mailid [ -c mailid ] [ -s subject ] [ -f mailid ] 
-           [-n file_list] [-u file_list] [-b file_list] file_list
-!
-  exit 4
-}
-
-# Initialise main variables ...
-# -------------------------
-
-FROM=$LOGNAME
-SUBJ=${SUBJ:-"Not specified"}
-
-TO="" ; CC="" ; SUBJ="" ; NOENC="" ; BASE64="" ; UUE=""
-
-# First parse the command line options. Using getopts means the parameters
-# can be supplied in any order. But first we handle the first parameter,
-# which may be a recipient, without a -t flag...
-
-case "$1" in
-   -* ) : ;;                   # ignore it, let getopts handle flags
-    * ) TO=$1 ; shift ;;
-esac
-
-while getopts f:s:t:c:n:b:u: OPT
-do
-     case $OPT in
-         "f" ) FROM=$OPTARG ;;
-         "t" ) TO="$TO,$OPTARG" ;;
-         "c" ) CC="$CC,$OPTARG" ;;
-         "s" ) SUBJ=$OPTARG ;;
-         "n" ) NOENC="$NOENC $OPTARG" ;;
-         "b" ) BASE64="$BASE64 $OPTARG" ;;
-         "u" ) UUE="$UUE $OPTARG" ;;
-          *  ) usage ;;
-     esac
-done
-
-shift `expr $OPTIND - 1`
-
-if [ "$TO" = "" ]
-then
-    usage "An addressee must be specified"
-fi
-
-# All remaining parameters are files not requiring encoding ...
-# ---------------------------------------------------------
-
-# Build up $FILES as the list of non-encoded files. Use sed to remove
-# any leading space from the variable.
-
-FILES=`echo $NOENC $*|sed 's/^ //'`
-
-if [ "$BASE64" = "" -a "$FILES" = "" -a "$UUE" = "" ]
-then
-    usage "At least one file must be specified"
-fi
-
-# Remove leading commas from TO, CC  ...
-# ---------------------------------
-
-TO=`echo $TO | sed 's/^,//'`
-CC=`echo $CC | sed 's/^,//'`
-
-# Validate that the files exist ...
-# -----------------------------
-
-for F in $FILES $BASE64 $UUE
-do
-   if [ ! -r $F ]
-   then
-      echo "Error: File $F does not exist / is not readable."
-      echo "Exiting. ( Mail not sent )."
-      exit
-   fi
-done
-
-tty -s && echo "Enter text of main message ( finish with CTRL-D ) ..."
-
-# Now do the work ...
-# ---------------
-
-# The generated mail message is output onto standard out, which is then
-# piped in to sendmail.
-
-(
-cat <<!
-From: $FROM
-Subject: $SUBJ
-To: $TO
-!
-
-[ "$CC" ] && echo "Cc: $CC"
-
-cat <<!
-Mime-Version: 1.0
-Content-Type: multipart/mixed; boundary="DMW.Boundary.605592468"
-
-This is a Mime message, which your mail program may not understand. Parts
-of the message will appear as text. If the remainder appears as random
-characters in the message body, instead of as attachments, then you'll
-have to extract these parts and decode them manually.
-
---DMW.Boundary.605592468
-Content-Type: text/plain; name="message.txt"; charset=US-ASCII
-Content-Disposition: inline; filename="message.txt"
-Content-Transfer-Encoding: 7bit
-
-!
-
-# Read the standard input as the main text of the message ...
-# -------------------------------------------------------
-
-cat - 
-
-# Now process the non-encrypted attachments ...
-# -----------------------------------------
-
-if [ "$FILES" ]
-then
-    for F in $FILES
-    do
-
-       BASE=`basename $F`
-
-       echo --DMW.Boundary.605592468
-       echo Content-Type: application/octet-stream\; name=\"$BASE\"
-       echo Content-Disposition: attachment\; filename=\"$BASE\"
-       echo Content-Transfer-Encoding: 7bit
-       echo
-
-       cat $F
-
-    done
-fi
-
-# Now process the base64 encrypted attachments ...
-# --------------------------------------------
-
-if [ "$BASE64" ]
-then
-    for F in $BASE64
-    do
-
-       BASE=`basename $F`
-
-       echo --DMW.Boundary.605592468
-       echo Content-Type: application/octet-stream\; name=\"$BASE\"
-       echo Content-Disposition: attachment\; filename=\"$BASE\"
-       echo Content-Transfer-Encoding: base64
-       echo
-
-       perl -e '
-       use MIME::Base64 qw(encode_base64);
-       local($/) = undef;
-       print encode_base64(<STDIN>);' < $F
-
-    done
-fi
-
-# Now process the uuencode encrypted attachments ...
-# ----------------------------------------------
-
-# Sorry, this bit is untested - I haven't got a mail-client which can
-# handle uuencoded MIME messages automatically, so can't test if the
-# 'Content-Transfer-Encoding: uuencode' line is correct and whether I
-# need the uuencode "begin" and "end" lines.
-
-if [ "$UUE" ]
-then
-    for F in $UUE
-    do
-
-       BASE=`basename $F`
-
-       echo --DMW.Boundary.605592468
-       echo Content-Type: application/octet-stream\; name=\"$BASE\"
-       echo Content-Disposition: attachment\; filename=\"$BASE\"
-       echo Content-Transfer-Encoding: uuencode
-       echo
-
-       uuencode < $F xxx 
-
-    done
-fi
-
-# append the final boundary line ...
-
-echo --DMW.Boundary.605592468--
-
-) | /usr/sbin/sendmail -t -r ${FROM}
-#> test.txt
index b2f4e7b..029346a 100644 (file)
@@ -1,6 +1,5 @@
 set autoindent
 set const
-set fill 72
 set historylog
 set multibuffer
 set regexp
diff --git a/stage3/stage.def b/stage3/stage.def
new file mode 100644 (file)
index 0000000..cf17b3f
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+export LFS_STAGE=stage3
diff --git a/stage3/stage3-additions b/stage3/stage3-additions
deleted file mode 100755 (executable)
index abc4847..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-export LFS_PKG_DIR="$(dirname $(pwd))/packages/stage3"
-export LFS_LOG_DIR=/var/log/hvlinux-install/stage3
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-export LFS_TMP="/tmp"
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-if [ "x${USER}" != "xroot" ]; then
-    echo "You must be the superuser to install hvlinux."
-    exit 1
-fi
-
-init_log_file
-
-# Scripts directory
-export SCRDIR=$(pwd)
-
-ipkg_ac   ${CPIO}
-
-exit $?
diff --git a/stage3/stage3-install b/stage3/stage3-install
deleted file mode 100755 (executable)
index 4f7a4c5..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/bin/sh
-
-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
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-if [ "x${USER}" != "xroot" ]; then
-    echo "You must be the superuser to install hvlinux."
-    exit 1
-fi
-
-init_log_file
-
-# Scripts directory
-export SCRDIR=$(pwd)
-
-ipkg_cust  ${NANO} cis-nano --enable-color --enable-multibuffer
-ipkg_ac    ${WHICH}
-ipkg_cust  ${PCIUTILS} cis-pciutils
-ipkg_cust  ${LIBUSB} cis-libusb
-ipkg_ac    ${LIBUSB_COMPAT}
-ipkg_cust  ${USBUTILS} cis-usbutils
-ipkg_cust  ${REISERFSPROGS} cis-reiserfsprogs
-ipkg_cust  ${NET_TOOLS} cis-net-tools
-ipkg_cust  ${DHCP} cis-dhcp
-ipkg_ac_nb ${POPT}
-ipkg_cust  ${PAM} cis-pam
-ipkg_cust  ${OPENSSL} cis-openssl
-ipkg_cust  ${OPENSSH} cis-openssh
-ipkg_ac    ${EXPAT}
-ipkg_ac    ${APR} --with-installbuilddir=/usr/lib/apr-1/build
-ipkg_ac    ${APR_UTIL} --with-apr=/usr/bin/apr-1-config
-ipkg_ac    ${NEON} --with-ssl
-ipkg_cust  ${TCL} cis-tcl
-ipkg_ac    ${SQLITE}
-ipkg_ac    ${SUBVERSION}
-ipkg_cust  ${SUDO} cis-sudo
-ipkg_ac    ${STRACE}
-ipkg_ac    ${PCRE} \
-    --docdir=/usr/share/doc/pcre \
-    --enable-utf8 \
-    --enable-unicode-properties \
-    --enable-pcregrep-libz \
-    --enable-pcregrep-libbz2
-
-# Networking
-ipkg_ac    ${WGET}
-ipkg_cust  ${TCPWRAPPERS} cis-tcp-wrappers
-ipkg_cust  ${PORTMAP} cis-portmap
-ipkg_cust  ${NFS_UTILS}   cis-nfs-utils
-ipkg_cust  ${INETUTILS} cis-inetutils
-if [ "x${USE_DYNAMIC_DNS}" = "xyes" ]; then
-    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
-ipkg_ac    ${CURL}
-ipkg_ac    ${RSYNC}
-
-if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_cust ${MYSQL} cis-mysql
-fi
-
-# Archiving
-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    ${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
-
-# Perl modules
-ipkg_pm    ${PERL_MOD_PDL}
-ipkg_pm    ${PERL_MOD_XML_WRITER}
-ipkg_pm    ${PERL_MOD_XML_PARSER}
-
-ipkg_ac    ${INTLTOOL}
-ipkg_ac    ${PYTHON} "--enable-shared"
-
-# DocBook
-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  ${SGML_SPM}      cis-sgml-spm # Perl module
-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  ${XMLTOMAN}      cis-xmltoman
-ipkg_ac    ${XMLTO}
-
-# Graphic libraries
-ipkg_ac    ${LIBJPEG} "--enable-static --enable-shared"
-ipkg_cust  ${LIBOPENJPEG} cis-libopenjpeg
-ipkg_ac    ${LIBPNG}
-ipkg_ac    ${LIBART}
-ipkg_ac    ${LIBEXIF}
-ipkg_ac    ${FRIBIDI}
-ipkg_ac_nb ${HICOLOR_ICON_THEME}
-ipkg_ac    ${TIFF}
-ipkg_ac    ${GIFLIB}
-ipkg_ac_nb ${LCMS}
-ipkg_cust  ${LIBMNG}   cis-libmng
-
-ipkg_ac   ${FREETYPE}
-ipkg_cust ${FONTCONFIG} cis-fontconfig
-
-echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h"
-
-exit $?
diff --git a/stage5/bootscripts/alsa b/stage5/bootscripts/alsa
new file mode 100755 (executable)
index 0000000..c0de296
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# alsa
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+alsactl=/usr/sbin/alsactl
+
+# See how we were called.
+case "$1" in
+    start)
+       cmd_run_log_box "Loading sound settings" ${alsactl} restore
+       ;;
+
+    stop)
+       cmd_run_log_box "Saving sound settings" ${alsactl} store
+       ;;
+    
+    *)
+        echo "Usage: $0 {start|stop}"
+        exit ${EXIT_CODE_FAILURE}
+        ;;
+    
+esac
+
+exit 0
diff --git a/stage5/bootscripts/apache b/stage5/bootscripts/apache
new file mode 100755 (executable)
index 0000000..f2d0522
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# apache
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+APACHECTL=/usr/sbin/apachectl
+
+# Check that the program is present and executable.
+if [ ! -x ${APACHECTL} ]; then
+    log_message "*** ERROR: ${APACHECTL} program not found."
+    exit ${EXIT_CODE_FAILURE}
+fi
+
+case "$1" in
+    start)
+       cmd_run_log_box "Starting Apache server" ${APACHECTL} -k start
+       ;;
+    
+    stop)
+       cmd_run_log_box "Stopping Apache server" ${APACHECTL} -k stop
+       ;;
+    
+    restart)
+       cmd_run_log_box "Re-starting Apache server" ${APACHECTL} -k restart
+       ;;
+
+    status)
+       statusproc httpd
+       ;;
+
+    *)
+       echo "Usage: $0 {start|stop|restart|status}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+    
+esac
+
+exit $?
diff --git a/stage5/bootscripts/clamav b/stage5/bootscripts/clamav
new file mode 100755 (executable)
index 0000000..5ffe846
--- /dev/null
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# clamav
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+SOCKET_DIR="/var/run/clamav"
+
+start()
+{
+    if statusproc clamd | grep "not running" 1> /dev/null 2>&1; then
+       # Not taking any chances, removing left-over files
+       rm -f ${SOCKET_DIR}/clamd.{sock,pid} || return 1
+    fi
+    loadproc /usr/sbin/clamd || return 1
+
+    sleep 1
+
+    if statusproc clamav-milter | grep "not running" 1> /dev/null 2>&1; then
+       # Not taking any chances, removing left-over files
+       rm -f ${SOCKET_DIR}/clmilter.sock || return 1
+    fi
+    # Option "--postmaster-only" is to send warnings only to postmaster.
+    loadproc /usr/sbin/clamav-milter --local --outgoing --headers --postmaster-only ${SOCKET_DIR}/clmilter.sock
+
+    return $?
+}
+
+stop()
+{
+    killproc clamd &&
+    killproc clamav-milter
+
+    return $?
+}
+
+log_script_name "$0 $*"
+
+case "$1" in
+    start)
+       cmd_run_log_box_warn "Clam AntiVirus start" start
+        ;;
+
+    stop)
+       cmd_run_log_box_warn "Clam AntiVirus stop" stop
+        ;;
+                
+    status)
+        statusproc clamd
+        statusproc clamav-milter
+        ;;
+    
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+    
+    *)
+       echo "Usage: $0 {restart|start|status|stop}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/mailman b/stage5/bootscripts/mailman
new file mode 100755 (executable)
index 0000000..89aa0fc
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# mailman
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+PYTHON=/usr/bin/python
+MAILMANHOME=/usr/lib/mailman
+MAILMANCTL=${MAILMANHOME}/bin/mailmanctl
+
+case "$1" in
+    start)
+       # rm -f $MAILMANHOME/locks/*
+       cmd_run_log_box "Starting Mailman daemon" ${PYTHON} ${MAILMANCTL} -s -q start
+        ;;
+    
+    stop)
+       cmd_run_log_box "Stopping Mailman daemon" ${PYTHON} ${MAILMANCTL} -q stop
+       ;;
+    
+    restart)
+       ${PYTHON} ${MAILMANCTL} -q restart
+        ;;
+
+    status)
+       statusproc mailman
+        ;;
+    
+    *)
+       echo "Usage: $0 {start|stop|restart|status}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/milter-greylist b/stage5/bootscripts/milter-greylist
new file mode 100755 (executable)
index 0000000..a771554
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+# milter-greylist
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+prog="Milter-Greylist"
+
+pidfile="/var/run/milter-greylist/milter-greylist.pid"
+socket="/var/run/milter-greylist/milter-greylist.sock"
+OPTIONS="-P $pidfile -p $socket -v"
+
+if [ -f /etc/sysconfig/milter-greylist ]; then
+    . /etc/sysconfig/milter-greylist
+fi
+
+case "$1" in
+    start)
+       cmd_run_log_box_warn "Starting $prog" loadproc /usr/bin/milter-greylist ${OPTIONS}
+        touch /var/lock/subsys/milter-greylist
+        ;;
+
+    stop)
+       cmd_run_log_box_warn "Stopping $prog" killproc /usr/bin/milter-greylist
+        rm -f /var/lock/subsys/milter-greylist
+        ;;
+
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+    
+    status)
+        statusproc milter-greylist
+        ;;
+    
+    *)
+       echo "Usage: $0 {start|stop|restart|status}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/milter-spf b/stage5/bootscripts/milter-spf
new file mode 100755 (executable)
index 0000000..b26502b
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# Milter-SPF
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+prog="Milter-SPF"
+socket="/var/run/smfs/smf-spf.sock"
+
+case "$1" in
+    start)
+       cmd_run_log_box_warn "Starting $prog" loadproc /usr/sbin/smf-spf
+        ;;
+
+    stop)
+       cmd_run_log_box_warn "Stopping $prog" killproc /usr/sbin/smf-spf
+        ;;
+
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+    
+    status)
+        statusproc smf-spf
+        ;;
+    
+    *)
+       echo "Usage: $0 {start|stop|restart|status}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/openldap b/stage5/bootscripts/openldap
new file mode 100755 (executable)
index 0000000..2896184
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# openldap
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+piddir=/srv/ldap/run
+
+case "$1" in
+    start)
+       cmd_run_log_box_warn "Starting LDAP Server" loadproc slapd
+        ;;
+    
+    stop)
+       cmd_run_log_box_warn "Stopping LDAP Server" killproc_path slapd ${piddir}
+        ;;
+                
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+
+    status)
+       statusproc_path slapd ${piddir}
+        ;;
+    
+    *)
+       echo "Usage: $0 {start|stop|restart|status}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/pulseaudio b/stage5/bootscripts/pulseaudio
new file mode 100755 (executable)
index 0000000..273b6a5
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# fcron
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+
+PULSE_SERVER="tcp:via:16002"
+ESPEAKER="via:16001"
+
+# See how we were called.
+case "$1" in
+    start)
+        cmd_run_log_box_warn "PulseAudio sound server start" loadproc pulseaudio
+        ;;
+    
+    stop)
+       cmd_run_log_box_warn "PulseAudio sound server stop" killproc pulseaudio
+        ;;
+    
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+    
+    status)
+        statusproc pulseaudio
+        ;;
+    
+    *)
+        echo "Usage: $0 {start|stop|restart|status}"
+        exit ${EXIT_CODE_FAILURE}
+        ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/samba b/stage5/bootscripts/samba
new file mode 100755 (executable)
index 0000000..09e2bfe
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+# See how we were called
+case "$1" in
+    start)
+       cmd_run_log_box_warn "Starting nmbd daemon" loadproc nmbd -D -d 1 -l /var/log/samba
+       cmd_run_log_box_warn "Starting smbd daemon" loadproc smbd -D -l /var/log/samba
+       ;;
+    
+    stop)
+       cmd_run_log_box_warn "Stopping smbd daemon" killproc smbd
+       cmd_run_log_box_warn "Stopping nmbd daemon" killproc nmbd
+       ;;
+    
+    restart)
+       $0 stop
+       sleep 1
+       $0 start
+       ;;
+    
+    status)
+       statusproc nmbd
+       statusproc smbd
+       ;;
+    
+    *)
+       echo "Usage: $0 {start|stop|restart|status}"
+       exit 1
+       ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/saslauthd b/stage5/bootscripts/saslauthd
new file mode 100755 (executable)
index 0000000..6d271a5
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# saslauthd
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+case "$1" in
+    start)
+       cmd_run_log_box_warn "SASL daemon start" loadproc /usr/sbin/saslauthd -a shadow
+        ;;
+
+    stop)
+       cmd_run_log_box_warn "SASL daemon stop" killproc saslauthd
+        ;;
+                
+    status)
+        statusproc saslauthd
+        ;;
+        
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+
+    *)
+       echo "Usage: $0 {restart|start|status|stop}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+esac
+
+exit $?
diff --git a/stage5/bootscripts/sendmail b/stage5/bootscripts/sendmail
new file mode 100755 (executable)
index 0000000..14aea57
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# sendmail
+
+# Source functions library
+source /etc/rc.d/init.d/functions
+
+log_script_name "$0 $*"
+
+case "$1" in
+    start)
+       cmd_run_log_box_warn "sendmail start" loadproc /usr/sbin/sendmail -bs -bd -q5m start
+        ;;
+
+    stop)
+       cmd_run_log_box_warn "sendmail stop" killproc sendmail
+        ;;
+
+    reload)
+        cmd_run_log_box_warn reloadproc sendmail
+        ;;
+                
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+
+    status)
+        statusproc sendmail
+        ;;
+    
+    *)
+       echo "Usage: $0 {start|stop|reload|restart|status}"
+       exit ${EXIT_CODE_FAILURE}
+       ;;
+esac
+
+exit $?
diff --git a/stage5/cis-boost b/stage5/cis-boost
deleted file mode 100755 (executable)
index cb215ad..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-./bootstrap.sh
-./bjam --prefix=/usr
-./bjam install
-ldconfig
-
-exit $?
diff --git a/stage5/cis-cdrtools b/stage5/cis-cdrtools
deleted file mode 100755 (executable)
index 50df063..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
-make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install
-
-cat > /etc/sysconfig/cdrecord << "EOF"
-#!/bin/sh
-
-# If you know exactly the device to use with cdrecord,
-# enter it in this variable. If this variable is empty,
-# cdrecord scripts will try to autodetect the device
-# using the CDR_DEVICE_DESC variable.
-#CDREC_DEVICE="ATAPI:1,1,0"
-#CDROM_DEVICE="ATAPI:1,0,0"
-
-# This variable contains the identification string that
-# cdrecord scripts will look for when calling cdrecord
-# with the "-scanbus" option
-CDREC_DEVICE_DESC="CD-Writer+ 8200"
-CDROM_DEVICE_DESC="CDR-8235"
-EOF
-
-exit $?
diff --git a/stage5/cis-cups b/stage5/cis-cups
deleted file mode 100755 (executable)
index 667abfe..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-hv_useradd -c "Print_Service_User" -d /dev/null -g lp -s /bin/false -u 9 lp
-
-cd ${LFS_TMP}/${PACKAGE}
-./configure
-make
-make install
-
-if [ -n "${CUPS_SERVER}" ]; then
-    # Configuring for connection to a remote CUPS print server
-    cat > /etc/cups/client.conf << "EOF"
-########################################################################
-#                                                                      #
-# This is the CUPS client configuration file.  This file is used to    #
-# define client-specific parameters, such as the default server or     #
-# default encryption settings.                                         #
-#                                                                      #
-########################################################################
-
-#
-# ServerName: the hostname of your server.  By default CUPS will use the
-# hostname of the system or the value of the CUPS_SERVER environment
-# variable.  ONLY ONE SERVER NAME MAY BE SPECIFIED AT A TIME.  To use
-# more than one server you must use a local scheduler with browsing
-# and possibly polling.
-#
-EOF
-    echo "ServerName ${CUPS_SERVER}" >> /etc/cups/client.conf
-else
-    # Configuring for a CUPS print server
-    sed -i -e 's@Listen localhost:631@Listen \*:631@' /etc/cups/cupsd.conf
-fi
-
-install -v -m740 ${SCRDIR}/bootscripts/cups /etc/rc.d/init.d
-
-# script-name start stop
-bootscript_add_rc3 cups 40 50
-
-exit $?
diff --git a/stage5/cis-cups-pdf b/stage5/cis-cups-pdf
deleted file mode 100755 (executable)
index 6a6bec3..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}/src
-gcc -O9 -s -o cups-pdf cups-pdf.c
-install -m 0700 cups-pdf /usr/lib/cups/backend
-
-cd ${LFS_TMP}/${PACKAGE}
-cp extra/cups-pdf.conf /etc/cups
-cp extra/CUPS-PDF.ppd /usr/share/cups/model
-
-exit $?
diff --git a/stage5/cis-dvd-rw-tools b/stage5/cis-dvd-rw-tools
deleted file mode 100755 (executable)
index 4cd607b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make all rpl8 btcflash
-make prefix=/usr install
-install -v -m644 -D index.html /usr/share/doc/${1}/index.html
-ldconfig
-
-exit $?
diff --git a/stage5/cis-dvdfs b/stage5/cis-dvdfs
deleted file mode 100755 (executable)
index ef92029..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make
-make install
-
-# Mount script
-install -v -m755 ${SCRDIR}/resources/mount.fusedvdfs /sbin
-
-exit $?
diff --git a/stage5/cis-emacs b/stage5/cis-emacs
deleted file mode 100755 (executable)
index 65038df..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --libexecdir=/usr/sbin \
-    --with-x-toolkit=gtk
-make bootstrap
-make install
-ldconfig
-
-install -m644 ${SCRDIR}/resources/emacs/emacsrc /etc/skel/.emacs
-install -m644 ${SCRDIR}/resources/emacs/emacsrc /root/.emacs
-
-LOCAL_SITE_LIST=/usr/local/share/emacs/site-lisp
-
-install -v -m644 -d ${LOCAL_SITE_LIST}
-install -m644 ${SCRDIR}/resources/emacs/buffer-cycle.el ${LOCAL_SITE_LIST}
-
-# Set Emacs as default editor
-sed -i -e "s!^\(EDITOR=\).*!\1emacs!" /etc/profile
-
-exit $?
diff --git a/stage5/cis-gconf b/stage5/cis-gconf
deleted file mode 100755 (executable)
index 7c56b07..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Common installation script
-./cis-gnome ${*}
-
-# Custom post-installation
-install -v -m755 -d /etc/gnome/${GNOME2_VER}/gconf/gconf.xml.system &&
-
-# Configure D-Bus so that it can search for GNOME installed .conf files
-# (This is assuming that system-local.conf does not exist yet. If it does,
-# then you will need to merge in the changes):
-dbusfile=/etc/dbus-1/system-local.conf &&
-if [ -f ${dbusfile} ]; then
-    cat ${dbusfile} >> ${dbusfile}.old
-    echo "Warning, file ${dbusfile} already exists,"
-    echo "appending content to \"${dbusfile}.old\""
-fi &&
-
-cat > ${dbusfile} << "EOF" &&
-<!DOCTYPE busconfig PUBLIC
- "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
-<busconfig>
-
-EOF
-echo "  <!-- Search for .conf files in /etc/gnome/${GNOME2_VER}/dbus-1/system.d -->" >> ${dbusfile} &&
-echo "  <includedir>/etc/gnome/${GNOME2_VER}/dbus-1/system.d</includedir>" >> ${dbusfile} &&
-echo "</busconfig>" >> ${dbusfile}
-
-exit $?
diff --git a/stage5/cis-ghostscript b/stage5/cis-ghostscript
deleted file mode 100755 (executable)
index bc26a6c..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-GS_FONTS_PATH="${HV_FONTS_PATH}/ghostscript"
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-
-# To use the system-installed version of JasPer:
-rm -rf jasper
-
-# To use the system-installed copies of libjpeg and libpng:
-rm -rf jpeg
-rm -rf libpng
-
-# To use the system-installed copy of libtiff:
-rm -rf tiff
-
-./configure \
-    --prefix=/usr \
-    --enable-dynamic \
-    --with-system-libtiff \
-    --with-fontpath=${GS_FONTS_PATH}
-make
-make install docdir=/usr/share/doc/${PACKAGE}
-
-# To install the shared library libgs.so (needed by libspectre)
-make so
-make soinstall docdir=/usr/share/doc/${PACKAGE}
-install -v -m644 base/*.h /usr/include/ghostscript
-ln -v -s ghostscript /usr/include/ps
-
-# Unpack all the fonts to ${GS_FONTS_PATH}
-install -v -m755 -d ${GS_FONTS_PATH}
-decompress_package ${GHOSTSCRIPT_FONTS_STD}
-decompress_package ${GHOSTSCRIPT_FONTS_OTHER}
-mv ${LFS_TMP}/fonts/* ${GS_FONTS_PATH}
-rmdir ${LFS_TMP}/fonts
-chown -v -R root:root ${GS_FONTS_PATH}
-
-if ! grep "${GS_FONTS_PATH}" /etc/fonts/local.conf 1> /dev/null 2>&1; then
-    # Adding Ghostscript fonts directory to local configuration file
-    sed -i -e "s!\(</fontconfig>\)!    <dir>${GS_FONTS_PATH}</dir>\n\1!" /etc/fonts/local.conf
-fi
-
-# Updating cache database.
-fc-cache -f
-
-ldconfig
-
-exit $?
diff --git a/stage5/cis-gnome b/stage5/cis-gnome
deleted file mode 100755 (executable)
index b381577..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE} &&
-
-cd ${LFS_TMP}/${PACKAGE}-build &&
-../${PACKAGE}/configure \
-    --prefix=${GNOME2_PREFIX} \
-    --libexecdir=${GNOME2_PREFIX}/sbin \
-    --sysconfdir=/etc/gnome/${GNOME2_VER} \
-    --localstatedir=/var/lib \
-    ${CONFIGURE_OPTS} &&
-make &&
-make install &&
-ldconfig
-
-exit $?
diff --git a/stage5/cis-gnome-config b/stage5/cis-gnome-config
deleted file mode 100755 (executable)
index fd88e27..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# For Gnome 2 variables
-var_add_path "PATH" /etc/profile "/opt/${GNOME2_VER}/bin" &&
-var_export   "PATH" /etc/profile &&
-var_add_path "PKG_CONFIG_PATH" /etc/profile "/opt/${GNOME2_VER}/lib/pkgconfig" &&
-var_add_path "PKG_CONFIG_PATH" /etc/profile "/opt/${GNOME2_VER}/share/pkgconfig" &&
-var_export   "PKG_CONFIG_PATH" /etc/profile &&
-var_add_path "LIBGLADE_MODULE_PATH" /etc/profile "${GNOME2_PREFIX}/lib/libglade/2.0" &&
-var_export   "LIBGLADE_MODULE_PATH" /etc/profile &&
-var_add_path "XDG_CONFIG_DIRS" /etc/profile "/etc/gnome/${GNOME2_VER}/xdg" &&
-var_export   "XDG_CONFIG_DIRS" /etc/profile &&
-
-# For Gnome 1 and 2 common variable
-var_add_path "GNOME_LIBCONFIG_PATH" /etc/profile "/usr/lib" &&
-var_export   "GNOME_LIBCONFIG_PATH" /etc/profile &&
-
-string_add "/opt/${GNOME2_VER}/lib" /etc/ld.so.conf &&
-
-var_add_path "MANPATH" /etc/profile "/opt/${GNOME2_VER}/man" &&
-var_export   "MANPATH" /etc/profile &&
-
-# There is a third mechanism for customizing the search path. If a
-# `dirlist' file exists in acdir, then that file is assumed to contain a
-# list of directories, one per line, to be added to the search list. These
-# directories are searched after all other directories.
-touch /usr/share/aclocal/dirlist &&
-string_add "/opt/${GNOME2_VER}/share/aclocal" /usr/share/aclocal/dirlist &&
-
-cat > /etc/skel/.gtkrc-2.0 << "EOF" &&
-gtk-icon-theme-name="Tango"
-EOF
-
-ldconfig
-
-# Return last error
-exit $?
diff --git a/stage5/cis-gnome-nobuild b/stage5/cis-gnome-nobuild
deleted file mode 100755 (executable)
index 98db036..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-cd ${LFS_TMP}/${1} &&
-./configure \
-    --prefix=${GNOME2_PREFIX} \
-    --libexecdir=${GNOME2_PREFIX}/sbin \
-    --infodir=${GNOME2_PREFIX}/share/info \
-    --localstatedir=/var/lib \
-    --sysconfdir=/etc/gnome/${GNOME2_VER} &&
-make &&
-make install &&
-ldconfig
-
-# Return last error
-exit $?
diff --git a/stage5/cis-iso-codes b/stage5/cis-iso-codes
deleted file mode 100755 (executable)
index 1e62131..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE} &&
-
-cd ${LFS_TMP}/${PACKAGE}-build &&
-../${PACKAGE}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    ${CONFIGURE_OPTS} &&
-make &&
-make pkgconfigdir=/usr/lib/pkgconfig install &&
-ldconfig
-
-# Return last error
-exit $?
diff --git a/stage5/cis-jadetex b/stage5/cis-jadetex
deleted file mode 100755 (executable)
index b981a71..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
-    -e "s/memory hog.../&\npool_size.context = 750000/" \
-    $(kpsewhich texmf.cnf)
-cat >> $(kpsewhich texmf.cnf) << "EOF"
-
-% The following 3 sections added for JadeTeX
-
-% latex settings
-main_memory.latex = 1100000
-param_size.latex = 1500
-stack_size.latex = 1500
-hash_extra.latex = 15000
-string_vacancies.latex = 45000
-pool_free.latex = 47500
-nest_size.latex = 500
-save_size.latex = 5000
-pool_size.latex = 500000
-max_strings.latex = 55000
-font_mem_size.latex= 400000
-
-% jadetex settings
-main_memory.jadetex = 1500000
-param_size.jadetex = 1500
-stack_size.jadetex = 1500
-hash_extra.jadetex = 50000
-string_vacancies.jadetex = 45000
-pool_free.jadetex = 47500
-nest_size.jadetex = 500
-save_size.jadetex = 5000
-pool_size.jadetex = 500000
-max_strings.jadetex = 55000
-
-% pdfjadetex settings
-main_memory.pdfjadetex = 2500000
-param_size.pdfjadetex = 1500
-stack_size.pdfjadetex = 1500
-hash_extra.pdfjadetex = 50000
-string_vacancies.pdfjadetex = 45000
-pool_free.pdfjadetex = 47500
-nest_size.pdfjadetex = 500
-save_size.pdfjadetex = 5000
-pool_size.pdfjadetex = 500000
-max_strings.pdfjadetex = 55000
-
-EOF
-
-LATEX_FMT_DIR="$(kpsewhich -expand-var '$TEXMFSYSVAR')/web2c"
-
-mv -v $(kpsewhich latex.fmt) $(kpsewhich latex.fmt).orig
-mv -v $LATEX_FMT_DIR/latex.log $LATEX_FMT_DIR/latex.log.orig
-fmtutil-sys --byfmt latex
-
-make
-
-install -v -m755 -d \
-    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config
-install -v -m644 dsssl.def jadetex.ltx *.sty \
-    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex
-install -v -m644 {,pdf}jadetex.ini \
-    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config
-FMTUTIL_CNF="$(kpsewhich fmtutil.cnf)"
-mv $FMTUTIL_CNF $FMTUTIL_CNF.orig
-cat $FMTUTIL_CNF.orig - >> $FMTUTIL_CNF << "EOF"
-
-# JadeTeX formats:
-jadetex         etex            -               "&latex"     jadetex.ini
-pdfjadetex      pdfetex         -               "&pdflatex"  pdfjadetex.ini
-
-EOF
-mv -v $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R \
-    $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R.orig
-mv -v $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R \
-    $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R.orig
-mktexlsr
-fmtutil-sys --byfmt jadetex
-fmtutil-sys --byfmt pdfjadetex
-mktexlsr
-ln -v -sf etex /usr/bin/jadetex
-ln -v -sf pdfetex /usr/bin/pdfjadetex
-install -v -m644 -D index.html \
-    /usr/share/doc/${1}/index.html
-install -v -m644 *.1 /usr/share/man/man1
-
-ldconfig
-
-exit $?
diff --git a/stage5/cis-pm b/stage5/cis-pm
deleted file mode 100755 (executable)
index ace1555..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-# The option "-n" is used to avoid having to answer a question and accept the
-# default configuration.
-perl Makefile.PL -n ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-exit $?
diff --git a/stage5/cis-sane-backends b/stage5/cis-sane-backends
deleted file mode 100755 (executable)
index 09bc97c..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-if [ x${INST_TYPE} = "xworkstation" ]; then
-    USE_X_OPTION="yes"
-else
-    USE_X_OPTION="no"
-fi
-
-hv_groupadd saned
-hv_useradd -c saned -d /dev/null -g saned -s /bin/false saned
-
-# Problem with build directory
-cd ${LFS_TMP}/${1}
-
-# Fixes an obsolete udev parameter:
-sed -i 's/SYSFS/ATTRS/g' tools/sane-desc.c
-
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --with-x=${USE_X_OPTION}
-make
-make install
-install -m 644 -v tools/udev/libsane.rules /etc/udev/rules.d/65-scanner.rules
-
-# Addition to /etc/services (for both the client and server)
-string_add "sane      6566/tcp   saned # SANE Network Scanner Daemon" \
-    /etc/services
-
-# Creating '/etc/sane.d/dll.conf' and adding entry 'net'
-echo "net" > /etc/sane.d/dll.conf
-
-if [ -z "${SANE_SERVER}" ]; then
-    # If 'SANE_SERVER' is not defined, then we automatically configure for
-    # the SANE Network Daemon.
-    
-    # Adding entry to '/etc/sane.d/dll.conf'
-    #######echo "${SANE_DRIVER}" >> /etc/sane.d/dll.conf
-
-    # Creating '/etc/sane.d/saned.conf'
-    echo "${LAN_NETWORK_MASK}" > /etc/sane.d/saned.conf
-    
-    # Addition to /etc/inetd.conf
-    string_add "sane  stream tcp nowait saned /usr/sbin/tcpd saned" \
-       /etc/inetd.conf
-else
-    # If 'SANE_SERVER' is defined, then we must specify the address of the
-    # remote SANE server to use.
-    echo "${SANE_SERVER}" > /etc/sane.d/net.conf
-fi
-
-exit $?
diff --git a/stage5/cis-splix b/stage5/cis-splix
deleted file mode 100755 (executable)
index b1d18df..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# Drivers Samsung pour CUPS
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make DISABLE_JBIG=1
-make install
-ldconfig
-
-exit $?
diff --git a/stage5/cis-tetex b/stage5/cis-tetex
deleted file mode 100755 (executable)
index bd8ddb3..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Removing any older directory from earlier attempt...
-rm -rf ${LFS_TMP}/cm-super
-
-install -v -m755 -d /usr/share/texmf
-decompress_package ${TETEX_TEXMF}    /usr/share/texmf
-decompress_package ${TETEX_TEXMFSRC} /usr/share/texmf
-decompress_package ${TETEX_CM_SUPER}
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}-build
-../${1}/configure \
-    --prefix=/usr \
-    --exec-prefix=/usr \
-    --bindir=/usr/bin \
-    --with-x=yes \
-    --without-texinfo \
-    --with-system-ncurses \
-    --with-system-zlib \
-    --with-system-t1lib \
-    --with-system-pnglib \
-    --with-system-gd \
-    --disable-a4
-make all
-make install
-
-texconfig-sys dvips paper letter
-texconfig-sys font rw
-
-install -v -d -m755 /usr/local/share/texmf/tex/latex
-var_add_path "TEXMFLOCAL" /etc/profile "/usr/local/share/texmf"
-var_export   "TEXMFLOCAL" /etc/profile
-
-# To install the optional cm-super fonts:
-FONTDIR=$(kpsewhich --expand-var '$TEXMFMAIN')
-mkdir -v -p ${FONTDIR}/fonts/afm/public/cm-super   \
-    ${FONTDIR}/fonts/type1/public/cm-super \
-    ${FONTDIR}/fonts/enc/dvips/cm-super    \
-    ${FONTDIR}/fonts/map/dvips/cm-super  
-
-cp -v ${LFS_TMP}/cm-super/pfb/*.pfb ${FONTDIR}/fonts/type1/public/cm-super/
-
-gunzip ${LFS_TMP}/cm-super/afm/*
-cp -v ${LFS_TMP}/cm-super/afm/*.afm ${FONTDIR}/fonts/afm/public/cm-super/
-
-cp -v ${LFS_TMP}/cm-super/dvips/*.enc ${FONTDIR}/fonts/enc/dvips/cm-super/
-cp -v ${LFS_TMP}/cm-super/dvips/*.map ${FONTDIR}/fonts/map/dvips/cm-super/
-
-cat >> ${FONTDIR}/web2c/updmap.cfg << "EOF"
-MixedMap cm-super-t1.map
-MixedMap cm-super-t2a.map
-MixedMap cm-super-t2b.map
-MixedMap cm-super-t2c.map
-MixedMap cm-super-ts1.map
-MixedMap cm-super-x2.map
-EOF
-
-mktexlsr
-updmap-sys
-
-if [ ${?} -eq 0 ]; then
-    rm -rf ${LFS_TMP}/cm-super
-fi
-
-exit $?
diff --git a/stage5/cis-xsane b/stage5/cis-xsane
deleted file mode 100755 (executable)
index 2616f35..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr
-make
-make install
-ldconfig
-
-# Adding link for GIMP plugin (Base GIMP version hardcoded for now)
-ln -v -sf /usr/bin/xsane /usr/lib/gimp/2.0/plug-ins/
-
-exit $?
diff --git a/stage5/install-1 b/stage5/install-1
new file mode 100755 (executable)
index 0000000..cd267f7
--- /dev/null
@@ -0,0 +1,286 @@
+#!/bin/sh
+
+LFS_STAGE=stage5
+
+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
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+source /etc/profile
+
+if [ "x${USER}" != "xroot" ]; then
+    echo "You must be the superuser to install hvlinux."
+    exit 1
+fi
+
+init_log_file
+
+# Scripts directory
+export SCRDIR=$(pwd)
+
+if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    # Gtk
+    ipkg_ac    ${LIBSIGCPP}
+    ipkg_ac    ${JASPER} "--enable-shared"
+    ipkg_ac    ${GTK_DOC}
+    ipkg_ac    ${GLIBMM}
+    ipkg_ac    ${CAIRO}
+    ipkg_ac    ${CAIROMM}
+    ipkg_ac_nb ${PANGO}
+    ipkg_ac    ${PANGOMM}
+    ipkg_ac    ${ATK}
+    ipkg_ac    ${GTK}
+    ipkg_ac    ${GTKMM}
+    ipkg_ac    ${GTK_ENGINES}
+    ipkg_ac    ${PYGOBJECT}
+    ipkg_ac    ${PYCAIRO}
+    ipkg_ac    ${PYGTK}
+    ipkg_ac    ${GC}
+
+    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_cust  ${ISO_CODES} cis-iso-codes
+    ipkg_ac    ${LIBXKLAVIER}
+    ipkg_ac    ${LIBGLADE}
+    ipkg_ac    ${LIBTASN1}
+    ipkg_ac    ${GUILE} \
+        --enable-posix \
+        --disable-static \
+        --enable-networking \
+        --enable-regex
+    ipkg_ac    ${LIBGPG_ERROR}
+    ipkg_ac    ${LIBGCRYPT}
+    ipkg_ac_nb ${GNUTLS}
+    ipkg_ac    ${LIBIDL}
+
+    # GNOME-2.X configuration
+    rscr mult "Configuring ${GNOME2_VER}" ./cis-gnome-config
+    source /etc/profile
+
+    ipkg_gnome ${ORBIT2}
+    ipkg_cust  ${GCONF} cis-gconf
+    ipkg_ac    ${LIBPROXY} "--with-gnome"
+    ipkg_gnome ${GNOME_KEYRING}
+    ipkg_ac    ${LIBSOUP}
+fi
+
+ipkg_ac   ${HELP2MAN}
+ipkg_ac   ${GSL}
+ipkg_cust ${CUPS}     cis-cups
+ipkg_cust ${CUPS_PDF} cis-cups-pdf
+ipkg_cust ${SPLIX}    cis-splix
+ipkg_cust ${GHOSTSCRIPT} cis-ghostscript
+
+if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    ipkg_ac    ${IMAGE_MAGICK} "--with-modules --with-gslib=/usr/lib"
+    # xpdf headers needed by inkscape
+    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_cust  ${BOOST} cis-boost
+    # inkscape-0.47 has a problem with poppler >= 0.12.2
+    ####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
+
+    # 'Five years old' bug --> Change the date to something in 2004 before installing.
+    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
+
+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_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}
+# Berkeley DB n'est plus installé...
+########PERL_MOD_DB_FILE="DB_File-1.814"
+    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}
+PERL_MOD_ARCHIVE_ZIP="Archive-Zip-1.30"
+PERL_MOD_COMPRESS_ZLIB="Compress-Zlib-2.015"
+PERL_MOD_IO_COMPRESS_BASE="IO-Compress-Base-2.024"
+PERL_MOD_IO_COMPRESS_ZLIB="IO-Compress-Zlib-2.024"
+PERL_MOD_COMPRESS_RAW_ZLIB="Compress-Raw-Zlib-2.024"
+
+    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_cust  ${CKERMIT} cis-ckermit
+
+# BitTorrent client
+ipkg_ac    ${TRANSMISSION} "--disable-daemon"
+
+ipkg_ac    ${GNUPG} "--libexecdir=/usr/lib"
+
+
+
+
+ipkg_ac  ${LIBGEDA}
+ipkg_ac  ${GEDA_SYMBOLS}
+ipkg_ac  ${GEDA_GSCHEM}
+ipkg_ac  ${GEDA_GNETLIST}
+ipkg_ac  ${GEDA_SYMCHECK}
+ipkg_ac  ${GEDA_GATTRIB}
+
+
+
+rscr mult  "Performing post-install" cis-post-install
+
+exit $?
diff --git a/stage5/pkg/agg b/stage5/pkg/agg
new file mode 100644 (file)
index 0000000..2cf3c93
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+sh autogen.sh
+./configure \
+    --prefix=/usr \
+    --disable-static \
+    --enable-ctrl \
+    --enable-gpc \
+    ${CONFIGURE_OPTS}
+make
+make install
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/alsa-lib b/stage5/pkg/alsa-lib
new file mode 100644 (file)
index 0000000..81d877c
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+./configure \
+    --enable-static
+make
+make install
+install -v -m644 -D doc/asoundrc.txt /usr/share/doc/${1}/asoundrc.txt
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/alsa-utils b/stage5/pkg/alsa-utils
new file mode 100644 (file)
index 0000000..558b0c3
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+./configure
+make
+make install
+
+# The first time the alsa bootscript is run, it will complain that there is no state in
+# /etc/asound.state. You can prevent this by running the following commands after
+# installing alsa-utils:
+touch /etc/asound.state
+
+install -v -m740 ${SCRDIR}/bootscripts/alsa /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rcS alsa 95 85
+
+exit $?
diff --git a/stage5/pkg/apache b/stage5/pkg/apache
new file mode 100644 (file)
index 0000000..2aa25e1
--- /dev/null
@@ -0,0 +1,123 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+groupadd -f ${APACHE_USER}
+hv_useradd -c WebServer -d /dev/null -g ${APACHE_USER} -s /bin/false ${APACHE_USER}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --enable-layout=FHS \
+    --enable-mods-shared=all \
+    --enable-ssl \
+    --with-z
+#    --enable-rewrite \
+#    --enable-deflate \
+#    --enable-dav \
+make
+make install
+
+# There's a problem with the ISAPI DSO module caused from compiling with GCC-4.1.2.
+# Commenting out the module from the configuration:
+if grep "LoadModule isapi_module" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
+    sed -i -e "s/^LoadModule isapi_module/# &/" /etc/apache/httpd.conf
+fi
+
+# Modifying the listening port if an alternate one is specified.
+if [ -n "${HTTPD_PORT}" ]; then
+    if ! grep "Listen ${HTTPD_PORT}" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
+       # Adding alternate port to default port of 80
+       sed -i -e "s%\(Listen 80\)%\1\nListen ${HTTPD_PORT}%" /etc/apache/httpd.conf
+    fi
+fi
+
+# Modifying the configuration file to run the server as a dedicated user:
+sed -i \
+    -e "s!^\(User\).*!\1 ${APACHE_USER}!g" \
+    -e "s!^\(Group\).*!\1 ${APACHE_USER}!g" \
+    /etc/apache/httpd.conf
+
+# SSL Certificates generation script
+cat > /etc/apache/generate-ssl-certs << "EOF"
+#!/bin/sh
+
+# Creation of SSL directories for Apache
+cd /etc/apache
+mkdir -p ssl
+
+cd ssl
+
+echo "-------------------------------------------------"
+echo "Generation of the RSA private key"
+echo "-------------------------------------------------"
+openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out server.key 1024
+
+echo "-------------------------------------------------"
+echo "Removing pass-phrase from the private key"
+echo "-------------------------------------------------"
+cp server.key server.key.orig
+openssl rsa -in server.key.orig -out server.key
+# The unencrypted key must be readable only by root!
+chown root:root server.*
+chmod 0400 server.*
+
+echo "-------------------------------------------------"
+echo "Generation of a Certificate Signing Request (CSR)"
+echo ""
+echo "Example fields:"
+echo "Country name:             CA"
+echo "State or Province Name:   Quebec"
+echo "Locality Name:            Montreal"
+echo "Organization Name:        Hugo Villeneuve"
+echo "Organizational Unit Name: ."
+echo "Common Name:              www.hugovil.com"
+echo "Email Address:            webmaster@hugovil.com"
+echo ""
+echo "Please enter the following 'extra' attributes"
+echo "to be sent with your certificate request"
+echo "A challenge password []:     (press enter)   "
+echo "An optional company name []: (press enter)   "
+echo ""
+echo "-------------------------------------------------"
+
+openssl req -new -key server.key -out server.csr
+
+echo "-------------------------------------------------"
+echo "Generation of a self-signed certificate"
+echo "-------------------------------------------------"
+openssl x509 -req -days 10000 -in server.csr -signkey server.key -out server.crt
+
+exit $?
+EOF
+
+chmod 740 /etc/apache/generate-ssl-certs
+
+mkdir -p /etc/apache/ssl
+cp /etc/apache/extra/httpd-ssl.conf /etc/apache/ssl/ssl.conf
+
+sed -i -e "s!^<IfModule ssl_module>!<IfModule ssl_module>\n  Include /etc/apache/ssl/ssl.conf!" /etc/apache/httpd.conf
+
+mkdir -p /srv/www/htdocs/ssl
+chown apache:apache /srv/www/htdocs/ssl
+
+sed -i -e "s!^DocumentRoot .*!DocumentRoot /srv/www/htdocs/ssl!" /etc/apache/ssl/ssl.conf
+sed -i -e "s!^ServerName .*:443!ServerName www.${DOMAIN}:443!" /etc/apache/ssl/ssl.conf
+sed -i -e "s!^ServerAdmin .*!ServerAdmin webmaster@${DOMAIN}!" /etc/apache/ssl/ssl.conf
+sed -i -e "s!/etc/apache!/etc/apache/ssl!" /etc/apache/ssl/ssl.conf
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/apache /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 apache 70 20
+
+exit $?
diff --git a/stage5/pkg/boost b/stage5/pkg/boost
new file mode 100644 (file)
index 0000000..cb215ad
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+./bootstrap.sh
+./bjam --prefix=/usr
+./bjam install
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/cdrtools b/stage5/pkg/cdrtools
new file mode 100644 (file)
index 0000000..50df063
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
+make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install
+
+cat > /etc/sysconfig/cdrecord << "EOF"
+#!/bin/sh
+
+# If you know exactly the device to use with cdrecord,
+# enter it in this variable. If this variable is empty,
+# cdrecord scripts will try to autodetect the device
+# using the CDR_DEVICE_DESC variable.
+#CDREC_DEVICE="ATAPI:1,1,0"
+#CDROM_DEVICE="ATAPI:1,0,0"
+
+# This variable contains the identification string that
+# cdrecord scripts will look for when calling cdrecord
+# with the "-scanbus" option
+CDREC_DEVICE_DESC="CD-Writer+ 8200"
+CDROM_DEVICE_DESC="CDR-8235"
+EOF
+
+exit $?
diff --git a/stage5/pkg/ckermit b/stage5/pkg/ckermit
new file mode 100644 (file)
index 0000000..5bd062b
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make linux
+make prefix=/usr install
+
+cat > /etc/skel/.kermrc << "EOF"
+set line /dev/ttyUSB0
+set speed 115200
+set carrier-watch off
+set handshake none
+set flow-control none
+robust
+set file type bin
+set file name lit
+set rec pack 1000
+set send pack 1000
+set window 5
+xecho \27[32m\27[40m
+EOF
+
+exit $?
diff --git a/stage5/pkg/clamav b/stage5/pkg/clamav
new file mode 100644 (file)
index 0000000..afdaec3
--- /dev/null
@@ -0,0 +1,213 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+groupadd -f clamav
+hv_useradd -g clamav -s /bin/false -c Clam-AntiVirus clamav
+
+cd ${LFS_TMP}/${1}
+SENDMAIL="/usr/sbin/sendmail" ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --with-dbdir=/srv/clamav \
+    --enable-milter
+make
+make install
+touch /var/log/clamd.log
+chmod 600 /var/log/clamd.log
+chown clamav /var/log/clamd.log
+touch /var/log/freshclam.log
+chmod 600 /var/log/freshclam.log
+chown clamav /var/log/freshclam.log
+
+# Addition to /etc/fcron/fcrontab to update virus database
+string_add "Update the Clam AV database every hour"            /etc/fcron/fcrontab
+string_add "&mail(false) 0 * * * * /usr/bin/freshclam --quiet" /etc/fcron/fcrontab
+
+# Configuration file
+cat > /etc/clamd.conf << "EOF"
+# clamd.conf
+# Configuration file for the Clam AV daemon
+
+# Uncomment this option to enable logging.
+# LogFile must be writable for the user running the daemon.
+# A full path is required.
+LogFile /var/log/clamd.log
+
+# Maximal size of the log file. Default is 1 Mb.
+# Value of 0 disables the limit.
+# You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
+# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
+# in bytes just don't use modifiers.
+LogFileMaxSize 0
+
+# Log time with each message.
+LogTime 1
+
+# Enable verbose logging.
+#LogVerbose
+
+# This option allows you to save the process identifier of the listening
+# daemon (main thread).
+PidFile /var/run/clamav/clamd.pid
+
+# Path to the database directory.
+# Default: hardcoded (depends on installation options)
+DatabaseDirectory /srv/clamav
+
+# The daemon works in a local OR a network mode. Due to security reasons we
+# recommend the local mode.
+
+# Path to a local socket file the daemon will listen on.
+LocalSocket /var/run/clamav/clamd.sock
+
+# Remove stale socket after unclean shutdown.
+FixStaleSocket 1
+
+# Maximal number of a threads running at the same time.
+# Default is 5, and it should be sufficient for a typical workstation.
+# You may need to increase threads number for a server machine.
+MaxThreads 200
+
+# Maximal depth directories are scanned at.
+# Default: 15
+MaxDirectoryRecursion 15
+
+# Follow directory symlinks.
+# Default: disabled
+#FollowDirectorySymlinks
+
+# Follow regular file symlinks.
+# Default: disabled
+#FollowFileSymlinks
+
+# Perform internal sanity check (database integrity and freshness).
+# Default: 1800 (30 min)
+#SelfCheck 600
+
+# Execute a command when virus is found. In the command string %v will
+# be replaced by a virus name.
+# Default: disabled
+#VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"
+
+# Run as a selected user (clamd must be started by root).
+# Default: disabled
+User clamav
+
+# By default clamd uses scan options recommended by libclamav. This option
+# disables recommended options and allows you to enable selected ones below.
+# DO NOT TOUCH IT unless you know what you are doing.
+# Default: disabled
+#DisableDefaultScanOptions
+
+##
+## Documents
+##
+
+# This option enables scanning of Microsoft Office document macros.
+ScanOLE2 1
+
+##
+## Mail files
+##
+
+# Enable internal e-mail scanner.
+ScanMail 1
+
+##
+## Archives
+##
+
+# ClamAV can scan within archives and compressed files.
+ScanArchive 1
+
+# The options below protect your system against Denial of Service attacks
+# using archive bombs.
+
+# Files larger than this limit won't be scanned.
+# Value of 0 disables the limit.
+MaxFileSize 10M
+
+# Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR
+# file, all files within it will also be scanned. This options specifies how
+# deep the process should be continued.
+# Value of 0 disables the limit.
+MaxRecursion 100
+
+# Number of files to be scanned within an archive.
+# Value of 0 disables the limit.
+MaxFiles 0
+EOF
+
+
+# Freshclam configuration file
+cat > /etc/freshclam.conf << "EOF"
+# freshclam.conf
+# Configuration file for Freshclam
+
+# Path to the database directory.
+DatabaseDirectory /srv/clamav
+
+# Path to the log file (make sure it has proper permissions)
+UpdateLogFile /var/log/freshclam.log
+
+# Enable verbose logging.
+#LogVerbose
+
+# By default when started freshclam drops privileges and switches to the
+# "clamav" user. This directive allows you to change the database owner.
+DatabaseOwner clamav
+
+# Use DNS to verify virus database version. Freshclam uses DNS TXT records
+# to verify database and software versions. We highly recommend enabling
+# this option.
+DNSDatabaseInfo current.cvd.clamav.net
+
+# Uncomment the following line and replace XY with your country
+# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
+DatabaseMirror db.ca.clamav.net
+
+# database.clamav.net is a round-robin record which points to our most 
+# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is 
+# not working.
+DatabaseMirror database.clamav.net
+
+# Send the RELOAD command to clamd.
+# Default: disabled
+#NotifyClamd
+
+# Run command after successful database update.
+# Default: disabled
+#OnUpdateExecute command
+
+# Run command when database update process fails.
+# Default: disabled
+#OnErrorExecute command
+EOF
+
+# Create the DB directory
+mkdir -p /srv/clamav
+chown clamav:clamav /srv/clamav
+chmod 755 /srv/clamav
+
+# Create the run directory
+mkdir -p /var/run/clamav
+chown clamav:clamav /var/run/clamav
+chmod 755 /var/run/clamav
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/clamav /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 clamav 55 35
+
+exit $?
diff --git a/stage5/pkg/cups b/stage5/pkg/cups
new file mode 100644 (file)
index 0000000..667abfe
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+hv_useradd -c "Print_Service_User" -d /dev/null -g lp -s /bin/false -u 9 lp
+
+cd ${LFS_TMP}/${PACKAGE}
+./configure
+make
+make install
+
+if [ -n "${CUPS_SERVER}" ]; then
+    # Configuring for connection to a remote CUPS print server
+    cat > /etc/cups/client.conf << "EOF"
+########################################################################
+#                                                                      #
+# This is the CUPS client configuration file.  This file is used to    #
+# define client-specific parameters, such as the default server or     #
+# default encryption settings.                                         #
+#                                                                      #
+########################################################################
+
+#
+# ServerName: the hostname of your server.  By default CUPS will use the
+# hostname of the system or the value of the CUPS_SERVER environment
+# variable.  ONLY ONE SERVER NAME MAY BE SPECIFIED AT A TIME.  To use
+# more than one server you must use a local scheduler with browsing
+# and possibly polling.
+#
+EOF
+    echo "ServerName ${CUPS_SERVER}" >> /etc/cups/client.conf
+else
+    # Configuring for a CUPS print server
+    sed -i -e 's@Listen localhost:631@Listen \*:631@' /etc/cups/cupsd.conf
+fi
+
+install -v -m740 ${SCRDIR}/bootscripts/cups /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 cups 40 50
+
+exit $?
diff --git a/stage5/pkg/cups-pdf b/stage5/pkg/cups-pdf
new file mode 100644 (file)
index 0000000..6a6bec3
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}/src
+gcc -O9 -s -o cups-pdf cups-pdf.c
+install -m 0700 cups-pdf /usr/lib/cups/backend
+
+cd ${LFS_TMP}/${PACKAGE}
+cp extra/cups-pdf.conf /etc/cups
+cp extra/CUPS-PDF.ppd /usr/share/cups/model
+
+exit $?
diff --git a/stage5/pkg/dvd-rw-tools b/stage5/pkg/dvd-rw-tools
new file mode 100644 (file)
index 0000000..4cd607b
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+make all rpl8 btcflash
+make prefix=/usr install
+install -v -m644 -D index.html /usr/share/doc/${1}/index.html
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/dvdfs b/stage5/pkg/dvdfs
new file mode 100644 (file)
index 0000000..ef92029
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make
+make install
+
+# Mount script
+install -v -m755 ${SCRDIR}/resources/mount.fusedvdfs /sbin
+
+exit $?
diff --git a/stage5/pkg/emacs b/stage5/pkg/emacs
new file mode 100644 (file)
index 0000000..65038df
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --libexecdir=/usr/sbin \
+    --with-x-toolkit=gtk
+make bootstrap
+make install
+ldconfig
+
+install -m644 ${SCRDIR}/resources/emacs/emacsrc /etc/skel/.emacs
+install -m644 ${SCRDIR}/resources/emacs/emacsrc /root/.emacs
+
+LOCAL_SITE_LIST=/usr/local/share/emacs/site-lisp
+
+install -v -m644 -d ${LOCAL_SITE_LIST}
+install -m644 ${SCRDIR}/resources/emacs/buffer-cycle.el ${LOCAL_SITE_LIST}
+
+# Set Emacs as default editor
+sed -i -e "s!^\(EDITOR=\).*!\1emacs!" /etc/profile
+
+exit $?
diff --git a/stage5/pkg/firefox b/stage5/pkg/firefox
new file mode 100644 (file)
index 0000000..e42e0be
--- /dev/null
@@ -0,0 +1,148 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+FIREFOX_BUILD_DIR="${1}-build"
+FIREFOX_PKG_VERSION="firefox-$(get_pkg_ver ${PACKAGE})"
+
+cd ${LFS_TMP}/${PACKAGE}
+cat > .mozconfig << "EOF"
+# This file contains the options used in the Firefox build.
+
+# Use the default settings specified in the source tree
+. $topsrcdir/browser/config/mozconfig
+
+# build the browser
+ac_add_options --enable-application=browser
+
+# Create an object directory and specify to build the package in that
+# directory. If desired, modify the location of the object directory
+# to a directory inside the source tree by removing '../' from the
+# line below.
+mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../_FIREFOX_BUILD_DIR_
+
+# Specify the installation prefix. If you would prefer Firefox
+# installed in a different prefix, modify the line below to fit
+# your needs. You'll also need to modify some of the instructions in
+# the BLFS book to point to your desired prefix.
+ac_add_options --prefix=/usr
+
+# Compile with a minimal level of optimization
+ac_add_options --enable-optimize
+
+# These options are used so that the Firefox binaries are linked to
+# the system-installed copies of the specified libraries instead of
+# the source tree code which may not be the most recent versions.
+ac_add_options --with-system-zlib
+ac_add_options --with-system-jpeg
+ac_add_options --enable-system-cairo
+ac_add_options --enable-system-lcms
+ac_add_options --enable-system-sqlite
+# comment this if you have not installed png with the apng patch
+ac_add_options --with-system-png
+
+# This option is used to enable support for rendering SVG files in the
+# Firefox browser. Comment out the line to disable the option.
+ac_add_options --enable-svg
+
+# These two options enable support for building Firefox with
+# system-installed versions of the Network Security Services (NSS)
+# and Netscape Portable Runtime (NSPR) libraries. We build these
+# as part of xulrunner, so we can use them here.  For a standalone
+# firefox you might want to comment these.
+#ac_add_options --with-system-nspr
+#ac_add_options --with-system-nss
+
+# uncomment this if you did not build curl
+ac_add_options --disable-crashreporter
+
+# This option is added so that the Mozilla Installer program is not
+# built or installed. The program is not required for a BLFS
+# installation of Firefox.
+ac_add_options --disable-installer
+
+# The updater is not useful if you build from source.
+ac_add_options --disable-updater
+
+# This option is used to disable the a11y support in the Firefox
+# binaries. Comment out this option if you require a11y support.
+ac_add_options --disable-accessibility
+
+# This option is added so that test libraries and programs are not
+# built. These would only be required for debugging purposes.
+ac_add_options --disable-tests
+
+# The mochitest is a separate test feature and has caused problems
+# in the past.
+ac_add_options --disable-mochitest
+
+# This option is used to enable source tree included LDAP support in
+# the Firefox binaries.
+###################################################################
+#
+# NOTE: You must uncomment this option if there is any chance of
+# compiling the OpenOffice package from source code using this copy
+# of Firefox for your Mozilla support.
+#
+###################################################################
+# Removed this option to fix bug with:
+#   make[3]: Entering directory `/tmp/firefox-3.0.1-build/directory/c-sdk'
+#   make[3]: *** No targets specified and no makefile found.  Stop.
+######ac_add_options --enable-ldap
+
+# This option causes the installed binaries to have the official
+# Firefox name embedded in them. Due to license restrictions, you
+# may not distribute binaries created using this option.
+ac_add_options --enable-official-branding
+
+# use the anti-phishing blacklist
+ac_add_options --enable-safe-browsing
+
+# This option is used so that the debugging symbols are removed from
+# the installed binaries during the installation process. Comment out
+# this option if you may have a need to retain the debugging symbols
+# in the installed binaries. Note that this can substantially
+# increase the size of the installed binaries.
+ac_add_options --enable-strip
+
+# Point to the xulrunner libraries - comment this for a standalone browser
+#ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9.0.7
+
+EOF
+
+sed -i -e "s!_FIREFOX_BUILD_DIR_!${FIREFOX_BUILD_DIR}!g" .mozconfig
+
+make -f client.mk build
+make -f client.mk install
+
+# Many applications look for netscape when they need to open a browser...
+ln -v -sf firefox /usr/bin/netscape
+
+# Remove old links
+rm -f /usr/lib/mozilla
+rm -f /usr/lib/firefox
+rm -f /usr/lib/${FIREFOX_PKG_VERSION}/plugins/libjavaplugin_oji.so
+
+ln -v -sf ${FIREFOX_PKG_VERSION} /usr/lib/mozilla
+ln -v -sf ${FIREFOX_PKG_VERSION} /usr/lib/firefox
+# To use the installed Java plugin.
+ln -v -s ${JAVA_HOME}/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/${FIREFOX_PKG_VERSION}/plugins
+
+# Addition to /etc/ld.so.conf
+# This is necessary for shared library libmozjs.so (needed by gxine)
+string_add "/usr/lib/${FIREFOX_PKG_VERSION}" /etc/ld.so.conf
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/gconf b/stage5/pkg/gconf
new file mode 100644 (file)
index 0000000..7c56b07
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Common installation script
+./cis-gnome ${*}
+
+# Custom post-installation
+install -v -m755 -d /etc/gnome/${GNOME2_VER}/gconf/gconf.xml.system &&
+
+# Configure D-Bus so that it can search for GNOME installed .conf files
+# (This is assuming that system-local.conf does not exist yet. If it does,
+# then you will need to merge in the changes):
+dbusfile=/etc/dbus-1/system-local.conf &&
+if [ -f ${dbusfile} ]; then
+    cat ${dbusfile} >> ${dbusfile}.old
+    echo "Warning, file ${dbusfile} already exists,"
+    echo "appending content to \"${dbusfile}.old\""
+fi &&
+
+cat > ${dbusfile} << "EOF" &&
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+EOF
+echo "  <!-- Search for .conf files in /etc/gnome/${GNOME2_VER}/dbus-1/system.d -->" >> ${dbusfile} &&
+echo "  <includedir>/etc/gnome/${GNOME2_VER}/dbus-1/system.d</includedir>" >> ${dbusfile} &&
+echo "</busconfig>" >> ${dbusfile}
+
+exit $?
diff --git a/stage5/pkg/getdate b/stage5/pkg/getdate
new file mode 100644 (file)
index 0000000..0c7bebb
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+make
+make install
+make installman
+
+cat > /usr/local/bin/hvgetdate << EOF
+#!/bin/sh
+
+# Time server informations:
+# US VA: nist1.aol-va.truetime.com (205.188.185.33)
+# Location: AOL Time Warner facility, Dulles, Virginia
+# Synchronization: Lockclock Algorithm and ACTS dial-up, GPS-stabilized oscillator for short-term stabilization
+# Service Area: Eastern US
+# Access Policy: Open access for up to 20 queries per hour (one-day average) from any one address, others by arrangement
+# Contact: Judah Levine, jlevine@boulder.nist.gov, 303 492 7785
+NTP_HOST1=205.188.185.33
+
+#CA time.nrc.ca (132.246.168.148)
+#Location: National Research Council of Canada, Ottawa, Ontario, Canada
+#Geographic Coordinates: 45:27N, 75:37W
+#Synchronization: NTP V3 secondary (stratum 2), PC/Linux
+#Service Area: Canada
+#Access Policy: open access
+#Contact: time@nrc.ca
+#Note: time is an alias and the IP address may change; please use DNS. 
+NTP_HOST2=132.246.168.148
+
+echo -n "Synchronizing kernel time via NTP server:"
+getdate -adjust 1 600 \${NTP_HOST1} \${NTP_HOST2}
+exit 0
+EOF
+chmod 740 /usr/local/bin/hvgetdate
+
+# Adding fcron entry
+string_add "# Run after five minutes of execution the first time, then run every hours" \
+    /etc/fcron/fcrontab
+string_add "@mail(false),first(5) 6h /usr/local/bin/hvgetdate" \
+    /etc/fcron/fcrontab
+
+exit $?
diff --git a/stage5/pkg/ghostscript b/stage5/pkg/ghostscript
new file mode 100644 (file)
index 0000000..bc26a6c
--- /dev/null
@@ -0,0 +1,64 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+GS_FONTS_PATH="${HV_FONTS_PATH}/ghostscript"
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+
+# To use the system-installed version of JasPer:
+rm -rf jasper
+
+# To use the system-installed copies of libjpeg and libpng:
+rm -rf jpeg
+rm -rf libpng
+
+# To use the system-installed copy of libtiff:
+rm -rf tiff
+
+./configure \
+    --prefix=/usr \
+    --enable-dynamic \
+    --with-system-libtiff \
+    --with-fontpath=${GS_FONTS_PATH}
+make
+make install docdir=/usr/share/doc/${PACKAGE}
+
+# To install the shared library libgs.so (needed by libspectre)
+make so
+make soinstall docdir=/usr/share/doc/${PACKAGE}
+install -v -m644 base/*.h /usr/include/ghostscript
+ln -v -s ghostscript /usr/include/ps
+
+# Unpack all the fonts to ${GS_FONTS_PATH}
+install -v -m755 -d ${GS_FONTS_PATH}
+decompress_package ${GHOSTSCRIPT_FONTS_STD}
+decompress_package ${GHOSTSCRIPT_FONTS_OTHER}
+mv ${LFS_TMP}/fonts/* ${GS_FONTS_PATH}
+rmdir ${LFS_TMP}/fonts
+chown -v -R root:root ${GS_FONTS_PATH}
+
+if ! grep "${GS_FONTS_PATH}" /etc/fonts/local.conf 1> /dev/null 2>&1; then
+    # Adding Ghostscript fonts directory to local configuration file
+    sed -i -e "s!\(</fontconfig>\)!    <dir>${GS_FONTS_PATH}</dir>\n\1!" /etc/fonts/local.conf
+fi
+
+# Updating cache database.
+fc-cache -f
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/gnash b/stage5/pkg/gnash
new file mode 100644 (file)
index 0000000..d80ac37
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}-build
+../${PACKAGE}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --enable-gui=gtk \
+    ${CONFIGURE_OPTS}
+make
+make install
+ldconfig
+
+install -m 755 plugin/.libs/libgnashplugin.so /usr/lib/firefox/plugins
+
+exit $?
diff --git a/stage5/pkg/gnome b/stage5/pkg/gnome
new file mode 100644 (file)
index 0000000..b381577
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE} &&
+
+cd ${LFS_TMP}/${PACKAGE}-build &&
+../${PACKAGE}/configure \
+    --prefix=${GNOME2_PREFIX} \
+    --libexecdir=${GNOME2_PREFIX}/sbin \
+    --sysconfdir=/etc/gnome/${GNOME2_VER} \
+    --localstatedir=/var/lib \
+    ${CONFIGURE_OPTS} &&
+make &&
+make install &&
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/gnome-config b/stage5/pkg/gnome-config
new file mode 100644 (file)
index 0000000..fd88e27
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# For Gnome 2 variables
+var_add_path "PATH" /etc/profile "/opt/${GNOME2_VER}/bin" &&
+var_export   "PATH" /etc/profile &&
+var_add_path "PKG_CONFIG_PATH" /etc/profile "/opt/${GNOME2_VER}/lib/pkgconfig" &&
+var_add_path "PKG_CONFIG_PATH" /etc/profile "/opt/${GNOME2_VER}/share/pkgconfig" &&
+var_export   "PKG_CONFIG_PATH" /etc/profile &&
+var_add_path "LIBGLADE_MODULE_PATH" /etc/profile "${GNOME2_PREFIX}/lib/libglade/2.0" &&
+var_export   "LIBGLADE_MODULE_PATH" /etc/profile &&
+var_add_path "XDG_CONFIG_DIRS" /etc/profile "/etc/gnome/${GNOME2_VER}/xdg" &&
+var_export   "XDG_CONFIG_DIRS" /etc/profile &&
+
+# For Gnome 1 and 2 common variable
+var_add_path "GNOME_LIBCONFIG_PATH" /etc/profile "/usr/lib" &&
+var_export   "GNOME_LIBCONFIG_PATH" /etc/profile &&
+
+string_add "/opt/${GNOME2_VER}/lib" /etc/ld.so.conf &&
+
+var_add_path "MANPATH" /etc/profile "/opt/${GNOME2_VER}/man" &&
+var_export   "MANPATH" /etc/profile &&
+
+# There is a third mechanism for customizing the search path. If a
+# `dirlist' file exists in acdir, then that file is assumed to contain a
+# list of directories, one per line, to be added to the search list. These
+# directories are searched after all other directories.
+touch /usr/share/aclocal/dirlist &&
+string_add "/opt/${GNOME2_VER}/share/aclocal" /usr/share/aclocal/dirlist &&
+
+cat > /etc/skel/.gtkrc-2.0 << "EOF" &&
+gtk-icon-theme-name="Tango"
+EOF
+
+ldconfig
+
+# Return last error
+exit $?
diff --git a/stage5/pkg/gnome-nobuild b/stage5/pkg/gnome-nobuild
new file mode 100644 (file)
index 0000000..98db036
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1} &&
+
+cd ${LFS_TMP}/${1} &&
+./configure \
+    --prefix=${GNOME2_PREFIX} \
+    --libexecdir=${GNOME2_PREFIX}/sbin \
+    --infodir=${GNOME2_PREFIX}/share/info \
+    --localstatedir=/var/lib \
+    --sysconfdir=/etc/gnome/${GNOME2_VER} &&
+make &&
+make install &&
+ldconfig
+
+# Return last error
+exit $?
diff --git a/stage5/pkg/iso-codes b/stage5/pkg/iso-codes
new file mode 100644 (file)
index 0000000..1e62131
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE} &&
+
+cd ${LFS_TMP}/${PACKAGE}-build &&
+../${PACKAGE}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    ${CONFIGURE_OPTS} &&
+make &&
+make pkgconfigdir=/usr/lib/pkgconfig install &&
+ldconfig
+
+# Return last error
+exit $?
diff --git a/stage5/pkg/jadetex b/stage5/pkg/jadetex
new file mode 100644 (file)
index 0000000..b981a71
--- /dev/null
@@ -0,0 +1,100 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
+    -e "s/memory hog.../&\npool_size.context = 750000/" \
+    $(kpsewhich texmf.cnf)
+cat >> $(kpsewhich texmf.cnf) << "EOF"
+
+% The following 3 sections added for JadeTeX
+
+% latex settings
+main_memory.latex = 1100000
+param_size.latex = 1500
+stack_size.latex = 1500
+hash_extra.latex = 15000
+string_vacancies.latex = 45000
+pool_free.latex = 47500
+nest_size.latex = 500
+save_size.latex = 5000
+pool_size.latex = 500000
+max_strings.latex = 55000
+font_mem_size.latex= 400000
+
+% jadetex settings
+main_memory.jadetex = 1500000
+param_size.jadetex = 1500
+stack_size.jadetex = 1500
+hash_extra.jadetex = 50000
+string_vacancies.jadetex = 45000
+pool_free.jadetex = 47500
+nest_size.jadetex = 500
+save_size.jadetex = 5000
+pool_size.jadetex = 500000
+max_strings.jadetex = 55000
+
+% pdfjadetex settings
+main_memory.pdfjadetex = 2500000
+param_size.pdfjadetex = 1500
+stack_size.pdfjadetex = 1500
+hash_extra.pdfjadetex = 50000
+string_vacancies.pdfjadetex = 45000
+pool_free.pdfjadetex = 47500
+nest_size.pdfjadetex = 500
+save_size.pdfjadetex = 5000
+pool_size.pdfjadetex = 500000
+max_strings.pdfjadetex = 55000
+
+EOF
+
+LATEX_FMT_DIR="$(kpsewhich -expand-var '$TEXMFSYSVAR')/web2c"
+
+mv -v $(kpsewhich latex.fmt) $(kpsewhich latex.fmt).orig
+mv -v $LATEX_FMT_DIR/latex.log $LATEX_FMT_DIR/latex.log.orig
+fmtutil-sys --byfmt latex
+
+make
+
+install -v -m755 -d \
+    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config
+install -v -m644 dsssl.def jadetex.ltx *.sty \
+    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex
+install -v -m644 {,pdf}jadetex.ini \
+    $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config
+FMTUTIL_CNF="$(kpsewhich fmtutil.cnf)"
+mv $FMTUTIL_CNF $FMTUTIL_CNF.orig
+cat $FMTUTIL_CNF.orig - >> $FMTUTIL_CNF << "EOF"
+
+# JadeTeX formats:
+jadetex         etex            -               "&latex"     jadetex.ini
+pdfjadetex      pdfetex         -               "&pdflatex"  pdfjadetex.ini
+
+EOF
+mv -v $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R \
+    $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R.orig
+mv -v $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R \
+    $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R.orig
+mktexlsr
+fmtutil-sys --byfmt jadetex
+fmtutil-sys --byfmt pdfjadetex
+mktexlsr
+ln -v -sf etex /usr/bin/jadetex
+ln -v -sf pdfetex /usr/bin/pdfjadetex
+install -v -m644 -D index.html \
+    /usr/share/doc/${1}/index.html
+install -v -m644 *.1 /usr/share/man/man1
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/java b/stage5/pkg/java
new file mode 100644 (file)
index 0000000..a81c6df
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+install -v -d /usr/java
+cp -a ${LFS_TMP}/${1}/* /usr/java
+
+ln -svf ../java/bin/java /usr/bin/java
+
+var_add_path JAVA_HOME /etc/profile "/usr/java"
+var_export   JAVA_HOME /etc/profile
+
+exit $?
diff --git a/stage5/pkg/krb5 b/stage5/pkg/krb5
new file mode 100644 (file)
index 0000000..8e27d37
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}/src
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var/lib \
+    --mandir=/usr/share/man \
+    --enable-dns \
+    --enable-static
+make
+make install
+mv -v /usr/bin/ksu /bin
+mv -v /usr/lib/libkrb5.so.3* /lib
+mv -v /usr/lib/libkrb4.so.2* /lib
+mv -v /usr/lib/libdes425.so.3* /lib
+mv -v /usr/lib/libk5crypto.so.3* /lib
+mv -v /usr/lib/libcom_err.so.3* /lib
+ln -v -sf ../../lib/libkrb5.so.3 /usr/lib/libkrb5.so
+ln -v -sf ../../lib/libkrb4.so.2 /usr/lib/libkrb4.so
+ln -v -sf ../../lib/libdes425.so.3 /usr/lib/libdes425.so
+ln -v -sf ../../lib/libk5crypto.so.3 /usr/lib/libk5crypto.so
+ln -v -sf ../../lib/libcom_err.so.3 /usr/lib/libcom_err.so
+ldconfig
+
+cat > /etc/krb5.conf << EOF
+[libdefaults]
+    default_realm = <LFS.ORG>
+    encrypt = true
+
+[realms]
+    <LFS.ORG> = {
+        kdc = <belgarath.lfs.org>
+        admin_server = <belgarath.lfs.org>
+    }
+
+[domain_realm]
+    .<lfs.org> = <LFS.ORG>
+
+[logging]
+    kdc = SYSLOG[:INFO[:AUTH]]
+    admin_server = SYSLOG[INFO[:AUTH]]
+    default = SYSLOG[[:SYS]]
+EOF
+
+exit $?
diff --git a/stage5/pkg/libid3tag b/stage5/pkg/libid3tag
new file mode 100644 (file)
index 0000000..4275204
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc
+make
+make install
+
+# Some packages check for the pkg-config file for libid3tag.
+# This file is particularly needed so that gst-plugins-ugly can
+# recognize the installed libid3tag.
+cat > /usr/lib/pkgconfig/id3tag.pc << "EOF"
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: id3tag
+Description: ID3 tag library
+Requires:
+Version: _LIBID3TAG_VERSION_
+Libs: -L${libdir} -lid3tag -lz
+Cflags: -I${includedir}
+EOF
+
+sed -i -e "s!_LIBID3TAG_VERSION_!$(get_pkg_ver ${1})!g" /usr/lib/pkgconfig/id3tag.pc
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/libmad b/stage5/pkg/libmad
new file mode 100644 (file)
index 0000000..ef83338
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc
+make
+make install
+
+# Some packages check for the pkg-config file for libmad.
+# This file is particularly needed so that Cdrdao can
+# recognize the installed libmad.
+cat > /usr/lib/pkgconfig/mad.pc << "EOF"
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: mad
+Description: MPEG audio decoder
+Requires:
+Version: _LIBMAD_VERSION_
+Libs: -L${libdir} -lmad
+Cflags: -I${includedir}
+EOF
+
+sed -i -e "s!_LIBMAD_VERSION_!$(get_pkg_ver ${1})!g" /usr/lib/pkgconfig/mad.pc
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/ltsp b/stage5/pkg/ltsp
new file mode 100644 (file)
index 0000000..30ed74c
--- /dev/null
@@ -0,0 +1,80 @@
+#!/bin/sh
+set -o errexit
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+LTSROOT="/opt/ltsp/i386"
+MAC_ADDRESS="01-00-40-63-c0-35-8f"
+LTSP_KERNEL="2.6.17.8-ltsp-1"
+LTSP_SERVER="192.168.0.4"
+
+if [ -d /tftpboot ]; then
+    if [ -d /srv/tftpboot ]; then
+       rm -v -rf /srv/tftpboot
+    fi
+
+    mv -v /tftpboot /srv/tftpboot
+fi
+
+cd /srv/tftpboot/lts/${LTSP_KERNEL}/pxelinux.cfg
+ln -v -s -f default ${MAC_ADDRESS}
+
+cat > ${LTSROOT}/etc/lts.conf << "EOF"
+[Default]
+  # Uncomment to use custom XF86Config:
+  ### XF86CONFIG_FILE = /tmp/XF86Config.1
+
+  RAMDISK_SIZE       = "8192"
+
+  SERVER             = _LTSP_SERVER_
+  XSERVER            = trident
+  X_HORZSYNC         = "31.5-80"
+  X_VERTREFRESH      = "60-70"
+  X_COLOR_DEPTH      = 16
+  X_MODE_0           = 1280x1024
+  X_MODE_1           = 1024x768
+
+  # Keyboard configuration
+  XkbLayout          = "ca_enhanced"
+
+  # Mouse configuration
+  X_MOUSE_PROTOCOL    = "IMPS/2"
+  X_MOUSE_DEVICE      = "/dev/input/mice"
+
+  X_MOUSE_RESOLUTION  = "400"
+  X_MOUSE_BUTTONS     = "5"
+  X_MOUSE_EMULATE3BTN = "Y"
+  X_ZAxisMapping      = "4 5"
+
+  USE_XFS            = N
+  LOCAL_APPS         = N
+  USE_NFS_SWAP       = N
+
+  SCREEN_01          = startx
+  SCREEN_02          = shell
+
+  SOUND = Y
+  SOUND_DAEMON = esd
+EOF
+
+sed -i -e "s!_LTSP_SERVER_!${LTSP_SERVER}!g" ${LTSROOT}/etc/lts.conf
+
+# LTSP-4.2 update 4: The "-public" option is absolutely necessary...
+sed -i -e "s!\( */bin/esd -nobeeps -tcp -port 16001\)\( -as 1 &\)!\1 -public\2!g" \
+    ${LTSROOT}/etc/rc.sound
+
+string_add "${LTSROOT}   192.168.0.0/24(rw,sync,no_root_squash)" /etc/exports
+
+string_add "option root-path  \"${LTSP_SERVER}:${LTSROOT}\";" /etc/dhcpd.conf
+
+# no spaces but tabs to separate items.
+sed -i -e "s!^#\*\(.*#any host.*\)!\*\1!g" /etc/X11/xdm/Xaccess
+
+# By default this line is set, so that it is not listening to XDMCP connection.
+# This is for security reasons.
+sed -i -e "s%\(^DisplayManager\.requestPort:.*\)%!\1%g" /etc/X11/xdm/xdm-config
+
+exit $?
diff --git a/stage5/pkg/ltsp-utils b/stage5/pkg/ltsp-utils
new file mode 100644 (file)
index 0000000..b5e6381
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/ltsp-utils
+./install.sh
+
+exit $?
diff --git a/stage5/pkg/mailman b/stage5/pkg/mailman
new file mode 100644 (file)
index 0000000..c27c30f
--- /dev/null
@@ -0,0 +1,117 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+MMPREFIX="/usr/lib/mailman"
+
+groupadd -f mailman
+hv_useradd -c "GNU-Mailman" -d ${MMPREFIX} -g mailman -s /bin/false mailman
+
+# Creating installation directory with correct permissions and ownerships.
+install --owner=mailman --group=mailman --mode=02775 -d ${MMPREFIX}
+
+# Problems when using a separate build directory
+cd ${LFS_TMP}/${1}
+../${1}/configure \
+    --prefix=${MMPREFIX} \
+    --with-cgi-gid=${APACHE_USER} \
+    --with-mail-gid=${SENDMAIL_GID} \
+    --sysconfdir=/etc
+make
+make install
+# Checking installation directory permissions
+${MMPREFIX}/bin/check_perms -f
+
+# Configure the web server to enable CGI script permission in the $prefix/cgi-bin
+# to run CGI scripts.
+string_add "ScriptAlias /mailman/ ${MMPREFIX}/cgi-bin/" /etc/apache/httpd.conf
+
+# Creating directory for mailman icons with correct permissions and ownerships.
+install --owner=mailman --group=mailman --mode=2775 -d /srv/www/icons/mailman
+# Copy the Mailman, Python, and GNU logos to a location accessible to the web server.
+cp ${MMPREFIX}/icons/*.{jpg,png} /srv/www/icons/mailman
+# Specify location of icons directory in mailman configuration file.
+string_add "IMAGE_LOGOS = '/icons/mailman/'" ${MMPREFIX}/Mailman/mm_cfg.py
+
+# Addition to /etc/apache/httpd.conf
+# First, checking if section exists
+if ! grep "/pipermail/" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
+    echo "Alias /pipermail/ ${MMPREFIX}/archives/public/" >> /etc/apache/httpd.conf
+    echo "<Directory /usr/lib/mailman/archives/public/>" >> /etc/apache/httpd.conf
+    echo "    Options FollowSymLinks" >> /etc/apache/httpd.conf
+    echo "    AllowOverride None" >> /etc/apache/httpd.conf
+    echo "    AddDefaultCharset Off" >> /etc/apache/httpd.conf
+    echo "</Directory>" >> /etc/apache/httpd.conf
+fi
+
+# Setting default password
+/usr/lib/mailman/bin/mmsitepass mailman
+
+# Adding cron entries
+cat > /etc/fcron/mailman.crontab << "EOF"
+#
+# !mailto(postmaster)
+#
+# This is needed because the mailman user doesn't have a
+# login shell defined in /etc/passwd.
+SHELL = /bin/sh
+#
+# At 8AM every day, mail reminders to admins as to pending requests.
+# They are less likely to ignore these reminders if they're mailed
+# early in the morning, but of course, this is local time... ;)
+0 8 * * * /usr/bin/python -S _MMPREFIX_/cron/checkdbs
+#
+# At 9AM, send notifications to disabled members that are due to be
+# reminded to re-enable their accounts.
+0 9 * * * /usr/bin/python -S _MMPREFIX_/cron/disabled
+#
+# Noon, mail digests for lists that do periodic as well as threshhold delivery.
+0 12 * * * /usr/bin/python -S _MMPREFIX_/cron/senddigests
+#
+# 5 AM on the first of each month, mail out password reminders.
+0 5 1 * * /usr/bin/python -S _MMPREFIX_/cron/mailpasswds
+#
+# Every 5 mins, try to gate news to mail.  You can comment this one out
+# if you don't want to allow gating, or don't have any going on right now,
+# or want to exclusively use a callback strategy instead of polling.
+#0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/python -S _MMPREFIX_/cron/gate_news
+#
+# At 3:27am every night, regenerate the gzip'd archive file.  Only
+# turn this on if the internal archiver is used and
+# GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py
+#27 3 * * * /usr/bin/python -S _MMPREFIX_/cron/nightly_gzip
+EOF
+sed -i -e "s!_MMPREFIX_!${MMPREFIX}!g" /etc/fcron/mailman.crontab
+string_add "fcrontab -u mailman -c /etc/fcron/fcron.conf /etc/fcron/mailman.crontab" \
+    /etc/fcron/configure
+# Reloading cron configuration
+/etc/fcron/configure
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/mailman /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 mailman 75 15
+
+# URL
+string_add "DEFAULT_EMAIL_HOST = '_DOMAIN_'" ${MMPREFIX}/Mailman/mm_cfg.py
+string_add "DEFAULT_URL_HOST = 'www._DOMAIN_'" ${MMPREFIX}/Mailman/mm_cfg.py
+if test -n ${HTTPD_PORT}; then
+    string_add "DEFAULT_URL_PATTERN = 'http://%s:_DOMAIN_/mailman'" ${MMPREFIX}/Mailman/mm_cfg.py
+    string_add "PUBLIC_ARCHIVE_URL = 'http://%(hostname)s:_HTTPD_PORT_/pipermail/%(listname)s'" ${MMPREFIX}/Mailman/mm_cfg.py
+fi
+string_add "add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)" \
+    ${MMPREFIX}/Mailman/mm_cfg.py
+sed -i -e "s!_HTTPD_PORT_!${HTTPD_PORT}!g" ${MMPREFIX}/Mailman/mm_cfg.py
+sed -i -e "s!_DOMAIN_!${DOMAIN}!g" ${MMPREFIX}/Mailman/mm_cfg.py
+
+exit $?
diff --git a/stage5/pkg/milter-greylist b/stage5/pkg/milter-greylist
new file mode 100644 (file)
index 0000000..4bc471a
--- /dev/null
@@ -0,0 +1,134 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var/run
+make
+make install
+
+# Configuration file
+cat > /etc/mail/greylist.conf << EOF
+# greylist.conf
+
+pidfile "/var/run/milter-greylist/milter-greylist.pid"
+socket "/var/run/milter-greylist/milter-greylist.sock"
+dumpfile "/var/run/milter-greylist/greylist.db"
+user "root"
+
+# Be verbose (or use -v flag)
+verbose
+
+# Do not tell spammer how long they have to wait
+quiet
+
+# Your own network, which should not suffer greylisting
+list "my network" addr { 127.0.0.1/8 192.168.0.0/24 }
+
+# This is a list of broken MTAs that break with greylisting. Derived from
+# http://cvs.puremagic.com/viewcvs/greylisting/schema/whitelist_ip.txt?rev=1.16
+list "broken mta" addr {   \
+       12.5.136.141/32    \ # Southwest Airlines (unique sender)
+       12.5.136.142/32    \ # Southwest Airlines
+       12.5.136.143/32    \ # Southwest Airlines
+       12.5.136.144/32    \ # Southwest Airlines
+       12.107.209.244/32  \ # kernel.org (unique sender)
+       12.107.209.250/32  \ # sourceware.org (unique sender)
+       63.82.37.110/32    \ # SLmail
+       63.169.44.143/32   \ # Southwest Airlines
+       63.169.44.144/32   \ # Southwest Airlines
+       64.7.153.18/32     \ # sentex.ca (common pool)
+       64.12.136.0/24     \ # AOL (common pool)
+       64.12.137.0/24     \ # AOL
+       64.12.138.0/24     \ # AOL
+       64.124.204.39      \ # moveon.org (unique sender)
+       64.125.132.254/32  \ # collab.net (unique sender)
+       66.94.237.16/28    \ # Yahoo Groups servers (common pool)
+       66.94.237.32/28    \ # Yahoo Groups servers (common pool)
+       66.94.237.48/30    \ # Yahoo Groups servers (common pool)
+       66.100.210.82/32   \ # Groupwise?
+       66.135.192.0/19    \ # Ebay
+       66.162.216.166/32  \ # Groupwise?
+       66.206.22.82/32    \ # Plexor
+       66.206.22.83/32    \ # Plexor
+       66.206.22.84/32    \ # Plexor
+       66.206.22.85/32    \ # Plexor
+       66.218.66.0/23     \ # Yahoo Groups servers (common pool)
+       66.218.67.0/23     \ # Yahoo Groups servers (common pool)
+       66.218.68.0/23     \ # Yahoo Groups servers (common pool)
+       66.218.69.0/23     \ # Yahoo Groups servers (common pool)
+       66.27.51.218/32    \ # ljbtc.com (Groupwise)
+       152.163.225.0/24   \ # AOL
+       194.245.101.88/32  \ # Joker.com
+       195.235.39.19/32   \ # Tid InfoMail Exchanger v2.20
+       195.238.2.0/24     \ # skynet.be (wierd retry pattern, common pool)
+       195.238.3.0/24     \ # skynet.be
+       195.46.220.208/32  \ # mgn.net
+       195.46.220.209/32  \ # mgn.net
+       195.46.220.210/32  \ # mgn.net
+       195.46.220.211/32  \ # mgn.net
+       195.46.220.221/32  \ # mgn.net
+       195.46.220.222/32  \ # mgn.net
+       195.238.2.0/24     \ # skynet.be (wierd retry pattern)
+       195.238.3.0/24     \ # skynet.be
+       204.107.120.10/32  \ # Ameritrade (no retry)
+       205.188.0.0/16     \ # AOL
+       205.206.231.0/24   \ # SecurityFocus.com (unique sender)
+       207.115.63.0/24    \ # Prodigy - retries continually
+       207.171.168.0/24   \ # Amazon.com
+       207.171.180.0/24   \ # Amazon.com
+       207.171.187.0/24   \ # Amazon.com
+       207.171.188.0/24   \ # Amazon.com
+       207.171.190.0/24   \ # Amazon.com
+       209.132.176.174/32 \ # sourceware.org mailing lists (unique sender)
+       211.29.132.0/24    \ # optusnet.com.au (wierd retry pattern)
+       213.136.52.31/32   \ # Mysql.com (unique sender)
+       216.33.244.0/24    \ # Ebay
+       217.158.50.178/32  \ # AXKit mailing list (unique sender)
+}
+
+# List of users that want greylisting
+list "grey users" rcpt {  \
+       *@mydomain.com \
+}
+
+# List of senders that are automatically whitelisted
+list "white users" from { \
+     user@domain1 \
+     user@domain2 \
+}
+
+# Perform DNS Reverse Black List verification
+dnsrbl "SORBS DUN" dnsbl.sorbs.net 127.0.0.10
+
+# And here is the access list
+acl whitelist addr 127.0.0.0/8
+acl whitelist addr 192.168.0.0/24 
+
+acl greylist list "grey users" dnsrbl "SORBS DUN" delay 24h autowhite 3d
+acl greylist list "grey users" delay 10m autowhite 10d
+acl whitelist list "white users"
+acl whitelist default
+EOF
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/milter-greylist /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 milter-greylist 57 33
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/milter-spf b/stage5/pkg/milter-spf
new file mode 100644 (file)
index 0000000..4ff7ac3
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+make
+make PREFIX=/usr install
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/milter-spf /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 milter-spf 56 34
+
+exit $?
diff --git a/stage5/pkg/nss b/stage5/pkg/nss
new file mode 100644 (file)
index 0000000..41f8a9c
--- /dev/null
@@ -0,0 +1,63 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+# Define to 1 to test this package.
+RUN_TESTS=0
+
+cd ${LFS_TMP}/${1}
+export WORKINGDIR=${PWD}
+
+# Non-debug optimized build
+export BUILD_OPT=1
+
+cd mozilla/security/nss
+make nss_build_all
+
+cd ../..
+
+export NSS_LINUXDIR=$(basename `ls -d $WORKINGDIR/mozilla/dist/Linux*`)
+
+if [ ${RUN_TESTS} -eq 1 ]; then
+    # Running tests
+    export DOMSUF="${DOMAIN}"
+    export PATH=$PATH:$WORKINGDIR/mozilla/dist/$NSS_LINUXDIR/bin
+    export TEST_RESULTSDIR=$WORKINGDIR/mozilla/tests_results/security
+    cd security/nss/tests
+    sed -i 's/gmake/make/' common/init.sh
+    ./all.sh
+    TEST_RESULTS=$(grep Passed $TEST_RESULTSDIR/$(hostname --short).1/results.html | wc -l)
+    if [ ${TEST_RESULTS} -ne 770 ]; then
+       echo "Number of tests that passed: ${TEST_RESULTS}"
+       echo "Number of tests expected to pass: 770"
+       exit 1
+    fi
+fi
+
+cd ${LFS_TMP}/${1}/mozilla
+install -v -m755 nsprpub/$NSS_LINUXDIR/config/nspr-config /usr/bin
+#install -v -m755 -d /usr/lib/pkgconfig
+#install -v -m644 nsprpub/lib/pkgconfig/nspr.pc \
+#    security/nss/lib/pkgconfig/nss.pc \
+#   /usr/lib/pkgconfig
+
+cd dist
+install -v -m755 $NSS_LINUXDIR/lib/*.so /usr/lib
+install -v -m644 $NSS_LINUXDIR/lib/{*.chk,libcrmf.a} /usr/lib
+install -v -m755 -d /usr/include/{nss,nspr}
+install -v -m644 {public,private}/nss/* /usr/include/nss
+cp -v -RL $NSS_LINUXDIR/include/* /usr/include/nspr
+chmod -v 644 /usr/include/nspr/prvrsion.h
+
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/openldap b/stage5/pkg/openldap
new file mode 100644 (file)
index 0000000..eebb006
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --libexecdir=/usr/sbin \
+    --sysconfdir=/etc \
+    --localstatedir=/srv/ldap \
+    --disable-debug \
+    --enable-dynamic \
+    --enable-crypt \
+    --enable-modules \
+    --enable-rlookups \
+    --enable-backends \
+    --enable-overlays
+make depend
+make
+make install
+
+for LINK in lber ldap ldap_r; do
+    chmod -v 0755 /usr/lib/$(readlink /usr/lib/lib${LINK}.so)
+done
+
+cd ${LFS_TMP}/${1}
+install -v -m755 -d /usr/share/doc/${1}/{drafts,guide,rfc}
+install -v -m644 doc/drafts/* /usr/share/doc/${1}/drafts
+install -v -m644 doc/rfc/*    /usr/share/doc/${1}/rfc
+cp -v -R doc/guide/*          /usr/share/doc/${1}/guide
+
+# Only the slapd daemon is needed.
+# The slurpd daemon is used for coordinating multiple LDAP servers so they
+# cooperate in a hierarchy, much like DNS servers.
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/openldap /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 openldap 60 30
+
+exit $?
diff --git a/stage5/pkg/php b/stage5/pkg/php
new file mode 100644 (file)
index 0000000..2ff7172
--- /dev/null
@@ -0,0 +1,67 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+sed -i 's/const char \*errpfx,/const DB_ENV *dbenv, & const/' ext/dba/dba_db4.c
+
+# Since PHP 5, you need to explicitly bundle PHP with MySQL by --with-mysql directive
+# (make sure you specified path to where MySQL is installed on your system).
+
+# Build directory doesn't work:
+# gcc: Zend/zend_language_scanner.c: No such file or directory
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --with-apxs2=/usr/sbin/apxs \
+    --enable-force-cgi-redirect \
+    --enable-discard-path \
+    --with-config-file-path=/etc \
+    --with-zlib \
+    --enable-bcmath \
+    --with-bz2 \
+    --with-gd \
+    --with-freetype-dir=/usr \
+    --with-t1lib \
+    --enable-gd-native-ttf \
+    --enable-calendar \
+    --enable-dba \
+    --enable-exif \
+    --enable-ftp \
+    --with-gettext \
+    --enable-mbstring \
+    --with-ncurses \
+    --with-readline \
+    --with-openssl=/usr \
+    --with-ldap \
+    --with-mysql=/usr \
+    --with-imap=/usr/lib/uw-imap \
+    --with-imap-ssl=/usr/include/openssl
+make
+make install
+
+if [ -f /etc/php.ini ]; then
+    cp /etc/php.ini /etc/php.ini.old
+fi
+cp ../${1}/php.ini-dist /etc/php.ini
+
+# To enable PHP support in the Apache web server, a new AddType directive
+# must be added to the httpd.conf file.
+if ! grep "application/x-httpd-php" /etc/apache/httpd.conf 1> /dev/null 2>&1; then
+    echo "AddType application/x-httpd-php .php" >> /etc/apache/httpd.conf
+fi
+
+if ! grep "DirectoryIndex" /etc/apache/httpd.conf | grep "index.php" 1> /dev/null 2>&1; then
+    sed -i -e "s!\(^DirectoryIndex index.html.*\)!\1 index.php!g" /etc/apache/httpd.conf
+fi
+
+exit $?
diff --git a/stage5/pkg/pm b/stage5/pkg/pm
new file mode 100644 (file)
index 0000000..ace1555
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+# The option "-n" is used to avoid having to answer a question and accept the
+# default configuration.
+perl Makefile.PL -n ${CONFIGURE_OPTS}
+make
+make install
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/procmail b/stage5/pkg/procmail
new file mode 100644 (file)
index 0000000..7e72d39
--- /dev/null
@@ -0,0 +1,87 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+make \
+    BASENAME=/usr \
+    LOCKINGTEST=/tmp \
+    install
+make install-suid
+
+cat > /etc/procmailrc << "EOF"
+# /etc/procmailrc
+#
+SHELL=/bin/sh
+PATH=/bin:/usr/bin:/usr/sbin
+MAILDIR=/var/mail
+LOGFILE=/var/log/procmail.log
+LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "
+#DEFAULT=$MAILDIR/${LOGNAME}
+VERBOSE=yes
+
+# The default internal egrep of procmailrc igore case.
+
+##################################
+# Clam AV
+##################################
+# A recipe to match a From line:
+:0
+* ^Subject: Virus intercepted
+clamav
+
+# All mail destined to spam@yourdomain and to ham@yourdomain should go
+# directly to the spam-sure and ham mail folders respectively.
+# This rule is usefull because we don't need to setup a spam or
+# ham account on the mail server.
+:0
+* ^To:.*spam@_DOMAIN_
+spam-sure
+:0
+* ^To:.*ham@_DOMAIN_
+ham
+
+
+##################################
+# SpamAssassin
+##################################
+# The condition line ensures that only messages smaller than 250 kB
+# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
+# isn't bigger than a few k and working with big messages can bring
+# SpamAssassin to its knees.
+#
+# The lock file ensures that only 1 spamassassin invocation happens
+# at 1 time, to keep the load down.
+#
+:0fw: spamassassin.lock
+* < 256000
+| /usr/bin/spamassassin
+
+# All mail tagged as spam (eg. with a score higher than the set threshold)
+# is moved to "spam".
+:0:
+* ^X-Spam-Status: Yes
+spam
+
+##################################
+# Last resort rule
+##################################
+# Accept all the rest to your default mailbox
+:0:
+${DEFAULT}
+EOF
+
+DOMAIN1=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\1!")
+DOMAIN2=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\2!")
+sed -i -e "s!_DOMAIN_!${DOMAIN1}\\\.${DOMAIN2}!g" /etc/procmailrc
+
+exit $?
diff --git a/stage5/pkg/pulseaudio b/stage5/pkg/pulseaudio
new file mode 100644 (file)
index 0000000..2dd8a07
--- /dev/null
@@ -0,0 +1,117 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+groupadd -f pulse
+groupadd -f pulse-access
+hv_useradd -g pulse -d /var/run/pulse pulse
+
+gpasswd -a hugo pulse-access
+
+# Il faut ajouter l'usager pulse au groupe audio.
+gpasswd -a pulse audio
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var
+# Workaround pour éliminer les messages de warning
+# reliés à SHM...
+sed -i -e "s!\(#define HAVE_SHM_OPEN 1\)!/* \1 */!g" config.h
+
+make
+make install
+ldconfig
+
+cat > /etc/pulse/daemon.conf << "EOF"
+## Extra verbositiy
+verbose = debug
+
+## Daemonize after startup
+daemonize = 1
+
+## Quit if startup fails
+fail = 1
+
+## Renice the daemon to level -15 and try to get SCHED_FIFO
+## scheduling. This a good idea if you hear annyoing noise in the
+## playback. However, this is a certain security issue, since it works 
+## when called SUID root only. root is dropped immediately after gaining
+## the nice level and SCHED_FIFO scheduling on startup.
+high-priority = 1
+
+## The resampling algorithm to use. Use one of src-sinc-best-quality,
+## src-sinc-medium-quality, src-sinc-fastest, src-zero-order-hold,
+## src-linear, trivial. See the documentation of libsamplerate for an
+## explanation for the different methods. The method 'trivial' is the
+## only algorithm implemented without usage of floating point
+## numbers. If you're tight on CPU consider using this. On the other
+## hand it has the worst quality of all.
+resample-method = src-sinc-best-quality
+
+## Create a PID file in /tmp/pulseaudio-$USER/pid. Of this is enabled
+## you may use commands like "pulseaudio --kill" or "pulseaudio
+## --check". If you are planning to start more than one pulseaudio
+## process per user, you better disable this option since it
+## effectively disables multiple instances.
+use-pid-file = 1
+
+## Do not install the CPU load limit, even on platforms where it is
+## supported. This option is useful when debugging/profiling 
+## PulseAudio to disable disturbing SIGXCPU signals.
+no-cpu-limit = 1
+
+## Run the daemon as system-wide instance, requires root priviliges
+system-instance = 1
+
+## Disable shared memory data transfer 
+disable-shm = 1
+EOF
+
+cat > /etc/pulse/default.pa << "EOF"
+#!/usr/bin/pulseaudio -nF 
+
+#            ----------------
+#   SOURCE   |  PulseAudio  |  SINK
+#  --------->|              |--------->
+#    ALSA    |    Daemon    |  EsounD
+#            ----------------
+#
+
+# SOURCE: Application -> Alsa -> PulseAudio
+load-module module-alsa-source device=default
+
+# SINK: PulseAudio -> Network
+load-module module-esound-sink server=via:16001
+
+# Network protocols
+load-module module-esound-protocol-unix auth-anonymous=1 
+
+# The native protocol is used for communications between
+# ALSA and PulseAudio.
+load-module module-native-protocol-unix auth-anonymous=1
+
+# Automatically restore the volume of playback streams
+load-module module-volume-restore
+
+# Automatically move streams to the default sink if the sink they are
+# connected to dies, similar for sources
+load-module module-rescue-streams
+EOF
+
+install -v -m740 ${SCRDIR}/bootscripts/pulseaudio /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 pulseaudio 95 16
+
+exit $?
diff --git a/stage5/pkg/samba b/stage5/pkg/samba
new file mode 100644 (file)
index 0000000..24ab9e9
--- /dev/null
@@ -0,0 +1,58 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+install -d /var/cache/samba
+
+cd ${LFS_TMP}/${1}/source
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --with-piddir=/var/run \
+    --with-fhs \
+    --with-smbmount
+make
+make install
+mv /usr/lib/samba/libsmbclient.so /usr/lib
+ln -sf ../libsmbclient.so /usr/lib/samba
+
+mkdir -p /var/log/samba
+
+# libsmbclient.a doesn't seem to be installed...
+#chmod 644 /usr/include/libsmbclient.h /usr/lib/samba/libsmbclient.a
+chmod 644 /usr/include/libsmbclient.h
+
+install -m755 nsswitch/libnss_win{s,bind}.so /lib
+ln -sf libnss_winbind.so /lib/libnss_winbind.so.2
+ln -sf libnss_wins.so /lib/libnss_wins.so.2
+cp ../examples/smb.conf.default /etc/samba
+install -m644 ../docs/*.pdf /usr/share/samba
+
+if [ -f nsswitch/pam_winbind.so ]; then 
+    install -m755 nsswitch/pam_winbind.so /lib/security
+fi
+
+ldconfig
+
+# Configuring SWAT
+string_add "swat            901/tcp" /etc/services
+string_add "swat_tunnel     902/tcp" /etc/services
+string_add "swat stream tcp nowait.400 root /usr/sbin/swat swat" /etc/inetd.conf
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/samba /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 samba 85 10
+
+exit $?
diff --git a/stage5/pkg/sane-backends b/stage5/pkg/sane-backends
new file mode 100644 (file)
index 0000000..09bc97c
--- /dev/null
@@ -0,0 +1,63 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+if [ x${INST_TYPE} = "xworkstation" ]; then
+    USE_X_OPTION="yes"
+else
+    USE_X_OPTION="no"
+fi
+
+hv_groupadd saned
+hv_useradd -c saned -d /dev/null -g saned -s /bin/false saned
+
+# Problem with build directory
+cd ${LFS_TMP}/${1}
+
+# Fixes an obsolete udev parameter:
+sed -i 's/SYSFS/ATTRS/g' tools/sane-desc.c
+
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --with-x=${USE_X_OPTION}
+make
+make install
+install -m 644 -v tools/udev/libsane.rules /etc/udev/rules.d/65-scanner.rules
+
+# Addition to /etc/services (for both the client and server)
+string_add "sane      6566/tcp   saned # SANE Network Scanner Daemon" \
+    /etc/services
+
+# Creating '/etc/sane.d/dll.conf' and adding entry 'net'
+echo "net" > /etc/sane.d/dll.conf
+
+if [ -z "${SANE_SERVER}" ]; then
+    # If 'SANE_SERVER' is not defined, then we automatically configure for
+    # the SANE Network Daemon.
+    
+    # Adding entry to '/etc/sane.d/dll.conf'
+    #######echo "${SANE_DRIVER}" >> /etc/sane.d/dll.conf
+
+    # Creating '/etc/sane.d/saned.conf'
+    echo "${LAN_NETWORK_MASK}" > /etc/sane.d/saned.conf
+    
+    # Addition to /etc/inetd.conf
+    string_add "sane  stream tcp nowait saned /usr/sbin/tcpd saned" \
+       /etc/inetd.conf
+else
+    # If 'SANE_SERVER' is defined, then we must specify the address of the
+    # remote SANE server to use.
+    echo "${SANE_SERVER}" > /etc/sane.d/net.conf
+fi
+
+exit $?
diff --git a/stage5/pkg/sasl2 b/stage5/pkg/sasl2
new file mode 100644 (file)
index 0000000..abda5e6
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+
+# Fixes an issue when compiling Cyrus SASL with GCC-4:
+sed -i '/sasl_global/s/^static //' lib/client.c
+
+# Puts the saslauthd man page in a more standard location:
+sed -i 's/cat8/man8/' saslauthd/Makefile.in
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --with-dbpath=/var/lib/sasl/sasldb2 \
+    --with-saslauthd=/var/run
+make
+make install
+
+cd ${LFS_TMP}/${1}
+install -v -m755 -d /usr/share/doc/${1}
+install -v -m644 doc/{*.{html,txt,fig},ONEWS,TODO} \
+    saslauthd/LDAP_SASLAUTHD /usr/share/doc/${1}
+install -v -m700 -d /var/lib/sasl
+
+# Creating SASL configuration file for Sendmail:
+cat > /usr/lib/sasl2/Sendmail.conf << "EOF"
+pwcheck_method:saslauthd
+EOF
+
+ldconfig
+
+# Bootscript
+install -v -m740 ${SCRDIR}/bootscripts/saslauthd /etc/rc.d/init.d
+
+# script-name start stop
+bootscript_add_rc3 saslauthd 50 40
+
+exit $?
diff --git a/stage5/pkg/sendmail b/stage5/pkg/sendmail
new file mode 100644 (file)
index 0000000..c503ba1
--- /dev/null
@@ -0,0 +1,255 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+groupadd -f smmsp
+groupadd -f mail
+hv_useradd -g smmsp -G mail smmsp
+chmod 1777 /var/mail
+mkdir -p /var/spool/mqueue
+mkdir -p /etc/mail
+
+cd ${LFS_TMP}/${1}
+cat > devtools/Site/site.config.m4 << "EOF"
+define(`confMANGRP',`root')
+define(`confMANOWN',`root')
+define(`confSBINGRP',`root')
+define(`confUBINGRP',`root')
+define(`confUBINOWN',`root')
+EOF
+
+if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    # Adding support for SASL2 and MILTER
+    cat >> devtools/Site/site.config.m4 << "EOF"
+APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL=2')
+APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
+APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
+EOF
+    
+    # Configuration file for SASL2
+    echo "pwcheck_method: saslauthd" /usr/lib/sasl2/Sendmail.conf
+fi
+
+cd sendmail
+sh Build
+cd ../
+
+if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    cd libmilter
+    sh Build install
+    cd ../
+fi
+
+cd cf/cf
+cp generic-linux.mc sendmail.mc
+sh Build sendmail.mc
+sh Build install-cf
+cd ../../
+sh Build install
+
+if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    # Configuration Information
+    cat > /etc/mail/sendmail.mc << "EOF"
+dnl
+include(`./m4/cf.m4')
+VERSIONID(`sendmail.mc    Hugo Villeneuve   2003/10/06')
+OSTYPE(linux)
+DOMAIN(generic)
+dnl
+dnl ---------- Procmail settings ----------
+define(`PROCMAIL_MAILER_ARGS', procmail -a $h -d $u)dnl
+define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
+dnl
+dnl ---------- Log messages level ----------
+define(`confLOG_LEVEL', `14')
+dnl
+dnl ---------- confPRIVACY_FLAGS ----------
+dnl   "vrfy": (verify) pour verifier l'existence d'une adresse sur le serveur.
+dnl   "expn": (expand) qui est identique a "vrfy" mais qui permet aussi de lister
+dnl           les personnes d'une liste et autres alias.
+dnl   "noreceipts": To disable sending DSN receipts.
+dnl   "goaway": Disable all SMTP status queries.
+dnl   "authwarnings": Adds x-authentication-warning.
+dnl   "restrictmailq": mqueue group can see queue.
+dnl   "restrictqrun": mqueue owner to run queue.
+dnl   "nobodyreturn": Does not return mail body
+define(`confPRIVACY_FLAGS', `goaway authwarnings restrictmailq restrictqrun nobodyreturn novrfy noexpn noreceipts')
+dnl
+dnl ---------- Maximum message size (in bytes) ----------
+define(`confMAX_MESSAGE_SIZE',10000000)
+dnl
+define(`confMAX_DAEMON_CHILDREN',`30')
+define(`confCONNECTION_RATE_THROTTLE',`10')
+define(`confMAX_RCPTS_PER_MESSAGE',`50')
+dnl
+dnl ---------- MILTER support ----------
+define(`confINPUT_MAIL_FILTERS',`clmilter')
+dnl
+dnl ---------- SMTP Authorization options ----------
+define(`confAUTH_OPTIONS', `A')
+define(`confAUTH_MECHANISMS', `LOGIN PLAIN')
+TRUST_AUTH_MECH(`LOGIN PLAIN')
+dnl
+dnl ---------- Don't send the version number of sendmail ----------
+define(`confSMTP_LOGIN_MSG',`_HOSTNAME_')
+MASQUERADE_AS(_DOMAIN_)
+dnl Uncomment the following line to use a non-standard port
+dnl DAEMON_OPTIONS(`Port=_ALTERNATE_PORT_NUMBER_,Name=MTA')
+dnl
+dnl This is necessary for the local Sendmail to work, when using
+dnl an alternate port number:
+DAEMON_OPTIONS('Port=25','Name=MTA')
+dnl
+FEATURE(nouucp, nospecial)
+FEATURE(use_cw_file)
+FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')
+FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
+FEATURE(`local_procmail')
+FEATURE(`mailertable')
+MAILER(procmail)
+INPUT_MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
+dnl INPUT_MAIL_FILTER(`smf-spf', `S=local:/var/run/smfs/smf-spf.sock, T=S:30s;R:1m')
+dnl INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/milter-greylist.sock')
+MAILER(smtp)
+EOF
+
+    sed -i -e "s!_HOSTNAME_!${MACHINE_NAME}\.${DOMAIN}!g" /etc/mail/sendmail.mc
+    sed -i -e "s!_DOMAIN_!${DOMAIN}!g" /etc/mail/sendmail.mc
+    
+    if [ -n "${SENDMAIL_INCOMING_PORT}" ]; then
+       # Uncommenting the alternate port line
+       sed -i -e "s!\(dnl \)\(.*_ALTERNATE_PORT_NUMBER_.*\)!\2!g" /etc/mail/sendmail.mc
+       # Replacing the port number
+       sed -i -e "s!_ALTERNATE_PORT_NUMBER_!${SENDMAIL_INCOMING_PORT}!g" /etc/mail/sendmail.mc
+    fi
+    
+    # We must put the domain name, and not the hostname in local-host-names
+    echo "${DOMAIN}" > /etc/mail/local-host-names
+    
+    if [ -n "${MAIL_ADMIN}" ]; then
+       echo "postmaster: ${MAIL_ADMIN}" > /etc/mail/aliases
+    else
+       exit 1
+    fi
+    cat >> /etc/mail/aliases << "EOF"
+mailer-daemon: postmaster
+abuse: postmaster
+root: postmaster
+EOF
+    
+    cat > /etc/mail/access << "EOF"
+# This is absolutely needed for each 192.168.0.x computer to send mail...
+Connect:192.168.0 RELAY
+EOF
+    
+    cd /etc/mail
+    cp -R ${LFS_TMP}/${1}/cf/* .
+
+    cat > /etc/mail/submit.mc << "EOF"
+dnl
+include(`./m4/cf.m4')dnl
+dnl
+EOF
+    cat ${LFS_TMP}/${1}/cf/cf/submit.mc >> /etc/mail/submit.mc
+    sed -i "s!\(^FEATURE.*\)127.0.0.1\(.*\)!\1${MACHINE_NAME}\.${DOMAIN}\2!" /etc/mail/submit.mc
+    newaliases -v
+   
+    cat > /etc/mail/virtusertable << "EOF"
+# MAKE SURE ALL ENTRIES ARE SEPARATED WITH <TAB>
+#
+EOF
+
+    if [ -n "${SENDMAIL_ALT_MAILER}" ]; then
+       echo ".     ${SENDMAIL_ALT_MAILER}" > /etc/mail/mailertable
+    else
+       echo "# Define alternate mailer in this file" > /etc/mail/mailertable
+    fi
+
+    cat > /etc/mail/configure << "EOF"
+#!/bin/sh
+
+PID_FILE="/var/run/sendmail.pid"
+
+cd /etc/mail
+
+m4 sendmail.mc > sendmail.cf
+m4 submit.mc   > submit.cf
+newaliases
+makemap hash access.db < access
+makemap hash virtusertable < virtusertable
+makemap hash mailertable.db < mailertable || exit 1
+
+# Restarting sendmail
+if [ -f ${PID_FILE} ]; then
+    kill -HUP `head -1 /var/run/sendmail.pid` || exit 1
+else
+    /etc/rc.d/init.d/sendmail start || exit 1
+fi
+
+exit $?
+EOF
+    chmod 740 /etc/mail/configure
+
+    # Bootscript
+    install -v -m740 ${SCRDIR}/bootscripts/sendmail /etc/rc.d/init.d
+
+    # script-name start stop
+    bootscript_add_rc3 sendmail 65 25
+
+    cat > /usr/local/bin/mail-if-fail << "EOF"
+#!/bin/sh
+
+# This script is used to run a command. If the command failed,
+# an email is sent to the address specified by MAILTO.
+
+# Begin of user modifiable variables
+MAILFROM="${USER}@_DOMAIN_"
+MAILTO="root@_DOMAIN_"
+# End of User modifiable variables
+
+SENDMAIL="/usr/sbin/sendmail -t -r ${MAILFROM}"
+MAILFILE="/tmp/mail-if-fail-output$$"
+LOGFILE="/tmp/mail-if-fail-log$$"
+
+# Running the specified command
+${*} 1> ${LOGFILE} 2>&1
+
+ERROR_CODE=${?}
+
+if [ ${ERROR_CODE} -ne "0" ]; then
+    echo "From: ${MAILFROM}" > ${MAILFILE}
+    echo "To: ${MAILTO}" >> ${MAILFILE}
+    echo "Subject: \"${1}\" FAILED (${ERROR_CODE})" >> ${MAILFILE}
+    echo "Content-type: text/plain" >> ${MAILFILE}
+    echo "Output of command ${*}:" >> ${MAILFILE}
+    echo >> ${MAILFILE}
+    cat ${LOGFILE} >> ${MAILFILE}
+    cat ${MAILFILE} | ${SENDMAIL} || exit 1
+    rm -f ${MAILFILE}
+fi
+
+rm -f ${LOGFILE}
+
+exit ${ERROR_CODE}
+EOF
+
+    sed -i -e "s!_DOMAIN_!${DOMAIN}!g" /usr/local/bin/mail-if-fail
+    chmod 755 /usr/local/bin/mail-if-fail
+
+    cp ${SCRDIR}/resources/mail-files.sh /usr/local/bin
+    chmod 755 /usr/local/bin/mail-files.sh
+
+    # Executing configure script.
+    /etc/mail/configure
+fi
+
+exit $?
diff --git a/stage5/pkg/spamassassin b/stage5/pkg/spamassassin
new file mode 100644 (file)
index 0000000..b833c0e
--- /dev/null
@@ -0,0 +1,66 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+perl Makefile.PL -n \
+    CONTACT_ADDRESS="postmaster" \
+    ENABLE_SSL="no" \
+    RUN_NET_TESTS="no"
+make
+make install
+
+cat > /usr/local/bin/hv-sa-learn << "EOF"
+#!/bin/sh
+
+SA_LEARN="/usr/bin/sa-learn"
+SA_LEARN_FLAGS="--showdots --mbox"
+
+SA_USERS="hugo"
+USER_MAIL_FOLDER=".imap"
+
+for user in ${SA_USERS}; do
+    if [ -f /home/${user}/${USER_MAIL_FOLDER}/SPAM ]; then
+        echo "Scanning SPAM folder for user <${user}>:"
+        ${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --spam /home/${user}/${USER_MAIL_FOLDER}/SPAM || exit 1
+    fi
+    if [ -f /home/${user}/${USER_MAIL_FOLDER}/HAM ]; then
+        echo "Scanning HAM folder for user <${user}:>"
+        ${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --ham /home/${user}/${USER_MAIL_FOLDER}/HAM || exit 1
+    fi
+done
+
+echo "Scanning /var/mail/spam-sure..."
+${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --spam /var/mail/spam-sure || exit 1
+
+echo "Scanning /var/mail/spam..."
+${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --spam /var/mail/spam || exit 1
+
+echo "Scanning /var/mail/ham..."
+${SA_LEARN} ${SA_LEARN_FLAGS} -C /etc/mail/spamassassin --ham  /var/mail/ham || exit 1
+
+exit $?
+EOF
+chmod 755 /usr/local/bin/hv-sa-learn
+
+# Addition to /etc/fcron/fcrontab
+string_add "# Run SpamAssassin sa-learn every hour + 25 minutes" /etc/fcron/fcrontab
+string_add "&mail(false) 25 * * * * /usr/local/bin/mail-if-fail /usr/local/bin/hv-sa-learn" \
+    /etc/fcron/fcrontab
+
+# Add rule to procmailrc...
+
+# Put spamassassin databases in /srv
+mkdir -v -p /srv/spamassassin
+sed -i -e "s!^bayes_path.*!bayes_path /srv/spamassassin/bayes!g" /etc/mail/spamassassin/local.cf
+
+exit $?
diff --git a/stage5/pkg/splix b/stage5/pkg/splix
new file mode 100644 (file)
index 0000000..b1d18df
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+set -o errexit
+
+# Drivers Samsung pour CUPS
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make DISABLE_JBIG=1
+make install
+ldconfig
+
+exit $?
diff --git a/stage5/pkg/squirrelmail b/stage5/pkg/squirrelmail
new file mode 100644 (file)
index 0000000..aa699e2
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+mv ${LFS_TMP}/${1} /srv/www/htdocs/squirrelmail
+chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/www/htdocs/squirrelmail
+
+mkdir -v -p /srv/squirrelmail/{data,attach}
+chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/squirrelmail
+chmod -v 0730 /srv/squirrelmail/attach
+
+cp /srv/www/htdocs/squirrelmail/config/config_default.php /srv/www/htdocs/squirrelmail/config/config.php
+
+sed -i -e "s!\(\$data_dir .* =\).*!\1 \'/srv/squirrelmail/data/\';!g" \
+    /srv/www/htdocs/squirrelmail/config/config.php
+sed -i -e "s!\(\$attachment_dir .* =\).*!\1 \'/srv/squirrelmail/attach/\';!g" \
+    /srv/www/htdocs/squirrelmail/config/config.php
+exit $?
diff --git a/stage5/pkg/tetex b/stage5/pkg/tetex
new file mode 100644 (file)
index 0000000..bd8ddb3
--- /dev/null
@@ -0,0 +1,76 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Removing any older directory from earlier attempt...
+rm -rf ${LFS_TMP}/cm-super
+
+install -v -m755 -d /usr/share/texmf
+decompress_package ${TETEX_TEXMF}    /usr/share/texmf
+decompress_package ${TETEX_TEXMFSRC} /usr/share/texmf
+decompress_package ${TETEX_CM_SUPER}
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}-build
+../${1}/configure \
+    --prefix=/usr \
+    --exec-prefix=/usr \
+    --bindir=/usr/bin \
+    --with-x=yes \
+    --without-texinfo \
+    --with-system-ncurses \
+    --with-system-zlib \
+    --with-system-t1lib \
+    --with-system-pnglib \
+    --with-system-gd \
+    --disable-a4
+make all
+make install
+
+texconfig-sys dvips paper letter
+texconfig-sys font rw
+
+install -v -d -m755 /usr/local/share/texmf/tex/latex
+var_add_path "TEXMFLOCAL" /etc/profile "/usr/local/share/texmf"
+var_export   "TEXMFLOCAL" /etc/profile
+
+# To install the optional cm-super fonts:
+FONTDIR=$(kpsewhich --expand-var '$TEXMFMAIN')
+mkdir -v -p ${FONTDIR}/fonts/afm/public/cm-super   \
+    ${FONTDIR}/fonts/type1/public/cm-super \
+    ${FONTDIR}/fonts/enc/dvips/cm-super    \
+    ${FONTDIR}/fonts/map/dvips/cm-super  
+
+cp -v ${LFS_TMP}/cm-super/pfb/*.pfb ${FONTDIR}/fonts/type1/public/cm-super/
+
+gunzip ${LFS_TMP}/cm-super/afm/*
+cp -v ${LFS_TMP}/cm-super/afm/*.afm ${FONTDIR}/fonts/afm/public/cm-super/
+
+cp -v ${LFS_TMP}/cm-super/dvips/*.enc ${FONTDIR}/fonts/enc/dvips/cm-super/
+cp -v ${LFS_TMP}/cm-super/dvips/*.map ${FONTDIR}/fonts/map/dvips/cm-super/
+
+cat >> ${FONTDIR}/web2c/updmap.cfg << "EOF"
+MixedMap cm-super-t1.map
+MixedMap cm-super-t2a.map
+MixedMap cm-super-t2b.map
+MixedMap cm-super-t2c.map
+MixedMap cm-super-ts1.map
+MixedMap cm-super-x2.map
+EOF
+
+mktexlsr
+updmap-sys
+
+if [ ${?} -eq 0 ]; then
+    rm -rf ${LFS_TMP}/cm-super
+fi
+
+exit $?
diff --git a/stage5/pkg/tftp-hpa b/stage5/pkg/tftp-hpa
new file mode 100644 (file)
index 0000000..4fe70ce
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+# Need to specify mandir manually because of a stupid programming error in tftpd sources...
+cd ${LFS_TMP}/${PACKAGE}
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --mandir=/usr/man \
+    --without-tcpwrappers \
+    ${CONFIGURE_OPTS}
+make
+make install
+ldconfig
+
+mkdir -v -p /srv/tftpboot
+
+# Addition to /etc/inetd.conf
+string_add "tftp  dgram  udp wait       root  /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot -v -v -v -v -v" /etc/inetd.conf
+
+exit $?
diff --git a/stage5/pkg/uml-utilities b/stage5/pkg/uml-utilities
new file mode 100644 (file)
index 0000000..0034151
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+PACKAGE=${1}
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${PACKAGE}
+
+cd ${LFS_TMP}/${PACKAGE}
+make -C tunctl install
+
+exit $?
diff --git a/stage5/pkg/uw-imap b/stage5/pkg/uw-imap
new file mode 100644 (file)
index 0000000..1124c95
--- /dev/null
@@ -0,0 +1,100 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# This server is configured to use SSL only, no plain-text passwords.
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+
+# Setting default mailbox format for imapd
+sed -i -e "s!^\(CREATEPROTO=\)unixproto!\1${MAILBOX_FORMAT}proto!" src/osdep/unix/Makefile
+
+make lnp
+
+# Installing imapd
+install -m 755 imapd/imapd /usr/bin
+install -m 644 src/imapd/imapd.8 /usr/man/man8/imapd.8
+
+# Installing mailutil
+install -m 755 mailutil/mailutil /usr/bin
+install -m 644 src/mailutil/mailutil.1 /usr/man/man1/mailutil.1
+
+# Installing dmail
+install -m 755 dmail/dmail /usr/bin
+install -m 644 src/dmail/dmail.1 /usr/man/man1/dmail.1
+
+# Installing C-library
+mkdir -p /usr/lib/uw-imap/{include,lib}
+install -m 644 c-client/c-client.a /usr/lib/uw-imap/lib
+ln -sf /usr/lib/uw-imap/lib/c-client.a /usr/lib/uw-imap/lib/libc-client.a
+install -m 644 c-client/*.h /usr/lib/uw-imap/include
+install -m 644 src/osdep/tops-20/shortsym.h /usr/lib/uw-imap/include
+
+# Addition to /etc/inetd.conf
+string_add "imaps stream tcp nowait.400 root /usr/bin/imapd imapd" /etc/inetd.conf
+
+# Addition to /etc/services
+string_add "imaps     993/tcp " /etc/services
+
+# Addition to /etc/pam.conf
+string_add "# IMAP server"                                             /etc/pam.conf
+string_add "imap   auth       required   pam_unix.so   nullok"         /etc/pam.conf
+string_add "imap   account    required   pam_unix.so   try_first_pass" /etc/pam.conf
+string_add "imap   session    required   pam_deny.so"                  /etc/pam.conf
+
+# SSL Certificates generation script
+cat > /etc/mail/imap-ssl-certs << "EOF"
+#!/bin/sh
+
+echo "-------------------------------------------------"
+echo "Generation of a Certificate Signing Request (CSR)"
+echo ""
+echo "Example fields:"
+echo "Country name:             CA"
+echo "State or Province Name:   Quebec"
+echo "Locality Name:            Montreal"
+echo "Organization Name:        Hugo Villeneuve"
+echo "Organizational Unit Name: ."
+echo "Common Name:              mail.hugovil.com"
+echo "Email Address:            postmaster@hugovil.com"
+echo ""
+echo "Please enter the following 'extra' attributes"
+echo "to be sent with your certificate request"
+echo "A challenge password []:     (press enter)   "
+echo "An optional company name []: (press enter)   "
+echo "-------------------------------------------------"
+echo ""
+echo "-------------------------------------------------"
+echo "Generation of a self-signed certificate"
+echo "-------------------------------------------------"
+cd /etc/ssl/certs
+openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem -days 10000
+
+exit $?
+EOF
+
+chmod 740 /etc/mail/imap-ssl-certs
+
+# Making sure cram-md5.pwd is created.
+if [ ! -f /etc/cram-md5.pwd ]; then
+    echo "# CRAM-MD5 authentication database" > /etc/cram-md5.pwd
+    echo "# Entries are in the form:" >> /etc/cram-md5.pwd
+    echo "#   USERNAME <SINGLE-TAB> PASSWORD" >> /etc/cram-md5.pwd
+    echo "# Its mandatory that there is a single tab" >> /etc/cram-md5.pwd
+    echo "# between the usernasme and password." >> /etc/cram-md5.pwd
+    echo "# Lines starting with \"#\" are comments." >> /etc/cram-md5.pwd
+    echo "" >> /etc/cram-md5.pwd
+
+    chmod 600 /etc/cram-md5.pwd
+fi
+
+exit $?
diff --git a/stage5/pkg/xsane b/stage5/pkg/xsane
new file mode 100644 (file)
index 0000000..2616f35
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}
+./configure \
+    --prefix=/usr
+make
+make install
+ldconfig
+
+# Adding link for GIMP plugin (Base GIMP version hardcoded for now)
+ln -v -sf /usr/bin/xsane /usr/lib/gimp/2.0/plug-ins/
+
+exit $?
diff --git a/stage5/pkg/xvidcore b/stage5/pkg/xvidcore
new file mode 100644 (file)
index 0000000..841455e
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+# Applying patches (if any)
+apply_patches ${1}
+
+cd ${LFS_TMP}/${1}/build/generic
+./configure \
+    --prefix=/usr
+make 
+make install
+ln -sf libxvidcore.so.4.0 /usr/lib/libxvidcore.so.4
+ln -sf libxvidcore.so.4 /usr/lib/libxvidcore.so
+ldconfig
+
+exit $?
diff --git a/stage5/post-install b/stage5/post-install
new file mode 100755 (executable)
index 0000000..e76a0a7
--- /dev/null
@@ -0,0 +1,100 @@
+#!/bin/sh
+set -o errexit
+
+# First argument of this script is the package name.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
+    
+    #########################################
+    # MySQL
+    #########################################
+    READ_VALID="no"
+    
+    while [ "${READ_VALID}" = "no" ]; do
+       echo "Do you want to set MySQL root password? (y/n): "
+       read SET_MYSQL_ROOT_PASS
+       
+       if [ "${SET_MYSQL_ROOT_PASS}" = "y" -o "${SET_MYSQL_ROOT_PASS}" = "n" ]; then
+           READ_VALID="yes"
+       else
+           echo "Error, answer y or n"
+       fi
+    done
+    
+    if [ "${SET_MYSQL_ROOT_PASS}" = "y" ]; then
+       # Further configuration requires that the MySQL server be running: 
+       mysqld_safe --user=mysql 2>&1 >/dev/null &
+       
+       PASS_MATCH="no"
+       
+       while [ "${PASS_MATCH}" = "no" ]; do
+           echo -n "Enter new MySQL root password: " >&2
+           read PASS1
+           echo -n "Re-enter password to confirm : " >&2
+           read PASS2
+           
+           if [ "${PASS1}" != "${PASS2}" ]; then
+               echo "Error, passwords don't match"
+           else
+               PASS_MATCH="yes"
+           fi
+       done
+       
+       mysqladmin -u root password ${PASS1}
+       echo "MySQL root password set."
+       
+       echo "Shutting down MySQL server:"
+       # Configuration of the server is now finished. Shuting down the server.
+       mysqladmin -p shutdown
+    fi
+
+    #########################################
+    # Apache
+    #########################################
+    READ_VALID="no"
+    
+    while [ "${READ_VALID}" = "no" ]; do
+       echo "Do you want to generate SSL self-signed"
+       echo -n "certificate for Apache? (y/n): "
+       read USE_SSL
+       
+       if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
+           READ_VALID="yes"
+       else
+           echo "Error, answer y or n"
+       fi
+    done
+    
+    if [ "${USE_SSL}" = "y" ]; then
+       /etc/apache/generate-ssl-certs
+    fi
+    
+    #########################################
+    # imap
+    #########################################
+    READ_VALID="no"
+    
+    while [ "${READ_VALID}" = "no" ]; do
+       echo "Do you want to generate SSL self-signed"
+       echo -n "certificate for IMAP server? (y/n): "
+       read USE_SSL
+       
+       if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
+           READ_VALID="yes"
+       else
+           echo "Error, answer y or n"
+       fi
+    done
+    
+    if [ "${USE_SSL}" = "y" ]; then
+       /etc/mail/imap-ssl-certs
+    fi
+    
+fi
+
+exit $?
diff --git a/stage5/resources/mail-files.sh b/stage5/resources/mail-files.sh
new file mode 100755 (executable)
index 0000000..b910580
--- /dev/null
@@ -0,0 +1,307 @@
+#!/bin/sh
+
+# script to email files as attachments.
+# ------------------------------------
+
+# Additional documentation for this script, including a brief introdcution 
+# to MIME can be found at:  http://home.clara.net/dwotton/unix/mail_files.htm
+
+# Written: Dave Wotton, July 1998, (Cambridge UK)
+#          This script comes with no warranty or support. You are
+#          free to modify it as you wish, but please retain an
+#          acknowledgement of my original authorship.
+
+# Amended: Dave Wotton, 6/3/99
+#          -t flag now optional. subject also optional
+#
+# Amended: Dave Wotton, 3/8/00
+#          added -b and -u  options. By default a file-list which is not
+#          preceded by a -n, -b, or -u flag is now NOT encoded (the previous
+#          default was to base64 encode it.).
+#
+# Amended: Dave Wotton, 10/10/00
+#          added a -c (cc:) option.
+#          Added a tty -s test to prevent the prompt to enter the text body
+#          being displayed when not connected to a tty. (The text body is
+#          still required though. /dev/null will suffice.)
+#
+# Amended: Dave Wotton, 24/2/01
+#          Now uses perl to perform the base64 encoding, as it comes as
+#          standard on most modern Unixes. (You need the perl MIME package
+#          though, which I believe is standard. )
+
+# Amended: Dave Wotton, 22/09/01
+#          Now creates a "To:" header and uses the sendmail -t flag to
+#          duplicate this as the envelope recipients, rather than using the
+#          user supplied list of addresses simply as envelope recipients.
+#          This confused some mail clients, specifically Lotus Notes.
+
+# Amended: Dave Wotton, 30/09/01
+#          Now initialises the main variables, so that previously set
+#          environment variable values (eg. $CC) aren't used instead.
+#          Enable multiple occurrences of the -t and -c flags. Thanks to
+#          Jason Judge for these suggestions.
+
+
+# Usage:   mail_files [-t] mailid [ -c mailid ] [ -s subject ] [ -f mailid ] 
+#          [-n file_list] [-u file_list] [-b file_list] file_list
+#
+#    -f      : The mailid of the sender ( defaults to your userid )
+#              Only userids that have been defined as "trusted" in the sendmail
+#              config file can make use of the -f option. For non-trusted users
+#              any value specified by this parameter will be ignored by 
+#              sendmail.
+#    -t      : The mailid of the recipient. Mandatory, no default
+#              multiple mailids can be specified, separated by commas.
+#    -c      : The mailid of any carbon-copy recipients. Optional.
+#              multiple mailids can be specified, separated by commas.
+#    -s      : The subject string. Optional, default = "Not specified".
+#              Enclose in quotes.
+#    -n      : no-encode: indicates a list of files which are NOT to be base64
+#              or uuencode encoded. Multiple files may be enclosed in double
+#              quotes. Usual wildcard notation can be used. This option is
+#              for completeness and can be omitted because the default action 
+#              is not to encode the file-list.
+#    -b      : base64 encoding: indicates a list of files which are to be 
+#              base64 encoded. Multiple files may be enclosed in double quotes.
+#              Usual wildcard notation can be used.
+#    -u      : uuencode encoding: indicates a list of files which are to be 
+#              uuencode encoded. Multiple files may be enclosed in double 
+#              quotes. Usual wildcard notation can be used.
+#  file_list : The list of files to send as attachments with no-encoding
+#              (same as -n option, but the file list does not need to be
+#              enclosed in quotes if more than one file specified). 
+#              Usual wildcard notation can be used.
+
+# The program will also prompt for text to be supplied on standard input
+# as the main text of the message.
+
+# eg.
+#      1) mail_files Dave.Wotton -b file9.gif t*.htm < /dev/null
+#
+#         email file9.gif as a base64 encoded attachment and the t*.htm
+#         files unencoded.
+#
+#      2) mail_files Dave.Wotton -s "my test" -b "file1.gif file2.gif" \
+#                    < /dev/null
+#
+#         email file1.gif and file2.gif as base64 encoded attachments.
+
+# The script makes use of perl's MIME package to perform the base-64 
+# encoding/decoding. 
+
+# Note that files destined for Windows environments should have a name of
+# the form aaaa.bbb where aaaa is up to 8 characters long, and bbb is a
+# 3 character sufix. The suffix determines which program is used to
+# display/process the data at the remote end.
+
+# Simple text files can be emailed unencoded. Binary files, or text files
+# with long lines ( ie > 1000 chars ) should use the  base64 or uuencode 
+# encoding procedures. Base64 is preferred because it is more universally
+# supported. In particular, most PC mail-clients can automatically decode
+# base64 encoded attachments. Note that simple text files with short lines 
+# which are destined for PC environments should not be base64 encoded.
+# This is because PCs use a different line-break character to Unix.
+# If the text is base64 encoded, the line-breaks are not converted
+# automatically and so the data arrives at the remote end without
+# line-breaks.
+
+# set up a 'usage' routine
+# ------------------------
+
+usage()
+{
+  [ "$1" ] && ( echo $* ; echo "" )
+
+  cat <<!
+  Usage:   mail_files [-t] mailid [ -c mailid ] [ -s subject ] [ -f mailid ] 
+           [-n file_list] [-u file_list] [-b file_list] file_list
+!
+  exit 4
+}
+
+# Initialise main variables ...
+# -------------------------
+
+FROM=$LOGNAME
+SUBJ=${SUBJ:-"Not specified"}
+
+TO="" ; CC="" ; SUBJ="" ; NOENC="" ; BASE64="" ; UUE=""
+
+# First parse the command line options. Using getopts means the parameters
+# can be supplied in any order. But first we handle the first parameter,
+# which may be a recipient, without a -t flag...
+
+case "$1" in
+   -* ) : ;;                   # ignore it, let getopts handle flags
+    * ) TO=$1 ; shift ;;
+esac
+
+while getopts f:s:t:c:n:b:u: OPT
+do
+     case $OPT in
+         "f" ) FROM=$OPTARG ;;
+         "t" ) TO="$TO,$OPTARG" ;;
+         "c" ) CC="$CC,$OPTARG" ;;
+         "s" ) SUBJ=$OPTARG ;;
+         "n" ) NOENC="$NOENC $OPTARG" ;;
+         "b" ) BASE64="$BASE64 $OPTARG" ;;
+         "u" ) UUE="$UUE $OPTARG" ;;
+          *  ) usage ;;
+     esac
+done
+
+shift `expr $OPTIND - 1`
+
+if [ "$TO" = "" ]
+then
+    usage "An addressee must be specified"
+fi
+
+# All remaining parameters are files not requiring encoding ...
+# ---------------------------------------------------------
+
+# Build up $FILES as the list of non-encoded files. Use sed to remove
+# any leading space from the variable.
+
+FILES=`echo $NOENC $*|sed 's/^ //'`
+
+if [ "$BASE64" = "" -a "$FILES" = "" -a "$UUE" = "" ]
+then
+    usage "At least one file must be specified"
+fi
+
+# Remove leading commas from TO, CC  ...
+# ---------------------------------
+
+TO=`echo $TO | sed 's/^,//'`
+CC=`echo $CC | sed 's/^,//'`
+
+# Validate that the files exist ...
+# -----------------------------
+
+for F in $FILES $BASE64 $UUE
+do
+   if [ ! -r $F ]
+   then
+      echo "Error: File $F does not exist / is not readable."
+      echo "Exiting. ( Mail not sent )."
+      exit
+   fi
+done
+
+tty -s && echo "Enter text of main message ( finish with CTRL-D ) ..."
+
+# Now do the work ...
+# ---------------
+
+# The generated mail message is output onto standard out, which is then
+# piped in to sendmail.
+
+(
+cat <<!
+From: $FROM
+Subject: $SUBJ
+To: $TO
+!
+
+[ "$CC" ] && echo "Cc: $CC"
+
+cat <<!
+Mime-Version: 1.0
+Content-Type: multipart/mixed; boundary="DMW.Boundary.605592468"
+
+This is a Mime message, which your mail program may not understand. Parts
+of the message will appear as text. If the remainder appears as random
+characters in the message body, instead of as attachments, then you'll
+have to extract these parts and decode them manually.
+
+--DMW.Boundary.605592468
+Content-Type: text/plain; name="message.txt"; charset=US-ASCII
+Content-Disposition: inline; filename="message.txt"
+Content-Transfer-Encoding: 7bit
+
+!
+
+# Read the standard input as the main text of the message ...
+# -------------------------------------------------------
+
+cat - 
+
+# Now process the non-encrypted attachments ...
+# -----------------------------------------
+
+if [ "$FILES" ]
+then
+    for F in $FILES
+    do
+
+       BASE=`basename $F`
+
+       echo --DMW.Boundary.605592468
+       echo Content-Type: application/octet-stream\; name=\"$BASE\"
+       echo Content-Disposition: attachment\; filename=\"$BASE\"
+       echo Content-Transfer-Encoding: 7bit
+       echo
+
+       cat $F
+
+    done
+fi
+
+# Now process the base64 encrypted attachments ...
+# --------------------------------------------
+
+if [ "$BASE64" ]
+then
+    for F in $BASE64
+    do
+
+       BASE=`basename $F`
+
+       echo --DMW.Boundary.605592468
+       echo Content-Type: application/octet-stream\; name=\"$BASE\"
+       echo Content-Disposition: attachment\; filename=\"$BASE\"
+       echo Content-Transfer-Encoding: base64
+       echo
+
+       perl -e '
+       use MIME::Base64 qw(encode_base64);
+       local($/) = undef;
+       print encode_base64(<STDIN>);' < $F
+
+    done
+fi
+
+# Now process the uuencode encrypted attachments ...
+# ----------------------------------------------
+
+# Sorry, this bit is untested - I haven't got a mail-client which can
+# handle uuencoded MIME messages automatically, so can't test if the
+# 'Content-Transfer-Encoding: uuencode' line is correct and whether I
+# need the uuencode "begin" and "end" lines.
+
+if [ "$UUE" ]
+then
+    for F in $UUE
+    do
+
+       BASE=`basename $F`
+
+       echo --DMW.Boundary.605592468
+       echo Content-Type: application/octet-stream\; name=\"$BASE\"
+       echo Content-Disposition: attachment\; filename=\"$BASE\"
+       echo Content-Transfer-Encoding: uuencode
+       echo
+
+       uuencode < $F xxx 
+
+    done
+fi
+
+# append the final boundary line ...
+
+echo --DMW.Boundary.605592468--
+
+) | /usr/sbin/sendmail -t -r ${FROM}
+#> test.txt
diff --git a/stage5/stage5-additions b/stage5/stage5-additions
deleted file mode 100755 (executable)
index 73591b1..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-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
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-if [ "x${USER}" != "xroot" ]; then
-    echo "You must be the superuser to install hvlinux."
-    exit 1
-fi
-
-init_log_file
-
-# Scripts directory
-export SCRDIR=$(pwd)
-
-exit $?
diff --git a/stage5/stage5-install b/stage5/stage5-install
deleted file mode 100755 (executable)
index cd267f7..0000000
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-
-LFS_STAGE=stage5
-
-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
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-if [ "x${USER}" != "xroot" ]; then
-    echo "You must be the superuser to install hvlinux."
-    exit 1
-fi
-
-init_log_file
-
-# Scripts directory
-export SCRDIR=$(pwd)
-
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    # Gtk
-    ipkg_ac    ${LIBSIGCPP}
-    ipkg_ac    ${JASPER} "--enable-shared"
-    ipkg_ac    ${GTK_DOC}
-    ipkg_ac    ${GLIBMM}
-    ipkg_ac    ${CAIRO}
-    ipkg_ac    ${CAIROMM}
-    ipkg_ac_nb ${PANGO}
-    ipkg_ac    ${PANGOMM}
-    ipkg_ac    ${ATK}
-    ipkg_ac    ${GTK}
-    ipkg_ac    ${GTKMM}
-    ipkg_ac    ${GTK_ENGINES}
-    ipkg_ac    ${PYGOBJECT}
-    ipkg_ac    ${PYCAIRO}
-    ipkg_ac    ${PYGTK}
-    ipkg_ac    ${GC}
-
-    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_cust  ${ISO_CODES} cis-iso-codes
-    ipkg_ac    ${LIBXKLAVIER}
-    ipkg_ac    ${LIBGLADE}
-    ipkg_ac    ${LIBTASN1}
-    ipkg_ac    ${GUILE} \
-        --enable-posix \
-        --disable-static \
-        --enable-networking \
-        --enable-regex
-    ipkg_ac    ${LIBGPG_ERROR}
-    ipkg_ac    ${LIBGCRYPT}
-    ipkg_ac_nb ${GNUTLS}
-    ipkg_ac    ${LIBIDL}
-
-    # GNOME-2.X configuration
-    rscr mult "Configuring ${GNOME2_VER}" ./cis-gnome-config
-    source /etc/profile
-
-    ipkg_gnome ${ORBIT2}
-    ipkg_cust  ${GCONF} cis-gconf
-    ipkg_ac    ${LIBPROXY} "--with-gnome"
-    ipkg_gnome ${GNOME_KEYRING}
-    ipkg_ac    ${LIBSOUP}
-fi
-
-ipkg_ac   ${HELP2MAN}
-ipkg_ac   ${GSL}
-ipkg_cust ${CUPS}     cis-cups
-ipkg_cust ${CUPS_PDF} cis-cups-pdf
-ipkg_cust ${SPLIX}    cis-splix
-ipkg_cust ${GHOSTSCRIPT} cis-ghostscript
-
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
-    ipkg_ac    ${IMAGE_MAGICK} "--with-modules --with-gslib=/usr/lib"
-    # xpdf headers needed by inkscape
-    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_cust  ${BOOST} cis-boost
-    # inkscape-0.47 has a problem with poppler >= 0.12.2
-    ####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
-
-    # 'Five years old' bug --> Change the date to something in 2004 before installing.
-    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
-
-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_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}
-# Berkeley DB n'est plus installé...
-########PERL_MOD_DB_FILE="DB_File-1.814"
-    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}
-PERL_MOD_ARCHIVE_ZIP="Archive-Zip-1.30"
-PERL_MOD_COMPRESS_ZLIB="Compress-Zlib-2.015"
-PERL_MOD_IO_COMPRESS_BASE="IO-Compress-Base-2.024"
-PERL_MOD_IO_COMPRESS_ZLIB="IO-Compress-Zlib-2.024"
-PERL_MOD_COMPRESS_RAW_ZLIB="Compress-Raw-Zlib-2.024"
-
-    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_cust  ${CKERMIT} cis-ckermit
-
-# BitTorrent client
-ipkg_ac    ${TRANSMISSION} "--disable-daemon"
-
-ipkg_ac    ${GNUPG} "--libexecdir=/usr/lib"
-
-
-
-
-ipkg_ac  ${LIBGEDA}
-ipkg_ac  ${GEDA_SYMBOLS}
-ipkg_ac  ${GEDA_GSCHEM}
-ipkg_ac  ${GEDA_GNETLIST}
-ipkg_ac  ${GEDA_SYMCHECK}
-ipkg_ac  ${GEDA_GATTRIB}
-
-
-
-rscr mult  "Performing post-install" cis-post-install
-
-exit $?