2007-02-12 17:36:51 +01:00
|
|
|
# New ports collection makefile for: squirrelmail-compatibility-plugin1
|
|
|
|
# Date created: 3 Feb 2007
|
2007-01-24 22:17:41 +01:00
|
|
|
# Whom: Alexander Wittig <alexander@wittig.name>
|
2005-07-23 00:32:25 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2007-01-24 22:17:41 +01:00
|
|
|
PORTNAME= squirrelmail
|
2007-02-12 17:36:51 +01:00
|
|
|
PORTVERSION= 1.3
|
2007-01-24 22:17:41 +01:00
|
|
|
CATEGORIES= mail www
|
|
|
|
MASTER_SITES= http://www.squirrelmail.org/plugins/
|
|
|
|
PKGNAMESUFFIX= -${SQUIRREL_PLUGIN_NAME}-plugin
|
|
|
|
DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= squirrelmail
|
2005-07-23 00:32:25 +02:00
|
|
|
|
2007-01-24 22:17:41 +01:00
|
|
|
MAINTAINER= alexander@wittig.name
|
|
|
|
COMMENT= Required by many plugins for compatibility with SquirrelMail
|
2005-07-23 00:32:25 +02:00
|
|
|
|
2007-02-12 17:36:51 +01:00
|
|
|
RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
|
|
|
|
|
|
|
|
CONFLICTS= squirrelmail-compatibility-plugin-2.*
|
2005-07-23 00:32:25 +02:00
|
|
|
|
2007-01-24 22:17:41 +01:00
|
|
|
SQUIRREL_PLUGIN_NAME= compatibility
|
2005-07-23 00:32:25 +02:00
|
|
|
|
|
|
|
.ifdef SQUIRRELDIR
|
2007-01-24 22:17:41 +01:00
|
|
|
PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
|
2005-07-23 00:32:25 +02:00
|
|
|
.else
|
|
|
|
. ifndef WITHOUT_WWWDIR
|
2007-01-24 22:17:41 +01:00
|
|
|
SQUIRRELDIR= ${PREFIX}/www/squirrelmail
|
|
|
|
PLIST_SUB+= SQUIRRELDIR=www/squirrelmail
|
2005-07-23 00:32:25 +02:00
|
|
|
. else
|
2007-01-24 22:17:41 +01:00
|
|
|
SQUIRRELDIR= ${PREFIX}/squirrelmail
|
|
|
|
PLIST_SUB+= SQUIRRELDIR=squirrelmail
|
2005-07-23 00:32:25 +02:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2007-01-24 22:17:41 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
WANT_PHP_WEB= yes
|
2005-07-23 00:32:25 +02:00
|
|
|
|
2007-02-12 17:36:51 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-07-23 00:32:25 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ""
|
|
|
|
.ifndef WITHOUT_ACTIVATE
|
|
|
|
@${ECHO} "Activating plug-in in SquirrelMail after installation."
|
|
|
|
@${ECHO} "If you don't want to automatically activate the plug-in set"
|
|
|
|
@${ECHO} "WITHOUT_ACTIVATE=yes"
|
|
|
|
.else
|
|
|
|
@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
|
|
|
|
@${ECHO} "If you want to automatically activate the plug-in unset"
|
|
|
|
@${ECHO} "WITHOUT_ACTIVATE"
|
|
|
|
.endif
|
|
|
|
@${ECHO} ""
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.ifndef WITHOUT_ACTIVATE
|
2006-03-20 21:38:59 +01:00
|
|
|
.if exists( ${SQUIRRELDIR}/config/config.php )
|
2005-07-23 00:32:25 +02:00
|
|
|
@${ECHO} "Activating plug-in in SquirrelMail"
|
|
|
|
${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
|
2006-03-20 21:38:59 +01:00
|
|
|
.endif
|
2005-07-23 00:32:25 +02:00
|
|
|
.else
|
|
|
|
@${ECHO} "To activate the plug-in in SquirrelMail use"
|
|
|
|
@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
|
|
|
|
.endif
|
|
|
|
|
2007-02-12 17:36:51 +01:00
|
|
|
.include <bsd.port.post.mk>
|