X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-tftp-hpa;h=4fe70ceecd9a5221e1271ed25f0d4e3848de2be0;hb=7f1a3e5d69d0b1d64619604c30243e0070dc09ad;hp=987a8b97656f39d8f0f18bbb6ec7a826e123dff7;hpb=a6183886615a6aec065c383b9604ba2a0c0499e4;p=hvlinux.git diff --git a/stage3/cis-tftp-hpa b/stage3/cis-tftp-hpa index 987a8b9..4fe70ce 100755 --- a/stage3/cis-tftp-hpa +++ b/stage3/cis-tftp-hpa @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name. # Remaining arguments are additional configure options. @@ -12,22 +14,23 @@ shift CONFIGURE_OPTS=${*} # Applying patches (if any) -apply_patches ${PACKAGE} && +apply_patches ${PACKAGE} -cd ${LFS_TMP}/${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 && + ${CONFIGURE_OPTS} +make +make install ldconfig -mkdir -v -p /srv/tftpboot && +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 -# Return last error exit $?