New commits:
commit b18f11920115608d4a760a93f09d8496796ad699
Author: Conner Clere <xenanthropy AT sourcemage.org>
Commit: Conner Clere <xenanthropy AT sourcemage.org>
earlyoom: new spell, early oom daemon
diff --git a/ChangeLog b/ChangeLog
index 6171a09..c9cea57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2023-04-26 Conner Clere <xenanthropy AT sourcemage.org>
+ * utils/earlyoom: new spell, early oom daemon
+
2023-04-25 Treeve Jelbert <treeve AT sourcemage.org>
* kde5-extra/kblog: spell deprecated
diff --git a/utils/earlyoom/BUILD b/utils/earlyoom/BUILD
new file mode 100755
index 0000000..1a10dfe
--- /dev/null
+++ b/utils/earlyoom/BUILD
@@ -0,0 +1 @@
+PREFIX="${INSTALL_ROOT}/usr" make
diff --git a/utils/earlyoom/CONFIGURE b/utils/earlyoom/CONFIGURE
new file mode 100755
index 0000000..00755f5
--- /dev/null
+++ b/utils/earlyoom/CONFIGURE
@@ -0,0 +1 @@
+config_query SYSD "Build with systemd support?" n
diff --git a/utils/earlyoom/DETAILS b/utils/earlyoom/DETAILS
new file mode 100755
index 0000000..3aac7cc
--- /dev/null
+++ b/utils/earlyoom/DETAILS
@@ -0,0 +1,22 @@
+ SPELL=earlyoom
+ VERSION=1.7
+ SOURCE=$SPELL-$VERSION.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+
SOURCE_URL[0]=https://github.com/rfjakob/${SPELL}/archive/v${VERSION}.tar.gz
+
SOURCE_HASH=sha256:ebda1279a813d9b0f7860ce5029ccf5ea9f8868be070f2eaf40f90f2e64b6414
+ LICENSE[0]=MIT
+ WEB_SITE=https://github.com/rfjakob/earlyoom/
+ ENTERED=20230426
+ KEYWORDS="memory utils oom"
+ SHORT="early oom daemon"
+cat << EOF
+earlyoom checks the amount of available memory and free swap up to 10 times
+a second (less often if there is a lot of free memory). By default if both
+are below 10%, it will kill the largest process (highest oom_score).
+The percentage value is configurable via command line arguments.
+
+When both your available memory and free swap drop below 10% of the total
+memory available to userspace processes (=total-shared), it will send the
+SIGTERM signal to the process that uses the most memory in the opinion of
+the kernel (/proc/*/oom_score).
+EOF
diff --git a/utils/earlyoom/HISTORY b/utils/earlyoom/HISTORY
new file mode 100644
index 0000000..dfa8447
--- /dev/null
+++ b/utils/earlyoom/HISTORY
@@ -0,0 +1,3 @@
+2023-04-26 Conner Clere <xenanthropy AT sourcemage.org>
+ * BUILD, CONFIGURE, INSTALL, DETAILS: version 1.7, new spell
+
diff --git a/utils/earlyoom/INSTALL b/utils/earlyoom/INSTALL
new file mode 100755
index 0000000..fc4a0d9
--- /dev/null
+++ b/utils/earlyoom/INSTALL
@@ -0,0 +1,5 @@
+if [[ $SYSD == 'y' ]]; then
+ PREFIX="${INSTALL_ROOT}/usr" make install
+else
+ PREFIX="${INSTALL_ROOT}/usr" make install-initscript
+fi
[SM-Commit] GIT changes to master grimoire by Conner Clere (b18f11920115608d4a760a93f09d8496796ad699),
Conner Clere, 04/26/2023