From e1ef56f93aebb0b4f54a1a84cf3c2e2a255e4ccf Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 28 Sep 2022 09:34:57 +0200
Subject: [PATCH] [web] Fixed typos in offline configure page and added
 example.

---
 scripts/env/taurus/build_ogs.sh               |  4 ++--
 .../devguide/advanced/offline-build/index.md  | 24 ++++++++++++++++++-
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/scripts/env/taurus/build_ogs.sh b/scripts/env/taurus/build_ogs.sh
index 0c88258b346..efef40317b1 100644
--- a/scripts/env/taurus/build_ogs.sh
+++ b/scripts/env/taurus/build_ogs.sh
@@ -12,8 +12,8 @@ mkdir -p $OGS_DIR/build/cpm_cache
 mkdir -p $BUILD_DIR
 cd $BUILD_DIR
 
-export CPM_SOURCE_DIR=$OGS_DIR/build/cpm_cache
+export CPM_SOURCE_CACHE=$OGS_DIR/build/cpm_cache
 
 CC=`which mpicc` CXX=`which mpic++` cmake $OGS_DIR/s -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES=Off -DOGS_USE_PCH=Off -DOGS_USE_PETSC=On -DOGS_BUILD_PROCESSES="HT" -DPETSC_DIR=$PETSC_DIR -DPETSC_ARCH=arch-linux-c-opt
 
-ninja -j 8
\ No newline at end of file
+ninja -j 8
diff --git a/web/content/docs/devguide/advanced/offline-build/index.md b/web/content/docs/devguide/advanced/offline-build/index.md
index a4cdcb8f197..5e8bb08c6f8 100644
--- a/web/content/docs/devguide/advanced/offline-build/index.md
+++ b/web/content/docs/devguide/advanced/offline-build/index.md
@@ -33,7 +33,7 @@ curl https://gitlab.opengeosys.org/ogs/ogs/-/package_files/[insert ID here]/down
 Un-archive the CPM cache into a directory. Configure OGS as usual but point to the extracted CPM cache:
 
 ```bash
-cmake --preset release -DCPM_SOURCE_DIR=./path/to/cpm
+cmake --preset release -DCPM_SOURCE_CACHE=./path/to/cpm
 ```
 
 There will be some CMake warnings from CPM regarding missing git repositories in the cache. You can ignore them.
@@ -54,3 +54,25 @@ Extract the external dependencies cache into a directory. Configure OGS as usual
 ```bash
 cmake --preset release -DOGS_EXTERNAL_DEPENDENCIES_CACHE=./path/to/ext
 ```
+
+## Example for OpenGeoSys 6.4.3 (bugfix-branch)
+
+On a machine with internet access download the tarballs:
+
+```bash
+wget https://gitlab.opengeosys.org/ogs/ogs/-/archive/v6.4.3/ogs-v6.4.3.tar.gz
+wget -O cpm.tar.gz https://gitlab.opengeosys.org/ogs/ogs/-/package_files/193/download
+wget -O ext.tar.gz https://gitlab.opengeosys.org/ogs/ogs/-/package_files/120/download
+```
+
+Copy those file onto the machine where you want to build OGS. Then build OGS offline:
+
+```bash
+tar xf ogs-v6.4.3.tar.gz
+tar xf cpm.tar.gz
+tar xf ext.tar.gz
+
+cd ogs-v6.4.3
+OGS_VERSION=6.4.3 cmake --preset release -DCPM_SOURCE_CACHE=../cpm -DOGS_EXTERNAL_DEPENDENCIES_CACHE=../ext
+cmake --build --preset release
+```
-- 
GitLab