pkgsrc-WIP-changes archive

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

mailman3: create mailman user/group



Module Name:	pkgsrc-wip
Committed By:	Mark Davies <mark%ecs.vuw.ac.nz@localhost>
Pushed By:	markd
Date:		Fri May 12 08:49:29 2023 +1200
Changeset:	b12765be04be4491832221dd0234c94a699d2160

Modified Files:
	mailman3/Makefile
	mailman3/distinfo
	mailman3/patches/patch-src_mailman_config_mailman.cfg

Log Message:
mailman3: create mailman user/group

also create required directories in VARBASE.
switch from using VARBASE/lock/mailman to VARBASE/spool/lock/mailman

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

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

diffstat:
 mailman3/Makefile                                   | 21 +++++++++++++++++++++
 mailman3/distinfo                                   |  2 +-
 .../patches/patch-src_mailman_config_mailman.cfg    |  2 +-
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs:
diff --git a/mailman3/Makefile b/mailman3/Makefile
index 75443db332..6caddfff3d 100644
--- a/mailman3/Makefile
+++ b/mailman3/Makefile
@@ -40,6 +40,8 @@ BUILD_DEPENDS+=	${PYPKGPREFIX}-flufl.testing-[0-9]*:../../devel/py-flufl.testing
 BUILD_DEPENDS+=	${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe
 BUILD_DEPENDS+=	${PYPKGPREFIX}-nose2-[0-9]*:../../devel/py-nose2
 
+BUILD_DEFS+=		VARBASE
+
 SUBST_CLASSES+=		fhs
 SUBST_STAGE.fhs=	pre-configure
 SUBST_FILES.fhs=	src/mailman/config/mailman.cfg
@@ -47,5 +49,24 @@ SUBST_FILES.fhs+=	src/mailman/core/initialize.py
 SUBST_MESSAGE.fhs=	Fixing default paths
 SUBST_VARS.fhs=		PKG_SYSCONFDIR PREFIX VARBASE
 
+#.include "../../mk/bsd.prefs.mk"
+
+MAILMAN_USER?=		mailman
+MAILMAN_GROUP?=		mailman
+
+PKG_GROUPS_VARS+=	MAILMAN_GROUP
+PKG_USERS_VARS+=	MAILMAN_USER
+
+PKG_GROUPS=		${MAILMAN_GROUP}
+PKG_USERS=		${MAILMAN_USER}:${MAILMAN_GROUP}
+
+PKG_GECOS.${MAILMAN_USER}=	Mailman user
+PKG_SHELL.${MAILMAN_USER}=	${SH}
+
+OWN_DIRS_PERMS+=	${VARBASE}/lib/mailman ${MAILMAN_USER} ${MAILMAN_GROUP} 770
+OWN_DIRS_PERMS+=	${VARBASE}/log/mailman ${MAILMAN_USER} ${MAILMAN_GROUP} 770
+OWN_DIRS_PERMS+=	${VARBASE}/spool/mailman ${MAILMAN_USER} ${MAILMAN_GROUP} 775
+OWN_DIRS_PERMS+=	${VARBASE}/spool/lock/mailman ${MAILMAN_USER} ${MAILMAN_GROUP} 775
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/mailman3/distinfo b/mailman3/distinfo
index 0a06b78b0b..e38e22f90d 100644
--- a/mailman3/distinfo
+++ b/mailman3/distinfo
@@ -3,6 +3,6 @@ $NetBSD$
 BLAKE2s (mailman-3.3.8.tar.gz) = 5951b7fe7494f6a11783430431f0490ce4fedea3fcf3f678d1869fdee75bece7
 SHA512 (mailman-3.3.8.tar.gz) = e0b98cc45d3aeaf0c07d331cb598b918343d611dbae4daf82d7182cc6a88f685ff574f7ac7cd5b0bb1dddb7926cacf18a8ee0dca64da352eff417e7c4a673afe
 Size (mailman-3.3.8.tar.gz) = 1676901 bytes
-SHA1 (patch-src_mailman_config_mailman.cfg) = f15ab4c57a731760a99d0920213f941fa16ca6b5
+SHA1 (patch-src_mailman_config_mailman.cfg) = 6210097dd8e00e88c966afb872cbee57b5f27c93
 SHA1 (patch-src_mailman_config_schema.cfg) = 02484fe9f01ef076c81e718246b18ed0ca95c821
 SHA1 (patch-src_mailman_core_initialize.py) = 3e40ba21cbbd95c22abe6792774bf63a65573f02
diff --git a/mailman3/patches/patch-src_mailman_config_mailman.cfg b/mailman3/patches/patch-src_mailman_config_mailman.cfg
index eecc1a3b33..94bd6615a8 100644
--- a/mailman3/patches/patch-src_mailman_config_mailman.cfg
+++ b/mailman3/patches/patch-src_mailman_config_mailman.cfg
@@ -20,7 +20,7 @@ Use pkgsrc FHS-like paths.
 +var_dir: @VARBASE@/lib/mailman
 +queue_dir: @VARBASE@/spool/mailman
 +log_dir: @VARBASE@/log/mailman
-+lock_dir: @VARBASE@/lock/mailman
++lock_dir: @VARBASE@/spool/lock/mailman
 +etc_dir: @PKG_SYSCONFDIR@
 +ext_dir: @PKG_SYSCONFDIR@/mailman.d
 +pid_file: @VARBASE@/run/mailman/master.pid


Home | Main Index | Thread Index | Old Index