[arch-commits] Commit in mailman3/repos/community-any (26 files)
David Runge
dvzrv at gemini.archlinux.org
Wed Aug 3 22:09:46 UTC 2022
Date: Wednesday, August 3, 2022 @ 22:09:46
Author: dvzrv
Revision: 1260175
archrelease: copy trunk to community-any
Added:
mailman3/repos/community-any/PKGBUILD
(from rev 1260174, mailman3/trunk/PKGBUILD)
mailman3/repos/community-any/keys/
mailman3/repos/community-any/mailman3-3.3.5-booleans_rest_api.patch
(from rev 1260174, mailman3/trunk/mailman3-3.3.5-booleans_rest_api.patch)
mailman3/repos/community-any/mailman3-3.3.5-moderate_cross_posted.patch
(from rev 1260174, mailman3/trunk/mailman3-3.3.5-moderate_cross_posted.patch)
mailman3/repos/community-any/mailman3-3.3.5-python-alembic1.7.patch
(from rev 1260174, mailman3/trunk/mailman3-3.3.5-python-alembic1.7.patch)
mailman3/repos/community-any/mailman3-digests.service
(from rev 1260174, mailman3/trunk/mailman3-digests.service)
mailman3/repos/community-any/mailman3-digests.timer
(from rev 1260174, mailman3/trunk/mailman3-digests.timer)
mailman3/repos/community-any/mailman3-gatenews.service
(from rev 1260174, mailman3/trunk/mailman3-gatenews.service)
mailman3/repos/community-any/mailman3-gatenews.timer
(from rev 1260174, mailman3/trunk/mailman3-gatenews.timer)
mailman3/repos/community-any/mailman3-notify.service
(from rev 1260174, mailman3/trunk/mailman3-notify.service)
mailman3/repos/community-any/mailman3-notify.timer
(from rev 1260174, mailman3/trunk/mailman3-notify.timer)
mailman3/repos/community-any/mailman3.service
(from rev 1260174, mailman3/trunk/mailman3.service)
mailman3/repos/community-any/mailman3.sysusers
(from rev 1260174, mailman3/trunk/mailman3.sysusers)
mailman3/repos/community-any/mailman3.tmpfiles
(from rev 1260174, mailman3/trunk/mailman3.tmpfiles)
Deleted:
mailman3/repos/community-any/PKGBUILD
mailman3/repos/community-any/mailman3-3.3.5-moderate_cross_posted.patch
mailman3/repos/community-any/mailman3-3.3.5-python-alembic1.7.patch
mailman3/repos/community-any/mailman3-digests.service
mailman3/repos/community-any/mailman3-digests.timer
mailman3/repos/community-any/mailman3-gatenews.service
mailman3/repos/community-any/mailman3-gatenews.timer
mailman3/repos/community-any/mailman3-notify.service
mailman3/repos/community-any/mailman3-notify.timer
mailman3/repos/community-any/mailman3.service
mailman3/repos/community-any/mailman3.sysusers
mailman3/repos/community-any/mailman3.tmpfiles
--------------------------------------------+
PKGBUILD | 239 ++++++++++++++-------------
mailman3-3.3.5-booleans_rest_api.patch | 58 ++++++
mailman3-3.3.5-moderate_cross_posted.patch | 172 +++++++++----------
mailman3-3.3.5-python-alembic1.7.patch | 26 +-
mailman3-digests.service | 80 ++++-----
mailman3-digests.timer | 24 +-
mailman3-gatenews.service | 80 ++++-----
mailman3-gatenews.timer | 24 +-
mailman3-notify.service | 80 ++++-----
mailman3-notify.timer | 24 +-
mailman3.service | 86 ++++-----
mailman3.sysusers | 2
mailman3.tmpfiles | 8
13 files changed, 485 insertions(+), 418 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-03 22:09:26 UTC (rev 1260174)
+++ PKGBUILD 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,115 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=mailman
-pkgname=mailman3
-pkgver=3.3.5
-pkgrel=5
-pkgdesc="The GNU mailing list manager"
-arch=(any)
-url="https://www.list.org/"
-license=(GPL3)
-# mailman3 does not support python-sqlalchemy >= 1.4 https://gitlab.com/mailman/mailman/-/issues/899
-depends=(gunicorn python-aiosmtpd python-alembic python-atpublic
-python-authheaders python-authres python-click python-dateutil
-python-dnspython python-falcon python-flufl.bounce python-flufl.i18n
-python-flufl-lock python-importlib_resources python-lazr.config
-python-passlib python-requests python-sqlalchemy1.3
-python-zope-component python-zope-configuration python-zope-event
-python-zope-interface)
-makedepends=(git python-setuptools)
-checkdepends=(python-flufl.testing python-nose2 python-psycopg2
-python-pymysql python-pytest)
-optdepends=('hyperkitty: for local archive and list interaction'
- 'lynx: for the default HTML to plaintext conversion'
- 'mailman3-hyperkitty: for archiving mails with an instance of hyperkitty'
- 'postorius: for local configuration interaction'
- 'python-mailmanclient: for programmatically interfacing the mailman REST API locally'
- 'python-psycopg2: for PostgreSQL support'
- 'python-pymysql: for MySQL support'
- 'smtp-server: for using a local mail server')
-conflicts=(mailman)
-replaces=(mailman-core)
-backup=(etc/mailman.cfg)
-# the pypi sdist tarball for 3.3.5 misses the chain of trust:
-# https://gitlab.com/mailman/mailman/-/issues/948
-# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz{,.asc}
-source=(
- $pkgname::git+https://gitlab.com/$_name/$_name#tag=$pkgver?signed
- $pkgname.service
- $pkgname-digests.service
- $pkgname-digests.timer
- $pkgname-gatenews.service
- $pkgname-gatenews.timer
- $pkgname-notify.service
- $pkgname-notify.timer
- $pkgname.sysusers
- $pkgname.tmpfiles
- $pkgname-3.3.5-python-alembic1.7.patch
- $pkgname-3.3.5-moderate_cross_posted.patch
-)
-sha512sums=('SKIP'
- '5773eae02dee11b83eb73ba81bca98d9d0a22fa3175d53172d17bbc0e9821360a4d562b6f42a3bb55c2f0c0b5b50ab84ee82da4cf8b3ff38555a378687dcde3c'
- 'dccb7bfac560252f6c36ce26149d72d7faa52c1ff283b725deab802b0a94c45692224936b1a099b95dd5d90782dd39ecb15e299303d0264f1c14a6ac8052ee77'
- '5d7ccba8cf1262ab052078f2188ded15e43e1201302c7c24ce763efef9789ec99d8ea9a19e8fbd9bc5a38f47a162fe5cf4b0ade284894cb57af66350f23507bc'
- 'f02f0c25c5eb3493a4d345783a41a7ef03b9b4265b09bc5dc5d3cd6749c51f10d6d9f2b3fb48435df932008cf02b6b28ee28951e1e8db195ed5ef7eb3e32f7c6'
- 'fc550ef017ad8a22e0c40a8808361831b8c32cd0d34925cdce433ec4a0564e9577d6f9ccdcd38098eb4cf692257c061ff3fbea3b762d274f9b5e2fa88d10d82e'
- 'edc14e009d117c9799bb5d20f0f81dd580acdc184c35cbaf6596056467bc3116d77e5e4a1d9957cf23201cfd57c3a82970fe996e0565c8e527d83fcfc132051a'
- 'b8538618be8bdd6313d24b844d15c8f25a059c3391cd06db69314b7be19996bfbe913d6c0c9c99d6a19c4f92df32212d31785e92fb32faf5eb792fffe121fcce'
- '074cf58a93204d4b7631c4cc8af62d5720560301c6fefef6baa5d3aa33e72720870757fac7803f7b2835f8f02bb776f9d049df5c7528c743b56dda7da2085b07'
- '6f4b51fd5eb34ac974b3312c34eb1437d9435cfd50f0cb89db02b94ce514bceca2c6dc7cb172b79b2d6a23d68e7ea391ec58dbd9899938c0fe88c03c67c521b9'
- '3cba6577f70a212eca3590afbb03de0943c3509c7f93c29cd50da538e7a109626790becfa3f83098ee085ccf33c0612a9bedf3292089cfc9bdeabb83bda3f653'
- '55fa201bedc7926dfe1b8d7ca81c72e575f4c83a80ca3585c66f222efbc78c1a70af74be864d3e310aec7f10d2fc740e746c7d995b84aea716aceadd4c266d16')
-b2sums=('SKIP'
- '3efaa4559bcf54b322f4a21ee3000f5b2bea72dad2f9f436967f5c4d4ed8046bc08f8e31457991e63252237134f3f7d2f9e7e7862ebc211aeef11d506ded4440'
- 'fc6d6545dad6cecfd4c1197269a3ec025eb0b830e04151bb2dee778b9e357127667c5a65ea401b10e31e2ec6a8509719de29c30471fa50d09634c934bdf50b9b'
- 'b0d764dd4f7017c2d5b76e8a52b0c8d75e35b0b0d9025609853d389f8fa0732ea902549ef168f988bf845370cf67aeb7d439af8dec1997127522055b11e64000'
- '62dffd34e9952b5b7430b55d2ed01aafa8023b48d679f06cdaf444180012b8766ff633f198b92eade228420bad40718bc98f156b0c86a0f29e224585ccec48e0'
- '06bfa99d6356efc426430b67de9ed18bd80a5d659b4f0c81d7e2306810c856d1de34c5df1fd2834228f3c2b78fc42806f1d9bede9ddb3ac7185a367608c0a823'
- 'ca8aca1a916e99ed313adfd57c33fdd7a3e1b883e22daae8a1e32084331aa32e7ab99b8adfb6ef95b8b696232d044c65de23dba28b2c7e31a9bd02a5f2cb22c2'
- 'b980470b16171ed0e32a0c1d9de7d5e6802431dd5275089c03f7bc862d5ac886b78af8aa8828faa71a63e847c9caf660c3da2890828ecb2e0bea537c2c4001a5'
- '594d6a6712f9e817f4d935225d3a1d87c96e23f1e449caab6bfb00ce2a0421af1401505c6d1d280a03f8c551136639f0dabf27d8b549ca4ea26bdb3febdda660'
- '461dce577696405011ed89f7fc109caaf27f4183b4d315baa8ad03db0f12015ebc447cbe9c0b8c5bcba38b63fcaf45adcfcb3e5bf5afb7eb0bd87a2e1b0301e5'
- '736b7bfb0d41cbf0703212139f326c1aeb04d7d800b0819c4f5fe101d5d105686dfe2fa0d8c2ae2c87d3e23314a8c126a83b5b4d467d7fb1b8073e176daa297b'
- '21e9213373b2432e0c7a90bd11b203e7e71dc110001dde40e9a258d6c26de9484a6b45c06444864bb65f727a587c5eec7b052358549025a9fab4e9cb9762a5fb')
-validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <maxking at asynchronous.in>
-
-prepare() {
- # use python-alembic >= 1.7 as well, as alembic upstream claims to support sqlalchemy >= 1.3
- patch -d $pkgname -Np1 -i ../$pkgname-3.3.5-python-alembic1.7.patch
-
- # fix issue with moderating cross-posted messages: https://gitlab.com/mailman/mailman/-/issues/955
- patch -d $pkgname -Np1 -i ../$pkgname-3.3.5-moderate_cross_posted.patch
-
- cd $pkgname
- # make sure that mailman runs in a FHS compliant way
- printf "[mailman]\nlayout: fhs\n" >> ../$_name.cfg
- # set /var/lib/mailman instead of /var/tmp/mailman as default var_dir:
- sed -e 's|/var/tmp/mailman|/var/lib/mailman|g' -i src/$_name/config/schema.cfg
-}
-
-build() {
- cd $pkgname
- python setup.py build
-}
-
-check() {
- cd $pkgname
- # thanks to test design it is impossible to run tests:
- # https://gitlab.com/mailman/mailman/-/issues/400
-}
-
-package() {
- cd $pkgname
- python setup.py install --optimize=1 --root="$pkgdir"
-
- # config
- install -vDm 640 ../$_name.cfg -t "$pkgdir/etc/"
- # state dir
- install -vdm 750 "$pkgdir/var/lib/mailman"
- # sysusers.d
- install -vDm 644 ../$pkgname.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
- # tmpfiles.d
- install -vDm 644 ../$pkgname.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
- # services and timer
- install -vDm 644 ../*.{service,timer} -t "$pkgdir/usr/lib/systemd/system"
-}
Copied: mailman3/repos/community-any/PKGBUILD (from rev 1260174, mailman3/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,124 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=mailman
+pkgname=mailman3
+pkgver=3.3.5
+pkgrel=6
+pkgdesc="The GNU mailing list manager"
+arch=(any)
+url="https://www.list.org/"
+license=(GPL3)
+# mailman3 does not support python-sqlalchemy >= 1.4 https://gitlab.com/mailman/mailman/-/issues/899
+depends=(gunicorn python-aiosmtpd python-alembic python-atpublic
+python-authheaders python-authres python-click python-dateutil
+python-dnspython python-falcon python-flufl.bounce python-flufl.i18n
+python-flufl-lock python-importlib_resources python-lazr.config
+python-passlib python-requests python-sqlalchemy1.3
+python-zope-component python-zope-configuration python-zope-event
+python-zope-interface)
+makedepends=(git python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-flufl.testing python-nose2 python-psycopg2
+python-pymysql python-pytest)
+optdepends=(
+ 'hyperkitty: for local archive and list interaction'
+ 'lynx: for the default HTML to plaintext conversion'
+ 'mailman3-hyperkitty: for archiving mails with an instance of hyperkitty'
+ 'postorius: for local configuration interaction'
+ 'python-mailmanclient: for programmatically interfacing the mailman REST API locally'
+ 'python-psycopg2: for PostgreSQL support'
+ 'python-pymysql: for MySQL support'
+ 'smtp-server: for using a local mail server'
+)
+conflicts=(mailman)
+replaces=(mailman-core)
+backup=(etc/mailman.cfg)
+# the pypi sdist tarball for 3.3.5 misses the chain of trust:
+# https://gitlab.com/mailman/mailman/-/issues/948
+# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz{,.asc}
+source=(
+ $pkgname::git+https://gitlab.com/$_name/$_name#tag=$pkgver?signed
+ $pkgname.service
+ $pkgname-digests.service
+ $pkgname-digests.timer
+ $pkgname-gatenews.service
+ $pkgname-gatenews.timer
+ $pkgname-notify.service
+ $pkgname-notify.timer
+ $pkgname.sysusers
+ $pkgname.tmpfiles
+ $pkgname-3.3.5-python-alembic1.7.patch
+ $pkgname-3.3.5-moderate_cross_posted.patch
+ $pkgname-3.3.5-booleans_rest_api.patch
+)
+sha512sums=('SKIP'
+ '5773eae02dee11b83eb73ba81bca98d9d0a22fa3175d53172d17bbc0e9821360a4d562b6f42a3bb55c2f0c0b5b50ab84ee82da4cf8b3ff38555a378687dcde3c'
+ 'dccb7bfac560252f6c36ce26149d72d7faa52c1ff283b725deab802b0a94c45692224936b1a099b95dd5d90782dd39ecb15e299303d0264f1c14a6ac8052ee77'
+ '5d7ccba8cf1262ab052078f2188ded15e43e1201302c7c24ce763efef9789ec99d8ea9a19e8fbd9bc5a38f47a162fe5cf4b0ade284894cb57af66350f23507bc'
+ 'f02f0c25c5eb3493a4d345783a41a7ef03b9b4265b09bc5dc5d3cd6749c51f10d6d9f2b3fb48435df932008cf02b6b28ee28951e1e8db195ed5ef7eb3e32f7c6'
+ 'fc550ef017ad8a22e0c40a8808361831b8c32cd0d34925cdce433ec4a0564e9577d6f9ccdcd38098eb4cf692257c061ff3fbea3b762d274f9b5e2fa88d10d82e'
+ 'edc14e009d117c9799bb5d20f0f81dd580acdc184c35cbaf6596056467bc3116d77e5e4a1d9957cf23201cfd57c3a82970fe996e0565c8e527d83fcfc132051a'
+ 'b8538618be8bdd6313d24b844d15c8f25a059c3391cd06db69314b7be19996bfbe913d6c0c9c99d6a19c4f92df32212d31785e92fb32faf5eb792fffe121fcce'
+ '074cf58a93204d4b7631c4cc8af62d5720560301c6fefef6baa5d3aa33e72720870757fac7803f7b2835f8f02bb776f9d049df5c7528c743b56dda7da2085b07'
+ '6f4b51fd5eb34ac974b3312c34eb1437d9435cfd50f0cb89db02b94ce514bceca2c6dc7cb172b79b2d6a23d68e7ea391ec58dbd9899938c0fe88c03c67c521b9'
+ '3cba6577f70a212eca3590afbb03de0943c3509c7f93c29cd50da538e7a109626790becfa3f83098ee085ccf33c0612a9bedf3292089cfc9bdeabb83bda3f653'
+ '55fa201bedc7926dfe1b8d7ca81c72e575f4c83a80ca3585c66f222efbc78c1a70af74be864d3e310aec7f10d2fc740e746c7d995b84aea716aceadd4c266d16'
+ 'd4912abf8b13f205993f68d2f18fcad4e3b11a00da0ed54b4177417f129e074f066527e5984f237a8ae71d6c4277c12163ea53e695d376434a6cfe2c65ee3c2a')
+b2sums=('SKIP'
+ '3efaa4559bcf54b322f4a21ee3000f5b2bea72dad2f9f436967f5c4d4ed8046bc08f8e31457991e63252237134f3f7d2f9e7e7862ebc211aeef11d506ded4440'
+ 'fc6d6545dad6cecfd4c1197269a3ec025eb0b830e04151bb2dee778b9e357127667c5a65ea401b10e31e2ec6a8509719de29c30471fa50d09634c934bdf50b9b'
+ 'b0d764dd4f7017c2d5b76e8a52b0c8d75e35b0b0d9025609853d389f8fa0732ea902549ef168f988bf845370cf67aeb7d439af8dec1997127522055b11e64000'
+ '62dffd34e9952b5b7430b55d2ed01aafa8023b48d679f06cdaf444180012b8766ff633f198b92eade228420bad40718bc98f156b0c86a0f29e224585ccec48e0'
+ '06bfa99d6356efc426430b67de9ed18bd80a5d659b4f0c81d7e2306810c856d1de34c5df1fd2834228f3c2b78fc42806f1d9bede9ddb3ac7185a367608c0a823'
+ 'ca8aca1a916e99ed313adfd57c33fdd7a3e1b883e22daae8a1e32084331aa32e7ab99b8adfb6ef95b8b696232d044c65de23dba28b2c7e31a9bd02a5f2cb22c2'
+ 'b980470b16171ed0e32a0c1d9de7d5e6802431dd5275089c03f7bc862d5ac886b78af8aa8828faa71a63e847c9caf660c3da2890828ecb2e0bea537c2c4001a5'
+ '594d6a6712f9e817f4d935225d3a1d87c96e23f1e449caab6bfb00ce2a0421af1401505c6d1d280a03f8c551136639f0dabf27d8b549ca4ea26bdb3febdda660'
+ '461dce577696405011ed89f7fc109caaf27f4183b4d315baa8ad03db0f12015ebc447cbe9c0b8c5bcba38b63fcaf45adcfcb3e5bf5afb7eb0bd87a2e1b0301e5'
+ '736b7bfb0d41cbf0703212139f326c1aeb04d7d800b0819c4f5fe101d5d105686dfe2fa0d8c2ae2c87d3e23314a8c126a83b5b4d467d7fb1b8073e176daa297b'
+ '21e9213373b2432e0c7a90bd11b203e7e71dc110001dde40e9a258d6c26de9484a6b45c06444864bb65f727a587c5eec7b052358549025a9fab4e9cb9762a5fb'
+ '20bae136e041690fe000659ce400499cc7391176cd5852888863fb85669d514b6a6081674eac9d73ee6fe2b89416665aedc9bec5aa4570406842d652dbfcb765')
+validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <maxking at asynchronous.in>
+
+prepare() {
+ # use python-alembic >= 1.7 as well, as alembic upstream claims to support sqlalchemy >= 1.3
+ patch -d $pkgname -Np1 -i ../$pkgname-3.3.5-python-alembic1.7.patch
+
+ # fix issue with moderating cross-posted messages: https://gitlab.com/mailman/mailman/-/issues/955
+ patch -d $pkgname -Np1 -i ../$pkgname-3.3.5-moderate_cross_posted.patch
+
+ # accept booleans in REST API: https://gitlab.com/mailman/mailman/-/issues/970
+ patch -d $pkgname -Np1 -i ../$pkgname-3.3.5-booleans_rest_api.patch
+
+ cd $pkgname
+ # make sure that mailman runs in a FHS compliant way
+ printf "[mailman]\nlayout: fhs\n" >> ../$_name.cfg
+ # set /var/lib/mailman instead of /var/tmp/mailman as default var_dir:
+ sed -e 's|/var/tmp/mailman|/var/lib/mailman|g' -i src/$_name/config/schema.cfg
+}
+
+build() {
+ cd $pkgname
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $pkgname
+ # thanks to test design it is impossible to run tests:
+ # https://gitlab.com/mailman/mailman/-/issues/400
+ # nose2 -v
+}
+
+package() {
+ cd $pkgname
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # config
+ install -vDm 640 ../$_name.cfg -t "$pkgdir/etc/"
+ # state dir
+ install -vdm 750 "$pkgdir/var/lib/mailman"
+ # sysusers.d
+ install -vDm 644 ../$pkgname.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+ # tmpfiles.d
+ install -vDm 644 ../$pkgname.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+ # services and timer
+ install -vDm 644 ../*.{service,timer} -t "$pkgdir/usr/lib/systemd/system"
+}
Copied: mailman3/repos/community-any/mailman3-3.3.5-booleans_rest_api.patch (from rev 1260174, mailman3/trunk/mailman3-3.3.5-booleans_rest_api.patch)
===================================================================
--- mailman3-3.3.5-booleans_rest_api.patch (rev 0)
+++ mailman3-3.3.5-booleans_rest_api.patch 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,58 @@
+diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py
+index 6f5d02872551d68942bfcc09b89dfec2934dce27..3efd772411769b502a2d32fec19e83d87d44a47c 100644
+--- a/src/mailman/rest/helpers.py
++++ b/src/mailman/rest/helpers.py
+@@ -249,6 +249,8 @@ class GetterSetter:
+ """
+ if self.decoder is None:
+ return value
++ if self.decoder is as_boolean and isinstance(value, bool):
++ return value
+ return self.decoder(value)
+
+
+diff --git a/src/mailman/rest/tests/test_listconf.py b/src/mailman/rest/tests/test_listconf.py
+index e9f1844fb0d5393c66b91b1ff9a01597a7a48e9b..59885bd9ef57f9258cb224281244dd2983788ebe 100644
+--- a/src/mailman/rest/tests/test_listconf.py
++++ b/src/mailman/rest/tests/test_listconf.py
+@@ -292,6 +292,17 @@ class TestConfiguration(unittest.TestCase):
+ 'Invalid Parameter "archive_policy": Accepted Values are:'
+ ' never, private, public.')
+
++ def test_patch_with_json_boolean(self):
++ # Ensure we can patch with JSON boolean value.
++ with transaction():
++ self._mlist.gateway_to_mail = False
++ response = call_api(
++ 'http://localhost:9001/3.0/lists/ant.example.com/config',
++ method='PATCH', headers={'Content-Type': 'application/json'},
++ json={'gateway_to_mail': True})
++ self.assertEqual(response[1].status_code, 204)
++ self.assertTrue(self._mlist.gateway_to_mail)
++
+ def test_bad_pipeline_name(self):
+ with self.assertRaises(HTTPError) as cm:
+ call_api(
+diff --git a/src/mailman/rest/tests/test_validator.py b/src/mailman/rest/tests/test_validator.py
+index 32c4a60c8d8920592a83d8296934a404f89eadfe..664770d7261872f428ac4a7991df7015d1414679 100644
+--- a/src/mailman/rest/tests/test_validator.py
++++ b/src/mailman/rest/tests/test_validator.py
+@@ -19,6 +19,7 @@
+
+ import unittest
+
++from lazr.config import as_boolean
+ from mailman.app.lifecycle import create_list
+ from mailman.core.api import API30, API31
+ from mailman.database.transaction import transaction
+@@ -170,3 +171,10 @@ class TestGetterSetter(unittest.TestCase):
+ ['application/octet-stream'])
+ self.assertEqual(list(self._mlist.pass_extensions),
+ ['.pdf'])
++
++ def test_set_boolean_as_bool(self):
++ # Non-pythonic POST data can contain JSON booleans. Ensure we can
++ # handle that.
++ getset = helpers.GetterSetter(as_boolean)
++ self.assertTrue(getset(True))
++ self.assertFalse(getset(False))
Deleted: mailman3-3.3.5-moderate_cross_posted.patch
===================================================================
--- mailman3-3.3.5-moderate_cross_posted.patch 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-3.3.5-moderate_cross_posted.patch 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,86 +0,0 @@
-diff --git a/src/mailman/app/moderator.py b/src/mailman/app/moderator.py
-index 513d0108e..aa044b83d 100644
---- a/src/mailman/app/moderator.py
-+++ b/src/mailman/app/moderator.py
-@@ -189,7 +189,7 @@ def handle_message(mlist, id, action, comment=None, forward=None):
- # Delete the request and message if it's not being kept.
- if not keep:
- # There are two pended tokens. The request id has the moderator
-- # token, but wee need to delete the user token too.
-+ # token, but we need to delete the user token too.
- user_token = None
- pendings = getUtility(IPendings)
- for token, data in pendings.find(pend_type='held message'):
-@@ -200,7 +200,14 @@ def handle_message(mlist, id, action, comment=None, forward=None):
- if user_token is not None:
- pendings.confirm(user_token, expunge=True)
- requestdb.delete_request(id)
-- message_store.delete_message(message_id)
-+ # Only delete the message from the message store if there's no other
-+ # request for it.
-+ delete = True
-+ for token, data in pendings.find(pend_type='data'):
-+ if data['_mod_message_id'] == message_id:
-+ delete = False
-+ if delete:
-+ message_store.delete_message(message_id)
- # Log the rejection
- if rejection:
- note = """%s: %s posting:
-diff --git a/src/mailman/app/tests/test_moderation.py b/src/mailman/app/tests/test_moderation.py
-index a99048a48..1206611f5 100644
---- a/src/mailman/app/tests/test_moderation.py
-+++ b/src/mailman/app/tests/test_moderation.py
-@@ -206,9 +206,36 @@ Message-ID: <alpha>
- self.assertIsNone(message)
- self.assertIsNone(getUtility(IPendings).confirm(hash))
-
-+ def test_handled_cross_posted_message_not_removed(self):
-+ # A cross posted message is not removed when handled on the first list.
-+ mlist2 = create_list('test2 at example.com')
-+ request_db2 = IListRequests(mlist2)
-+ request_id = hold_message(self._mlist, self._msg)
-+ request_id2 = hold_message(mlist2, self._msg)
-+ # Get the hashes for these pending requests.
-+ hash0 = list(self._request_db.held_requests)[0].data_hash
-+ hash1 = list(request_db2.held_requests)[0].data_hash
-+ # Handle the first list's message.
-+ handle_message(self._mlist, request_id, Action.discard)
-+ # There's now only the request for list2.
-+ self.assertEqual(self._request_db.count, 0)
-+ self.assertEqual(request_db2.count, 1)
-+ message = getUtility(IMessageStore).get_message_by_id('<alpha>')
-+ self.assertIsNotNone(message)
-+ self.assertIsNone(getUtility(IPendings).confirm(hash0))
-+ self.assertIsNotNone(getUtility(IPendings).confirm(hash1,
-+ expunge=False))
-+ # Handle the second list's message.
-+ handle_message(mlist2, request_id2, Action.discard)
-+ # Now the request and message are gone.
-+ self.assertEqual(request_db2.count, 0)
-+ message = getUtility(IMessageStore).get_message_by_id('<alpha>')
-+ self.assertIsNone(message)
-+ self.assertIsNone(getUtility(IPendings).confirm(hash1))
-+
- def test_all_pendings_removed(self):
- # A held message pends two tokens, One for the moderator and one for
-- # the user. Ensure both are removed when meddage is handled.
-+ # the user. Ensure both are removed when message is handled.
- request_id = hold_message(self._mlist, self._msg)
- # The hold chain does more.
- pendings = getUtility(IPendings)
-diff --git a/src/mailman/app/moderator.py b/src/mailman/app/moderator.py
-index aa044b83d..898b14160 100644
---- a/src/mailman/app/moderator.py
-+++ b/src/mailman/app/moderator.py
-@@ -204,8 +204,9 @@ def handle_message(mlist, id, action, comment=None, forward=None):
- # request for it.
- delete = True
- for token, data in pendings.find(pend_type='data'):
-- if data['_mod_message_id'] == message_id:
-+ if data and data.get('_mod_message_id') == message_id:
- delete = False
-+ break
- if delete:
- message_store.delete_message(message_id)
- # Log the rejection
Copied: mailman3/repos/community-any/mailman3-3.3.5-moderate_cross_posted.patch (from rev 1260174, mailman3/trunk/mailman3-3.3.5-moderate_cross_posted.patch)
===================================================================
--- mailman3-3.3.5-moderate_cross_posted.patch (rev 0)
+++ mailman3-3.3.5-moderate_cross_posted.patch 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,86 @@
+diff --git a/src/mailman/app/moderator.py b/src/mailman/app/moderator.py
+index 513d0108e..aa044b83d 100644
+--- a/src/mailman/app/moderator.py
++++ b/src/mailman/app/moderator.py
+@@ -189,7 +189,7 @@ def handle_message(mlist, id, action, comment=None, forward=None):
+ # Delete the request and message if it's not being kept.
+ if not keep:
+ # There are two pended tokens. The request id has the moderator
+- # token, but wee need to delete the user token too.
++ # token, but we need to delete the user token too.
+ user_token = None
+ pendings = getUtility(IPendings)
+ for token, data in pendings.find(pend_type='held message'):
+@@ -200,7 +200,14 @@ def handle_message(mlist, id, action, comment=None, forward=None):
+ if user_token is not None:
+ pendings.confirm(user_token, expunge=True)
+ requestdb.delete_request(id)
+- message_store.delete_message(message_id)
++ # Only delete the message from the message store if there's no other
++ # request for it.
++ delete = True
++ for token, data in pendings.find(pend_type='data'):
++ if data['_mod_message_id'] == message_id:
++ delete = False
++ if delete:
++ message_store.delete_message(message_id)
+ # Log the rejection
+ if rejection:
+ note = """%s: %s posting:
+diff --git a/src/mailman/app/tests/test_moderation.py b/src/mailman/app/tests/test_moderation.py
+index a99048a48..1206611f5 100644
+--- a/src/mailman/app/tests/test_moderation.py
++++ b/src/mailman/app/tests/test_moderation.py
+@@ -206,9 +206,36 @@ Message-ID: <alpha>
+ self.assertIsNone(message)
+ self.assertIsNone(getUtility(IPendings).confirm(hash))
+
++ def test_handled_cross_posted_message_not_removed(self):
++ # A cross posted message is not removed when handled on the first list.
++ mlist2 = create_list('test2 at example.com')
++ request_db2 = IListRequests(mlist2)
++ request_id = hold_message(self._mlist, self._msg)
++ request_id2 = hold_message(mlist2, self._msg)
++ # Get the hashes for these pending requests.
++ hash0 = list(self._request_db.held_requests)[0].data_hash
++ hash1 = list(request_db2.held_requests)[0].data_hash
++ # Handle the first list's message.
++ handle_message(self._mlist, request_id, Action.discard)
++ # There's now only the request for list2.
++ self.assertEqual(self._request_db.count, 0)
++ self.assertEqual(request_db2.count, 1)
++ message = getUtility(IMessageStore).get_message_by_id('<alpha>')
++ self.assertIsNotNone(message)
++ self.assertIsNone(getUtility(IPendings).confirm(hash0))
++ self.assertIsNotNone(getUtility(IPendings).confirm(hash1,
++ expunge=False))
++ # Handle the second list's message.
++ handle_message(mlist2, request_id2, Action.discard)
++ # Now the request and message are gone.
++ self.assertEqual(request_db2.count, 0)
++ message = getUtility(IMessageStore).get_message_by_id('<alpha>')
++ self.assertIsNone(message)
++ self.assertIsNone(getUtility(IPendings).confirm(hash1))
++
+ def test_all_pendings_removed(self):
+ # A held message pends two tokens, One for the moderator and one for
+- # the user. Ensure both are removed when meddage is handled.
++ # the user. Ensure both are removed when message is handled.
+ request_id = hold_message(self._mlist, self._msg)
+ # The hold chain does more.
+ pendings = getUtility(IPendings)
+diff --git a/src/mailman/app/moderator.py b/src/mailman/app/moderator.py
+index aa044b83d..898b14160 100644
+--- a/src/mailman/app/moderator.py
++++ b/src/mailman/app/moderator.py
+@@ -204,8 +204,9 @@ def handle_message(mlist, id, action, comment=None, forward=None):
+ # request for it.
+ delete = True
+ for token, data in pendings.find(pend_type='data'):
+- if data['_mod_message_id'] == message_id:
++ if data and data.get('_mod_message_id') == message_id:
+ delete = False
++ break
+ if delete:
+ message_store.delete_message(message_id)
+ # Log the rejection
Deleted: mailman3-3.3.5-python-alembic1.7.patch
===================================================================
--- mailman3-3.3.5-python-alembic1.7.patch 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-3.3.5-python-alembic1.7.patch 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,13 +0,0 @@
-diff --git i/setup.py w/setup.py
-index 60c165cbe..c7042c0b1 100644
---- i/setup.py
-+++ w/setup.py
-@@ -111,7 +111,7 @@ case second 'm'. Any other spelling is incorrect.""",
- },
- install_requires = [
- 'aiosmtpd>=1.4.1',
-- 'alembic>=1.6.2,<1.7',
-+ 'alembic>=1.6.2',
- 'atpublic',
- 'authheaders>=0.9.2',
- 'authres>=1.0.1',
Copied: mailman3/repos/community-any/mailman3-3.3.5-python-alembic1.7.patch (from rev 1260174, mailman3/trunk/mailman3-3.3.5-python-alembic1.7.patch)
===================================================================
--- mailman3-3.3.5-python-alembic1.7.patch (rev 0)
+++ mailman3-3.3.5-python-alembic1.7.patch 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,13 @@
+diff --git i/setup.py w/setup.py
+index 60c165cbe..c7042c0b1 100644
+--- i/setup.py
++++ w/setup.py
+@@ -111,7 +111,7 @@ case second 'm'. Any other spelling is incorrect.""",
+ },
+ install_requires = [
+ 'aiosmtpd>=1.4.1',
+- 'alembic>=1.6.2,<1.7',
++ 'alembic>=1.6.2',
+ 'atpublic',
+ 'authheaders>=0.9.2',
+ 'authres>=1.0.1',
Deleted: mailman3-digests.service
===================================================================
--- mailman3-digests.service 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-digests.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,40 +0,0 @@
-[Unit]
-Description=GNU Mailing List Digests
-Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/digests.html
-JoinsNamespaceOf=mailman3.service
-Requires=mailman3.service
-After=mailman3.service
-
-[Service]
-User=mailman
-ExecStart=/usr/bin/mailman digests --periodic
-Type=forking
-Nice=19
-IOSchedulingClass=best-effort
-IOSchedulingPriority=7
-PrivateTmp=true
-ProtectSystem=strict
-ProtectHome=true
-PrivateDevices=true
-ProtectKernelTunables=true
-ProtectControlGroups=true
-NoNewPrivileges=true
-MemoryDenyWriteExecute=true
-LockPersonality=true
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-ProtectHostname=true
-ProtectKernelLogs=true
-ProtectKernelModules=true
-RemoveIPC=true
-RestrictAddressFamilies=~AF_PACKET
-RestrictNamespaces=true
-RestrictRealtime=true
-RestrictSUIDSGID=true
-SystemCallArchitectures=native
-SystemCallFilter=@system-service
-SystemCallFilter=~@privileged @resources
-ReadWritePaths=/var/lock/mailman /var/spool/mailman
-ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
-RuntimeDirectory=mailman
-StateDirectory=mailman
-LogsDirectory=mailman
Copied: mailman3/repos/community-any/mailman3-digests.service (from rev 1260174, mailman3/trunk/mailman3-digests.service)
===================================================================
--- mailman3-digests.service (rev 0)
+++ mailman3-digests.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,40 @@
+[Unit]
+Description=GNU Mailing List Digests
+Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/digests.html
+JoinsNamespaceOf=mailman3.service
+Requires=mailman3.service
+After=mailman3.service
+
+[Service]
+User=mailman
+ExecStart=/usr/bin/mailman digests --periodic
+Type=forking
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+NoNewPrivileges=true
+MemoryDenyWriteExecute=true
+LockPersonality=true
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+RemoveIPC=true
+RestrictAddressFamilies=~AF_PACKET
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallFilter=~@privileged @resources
+ReadWritePaths=/var/lock/mailman /var/spool/mailman
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+RuntimeDirectory=mailman
+StateDirectory=mailman
+LogsDirectory=mailman
Deleted: mailman3-digests.timer
===================================================================
--- mailman3-digests.timer 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-digests.timer 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Daily GNU Mailing List Digests
-Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/digests.html
-
-[Timer]
-AccuracySec=1us
-OnCalendar=08:00:00
-Persistent=true
-RandomizedDelaySec=10min
-
-[Install]
-WantedBy=timers.target
Copied: mailman3/repos/community-any/mailman3-digests.timer (from rev 1260174, mailman3/trunk/mailman3-digests.timer)
===================================================================
--- mailman3-digests.timer (rev 0)
+++ mailman3-digests.timer 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Daily GNU Mailing List Digests
+Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/digests.html
+
+[Timer]
+AccuracySec=1us
+OnCalendar=08:00:00
+Persistent=true
+RandomizedDelaySec=10min
+
+[Install]
+WantedBy=timers.target
Deleted: mailman3-gatenews.service
===================================================================
--- mailman3-gatenews.service 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-gatenews.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,40 +0,0 @@
-[Unit]
-Description=GNU Mailing List NNTP
-Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/gatenews.html
-JoinsNamespaceOf=mailman3.service
-Requires=mailman3.service
-After=mailman3.service
-
-[Service]
-User=mailman
-ExecStart=/usr/bin/mailman gatenews
-Type=forking
-Nice=19
-IOSchedulingClass=best-effort
-IOSchedulingPriority=7
-PrivateTmp=true
-ProtectSystem=strict
-ProtectHome=true
-PrivateDevices=true
-ProtectKernelTunables=true
-ProtectControlGroups=true
-NoNewPrivileges=true
-MemoryDenyWriteExecute=true
-LockPersonality=true
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-ProtectHostname=true
-ProtectKernelLogs=true
-ProtectKernelModules=true
-RemoveIPC=true
-RestrictAddressFamilies=~AF_PACKET
-RestrictNamespaces=true
-RestrictRealtime=true
-RestrictSUIDSGID=true
-SystemCallArchitectures=native
-SystemCallFilter=@system-service
-SystemCallFilter=~@privileged @resources
-ReadWritePaths=/var/lock/mailman /var/spool/mailman
-ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
-RuntimeDirectory=mailman
-StateDirectory=mailman
-LogsDirectory=mailman
Copied: mailman3/repos/community-any/mailman3-gatenews.service (from rev 1260174, mailman3/trunk/mailman3-gatenews.service)
===================================================================
--- mailman3-gatenews.service (rev 0)
+++ mailman3-gatenews.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,40 @@
+[Unit]
+Description=GNU Mailing List NNTP
+Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/gatenews.html
+JoinsNamespaceOf=mailman3.service
+Requires=mailman3.service
+After=mailman3.service
+
+[Service]
+User=mailman
+ExecStart=/usr/bin/mailman gatenews
+Type=forking
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+NoNewPrivileges=true
+MemoryDenyWriteExecute=true
+LockPersonality=true
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+RemoveIPC=true
+RestrictAddressFamilies=~AF_PACKET
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallFilter=~@privileged @resources
+ReadWritePaths=/var/lock/mailman /var/spool/mailman
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+RuntimeDirectory=mailman
+StateDirectory=mailman
+LogsDirectory=mailman
Deleted: mailman3-gatenews.timer
===================================================================
--- mailman3-gatenews.timer 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-gatenews.timer 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Hourly GNU Mailing List Digests
-Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/gatenews.html
-
-[Timer]
-AccuracySec=1us
-OnCalendar=hourly
-Persistent=true
-RandomizedDelaySec=5min
-
-[Install]
-WantedBy=timers.target
Copied: mailman3/repos/community-any/mailman3-gatenews.timer (from rev 1260174, mailman3/trunk/mailman3-gatenews.timer)
===================================================================
--- mailman3-gatenews.timer (rev 0)
+++ mailman3-gatenews.timer 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Hourly GNU Mailing List Digests
+Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/gatenews.html
+
+[Timer]
+AccuracySec=1us
+OnCalendar=hourly
+Persistent=true
+RandomizedDelaySec=5min
+
+[Install]
+WantedBy=timers.target
Deleted: mailman3-notify.service
===================================================================
--- mailman3-notify.service 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-notify.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,40 +0,0 @@
-[Unit]
-Description=GNU Mailing List Notify
-Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/notify.html
-JoinsNamespaceOf=mailman3.service
-Requires=mailman3.service
-After=mailman3.service
-
-[Service]
-User=mailman
-ExecStart=/usr/bin/mailman notify
-Type=forking
-Nice=19
-IOSchedulingClass=best-effort
-IOSchedulingPriority=7
-PrivateTmp=true
-ProtectSystem=strict
-ProtectHome=true
-PrivateDevices=true
-ProtectKernelTunables=true
-ProtectControlGroups=true
-NoNewPrivileges=true
-MemoryDenyWriteExecute=true
-LockPersonality=true
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-ProtectHostname=true
-ProtectKernelLogs=true
-ProtectKernelModules=true
-RemoveIPC=true
-RestrictAddressFamilies=~AF_PACKET
-RestrictNamespaces=true
-RestrictRealtime=true
-RestrictSUIDSGID=true
-SystemCallArchitectures=native
-SystemCallFilter=@system-service
-SystemCallFilter=~@privileged @resources
-ReadWritePaths=/var/lock/mailman /var/spool/mailman
-ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
-RuntimeDirectory=mailman
-StateDirectory=mailman
-LogsDirectory=mailman
Copied: mailman3/repos/community-any/mailman3-notify.service (from rev 1260174, mailman3/trunk/mailman3-notify.service)
===================================================================
--- mailman3-notify.service (rev 0)
+++ mailman3-notify.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,40 @@
+[Unit]
+Description=GNU Mailing List Notify
+Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/notify.html
+JoinsNamespaceOf=mailman3.service
+Requires=mailman3.service
+After=mailman3.service
+
+[Service]
+User=mailman
+ExecStart=/usr/bin/mailman notify
+Type=forking
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+NoNewPrivileges=true
+MemoryDenyWriteExecute=true
+LockPersonality=true
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+RemoveIPC=true
+RestrictAddressFamilies=~AF_PACKET
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallFilter=~@privileged @resources
+ReadWritePaths=/var/lock/mailman /var/spool/mailman
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+RuntimeDirectory=mailman
+StateDirectory=mailman
+LogsDirectory=mailman
Deleted: mailman3-notify.timer
===================================================================
--- mailman3-notify.timer 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3-notify.timer 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Daily GNU Mailing List Notifications
-Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/notify.html
-
-[Timer]
-AccuracySec=1us
-OnCalendar=08:00:00
-Persistent=true
-RandomizedDelaySec=10min
-
-[Install]
-WantedBy=timers.target
Copied: mailman3/repos/community-any/mailman3-notify.timer (from rev 1260174, mailman3/trunk/mailman3-notify.timer)
===================================================================
--- mailman3-notify.timer (rev 0)
+++ mailman3-notify.timer 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Daily GNU Mailing List Notifications
+Documentation=https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/notify.html
+
+[Timer]
+AccuracySec=1us
+OnCalendar=08:00:00
+Persistent=true
+RandomizedDelaySec=10min
+
+[Install]
+WantedBy=timers.target
Deleted: mailman3.service
===================================================================
--- mailman3.service 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,43 +0,0 @@
-[Unit]
-Description=GNU Mailing List Manager
-Documentation=https://mailman.readthedocs.io/en/latest
-After=network.target
-
-[Service]
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-ExecStart=/usr/bin/mailman start -f
-ExecReload=/usr/bin/mailman restart
-ExecStop=/usr/bin/mailman stop
-LockPersonality=true
-MemoryDenyWriteExecute=true
-NoNewPrivileges=true
-PIDFile=/run/mailman/master.pid
-PrivateDevices=true
-PrivateTmp=true
-ProtectClock=true
-ProtectControlGroups=true
-ProtectHome=true
-ProtectHostname=true
-ProtectKernelLogs=true
-ProtectKernelModules=true
-ProtectKernelTunables=true
-ProtectProc=invisible
-ProtectSystem=strict
-RemoveIPC=true
-RestrictAddressFamilies=~AF_PACKET
-RestrictNamespaces=true
-RestrictRealtime=true
-RestrictSUIDSGID=true
-ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
-ReadWritePaths=/var/lock/mailman /var/spool/mailman
-RuntimeDirectory=mailman
-StateDirectory=mailman
-SystemCallArchitectures=native
-SystemCallFilter=@system-service
-SystemCallFilter=~@resources
-LogsDirectory=mailman
-Type=forking
-User=mailman
-
-[Install]
-WantedBy=multi-user.target
Copied: mailman3/repos/community-any/mailman3.service (from rev 1260174, mailman3/trunk/mailman3.service)
===================================================================
--- mailman3.service (rev 0)
+++ mailman3.service 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,43 @@
+[Unit]
+Description=GNU Mailing List Manager
+Documentation=https://mailman.readthedocs.io/en/latest
+After=network.target
+
+[Service]
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+ExecStart=/usr/bin/mailman start -f
+ExecReload=/usr/bin/mailman restart
+ExecStop=/usr/bin/mailman stop
+LockPersonality=true
+MemoryDenyWriteExecute=true
+NoNewPrivileges=true
+PIDFile=/run/mailman/master.pid
+PrivateDevices=true
+PrivateTmp=true
+ProtectClock=true
+ProtectControlGroups=true
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectProc=invisible
+ProtectSystem=strict
+RemoveIPC=true
+RestrictAddressFamilies=~AF_PACKET
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+ReadWritePaths=/var/lock/mailman /var/spool/mailman
+RuntimeDirectory=mailman
+StateDirectory=mailman
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallFilter=~@resources
+LogsDirectory=mailman
+Type=forking
+User=mailman
+
+[Install]
+WantedBy=multi-user.target
Deleted: mailman3.sysusers
===================================================================
--- mailman3.sysusers 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3.sysusers 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1 +0,0 @@
-u mailman - "GNU Mailing List Manager" -
Copied: mailman3/repos/community-any/mailman3.sysusers (from rev 1260174, mailman3/trunk/mailman3.sysusers)
===================================================================
--- mailman3.sysusers (rev 0)
+++ mailman3.sysusers 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1 @@
+u mailman - "GNU Mailing List Manager" -
Deleted: mailman3.tmpfiles
===================================================================
--- mailman3.tmpfiles 2022-08-03 22:09:26 UTC (rev 1260174)
+++ mailman3.tmpfiles 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -1,4 +0,0 @@
-z /etc/mailman.cfg 0640 root mailman -
-d /var/lib/mailman 0750 mailman mailman -
-d /var/lock/mailman 0755 mailman mailman -
-d /var/spool/mailman 0755 mailman mailman -
Copied: mailman3/repos/community-any/mailman3.tmpfiles (from rev 1260174, mailman3/trunk/mailman3.tmpfiles)
===================================================================
--- mailman3.tmpfiles (rev 0)
+++ mailman3.tmpfiles 2022-08-03 22:09:46 UTC (rev 1260175)
@@ -0,0 +1,4 @@
+z /etc/mailman.cfg 0640 root mailman -
+d /var/lib/mailman 0750 mailman mailman -
+d /var/lock/mailman 0755 mailman mailman -
+d /var/spool/mailman 0755 mailman mailman -
More information about the arch-commits
mailing list