aboutsummaryrefslogtreecommitdiff
path: root/mail/squirrelmail-vlogin-plugin
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-09-25 03:27:44 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-09-25 03:27:44 +0000
commit681008961026edc8492b4c5cdc194221bb355d9b (patch)
treea41dbd01b676023861ddf523642f3be7e9041543 /mail/squirrelmail-vlogin-plugin
parentc6c660c9c8498f31cf99089beff2a55921da5953 (diff)
downloadports-681008961026edc8492b4c5cdc194221bb355d9b.tar.gz
ports-681008961026edc8492b4c5cdc194221bb355d9b.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)
Notes
Notes: svn path=/head/; revision=173772
Diffstat (limited to 'mail/squirrelmail-vlogin-plugin')
-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}"