#!/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 $?