forked from ports/contrib
mailman-web: initial commit, version 0.0.8
This commit is contained in:
parent
5bdad848fd
commit
cc2d4d599d
41
mailman-web/.footprint
Normal file
41
mailman-web/.footprint
Normal file
@ -0,0 +1,41 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/mailman-web
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/python3.10/
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman_web-0.0.8.dist-info/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web-0.0.8.dist-info/LICENSE.txt
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web-0.0.8.dist-info/METADATA
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web-0.0.8.dist-info/RECORD
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web-0.0.8.dist-info/WHEEL
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web-0.0.8.dist-info/entry_points.txt
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web-0.0.8.dist-info/top_level.txt
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman_web/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/__init__.py
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman_web/__pycache__/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/__pycache__/__init__.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/__pycache__/manage.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/__pycache__/urls.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/__pycache__/wsgi.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/manage.py
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman_web/settings/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/__init__.py (EMPTY)
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman_web/settings/__pycache__/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/__pycache__/__init__.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/__pycache__/base.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/__pycache__/dev.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/__pycache__/mailman.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/base.py
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/dev.py
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/settings/mailman.py
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman_web/tests/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/tests/__init__.py (EMPTY)
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman_web/tests/__pycache__/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/tests/__pycache__/__init__.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/tests/__pycache__/settings.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/tests/__pycache__/test_basic.cpython-310.opt-2.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/tests/settings.py
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/tests/test_basic.py
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/urls.py
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman_web/wsgi.py
|
7
mailman-web/.signature
Normal file
7
mailman-web/.signature
Normal file
@ -0,0 +1,7 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF34tBuTQbRbu9LBXqzG5dGWzGxNXc4dS5mD2o2ZAfCiMu5TqqJQsyIIQ+qhOx3HXbdN5Awwzj+LwgJmZCQ+J/SwY=
|
||||
SHA256 (Pkgfile) = b0a450181936bbf508a6a7b43d57c301319adf2b80175dce5ff04edba1831753
|
||||
SHA256 (.footprint) = 47123a45167785a79e51a71842baaa45366b3bf12c6e7f9080e60602e9a9b766
|
||||
SHA256 (mailman-web-0.0.8.tar.gz) = 9cdfcbf97d91be6eabaa4b1c9ece139f64c0af9f4ee6508939bbdc269e8cd3e4
|
||||
SHA256 (mailman-web-0.0.5-fhs.patch) = 026ab5afcd530f7ce0655211613d9ec1d0c26cc1b87057d85ee0619e5f377a65
|
||||
SHA256 (mailman-web-0.0.8-remove_django_versioned_dependency.patch) = c0445492f4534328dd0cc4808f88bf279d1428bb9de6c1d8ac830534d681f75d
|
22
mailman-web/Pkgfile
Normal file
22
mailman-web/Pkgfile
Normal file
@ -0,0 +1,22 @@
|
||||
# Description: Mailman Web is the web interface for Mailman 3
|
||||
# URL: https://gitlab.com/mailman/mailman-web
|
||||
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||
# Depends on: hyperkitty postorius
|
||||
# Optional: mailman uwsgi-plugin-python
|
||||
|
||||
name=mailman-web
|
||||
version=0.0.8
|
||||
release=1
|
||||
source=(https://pypi.org/packages/source/m/mailman-web/mailman-web-$version.tar.gz
|
||||
mailman-web-0.0.5-fhs.patch
|
||||
mailman-web-0.0.8-remove_django_versioned_dependency.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -Np1 -i $SRC/mailman-web-0.0.5-fhs.patch
|
||||
#patch -Np1 -i $SRC/mailman-web-0.0.8-remove_django_versioned_dependency.patch
|
||||
|
||||
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
||||
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
||||
}
|
51
mailman-web/mailman-web-0.0.5-fhs.patch
Normal file
51
mailman-web/mailman-web-0.0.5-fhs.patch
Normal file
@ -0,0 +1,51 @@
|
||||
diff -ruN a/mailman_web/manage.py b/mailman_web/manage.py
|
||||
--- a/mailman_web/manage.py 2022-08-12 22:05:01.562363167 +0200
|
||||
+++ b/mailman_web/manage.py 2022-08-12 22:05:18.955599046 +0200
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
MAILMAN_WEB_CONFIG = os.getenv(
|
||||
'MAILMAN_WEB_CONFIG',
|
||||
- '/etc/mailman3/settings.py',
|
||||
+ '/etc/webapps/mailman-web/settings.py',
|
||||
)
|
||||
|
||||
if not os.path.exists(MAILMAN_WEB_CONFIG):
|
||||
diff -ruN a/mailman_web/settings/base.py b/mailman_web/settings/base.py
|
||||
--- a/mailman_web/settings/base.py 2022-08-12 22:05:01.562363167 +0200
|
||||
+++ b/mailman_web/settings/base.py 2022-08-12 22:08:27.497875716 +0200
|
||||
@@ -4,7 +4,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
#: The base directory for logs and database.
|
||||
-BASE_DIR = Path('/opt/mailman/web')
|
||||
+BASE_DIR = Path('/var/lib/mailman-web')
|
||||
|
||||
#: Default list of admins who receive the emails from error logging.
|
||||
ADMINS = (
|
||||
@@ -137,7 +137,7 @@
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
- 'NAME': os.path.join(BASE_DIR, 'mailman-web.db'),
|
||||
+ 'NAME': BASE_DIR / 'data' / 'mailman-web.db',
|
||||
'HOST': '',
|
||||
'PORT': '',
|
||||
}
|
||||
@@ -181,7 +181,7 @@
|
||||
|
||||
|
||||
#: Default path where static files will be placed.
|
||||
-STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
+STATIC_ROOT = BASE_DIR / 'static'
|
||||
|
||||
#: URL prefix for static files.
|
||||
#: Example: "http://example.com/static/", "http://static.example.com/"
|
||||
@@ -251,7 +251,7 @@
|
||||
'file': {
|
||||
'level': 'INFO',
|
||||
'class': 'logging.handlers.WatchedFileHandler',
|
||||
- 'filename': os.path.join(BASE_DIR, 'logs', 'mailmanweb.log'),
|
||||
+ 'filename': Path('/var/log/mailman-web/mailman-web.log'),
|
||||
'formatter': 'verbose',
|
||||
},
|
||||
'console': {
|
@ -0,0 +1,13 @@
|
||||
diff --git i/setup.cfg w/setup.cfg
|
||||
index 95eb36e..ab441e5 100644
|
||||
--- i/setup.cfg
|
||||
+++ w/setup.cfg
|
||||
@@ -23,7 +23,7 @@ setup_requires =
|
||||
setuptools-scm
|
||||
install_requires =
|
||||
django-allauth > 0.56.0
|
||||
- django >=3.2, <4.2
|
||||
+ django
|
||||
django-mailman3 >= 1.3.11
|
||||
postorius >= 1.3.10
|
||||
hyperkitty >= 1.3.8
|
Loading…
x
Reference in New Issue
Block a user