pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
munge: Patch launchd plist file to match munge user/group
Module Name: pkgsrc-wip
Committed By: Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By: outpaddling
Date: Wed Dec 4 10:43:23 2024 -0600
Changeset: 65a8f62292f965f5c44055c001afd4512884984e
Modified Files:
munge/Makefile
munge/files/org.pkgsrc.munged.plist
Log Message:
munge: Patch launchd plist file to match munge user/group
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=65a8f62292f965f5c44055c001afd4512884984e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
munge/Makefile | 11 ++++++++++-
munge/files/org.pkgsrc.munged.plist | 4 +++-
2 files changed, 13 insertions(+), 2 deletions(-)
diffs:
diff --git a/munge/Makefile b/munge/Makefile
index 3f14afeb1c..a4daf48723 100644
--- a/munge/Makefile
+++ b/munge/Makefile
@@ -65,10 +65,19 @@ post-install:
.endif
.if ${OPSYS} == Darwin
+SUBST_CLASSES+= launchd
+SUBST_STAGE.launchd= pre-configure
+SUBST_SED.launchd= -e 's|%%MUNGE_USER%%|${MUNGE_USER}|g'
+SUBST_SED.launchd+= -e 's|%%MUNGE_GROUP%%|${MUNGE_GROUP}|g'
+SUBST_FILES.launchd= ${WRKDIR}/org.pkgsrc.munged.plist
+
# Should not be necessary with AUTO_MKDIRS enabled, but it is
INSTALLATION_DIRS+= share/munge/Launchd
+post-patch:
+ ${CP} ${FILESDIR}/org.pkgsrc.munged.plist ${WRKDIR}
+
post-install:
- ${INSTALL_DATA} ${FILESDIR}/*.plist \
+ ${INSTALL_DATA} ${WRKDIR}/org.pkgsrc.munged.plist \
${DESTDIR}${PREFIX}/share/munge/Launchd
.endif
diff --git a/munge/files/org.pkgsrc.munged.plist b/munge/files/org.pkgsrc.munged.plist
index fc6ca9d0fc..7000253105 100644
--- a/munge/files/org.pkgsrc.munged.plist
+++ b/munge/files/org.pkgsrc.munged.plist
@@ -11,6 +11,8 @@
<key>KeepAlive</key>
<true/>
<key>UserName</key>
- <string>munge</string>
+ <string>%%MUNGE_USER%%</string>
+ <key>GroupName</key>
+ <string>%%MUNGE_GROUP%%</string>
</dict>
</plist>
Home |
Main Index |
Thread Index |
Old Index