From 48ca56ce3dbb3d58f61f7d1645f9923e12aa8b80 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 11 Feb 2018 22:36:07 +0000 Subject: [PATCH] Support the upstream "reopen" mode (broken from the beginning in ports) When the upstream initscript grew a "reopen" mode with 2.1.17 in late 2013, our patch stuffed the usage information into the wrong place, so that we inadvertently disabled the new reopen mode, thus never supported it through the init script in FreeBSD. Bump PORTREVISION. PR: 225800 Submitted by: Yasuhito FUTATSUKI MFH: 2018Q1 --- mail/mailman/Makefile | 2 +- mail/mailman/files/patch-misc__mailman.in | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile index fcefaa2b7501..d467f975f4dc 100644 --- a/mail/mailman/Makefile +++ b/mail/mailman/Makefile @@ -3,7 +3,7 @@ PORTNAME= mailman DISTVERSION= 2.1.26 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= GNU \ SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION} \ diff --git a/mail/mailman/files/patch-misc__mailman.in b/mail/mailman/files/patch-misc__mailman.in index b20d7eda710f..6845468c1a74 100644 --- a/mail/mailman/files/patch-misc__mailman.in +++ b/mail/mailman/files/patch-misc__mailman.in @@ -1,6 +1,6 @@ ---- misc/mailman.in.orig 2018-02-04 17:04:39 UTC -+++ misc/mailman.in -@@ -52,16 +52,20 @@ MAILMANCTL=$MAILMANHOME/bin/mailmanctl +--- misc/mailman.in.orig 2018-02-05 02:04:39.000000000 +0900 ++++ misc/mailman.in 2018-02-10 14:35:30.325926000 +0900 +@@ -52,11 +52,11 @@ MAILMANCTL=$MAILMANHOME/bin/mailmanctl case "$1" in 'start') #rm -f $MAILMANHOME/locks/* @@ -14,12 +14,14 @@ ;; 'restart') - $PYTHON $MAILMANCTL -q restart +@@ -67,5 +67,10 @@ case "$1" in + $PYTHON $MAILMANCTL -q reopen ;; + +*) -+ echo "Usage: `basename $0` {start|stop|restart}" >&2 ++ echo "Usage: `basename $0` {start|stop|restart|reopen}" >&2 + exit 64 + ;; - - 'reopen') - $PYTHON $MAILMANCTL -q reopen ++ + esac + exit 0