pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lpjs: Set ownership and perms on config, log, and spool dirs



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Fri May 17 13:51:29 2024 -0500
Changeset:	1fa24dae75bcfb14d704ddeb5c42ee928a628adf

Modified Files:
	lpjs/Makefile

Log Message:
lpjs: Set ownership and perms on config, log, and spool dirs

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1fa24dae75bcfb14d704ddeb5c42ee928a628adf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lpjs/Makefile | 32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)

diffs:
diff --git a/lpjs/Makefile b/lpjs/Makefile
index 4cd65efc9d..e4da4ab653 100644
--- a/lpjs/Makefile
+++ b/lpjs/Makefile
@@ -27,15 +27,29 @@ CFLAGS+=	-g
 MAKE_FLAGS+=	INSTALL_UNSTRIPPED=yes
 LDFLAGS.SunOS=	-lresolv -lsocket -lnsl
 
-EGDIR=		${PREFIX}/share/examples/lpjs
-OWN_DIRS=	${PKG_SYSCONFDIR}/lpjs
-CONF_FILES=	${EGDIR}/config.sample ${PKG_SYSCONFDIR}/lpjs/config
-
-PKG_GROUPS=		lpjs
-PKG_USERS=		lpjs:lpjs
-PKG_GECOS.slurm=	LPJS daemon
-PKG_SHELL.slurm=	${NOLOGIN}
-RCD_SCRIPTS+=		lpjs_dispatchd lpjs_compd
+LPJS_USER=		lpjs
+LPJS_GROUP=		${LPJS_USER}
+
+LPJS_LOG_DIR?=		${PREFIX}/var/log/lpjs
+LPJS_SPOOL_DIR?=	${PREFIX}/var/spool/lpjs
+LPJS_ETC_DIR?=		${PREFIX}/etc/lpjs
+
+PKG_GROUPS+=		${LPJS_GROUP}
+PKG_USERS+=		${LPJS_USER}:${LPJS_GROUP}
+PKG_GECOS.lpjs=		LPJS daemon
+PKG_SHELL.lpjs=		${NOLOGIN}
+
+OWN_DIRS_PERMS+=	${LPJS_LOG_DIR} ${LPJS_USER} ${LPJS_GROUP} 0755
+OWN_DIRS_PERMS+=	${LPJS_SPOOL_DIR} ${LPJS_USER} ${LPJS_GROUP} 0755
+OWN_DIRS_PERMS+=	${LPJS_ETC_DIR} ${LPJS_USER} ${LPJS_GROUP} 0755
+OWN_DIRS_PERMS+=	${LPJS_ETC_DIR} ${LPJS_USER} ${LPJS_GROUP} 0755
+
+EGDIR=			${PREFIX}/share/examples/lpjs
+
+CONF_FILES_PERMS=	${EGDIR}/config.sample ${PKG_SYSCONFDIR}/lpjs/config ${LPJS_USER} ${LPJS_GROUP} 0644
+
+RCD_SCRIPTS=		lpjs_dispatchd lpjs_compd
+PKG_RCD_SCRIPTS=	yes
 
 INSTALLATION_DIRS=	share/examples/lpjs
 


Home | Main Index | Thread Index | Old Index