pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
mailman3: add sample crontab
Module Name: pkgsrc-wip
Committed By: Mark Davies <mark%ecs.vuw.ac.nz@localhost>
Pushed By: markd
Date: Sun Jun 4 11:27:10 2023 +1200
Changeset: dd86596677a96e96ce8f94dc6889a4aa916f4038
Modified Files:
mailman3/Makefile
mailman3/PLIST
Added Files:
mailman3/files/crontab.sample
Log Message:
mailman3: add sample crontab
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dd86596677a96e96ce8f94dc6889a4aa916f4038
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
mailman3/Makefile | 5 +++++
mailman3/PLIST | 1 +
mailman3/files/crontab.sample | 8 ++++++++
3 files changed, 14 insertions(+)
diffs:
diff --git a/mailman3/Makefile b/mailman3/Makefile
index 9d1e9713df..78f7882cc2 100644
--- a/mailman3/Makefile
+++ b/mailman3/Makefile
@@ -46,6 +46,7 @@ SUBST_CLASSES+= fhs
SUBST_STAGE.fhs= pre-configure
SUBST_FILES.fhs= src/mailman/config/mailman.cfg
SUBST_FILES.fhs+= src/mailman/core/initialize.py
+SUBST_FILES.fhs+= crontab.sample
SUBST_MESSAGE.fhs= Fixing default paths
SUBST_VARS.fhs= PKG_SYSCONFDIR PREFIX VARBASE
@@ -79,8 +80,12 @@ CONF_FILES_PERMS= ${EGDIR}/mailman.cfg ${PKG_SYSCONFDIR}/mailman.cfg \
INSTALLATION_DIRS+= ${EGDIR}
+post-patch:
+ ${CP} ${FILESDIR}/crontab.sample ${WRKSRC}/crontab.sample
+
post-install:
${INSTALL_DATA} ${FILESDIR}/mailman.cfg ${DESTDIR}${PREFIX}/${EGDIR}/mailman.cfg
+ ${INSTALL_DATA} ${WRKSRC}/crontab.sample ${DESTDIR}${PREFIX}/${EGDIR}/crontab.sample
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mailman3/PLIST b/mailman3/PLIST
index fa61cba54e..ba813281c0 100644
--- a/mailman3/PLIST
+++ b/mailman3/PLIST
@@ -2225,3 +2225,4 @@ ${PYSITELIB}/mailman/version.py
${PYSITELIB}/mailman/version.pyc
${PYSITELIB}/mailman/version.pyo
share/examples/mailman3/mailman.cfg
+share/examples/mailman3/crontab.sample
diff --git a/mailman3/files/crontab.sample b/mailman3/files/crontab.sample
new file mode 100644
index 0000000000..e7d15ff953
--- /dev/null
+++ b/mailman3/files/crontab.sample
@@ -0,0 +1,8 @@
+# daily notifications
+0 8 * * * @PREFIX@/bin/mailman notify
+#
+# periodic digests
+0 12 * * * @PREFIX@/bin/mailman digests --periodic
+#
+# news gatway
+10 * * * * @PREFIX@/bin/mailman gatenews
Home |
Main Index |
Thread Index |
Old Index