# make sure that config files won't get overwritten by install
echo "install:" > etc/Makefile &&
echo "install:" > etc/pam.d/Makefile &&
make_single &&
make install DESTDIR=$INSTALL_ROOT                      &&
make_normal &&

install_config_file etc/limits       $INSTALL_ROOT/etc/limits       &&
install_config_file etc/login.access $INSTALL_ROOT/etc/login.access &&
install_config_file etc/login.defs   $INSTALL_ROOT/etc/login.defs   &&
sed -i -e 's,^HOME=.*$,HOME='"$SHADOW_HOME"',' -e 's,GROUP=1000,GROUP=users,' etc/useradd &&
mkdir -p $INSTALL_ROOT/etc/default &&
mkdir -p ${INSTALL_ROOT}${SHADOW_HOME} &&
install_config_file etc/useradd $INSTALL_ROOT/etc/default/useradd &&

cp -fv $SCRIPT_DIRECTORY/adduser $INSTALL_ROOT/usr/sbin &&
cp -fv $SCRIPT_DIRECTORY/deluser $INSTALL_ROOT/usr/sbin
