X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fcis-iproute2;h=158983a21499d64fa2bb2e5acb21d272c2d51278;hb=be41960e19c9daee738916df4138559a262ca34a;hp=4f54d751142ee0dec3c8588142dc5d98ccb7b951;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage2/cis-iproute2 b/stage2/cis-iproute2 index 4f54d75..158983a 100755 --- a/stage2/cis-iproute2 +++ b/stage2/cis-iproute2 @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name # Reading system configuration informations, functions and package versions. @@ -7,21 +9,18 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -cd ${LFS_TMP}/${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 && +# The arpd binary included in this package is dependent on Berkeley DB. +# Because arpd is not a very common requirement on a base Linux system, +# remove the dependency on Berkeley DB by applying the sed command below +sed -i '/^TARGETS/s@arpd@@g' misc/Makefile -make SBINDIR=/sbin -j ${MAKEJOBS} && -make SBINDIR=/sbin install && +make DESTDIR= -# 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 +make DESTDIR= SBINDIR=/sbin MANDIR=/usr/share/man \ + DOCDIR=/usr/share/doc/${1} install -# Return last error exit $?