summaryrefslogtreecommitdiff
path: root/pcr-testing/mailman-core
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-09-12 08:25:54 +0000
committerbill-auger <mr.j.spam.me@gmail.com>2018-09-30 04:27:49 -0400
commit60149d4be1633dd72cba35fcfc29bcf9f117e6fd (patch)
tree3b6c121600f41edbe42ccc971d130cf69197c7e7 /pcr-testing/mailman-core
parent4e8a56f5ba2fb21332825f6f00cc84725a9268b2 (diff)
add 'mailman3'
Diffstat (limited to 'pcr-testing/mailman-core')
-rw-r--r--pcr-testing/mailman-core/PKGBUILD49
-rw-r--r--pcr-testing/mailman-core/mailman-core.install11
-rw-r--r--pcr-testing/mailman-core/mailman.cfg11
-rw-r--r--pcr-testing/mailman-core/mailman.service16
-rw-r--r--pcr-testing/mailman-core/mailman.sysusers1
5 files changed, 88 insertions, 0 deletions
diff --git a/pcr-testing/mailman-core/PKGBUILD b/pcr-testing/mailman-core/PKGBUILD
new file mode 100644
index 000000000..3d28523e9
--- /dev/null
+++ b/pcr-testing/mailman-core/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: bill-auger <bill-auger@programmer.net>
+# Maintainer (AUR): Simon Hanna <simon dot hanna AT serve-me DOT info>
+
+pkgname=('mailman-core')
+pkgver=3.2.0
+pkgrel=1
+pkgdesc="A mailing list management system"
+arch=(any)
+conflicts=('mailman')
+url=https://gitlab.com/mailman/mailman
+license=('LGPL')
+options=(!emptydirs)
+
+makedepends=('python-setuptools')
+depends=('python-zope-interface' 'python-zope-event' 'python-zope-configuration'
+ 'python-zope-component' 'python-passlib' 'python-click' 'python-flufl-lock'
+ 'python-flufl-i18n' 'python-flufl-bounce' 'python-falcon' 'python-alembic'
+ 'python-lazr-config' 'python-lazr-smtptest' 'python-aiosmtpd' 'python-atpublic'
+ 'python-dnspython' 'python-requests' 'postfix')
+optdepends=('python-mailman-hyperkitty-plugin: Plugin to send emails to the Hyperkitty archiver')
+
+install=${pkgname}.install
+backup=('var/lib/mailman/var/etc/mailman.cfg')
+_upstream_name='mailman'
+_release="${_upstream_name}-${pkgver}"
+source=(https://gitlab.com/mailman/${_upstream_name}/-/archive/${pkgver}/${_release}.tar.gz
+ 'mailman.sysusers'
+ 'mailman.service'
+ 'mailman.cfg')
+sha256sums=('17b9765b75e13b933df27aff01d634bd2ab6574bd4ee3b248b4f9ee9ed8dffc4'
+ 'a99bf88267184fee0568856ac09bb682224ee67029cfc20f603a43fe5f053dad'
+ '81048cb6a27490fb36881b2eb88567b2ea2271b481dd0254fe9a398e6ca9beaf'
+ 'f48dac59786be58c6a8b5fe2a12f4f356872d87600be64506f22066508847f3a')
+
+
+package()
+{
+ cd "$srcdir/${_release}"
+
+ # install systemd files
+ install -Dm 644 "${srcdir}/mailman.service" "${pkgdir}/usr/lib/systemd/system/mailman.service"
+ install -Dm 644 "${srcdir}/mailman.sysusers" "${pkgdir}/usr/lib/sysusers.d/mailman.conf"
+
+ # copy configuration file and create symlink in /etc
+ install -dm 770 "${pkgdir}/var/lib/mailman"
+ install -Dm 644 "${srcdir}/mailman.cfg" "${pkgdir}/var/lib/mailman/var/etc/mailman.cfg"
+
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
diff --git a/pcr-testing/mailman-core/mailman-core.install b/pcr-testing/mailman-core/mailman-core.install
new file mode 100644
index 000000000..c4a4572ea
--- /dev/null
+++ b/pcr-testing/mailman-core/mailman-core.install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+post_install() {
+ # ensure correct permissions
+ systemd-sysusers mailman.conf
+ chown -R mailman:mailman /var/lib/mailman
+}
+
+post_remove() {
+ userdel mailman
+}
diff --git a/pcr-testing/mailman-core/mailman.cfg b/pcr-testing/mailman-core/mailman.cfg
new file mode 100644
index 000000000..f27c00007
--- /dev/null
+++ b/pcr-testing/mailman-core/mailman.cfg
@@ -0,0 +1,11 @@
+# This is your GNU Mailman 3 configuration file. You can edit this file to
+# configure Mailman to your needs, and Mailman will never overwrite it.
+# Additional configuration information is (for now) available in the
+# schema.cfg file <http://tinyurl.com/cm5rtqe> and the base mailman.cfg file
+# <http://tinyurl.com/dx9b8eg>.
+#
+# For example, uncomment the following lines to run Mailman in developer mode.
+#
+# [devmode]
+# enabled: yes
+# recipient: your.address@your.domain
diff --git a/pcr-testing/mailman-core/mailman.service b/pcr-testing/mailman-core/mailman.service
new file mode 100644
index 000000000..5c852a22e
--- /dev/null
+++ b/pcr-testing/mailman-core/mailman.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=GNU Mailing List Manager
+After=network.target
+
+[Service]
+User=mailman
+ExecStart=/usr/bin/mailman start -f
+ExecReload=/usr/bin/mailman restart
+ExecStop=/usr/bin/mailman stop
+StandardError=syslog
+Type=forking
+WorkingDirectory=/var/lib/mailman
+PIDFile=/var/lib/mailman/var/master.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/pcr-testing/mailman-core/mailman.sysusers b/pcr-testing/mailman-core/mailman.sysusers
new file mode 100644
index 000000000..4df9b61f3
--- /dev/null
+++ b/pcr-testing/mailman-core/mailman.sysusers
@@ -0,0 +1 @@
+u mailman - "GNU Mailing List Manager" /var/lib/mailman