diff options
author | mandree <mandree@FreeBSD.org> | 2015-12-30 23:00:35 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2015-12-30 23:00:35 +0800 |
commit | 21c5006430a70cab745ac63f20191dec3526a33c (patch) | |
tree | a6001b203fb9292c5c600771eb55eec8cfbc586a /mail | |
parent | 8f90d1099b7617f25f57702311a89ff67da5e09f (diff) | |
download | freebsd-ports-gnome-21c5006430a70cab745ac63f20191dec3526a33c.tar.gz freebsd-ports-gnome-21c5006430a70cab745ac63f20191dec3526a33c.tar.zst freebsd-ports-gnome-21c5006430a70cab745ac63f20191dec3526a33c.zip |
Fix a leftover in rcfile, make more robust.
Make things more robust such that options in mailman_flags don't kill
the start.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mailman/Makefile | 2 | ||||
-rw-r--r-- | mail/mailman/files/mailman.in | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile index 1412c6cde332..d23ee3c9e802 100644 --- a/mail/mailman/Makefile +++ b/mail/mailman/Makefile @@ -3,7 +3,7 @@ PORTNAME= mailman DISTVERSION= 2.1.20 -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 4a782d816f61..679a5f4710c1 100644 --- a/mail/mailman/files/mailman.in +++ b/mail/mailman/files/mailman.in @@ -20,15 +20,17 @@ name="mailman" rcvar="mailman_enable" +required_dirs="%%MAILMANDIR%%/lists/mailman" command_interpreter="%%PYTHON_CMD%%" command="%%MAILMANDIR%%/bin/mailmanctl" -command_args="-s -q start" +command_args="start" pidfile="%%MAILMANDIR%%/data/master-qrunner.pid" load_rc_config $name -: ${mailman_enable="NO"} -: ${mailman_fix_perms="YES"} +: ${mailman_enable:="NO"} +: ${mailman_fix_perms:="YES"} +: ${mailman_flags:="-s -q"} start_precmd=${name}_prestart extra_commands="reload status" @@ -36,7 +38,7 @@ extra_commands="reload status" mailman_prestart() { if checkyesno mailman_fix_perms ; then check_startmsgs && echo "Fixing ${name} permissions:" - env LC_ALL=C %%MAILMANDIR%%/bin/check_perms -f $arg ${rc_debug:+-v} + env LC_ALL=C %%MAILMANDIR%%/bin/check_perms -f ${rc_debug:+-v} fi } |