diff --git a/mail/phplist/Makefile b/mail/phplist/Makefile index bf8d7316715e..188d8eef1ea6 100644 --- a/mail/phplist/Makefile +++ b/mail/phplist/Makefile @@ -1,52 +1,52 @@ # Created by: Nick Hilliard PORTNAME= phplist DISTVERSION= 3.6.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail www MASTER_SITES= SF PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} MAINTAINER= ports@bsdserwis.com COMMENT= Full-featured open-source newsletter manager LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= ${PEARDIR}/HTTP/Request.php:www/pear-HTTP_Request@${PHP_FLAVOR} USES= cpe tar:tgz php:web,flavors USE_PHP= curl gd gettext hash iconv imap json mbstring mysqli pcre session xml zlib NO_ARCH= yes NO_BUILD= yes SUB_FILES= phplist PLIST_SUB= WWWOWN=${WWWOWN} \ WWWGRP=${WWWGRP} PORTDOCS= CONTRIBUTING.md COPYING INSTALL PEOPLE README.md TODO UPGRADE VERSION OPTIONS_DEFINE= DOCS PEARDIR?= ${LOCALBASE}/share/pear post-extract: @${MV} ${WRKSRC}/public_html/lists/config/config.php ${WRKSRC}/public_html/lists/config/config.php.sample # Note: there is file(s) with non-ascii filenames. So it's difficult to add # such files to pkg-plist. That's why there is find with delete # do-install: @${FIND} ${WRKSRC}/public_html/ -type f -regex '.*[^!-~].*' -delete @${FIND} ${WRKSRC}/public_html/ -type l -delete @${FIND} ${WRKSRC}/public_html/ -type d -empty -delete ${MKDIR} ${STAGEDIR}${WWWDIR}/ (cd ${WRKSRC}/public_html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}) ${INSTALL_SCRIPT} ${WRKDIR}/phplist ${STAGEDIR}${PREFIX}/bin post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include 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 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 $*