From 907651dd95cc1d85233ea2d645c43fda56c135a7 Mon Sep 17 00:00:00 2001 From: mandree Date: Mon, 19 Feb 2018 21:23:01 +0000 Subject: Attempt to support pkg upgrade through scripts WRT last_mailman_version. --- mail/mailman/Makefile | 2 +- mail/mailman/files/pkg-install.in | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile index f210a2b28822..70df9d161474 100644 --- a/mail/mailman/Makefile +++ b/mail/mailman/Makefile @@ -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} \ diff --git a/mail/mailman/files/pkg-install.in b/mail/mailman/files/pkg-install.in index 8aa1bc79a1fa..5d75ccce52c6 100644 --- a/mail/mailman/files/pkg-install.in +++ b/mail/mailman/files/pkg-install.in @@ -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%%\"" -- cgit