#!/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} && # First create a basic /etc/hosts file to be referenced in one # of Perl's configuration files as well as the optional testsuite: echo "127.0.0.1 localhost $(hostname)" > /etc/hosts && cd ${LFS_TMP}/${1} && ./configure.gnu \ --prefix=/usr \ -Dman1dir=/usr/share/man/man1 \ -Dman3dir=/usr/share/man/man3 \ -Dpager="/usr/bin/less -isR" && # Perl does not like to be made in parallel? make && make install # Return last error exit $?