git: 354d8e21d542 - main - mail/phplist: Update phplist.in to actual version

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Mon, 20 Dec 2021 12:11:18 UTC
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=354d8e21d542d8310df6fdfc361ce23def8f5ee0

commit 354d8e21d542d8310df6fdfc361ce23def8f5ee0
Author:     Igor Zabelin <igorz@yandex.ru>
AuthorDate: 2021-12-20 12:09:46 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-12-20 12:11:09 +0000

    mail/phplist: Update phplist.in to actual version
    
    PR:             248142
    Approved by:    Krzysztof <ports@bsdserwis.com> (maintainer)
---
 mail/phplist/Makefile         |  2 +-
 mail/phplist/files/phplist.in | 20 ++++++++++----------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/mail/phplist/Makefile b/mail/phplist/Makefile
index bf8d7316715e..188d8eef1ea6 100644
--- a/mail/phplist/Makefile
+++ b/mail/phplist/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	phplist
 DISTVERSION=	3.6.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail www
 MASTER_SITES=	SF
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
diff --git a/mail/phplist/files/phplist.in b/mail/phplist/files/phplist.in
index b2f231283646..e9f7ded67746 100644
--- a/mail/phplist/files/phplist.in
+++ b/mail/phplist/files/phplist.in
@@ -1,18 +1,18 @@
 #!/bin/sh
 
-# script to run PHPlist from commandline. You may need to edit this to make it work
-# with your shell environment. The following should work for Bash on Fedora Linux
+# script to run phpList from commandline. You may need to edit this to make it work
+# with your shell environment. The following should work for Bash on Linux
 # but this may vary strongly in other situations. You will need to dig into the
 # code to make sure it works for you.
 
 # in commandline mode, access is restricted to users who are listed in the config file
 # check README.commandline for more info
+#
+# when you set this file up, and place it in your PATH, you can do eg
+#  $ phplist -pprocessqueue
+# to run the queue
 
-# identify the config file for your installation
-CONFIG=%%WWWDIR%%/lists/config/config.php
-export CONFIG
-
-# alternatively you can use -c <path to config file> on the commandline
-
-# run the PHPlist index file with all parameters passed to this script
-exec %%LOCALBASE%%/bin/php %%WWWDIR%%/lists/admin/index.php $*
+# run the phpList index file with all parameters passed to this script
+# make sure the php binary is "cli"
+# 
+%%LOCALBASE%%/bin/php %%WWWDIR%%/lists/admin/index.php -c %%WWWDIR%%/lists/config/config.php $*