1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Don't activate plugin on unconfigured squirrelmail; prevent config.php.

Fixes plist.

PR:		ports/94089
Submitted by:	Alexander Wittig <alexander@wittig.name> (maintainer)
This commit is contained in:
Pav Lucistnik 2006-03-20 20:38:59 +00:00
parent b224dbb2cd
commit 45e608741f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157787
4 changed files with 8 additions and 4 deletions

View File

@ -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}"

View File

@ -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

View File

@ -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}"

View File

@ -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