#!/bin/sh
+set -o errexit
+
# First argument of this script is the package name
# Reading system configuration informations, functions and package versions.
source ../functions
source ../packages-list
-CUR_DIR=$(pwd)
-
# Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
-cd ${LFS_TMP}/${1}-build &&
+cd ${LFS_TMP}/${1}-build
../${1}/configure \
--prefix=/usr \
--libexecdir=/usr/sbin \
--disable-dependancy-tracking \
--disable-syslogd \
--with-pam \
- --with-wrap &&
-make &&
-make install &&
-mv /usr/bin/ping /bin &&
+ --with-wrap
+make
+make install
+mv /usr/bin/ping /bin
# Creating /etc/inetd.conf
-touch /etc/inetd.conf &&
+touch /etc/inetd.conf
# Bootscript
-install -v -m740 ${CUR_DIR}/bootscripts/inetd /etc/rc.d/init.d &&
+install -v -m740 ${SCRDIR}/bootscripts/inetd /etc/rc.d/init.d
# script-name start stop
bootscript_add_rc3 inetd 30 60
-# Return last error
exit $?