mailman: moved to contrib

This commit is contained in:
Tim Biermann 2024-02-24 21:27:04 +01:00
parent 67774c4697
commit bfd2e63e1f
Signed by: tb
GPG Key ID: 42F8B4E30B673606
6 changed files with 0 additions and 2255 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +0,0 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/d0B139TbU7Vf4OpNiIgxJywdfYmTFTwhm7aGq4hzO0wzcH/zhlgzArVW40+uogNrFO91GEgfmKkGZ+D3YmAxQI=
SHA256 (Pkgfile) = cc7146d73ecda81c438c476b28c13a1ebe9f1f60dad68b543241fcdca613a08b
SHA256 (.footprint) = 48f5c0149fa51ab0798056f107e6709f0c38165fa1af35f1072b85c66f7cf15c
SHA256 (mailman-v3.3.9.tar.bz2) = f96de9f54c8d513b4c1dd0bae69a9b511d7f515a04c267b7231ba4bedaaafa48
SHA256 (mailman.rc) = b3fc612c058b99153f6168fd6b98ab210f5e6edcf02fd2f0180f94dd541fe17e

View File

@ -1,32 +0,0 @@
# Description: Mailman, the GNU Mailing List Manager
# URL: https://www.gnu.org/software/mailman/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: gunicorn python3-aiosmtpd python3-alembic python3-authheaders python3-click python3-dateutil python3-falcon python3-flufl-bounce python3-flufl-i18n python3-flufl-lock python3-lazr-config python3-passlib python3-requests python3-zope-component python3-zope-configuration
name=mailman
version=3.3.9
release=1
source=(https://gitlab.com/mailman/mailman/-/archive/v$version/mailman-v$version.tar.bz2
$name.rc)
build() {
cd $name-v$version
printf "[mailman]\nlayout: fhs\n" >> ../$name.cfg
sed -e 's|/var/tmp/mailman|/var/lib/mailman|g' \
-i src/mailman/config/schema.cfg
sed -e 's|/var/run|/run|g' \
-e 's|/sbin|/usr/bin|' \
-i src/mailman/config/mailman.cfg
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
install -vDm 640 -o root -g mailman ../$name.cfg -t $PKG/etc/
mkdir -p $PKG/var/{lib,spool,log,lock}/$name $PKG/etc/mailman.d
mkdir -p $PKG/var/lib/$name/{archives,cache,data,lists,messages,templates}
chown -R mailman:root $PKG/var/{lib,spool,log,lock}/$name \
$PKG/etc/mailman.d
chmod 0775 $PKG/var/log/$name
chmod 1777 $PKG/var/lock
}

View File

@ -1,87 +0,0 @@
README for mailman
PRE-INSTALL
Execute the pre-install script to add a new mailman user/group
POST-INSTALL
Mailman required the creation of a list on the server called 'mailman'.
You should create it manually to avoid this message:
'Site list is missing: mailman'
Follow NOTES section in this README file for more information.
NOTES
Configure options:
$ less /usr/lib/mailman/Mailman/Defaults.py
$ sudo vim /etc/mailman/mm_cfg.py
Configure aliases for Postfix MTA:
$ sudo /usr/lib/mailman/bin/genaliases
$ sudo vim /etc/postfix/main.cf
[...]
alias_maps = hash:/etc/postfix/aliases, hash:/etc/mailman/aliases, ...
[...]
$ sudo newaliases
To create a new list:
$ sudo /usr/lib/mailman/bin/newlist <list_name>
To check perimissions:
$ sudo /usr/lib/mailman/bin/check_perms -v
Maybe after create your first list you need to setup some directories/files:
$ sudo chown mailman:mailman /etc/mailman/aliases*
$ sudo chmod 660 /etc/mailman/aliases.db
To configure httpd settings (without vhosts) append this to your httpd.conf:
[...]
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
<Directory "/usr/lib/mailman/cgi-bin/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/
<Directory "/var/lib/mailman/archives/public">
Options +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
# Uncomment the following line, replacing www.example.com with your server's
# name, to redirect queries to /mailman to the listinfo page (recommended).
RedirectMatch ^/mailman[/]*$ http://www.example.com/mailman/listinfo
[...]
IMPORTANT: If archives/private is not o+x, then the owner of archives/private
must be the web server user whatever that is - i.e. the web server user must be
able to search in archives/private.
$ ls -ld /var/lib/mailman/archives/p*
drwxrws--x 6 root mailman 4096 Jan 12 17:02 /var/lib/mailman/archives/private
drwxrwsr-x 2 root mailman 4096 Jan 12 17:02 /var/lib/mailman/archives/public
The owner (root) is not important. the group is Mailman's group and may or may
not be 'mailman' (e.g. on a debian/ubuntu package install, it is 'list')
For more information:
http://www.gnu.org/software/mailman/mailman-install/node9.html

View File

@ -1,52 +0,0 @@
#!/bin/sh
#
# /etc/rc.d/mailman: start/stop mailman daemon
#
SSD=/sbin/start-stop-daemon
PROG=/usr/lib/mailman/bin/mailmanctl
PID=/run/mailman/master-qrunner.pid
fix_log_perms() {
local errorlog="/var/log/mailman/error"
if [ ! -f $errorlog ]; then
touch $errorlog
chown root:mailman $errorlog
chmod 775 $errorlog
fi
}
case $1 in
start)
fix_log_perms
if [ ! -e /run/mailman ]; then
mkdir -p /run/mailman
fi
$SSD --start --pidfile $PID --exec $PROG -- start
;;
stop)
$SSD --start --pidfile $PID --exec $PROG -- stop
$SSD --stop --retry 10 --pidfile $PID
;;
restart)
$0 stop
$0 start
;;
reload)
$SSD --start --pidfile $PID --exec $PROG -- -q restart
;;
status)
$SSD --status --pidfile $PID
case $? in
0) echo "$PROG is running with pid $(cat $PID)" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;
3) echo "$PROG is not running" ;;
4) echo "Unable to determine the program status" ;;
esac
;;
*)
echo "usage: $0 [start|stop|restart|reload|status]"
;;
esac
# End of file

View File

@ -1,14 +0,0 @@
#!/bin/sh
mmuser="mailman"
mmgroup="mailman"
mmhome="/var/lib/mailman"
# make sure the user/group exists or add if not exists
/usr/bin/getent group $mmgroup || \
/usr/sbin/groupadd $mmgroup
/usr/bin/getent passwd $mmuser || \
/usr/sbin/useradd -s /sbin/nologin -d $mmhome -g $mmgroup $mmuser
# End of file