aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-09-25 11:27:44 +0800
committerrafan <rafan@FreeBSD.org>2006-09-25 11:27:44 +0800
commit307b9f65f4fa389c9511c0325561f7450e315ced (patch)
treefc717af2649225de0badd779f808d3166e7620e7
parentb63d23c6c82e6c288ec9717961a95194ed644263 (diff)
downloadfreebsd-ports-gnome-307b9f65f4fa389c9511c0325561f7450e315ced.tar.gz
freebsd-ports-gnome-307b9f65f4fa389c9511c0325561f7450e315ced.tar.zst
freebsd-ports-gnome-307b9f65f4fa389c9511c0325561f7450e315ced.zip
- Only to activate the plugin when squirrel mail is installed, i.e.,
config.php exists. This fixes package building. Reported by: pointyhat via kris Submitted by: Neil Darlow <neil at darlow.co.uk> Approved by: Matt Emmerton <matt at gsicomp.on.ca> (maintainer)
-rw-r--r--mail/squirrelmail-vlogin-plugin/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/squirrelmail-vlogin-plugin/Makefile b/mail/squirrelmail-vlogin-plugin/Makefile
index 9477e64e1fb7..5d3d713d0791 100644
--- a/mail/squirrelmail-vlogin-plugin/Makefile
+++ b/mail/squirrelmail-vlogin-plugin/Makefile
@@ -53,9 +53,12 @@ do-install:
${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
+post-install:
.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}"