[arch-commits] Commit in mailman3/repos (11 files)

David Runge dvzrv at archlinux.org
Thu Feb 25 22:07:35 UTC 2021


    Date: Thursday, February 25, 2021 @ 22:07:35
  Author: dvzrv
Revision: 874220

archrelease: copy trunk to community-testing-any

Added:
  mailman3/repos/community-testing-any/
  mailman3/repos/community-testing-any/PKGBUILD
    (from rev 874219, mailman3/trunk/PKGBUILD)
  mailman3/repos/community-testing-any/mailman3-digests.service
    (from rev 874219, mailman3/trunk/mailman3-digests.service)
  mailman3/repos/community-testing-any/mailman3-digests.timer
    (from rev 874219, mailman3/trunk/mailman3-digests.timer)
  mailman3/repos/community-testing-any/mailman3-gatenews.service
    (from rev 874219, mailman3/trunk/mailman3-gatenews.service)
  mailman3/repos/community-testing-any/mailman3-gatenews.timer
    (from rev 874219, mailman3/trunk/mailman3-gatenews.timer)
  mailman3/repos/community-testing-any/mailman3-notify.service
    (from rev 874219, mailman3/trunk/mailman3-notify.service)
  mailman3/repos/community-testing-any/mailman3-notify.timer
    (from rev 874219, mailman3/trunk/mailman3-notify.timer)
  mailman3/repos/community-testing-any/mailman3.service
    (from rev 874219, mailman3/trunk/mailman3.service)
  mailman3/repos/community-testing-any/mailman3.sysusers
    (from rev 874219, mailman3/trunk/mailman3.sysusers)
  mailman3/repos/community-testing-any/mailman3.tmpfiles
    (from rev 874219, mailman3/trunk/mailman3.tmpfiles)

---------------------------+
 PKGBUILD                  |  105 ++++++++++++++++++++++++++++++++++++++++++++
 mailman3-digests.service  |   41 +++++++++++++++++
 mailman3-digests.timer    |   12 +++++
 mailman3-gatenews.service |   41 +++++++++++++++++
 mailman3-gatenews.timer   |   12 +++++
 mailman3-notify.service   |   41 +++++++++++++++++
 mailman3-notify.timer     |   12 +++++
 mailman3.service          |   41 +++++++++++++++++
 mailman3.sysusers         |    1 
 mailman3.tmpfiles         |    4 +
 10 files changed, 310 insertions(+)

