mailman: fixed a few problems with the mailman2->mailman3 migration
This commit is contained in:
parent
1d80889c81
commit
67774c4697
@ -1,15 +1,12 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/cron.d/
|
||||
-rw-r--r-- root/root etc/cron.d/mailman
|
||||
-rw-r----- root/root etc/mailman.cfg
|
||||
drwxr-xr-x root/mailman etc/mailman/
|
||||
-rw-r----- root/mailman etc/mailman.cfg
|
||||
drwxr-xr-x mailman/root etc/mailman.d/
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/mailman
|
||||
-rwxr-xr-x root/root usr/bin/master
|
||||
-rwxr-xr-x root/root usr/bin/runner
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxrwxr-x root/mailman usr/lib/mailman/
|
||||
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-3.3.9.dist-info/
|
||||
@ -2052,12 +2049,16 @@ drwxr-xr-x root/root usr/lib/python3.10/site-packages/mailman/utilities/tests/da
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/mailman/version.py
|
||||
drwxr-xr-x root/root var/
|
||||
drwxr-xr-x root/root var/lib/
|
||||
drwxr-xr-x root/mailman var/lib/mailman/
|
||||
drwxr-xr-x root/mailman var/lib/mailman/archives/
|
||||
drwxr-xr-x root/mailman var/lib/mailman/archives/private/
|
||||
drwxr-xr-x mailman/root var/lib/mailman/
|
||||
drwxr-xr-x mailman/root var/lib/mailman/archives/
|
||||
drwxr-xr-x mailman/root var/lib/mailman/cache/
|
||||
drwxr-xr-x mailman/root var/lib/mailman/data/
|
||||
drwxr-xr-x mailman/root var/lib/mailman/lists/
|
||||
drwxr-xr-x mailman/root var/lib/mailman/messages/
|
||||
drwxr-xr-x mailman/root var/lib/mailman/templates/
|
||||
drwxrwxrwt root/root var/lock/
|
||||
drwxr-xr-x root/mailman var/lock/mailman/
|
||||
drwxr-xr-x mailman/root var/lock/mailman/
|
||||
drwxr-xr-x root/root var/log/
|
||||
drwxrwxr-x root/mailman var/log/mailman/
|
||||
drwxrwxr-x mailman/root var/log/mailman/
|
||||
drwxr-xr-x root/root var/spool/
|
||||
drwxr-xr-x root/mailman var/spool/mailman/
|
||||
drwxr-xr-x mailman/root var/spool/mailman/
|
||||
|
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/ctyG+nLZo7nDTD0X3olY3Znb5frQmundE1c4UAvN4RjbZSdsP2AU7WXFrdW5x2Almr8KcBLWF6J7TkyV5i8jAU=
|
||||
SHA256 (Pkgfile) = 760a1fe602746bb85e7c4bd6953075cd1288c62fe3a3cb2c92e49a63eb9bb6b0
|
||||
SHA256 (.footprint) = 58369c49f87d829bba49dfe4d39b455b3f37ffc6d5c9c405fe0573ae19ce47c2
|
||||
RWSE3ohX2g5d/d0B139TbU7Vf4OpNiIgxJywdfYmTFTwhm7aGq4hzO0wzcH/zhlgzArVW40+uogNrFO91GEgfmKkGZ+D3YmAxQI=
|
||||
SHA256 (Pkgfile) = cc7146d73ecda81c438c476b28c13a1ebe9f1f60dad68b543241fcdca613a08b
|
||||
SHA256 (.footprint) = 48f5c0149fa51ab0798056f107e6709f0c38165fa1af35f1072b85c66f7cf15c
|
||||
SHA256 (mailman-v3.3.9.tar.bz2) = f96de9f54c8d513b4c1dd0bae69a9b511d7f515a04c267b7231ba4bedaaafa48
|
||||
SHA256 (mailman.rc) = b3fc612c058b99153f6168fd6b98ab210f5e6edcf02fd2f0180f94dd541fe17e
|
||||
|
@ -12,33 +12,21 @@ source=(https://gitlab.com/mailman/mailman/-/archive/v$version/mailman-v$version
|
||||
build() {
|
||||
cd $name-v$version
|
||||
|
||||
printf "[mailman]\nlayout: fhs\n" >> ../mailman.cfg
|
||||
sed -e 's|/var/tmp/mailman|/var/lib/mailman|g' -i src/mailman/config/schema.cfg
|
||||
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
|
||||
|
||||
# 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
|
||||
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
|
||||
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
|
||||
find $PKG/usr/lib/$name -type d -exec chmod 0775 {} \;
|
||||
chmod o+x $PKG/var/lib/$name/archives/private
|
||||
|
||||
# fix configs
|
||||
install -vDm 640 ../mailman.cfg -t $PKG/etc/
|
||||
#ln -sf /etc/$name/sitelist.cfg $PKG/var/lib/$name/data
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
mmuser="mailman"
|
||||
mmgroup="mailman"
|
||||
mmhome="/usr/lib/mailman"
|
||||
mmhome="/var/lib/mailman"
|
||||
|
||||
# make sure the user/group exists or add if not exists
|
||||
/usr/bin/getent group $mmgroup || \
|
||||
|
Loading…
x
Reference in New Issue
Block a user