Add templates for root interventions to B-tips
authorSteve Youngs <steve@steveyoungs.com>
Sat, 22 May 2021 20:09:36 +0000 (06:09 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Sat, 22 May 2021 20:09:36 +0000 (06:09 +1000)
Signed-off-by: Steve Youngs <steve@steveyoungs.com>
etc/pkgusr/handy_funcs

index 2e6202f..a73485b 100644 (file)
@@ -7,7 +7,7 @@
 
 B-tips()
 {
-    less<<EOF
+    less<<ZOF
 
 Always build outside of the source tree if possible.  Meson even
 enforces this, CMake to a lesser degree does as well.  This is a good
@@ -125,10 +125,46 @@ Upgrading:
     3) forall_direntries_from \$(whoami) -not -newer ~/timestampfile
 
 If step 3 turns up libraries that are dependencies of other packages
-move them to /usr/lib/deprecated until everything that needs them has
-been updated/rebuilt. Remember to run ldconfig.
+and the SO major version has changed move them to /usr/lib/deprecated
+until everything that needs them has been updated/rebuilt. Remember to
+run ldconfig.
 
+Root Interventions:
+==================
+BEFORE install root todo-items template:
+(place at top of run_install() func)
+
+    echo '*** ROOT INTERVENTION REQUIRED ***'
+    cat<<EOF
+               As root in another term, run the following:
+----------------------------------------------------------
+
+  Put any commands you need to run as root before this
+  package is installed here.  Watch your shell escapes
+  on backslashes, dollar signs, etc.
+
+--------------------[RETURN when completed to continue]---
 EOF
+    read junk
+
+AFTER install root todo-items template:
+(place at top of run_update() func)
+
+    echo '*** ROOT INTERVENTION REQUIRED ***'
+    cat<<EOF
+               As root in another term, run the following:
+----------------------------------------------------------
+
+  Put any commands you need to run as root after this
+  package is installed here.  Watch your shell escapes
+  on backslashes, dollar signs, etc.
+
+--------------------[RETURN when completed to continue]---
+EOF
+    read junk
+
+### End of Build Tips
+ZOF
 }
 
 verr()