#!/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} && # The installation of two manual pages is broken and results in # dangling symlinks. Fix this with the following command: sed -i -e '/tc-bfifo.8/d' -e '/tc-pfifo.8/s/pbfifo/bfifo/' Makefile && make SBINDIR=/sbin -j ${MAKEJOBS} && make SBINDIR=/sbin install && # The arpd binary links against the Berkeley DB libraries that reside # in /usr and uses a database in /var/lib/arpd/arpd.db. Thus, # according to the FHS, it must be in /usr/sbin. Move it there: mv -v /sbin/arpd /usr/sbin # Return last error exit $?