Copied: mailman3/repos/community-testing-any/PKGBUILD (from rev 874219, mailman3/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-02-25 22:07:35 UTC (rev 874220)
@@ -0,0 +1,105 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=mailman
+pkgname=mailman3
+pkgver=3.3.3
+pkgrel=1
+pkgdesc="The GNU mailing list manager"
+arch=('any')
+url="https://www.list.org/"
+license=('GPL3')
+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-setuptools' 'python-sqlalchemy'
+'python-zope-component' 'python-zope-configuration' 'python-zope-event'
+'python-zope-interface')
+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')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc}
+        "${pkgname}.service"
+        "${pkgname}-digests.service"
+        "${pkgname}-digests.timer"
+        "${pkgname}-gatenews.service"
+        "${pkgname}-gatenews.timer"
+        "${pkgname}-notify.service"
+        "${pkgname}-notify.timer"
+        "${pkgname}.sysusers"
+        "${pkgname}.tmpfiles")
+sha512sums=('d5ae58f720595d245a564198fadac65d9f7e224186b6a98632b9fdc708df4690354d10a827dbe04ba5eaa1a3c0398db9060169a80d262ea39dbd3086cd1e150a'
+            'SKIP'
+            'a1f5167f81a1ae74d6caecf3c99df9d6edddeeb2f07d61454fd0b3563aab952f76d2aa1642552855a4ccb620a7de34c2717d976f12b49dcd781ce0c32e7d6161'
+            '734e0cdf1198f6609a5e41312c48c5c4e492ba5b9acc3af4cd302a6ed148933396333077932e25aedfc50ff3f68b1d4898137193bdadaf71e23045ec8e96be10'
+            '5d7ccba8cf1262ab052078f2188ded15e43e1201302c7c24ce763efef9789ec99d8ea9a19e8fbd9bc5a38f47a162fe5cf4b0ade284894cb57af66350f23507bc'
+            'e610060021d6f2ebeb4ffb5b37d448efdd44154ace6f228a316e9712799dc620611953401f705bb76d1046b769b6e8316c9b1d143e535110e383a7762d866669'
+            'fc550ef017ad8a22e0c40a8808361831b8c32cd0d34925cdce433ec4a0564e9577d6f9ccdcd38098eb4cf692257c061ff3fbea3b762d274f9b5e2fa88d10d82e'
+            'b1f8f3afdfb25f361d0dea59fb00e0ef126dd0557994366c421d473b5e354dc42daafd1b296d5bc3f79c45a085087d40b573c416ae8aba6bf358c06d139d636f'
+            'b8538618be8bdd6313d24b844d15c8f25a059c3391cd06db69314b7be19996bfbe913d6c0c9c99d6a19c4f92df32212d31785e92fb32faf5eb792fffe121fcce'
+            '074cf58a93204d4b7631c4cc8af62d5720560301c6fefef6baa5d3aa33e72720870757fac7803f7b2835f8f02bb776f9d049df5c7528c743b56dda7da2085b07'
+            '6f4b51fd5eb34ac974b3312c34eb1437d9435cfd50f0cb89db02b94ce514bceca2c6dc7cb172b79b2d6a23d68e7ea391ec58dbd9899938c0fe88c03c67c521b9')
+b2sums=('f4a3c85da63e50efc192c2120f8a95e005255a521c85f7774473fbc6a5385707a28eb1b292ddac92b952a79500fcc97e0a00eec8e95be322a5bc5514037138d3'
+        'SKIP'
+        'b4a5795a2798c2e2a2aa5ff8672572a6272963efd48613427d849fa0c6f6062af79710c44ae0c256e07524cce2315efbbed2571e1f64dd3ef906bcea18f3b889'
+        'a9d8be785d3d1a1bbe8899658bec67cfcae8a13d21ef8e873f66a52008e9a3814ed731ac7e9eb787b6565acb00b46a050d58d3dcabdc649c0797e1b55622ec21'
+        'b0d764dd4f7017c2d5b76e8a52b0c8d75e35b0b0d9025609853d389f8fa0732ea902549ef168f988bf845370cf67aeb7d439af8dec1997127522055b11e64000'
+        'dde11f2aa4e5279ab2570a9bc96176707723a9208374b5db03c43fad5ec695936a8ae0df531cd0277173bb3d2df4e4070995edff711563fb3b50f7e8e1020ec9'
+        '06bfa99d6356efc426430b67de9ed18bd80a5d659b4f0c81d7e2306810c856d1de34c5df1fd2834228f3c2b78fc42806f1d9bede9ddb3ac7185a367608c0a823'
+        '79e7bf953596cae6eac2b6695066e726bd54bedf17cf34d936f353d27b6907fa41c9d4e86b1e1c306b4d80b5e1a25f878e100c5bb039143aac22ad6c4baeee3b'
+        'b980470b16171ed0e32a0c1d9de7d5e6802431dd5275089c03f7bc862d5ac886b78af8aa8828faa71a63e847c9caf660c3da2890828ecb2e0bea537c2c4001a5'
+        '594d6a6712f9e817f4d935225d3a1d87c96e23f1e449caab6bfb00ce2a0421af1401505c6d1d280a03f8c551136639f0dabf27d8b549ca4ea26bdb3febdda660'
+        '461dce577696405011ed89f7fc109caaf27f4183b4d315baa8ad03db0f12015ebc447cbe9c0b8c5bcba38b63fcaf45adcfcb3e5bf5afb7eb0bd87a2e1b0301e5')
+validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <maxking at asynchronous.in>
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # make sure that mailman runs in a FHS compliant way
+  echo -e "[mailman]\nlayout: fhs" >> "../${_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-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  # thanks to test design it is impossible to run tests:
+  # https://gitlab.com/mailman/mailman/-/issues/400
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  export PYTHONHASHSEED=0
+  python setup.py install --skip-build \
+                          --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-testing-any/mailman3-digests.service (from rev 874219, mailman3/trunk/mailman3-digests.service)
===================================================================
--- community-testing-any/mailman3-digests.service	                        (rev 0)
+++ community-testing-any/mailman3-digests.service	2021-02-25 22:07:35 UTC (rev 874220)
@@ -0,0 +1,41 @@
+[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
+StandardError=syslog
+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
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+RuntimeDirectory=mailman
+StateDirectory=mailman
+LogsDirectory=mailman

Copied: mailman3/repos/community-testing-any/mailman3-digests.timer (from rev 874219, mailman3/trunk/mailman3-digests.timer)
===================================================================
--- community-testing-any/mailman3-digests.timer	                        (rev 0)
+++ community-testing-any/mailman3-digests.timer	2021-02-25 22:07:35 UTC (rev 874220)
@@ -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

Copied: mailman3/repos/community-testing-any/mailman3-gatenews.service (from rev 874219, mailman3/trunk/mailman3-gatenews.service)
===================================================================
--- community-testing-any/mailman3-gatenews.service	                        (rev 0)
+++ community-testing-any/mailman3-gatenews.service	2021-02-25 22:07:35 UTC (rev 874220)
@@ -0,0 +1,41 @@
+[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
+StandardError=syslog
+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
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+RuntimeDirectory=mailman
+StateDirectory=mailman
+LogsDirectory=mailman

Copied: mailman3/repos/community-testing-any/mailman3-gatenews.timer (from rev 874219, mailman3/trunk/mailman3-gatenews.timer)
===================================================================
--- community-testing-any/mailman3-gatenews.timer	                        (rev 0)
+++ community-testing-any/mailman3-gatenews.timer	2021-02-25 22:07:35 UTC (rev 874220)
@@ -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

Copied: mailman3/repos/community-testing-any/mailman3-notify.service (from rev 874219, mailman3/trunk/mailman3-notify.service)
===================================================================
--- community-testing-any/mailman3-notify.service	                        (rev 0)
+++ community-testing-any/mailman3-notify.service	2021-02-25 22:07:35 UTC (rev 874220)
@@ -0,0 +1,41 @@
+[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
+StandardError=syslog
+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
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+RuntimeDirectory=mailman
+StateDirectory=mailman
+LogsDirectory=mailman

Copied: mailman3/repos/community-testing-any/mailman3-notify.timer (from rev 874219, mailman3/trunk/mailman3-notify.timer)
===================================================================
--- community-testing-any/mailman3-notify.timer	                        (rev 0)
+++ community-testing-any/mailman3-notify.timer	2021-02-25 22:07:35 UTC (rev 874220)
@@ -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

Copied: mailman3/repos/community-testing-any/mailman3.service (from rev 874219, mailman3/trunk/mailman3.service)
===================================================================
--- community-testing-any/mailman3.service	                        (rev 0)
+++ community-testing-any/mailman3.service	2021-02-25 22:07:35 UTC (rev 874220)
@@ -0,0 +1,41 @@
+[Unit]
+Description=GNU Mailing List Manager
+Documentation=https://mailman.readthedocs.io/en/latest
+After=network.target
+
+[Service]
+User=mailman
+ExecStart=/usr/bin/mailman start -f
+ExecReload=/usr/bin/mailman restart
+ExecStop=/usr/bin/mailman stop
+Type=forking
+PIDFile=/run/mailman/master.pid
+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 AF_NETLINK
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallFilter=~@resources
+ReadWritePaths=/var/lock/mailman /var/spool/mailman
+ReadOnlyPaths=/etc/mailman.cfg -/etc/mailman.d
+RuntimeDirectory=mailman
+StateDirectory=mailman
+LogsDirectory=mailman
+
+[Install]
+WantedBy=multi-user.target

Copied: mailman3/repos/community-testing-any/mailman3.sysusers (from rev 874219, mailman3/trunk/mailman3.sysusers)
===================================================================
--- community-testing-any/mailman3.sysusers	                        (rev 0)
+++ community-testing-any/mailman3.sysusers	2021-02-25 22:07:35 UTC (rev 874220)
@@ -0,0 +1 @@
+u mailman - "GNU Mailing List Manager" -

Copied: mailman3/repos/community-testing-any/mailman3.tmpfiles (from rev 874219, mailman3/trunk/mailman3.tmpfiles)
===================================================================
--- community-testing-any/mailman3.tmpfiles	                        (rev 0)
+++ community-testing-any/mailman3.tmpfiles	2021-02-25 22:07:35 UTC (rev 874220)
@@ -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