From 60149d4be1633dd72cba35fcfc29bcf9f117e6fd Mon Sep 17 00:00:00 2001 From: bill-auger Date: Wed, 12 Sep 2018 08:25:54 +0000 Subject: add 'mailman3' --- pcr-testing/mailman-core/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pcr-testing/mailman-core/PKGBUILD (limited to 'pcr-testing/mailman-core/PKGBUILD') 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 +# Maintainer (AUR): Simon Hanna + +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 +} -- cgit v1.2.3