Attempt to support pkg upgrade through scripts WRT last_mailman_version.

This commit is contained in:
Matthias Andree 2018-02-19 21:23:01 +00:00
parent 744f32ac48
commit 3dff4583e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=462349
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= mailman
DISTVERSION= 2.1.26
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= GNU \
SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION} \

View File

@ -84,6 +84,11 @@ POST-INSTALL)
echo "---> Running update"
if test -r /var/tmp/last_mailman_version ; then
mkdir -p "%%MAILMANDIR%%/data"
mv -f /var/tmp/last_mailman_version "%%MAILMANDIR%%/data"
fi
LC_ALL=C "%%MAILMANDIR%%/bin/update"
echo "---> Checking crontab(5) file for user \"%%USER%%\""