diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-03-20 20:38:59 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-03-20 20:38:59 +0000 |
commit | 45e608741fa95edf58a470b9133f9001f18115ba (patch) | |
tree | 901923b4873e13487da03b5af34689c220783350 /mail/squirrelmail-compatibility-plugin1 | |
parent | b224dbb2cd5e63e053b69ec266e9e7b7d6b93bad (diff) |
- Don't activate plugin on unconfigured squirrelmail; prevent config.php.
Fixes plist.
PR: ports/94089
Submitted by: Alexander Wittig <alexander@wittig.name> (maintainer)
Notes
Notes:
svn path=/head/; revision=157787
Diffstat (limited to 'mail/squirrelmail-compatibility-plugin1')
-rw-r--r-- | mail/squirrelmail-compatibility-plugin1/Makefile | 2 | ||||
-rw-r--r-- | mail/squirrelmail-compatibility-plugin1/pkg-plist | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mail/squirrelmail-compatibility-plugin1/Makefile b/mail/squirrelmail-compatibility-plugin1/Makefile index 83b9ab258b70..0a6c036d07f1 100644 --- a/mail/squirrelmail-compatibility-plugin1/Makefile +++ b/mail/squirrelmail-compatibility-plugin1/Makefile @@ -58,8 +58,10 @@ post-install: @${ECHO} "" .ifndef WITHOUT_ACTIVATE +.if exists( ${SQUIRRELDIR}/config/config.php ) @${ECHO} "Activating plug-in in SquirrelMail" ${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME} +.endif .else @${ECHO} "To activate the plug-in in SquirrelMail use" @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}" diff --git a/mail/squirrelmail-compatibility-plugin1/pkg-plist b/mail/squirrelmail-compatibility-plugin1/pkg-plist index 73587d84dd40..5d56a75f1a22 100644 --- a/mail/squirrelmail-compatibility-plugin1/pkg-plist +++ b/mail/squirrelmail-compatibility-plugin1/pkg-plist @@ -1,4 +1,4 @@ -@unexec %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin compatibility +@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin compatibility; fi @unexec mv -f %D/%%SQUIRRELDIR%%/functions/strings.php.orig %D/%%SQUIRRELDIR%%/functions/strings.php @exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.5.1 %%SQUIRRELDIR%%/plugins/compatibility/compatibility.pot @@ -54,4 +54,4 @@ @dirrm %%SQUIRRELDIR%%/plugins/compatibility/patches.old @dirrm %%SQUIRRELDIR%%/plugins/compatibility @exec patch -sN -p0 -d %D/%%SQUIRRELDIR%%/plugins < %D/%%SQUIRRELDIR%%/plugins/compatibility/patches/compatibility_patch-1.4.5.diff -@exec %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin compatibility +@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin compatibility; fi |