git: 71aa804edd0c - 2025Q3 - sysutils/slurm-wlm: create a missing directory during installation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Sep 2025 14:43:04 UTC
The branch 2025Q3 has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=71aa804edd0c89db71812fb081ae12c518c93d58
commit 71aa804edd0c89db71812fb081ae12c518c93d58
Author: Generic Rikka <rikka.goering@outlook.de>
AuthorDate: 2025-08-03 13:52:15 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-09-01 14:42:37 +0000
sysutils/slurm-wlm: create a missing directory during installation
/var/spool/slurmctld must exist and be owned by slurm.
PR: 288612
(cherry picked from commit 293abaf0f2602d7da1bbd64845786e4790b07427)
---
sysutils/slurm-wlm/Makefile | 7 +++++--
sysutils/slurm-wlm/pkg-plist | 1 +
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sysutils/slurm-wlm/Makefile b/sysutils/slurm-wlm/Makefile
index 384df809dcbf..5ff24a3fb66f 100644
--- a/sysutils/slurm-wlm/Makefile
+++ b/sysutils/slurm-wlm/Makefile
@@ -1,6 +1,6 @@
PORTNAME= slurm
DISTVERSION= 23.11.7
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= sysutils
MASTER_SITES= https://download.schedmd.com/slurm/
PKGNAMESUFFIX= -wlm
@@ -43,7 +43,8 @@ GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
INSTALL_TARGET= install-strip
TEST_TARGET= check
-PLIST_SUB= PORTVERSION="${DISTVERSION}" VER="${DISTVERSION:R}"
+PLIST_SUB= PORTVERSION="${DISTVERSION}" VER="${DISTVERSION:R}" \
+ USERS=${USERS} GROUPS=${GROUPS}
SHEBANG_FILES= doc/html/shtml2html.py doc/man/man2html.py
PORTDOCS= *
@@ -162,6 +163,8 @@ pre-configure:
${REINPLACE_CMD} -e 's|htmldir = \$${datadir.*$$|htmldir = @htmldir@|'
post-install:
+ @${MKDIR} ${STAGEDIR}/var/spool/slurmctld
+ @${CHMOD} 700 ${STAGEDIR}/var/spool/slurmctld
${INSTALL_DATA} ${WRKSRC}/etc/slurm.conf.example \
${STAGEDIR}${PREFIX}/etc/slurm.conf.sample
diff --git a/sysutils/slurm-wlm/pkg-plist b/sysutils/slurm-wlm/pkg-plist
index 72bf05a521d4..315d8d210ce4 100644
--- a/sysutils/slurm-wlm/pkg-plist
+++ b/sysutils/slurm-wlm/pkg-plist
@@ -255,3 +255,4 @@ sbin/slurmctld
sbin/slurmd
sbin/slurmdbd
sbin/slurmstepd
+@dir(%%USERS%%,%%GROUPS%%,700) /var/spool/slurmctld