aboutsummaryrefslogtreecommitdiff
path: root/mail/mailman
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2020-04-27 18:04:58 +0000
committerMatthias Andree <mandree@FreeBSD.org>2020-04-27 18:04:58 +0000
commitcccf7930125befc70103212b1a6185b1a42625d2 (patch)
tree34d57d5f995b5a89095c805de89cd8df90462a88 /mail/mailman
parentbe672081d74efa1c6600080a4d916175d0d32022 (diff)
downloadports-cccf7930125befc70103212b1a6185b1a42625d2.tar.gz
ports-cccf7930125befc70103212b1a6185b1a42625d2.zip
mail/mailman: rcfile and pkg-message tweaks
Limit the install message about pkg install -I to installs (not upgrades). Convert the required_dirs of the rcfile into a coded prereq check, so that we can print the proper error message, and point the user to the right place. Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=533159
Diffstat (limited to 'mail/mailman')
-rw-r--r--mail/mailman/Makefile2
-rw-r--r--mail/mailman/files/mailman.in12
-rw-r--r--mail/mailman/files/pkg-message.in4
3 files changed, 13 insertions, 5 deletions
diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile
index ba431a278c53..b2d9f85cd25d 100644
--- a/mail/mailman/Makefile
+++ b/mail/mailman/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mailman
DISTVERSION= 2.1.30
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= GNU \
SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION} \
diff --git a/mail/mailman/files/mailman.in b/mail/mailman/files/mailman.in
index 70dcec2eec9d..c21941b1a29f 100644
--- a/mail/mailman/files/mailman.in
+++ b/mail/mailman/files/mailman.in
@@ -24,7 +24,6 @@
name="mailman"
rcvar="mailman_enable"
-required_dirs="%%MAILMANDIR%%/lists/mailman"
command_interpreter="%%PYTHON_CMD%%"
command="%%MAILMANDIR%%/bin/mailmanctl"
command_args="start"
@@ -44,8 +43,15 @@ reopen_cmd="${command} reopen"
mailman_prestart() {
### check/fix permissions if desired
if checkyesno mailman_fix_perms ; then
- check_startmsgs && echo "Fixing ${name} permissions:"
- env LC_ALL=C %%MAILMANDIR%%/bin/check_perms -f ${rc_debug:+-v}
+ check_startmsgs && echo "Fixing ${name} permissions:"
+ env LC_ALL=C %%MAILMANDIR%%/bin/check_perms -f ${rc_debug:+-v}
+ fi
+
+ ### check if site list is created
+ if test ! -d "%%MAILMANDIR%%/lists/mailman" ; then
+ err 78 $'The site-wide "mailman" mailing list has not been created.\n\
+ Please review %%DOCSDIR%%/FreeBSD-post-install-notes,\n\
+ and section 4 onward of %%DOCSDIR%%/mailman-install.txt.'
fi
### check if the default configuration is plausible
diff --git a/mail/mailman/files/pkg-message.in b/mail/mailman/files/pkg-message.in
index 7c7eda617e0e..ea74d13ee574 100644
--- a/mail/mailman/files/pkg-message.in
+++ b/mail/mailman/files/pkg-message.in
@@ -8,6 +8,7 @@ integrate with Mailman. If the port's documentation has been installed,
extensive post-installation instructions may be found in:
%%DOCSDIR%%/FreeBSD-post-install-notes
+ %%DOCSDIR%%/mailman-install.txt (start at section 4)
Note (1):
- ESPECIALLY RELEVANT FOR USERS OF THE BINARY PACKAGE -
@@ -34,7 +35,8 @@ to copy or link %%LOCALBASE%%/libexec/namazu.cgi to
Refer to %%LOCALBASE%%/etc/namazu/namazurc.sample.
EOM
}
-{ message: <<EOM
+{ type: install,
+ message: <<EOM
If you did just install mailman with pkg -I, --no-script or
--no-install-scripts, you MUST(!) run the post-install script now, as root: