mailman: 2.1.23 -> 3.3.9; a bunch of new python dependencies
This commit is contained in:
parent
9542df8d74
commit
7417e3c94a
4423
mailman/.footprint
4423
mailman/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
untrusted comment: verify with /etc/ports/opt.pub
|
untrusted comment: verify with /etc/ports/opt.pub
|
||||||
RWSE3ohX2g5d/TBOjFyofcdnTW2NOqlWgTLVVoAcwCaz4Fr4/dIfRS4Ozl6Hn4aJSJXdAXeFFVY+qtj8eWOhFqGOE3MqfIgNyAM=
|
RWSE3ohX2g5d/ctyG+nLZo7nDTD0X3olY3Znb5frQmundE1c4UAvN4RjbZSdsP2AU7WXFrdW5x2Almr8KcBLWF6J7TkyV5i8jAU=
|
||||||
SHA256 (Pkgfile) = 3508bff65bf187a8cf8e800452300c43a3978fa482f78c98fdd45949cd62546b
|
SHA256 (Pkgfile) = 760a1fe602746bb85e7c4bd6953075cd1288c62fe3a3cb2c92e49a63eb9bb6b0
|
||||||
SHA256 (.footprint) = d37fe5ae82935771e02ac3ce38f057f886bb42ddd807d0ab8167d470cfa5e7b4
|
SHA256 (.footprint) = 58369c49f87d829bba49dfe4d39b455b3f37ffc6d5c9c405fe0573ae19ce47c2
|
||||||
SHA256 (mailman-2.1.23.tgz) = b022ca6f8534621c9dbe50c983948688bc4623214773b580c2c78e4a7ae43e69
|
SHA256 (mailman-v3.3.9.tar.bz2) = f96de9f54c8d513b4c1dd0bae69a9b511d7f515a04c267b7231ba4bedaaafa48
|
||||||
SHA256 (mailman.rc) = 93a408d75bcbdaed7f37669f005276101d2855ea16ee83fc2d0975ae2e2948af
|
SHA256 (mailman.rc) = b3fc612c058b99153f6168fd6b98ab210f5e6edcf02fd2f0180f94dd541fe17e
|
||||||
|
@ -1,43 +1,22 @@
|
|||||||
# Description: Mailman, the GNU Mailing List Manager
|
# Description: Mailman, the GNU Mailing List Manager
|
||||||
# URL: http://www.gnu.org/software/mailman/
|
# URL: https://www.gnu.org/software/mailman/
|
||||||
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||||
# Packager: Jose V Beneyto, sepen 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
|
||||||
# Depends on: dnspython
|
|
||||||
|
|
||||||
name=mailman
|
name=mailman
|
||||||
version=2.1.23
|
version=3.3.9
|
||||||
release=1
|
release=1
|
||||||
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tgz \
|
source=(https://gitlab.com/mailman/mailman/-/archive/v$version/mailman-v$version.tar.bz2
|
||||||
$name.rc)
|
$name.rc)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
cd $name-v$version
|
||||||
|
|
||||||
# update patch from 2.1.5 to 2.1.21
|
printf "[mailman]\nlayout: fhs\n" >> ../mailman.cfg
|
||||||
sed 's|# pidfile: .*|# pidfile: @VAR_PREFIX@/data/master-qrunner.pid|' -i contrib/redhat_fhs.patch
|
sed -e 's|/var/tmp/mailman|/var/lib/mailman|g' -i src/mailman/config/schema.cfg
|
||||||
patch -p1 -i contrib/redhat_fhs.patch
|
|
||||||
|
|
||||||
rm -f configure
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
||||||
aclocal
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
||||||
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
|
# create empty crontab
|
||||||
install -d $PKG/etc/cron.d
|
install -d $PKG/etc/cron.d
|
||||||
@ -52,13 +31,14 @@ build() {
|
|||||||
__EOF__
|
__EOF__
|
||||||
|
|
||||||
# fix permissions
|
# fix permissions
|
||||||
chown -R root:$name $PKG/etc/$name $PKG/usr/lib/$name $PKG/var/{lib,lock,log,run,spool}/$name
|
mkdir -p $PKG/etc/$name $PKG/usr/lib/$name $PKG/var/{lib,lock,log,spool}/$name $PKG/var/lib/$name/archives/private
|
||||||
|
chown -R root:$name $PKG/etc/$name $PKG/usr/lib/$name $PKG/var/{lib,lock,log,spool}/$name
|
||||||
chmod 0775 $PKG/var/log/$name
|
chmod 0775 $PKG/var/log/$name
|
||||||
chmod 1777 $PKG/var/lock
|
chmod 1777 $PKG/var/lock
|
||||||
find $PKG/usr/lib/$name -type d -exec chmod 0775 {} \;
|
find $PKG/usr/lib/$name -type d -exec chmod 0775 {} \;
|
||||||
chmod o+x $PKG/var/lib/$name/archives/private
|
chmod o+x $PKG/var/lib/$name/archives/private
|
||||||
|
|
||||||
# fix configs
|
# fix configs
|
||||||
ln -sf /usr/lib/$name/Mailman/mm_cfg.py $PKG/etc/$name
|
install -vDm 640 ../mailman.cfg -t $PKG/etc/
|
||||||
ln -sf /etc/$name/sitelist.cfg $PKG/var/lib/$name/data
|
#ln -sf /etc/$name/sitelist.cfg $PKG/var/lib/$name/data
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
SSD=/sbin/start-stop-daemon
|
SSD=/sbin/start-stop-daemon
|
||||||
PROG=/usr/lib/mailman/bin/mailmanctl
|
PROG=/usr/lib/mailman/bin/mailmanctl
|
||||||
PID=/var/run/mailman/master-qrunner.pid
|
PID=/run/mailman/master-qrunner.pid
|
||||||
|
|
||||||
fix_log_perms() {
|
fix_log_perms() {
|
||||||
local errorlog="/var/log/mailman/error"
|
local errorlog="/var/log/mailman/error"
|
||||||
@ -19,10 +19,13 @@ fix_log_perms() {
|
|||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
fix_log_perms
|
fix_log_perms
|
||||||
$SSD --start --pidfile $PID --exec $PROG -- -q start
|
if [ ! -e /run/mailman ]; then
|
||||||
|
mkdir -p /run/mailman
|
||||||
|
fi
|
||||||
|
$SSD --start --pidfile $PID --exec $PROG -- start
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
$SSD --start --pidfile $PID --exec $PROG -- -q stop
|
$SSD --start --pidfile $PID --exec $PROG -- stop
|
||||||
$SSD --stop --retry 10 --pidfile $PID
|
$SSD --stop --retry 10 --pidfile $PID
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
|
@ -6,9 +6,9 @@ mmhome="/usr/lib/mailman"
|
|||||||
|
|
||||||
# make sure the user/group exists or add if not exists
|
# make sure the user/group exists or add if not exists
|
||||||
/usr/bin/getent group $mmgroup || \
|
/usr/bin/getent group $mmgroup || \
|
||||||
/usr/sbin/groupadd -g --system $mmgroup
|
/usr/sbin/groupadd $mmgroup
|
||||||
|
|
||||||
/usr/bin/getent passwd $mmuser || \
|
/usr/bin/getent passwd $mmuser || \
|
||||||
/usr/sbin/useradd -s /sbin/nologin -d $mmhome --system -g $mmgroup $mmuser
|
/usr/sbin/useradd -s /sbin/nologin -d $mmhome -g $mmgroup $mmuser
|
||||||
|
|
||||||
# End of file
|
# End of file
|
||||||
|
Loading…
Reference in New Issue
Block a user