[notify] mailman: dropped unmaintained port

This commit is contained in:
Danny Rawlins 2020-03-09 15:43:57 +11:00
parent 18fe7f7d77
commit 34c4cb6e79
6 changed files with 0 additions and 2606 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/TBOjFyofcdnTW2NOqlWgTLVVoAcwCaz4Fr4/dIfRS4Ozl6Hn4aJSJXdAXeFFVY+qtj8eWOhFqGOE3MqfIgNyAM=
SHA256 (Pkgfile) = 3508bff65bf187a8cf8e800452300c43a3978fa482f78c98fdd45949cd62546b
SHA256 (.footprint) = d37fe5ae82935771e02ac3ce38f057f886bb42ddd807d0ab8167d470cfa5e7b4
SHA256 (mailman-2.1.23.tgz) = b022ca6f8534621c9dbe50c983948688bc4623214773b580c2c78e4a7ae43e69
SHA256 (mailman.rc) = 93a408d75bcbdaed7f37669f005276101d2855ea16ee83fc2d0975ae2e2948af

View File

@ -1,64 +0,0 @@
# Description: Mailman, the GNU Mailing List Manager
# URL: http://www.gnu.org/software/mailman/
# Maintainer: Jose V Beneyto, sepen at crux dot nu
# Packager: Jose V Beneyto, sepen at crux dot nu
# Depends on: dnspython
name=mailman
version=2.1.23
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tgz \
$name.rc)
build() {
cd $name-$version
# update patch from 2.1.5 to 2.1.21
sed 's|# pidfile: .*|# pidfile: @VAR_PREFIX@/data/master-qrunner.pid|' -i contrib/redhat_fhs.patch
patch -p1 -i contrib/redhat_fhs.patch
rm -f configure
aclocal
autoconf
./configure --prefix=/usr/lib/$name \
--with-var-prefix=/var/lib/$name \
--with-config-dir=/etc/$name \
--with-lock-dir=/var/lock/$name \
--with-log-dir=/var/log/$name \
--with-pid-dir=/var/run/$name \
--with-queue-dir=/var/spool/$name \
--with-mailhost=localhost.localdomain \
--with-urlhost=localhost.localdomain \
--with-mail-gid=$name \
--with-cgi-id=www \
--with-cgi-gid=www \
--without-permcheck
make
make DESTDIR=$PKG install
install -D -m 0755 $SRC/$name.rc $PKG/etc/rc.d/$name
# create empty crontab
install -d $PKG/etc/cron.d
cat > $PKG/etc/cron.d/$name << __EOF__
# DO NOT EDIT THIS FILE!
#
# Contents of this file managed by /etc/rc.d/mailman
# Master copy is /usr/lib/mailman/cron/crontab.in
# Consult that file for documentation
#
# End of file
__EOF__
# fix permissions
chown -R root:$name $PKG/etc/$name $PKG/usr/lib/$name $PKG/var/{lib,lock,log,run,spool}/$name
chmod 0775 $PKG/var/log/$name
chmod 1777 $PKG/var/lock
find $PKG/usr/lib/$name -type d -exec chmod 0775 {} \;
chmod o+x $PKG/var/lib/$name/archives/private
# fix configs
ln -sf /usr/lib/$name/Mailman/mm_cfg.py $PKG/etc/$name
ln -sf /etc/$name/sitelist.cfg $PKG/var/lib/$name/data
}

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,49 +0,0 @@
#!/bin/sh
#
# /etc/rc.d/mailman: start/stop mailman daemon
#
SSD=/sbin/start-stop-daemon
PROG=/usr/lib/mailman/bin/mailmanctl
PID=/var/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
$SSD --start --pidfile $PID --exec $PROG -- -q start
;;
stop)
$SSD --start --pidfile $PID --exec $PROG -- -q 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="/usr/lib/mailman"
# make sure the user/group exists or add if not exists
/usr/bin/getent group $mmgroup || \
/usr/sbin/groupadd -g --system $mmgroup
/usr/bin/getent passwd $mmuser || \
/usr/sbin/useradd -s /sbin/nologin -d $mmhome --system -g $mmgroup $mmuser
# End of file