pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
munge: Attempt to set perms on sys dirs
Module Name: pkgsrc-wip
Committed By: Jason W. Bacon <bacon4000%gmail.com@localhost>
Pushed By: outpaddling
Date: Sun May 12 20:54:30 2024 -0500
Changeset: 1f1c82d9800aae36a9ad9f9901441d9b741bb9e0
Modified Files:
munge/Makefile
Log Message:
munge: Attempt to set perms on sys dirs
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1f1c82d9800aae36a9ad9f9901441d9b741bb9e0
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
munge/Makefile | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diffs:
diff --git a/munge/Makefile b/munge/Makefile
index eeacdaf59e..5732c53822 100644
--- a/munge/Makefile
+++ b/munge/Makefile
@@ -16,10 +16,22 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
INSTALLATION_DIRS+= lib/pkgconfig
-OWN_DIRS= ${PREFIX}/var/lib/munge
-OWN_DIRS+= ${PREFIX}/var/log/munge
-OWN_DIRS+= ${PREFIX}/var/run/munge
-OWN_DIRS+= etc/munge
+MUNGE_DIR?= ${PREFIX}/var/lib/munge
+MUNGE_LOG_DIR?= ${PREFIX}/var/log/munge
+MUNGE_RUN_DIR?= ${PREFIX}/var/run/munge
+MUNGE_ETC_DIR?= ${PREFIX}/etc/munge
+MUNGE_USER= munge
+MUNGE_GROUP= ${MUNGE_USER}
+
+PKG_GROUPS+= ${MUNGE_GROUP}
+PKG_USERS+= ${MUNGE_USER}:${MUNGE_GROUP}
+PKG_GECOS.munge= Munge user
+PKG_HOME.munge= ${MUNGE_DIR}
+
+OWN_DIRS_PERMS+= ${MUNGE_DIR} ${MUNGE_USER} ${MUNGE_GROUP} 0700
+OWN_DIRS_PERMS+= ${MUNGE_LOG_DIR} ${MUNGE_USER} ${MUNGE_GROUP} 0700
+OWN_DIRS_PERMS+= ${MUNGE_RUN_DIR} ${MUNGE_USER} ${MUNGE_GROUP} 0755
+OWN_DIRS_PERMS+= ${MUNGE_ETC_DIR} ${MUNGE_USER} ${MUNGE_GROUP} 0700
RCD_SCRIPTS+= munge
Home |
Main Index |
Thread Index |
Old Index