From 307b9f65f4fa389c9511c0325561f7450e315ced Mon Sep 17 00:00:00 2001 From: rafan Date: Mon, 25 Sep 2006 03:27:44 +0000 Subject: - 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 Approved by: Matt Emmerton (maintainer) --- mail/squirrelmail-vlogin-plugin/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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}" -- cgit