2006-06-26 18:35:16 +02:00
# New ports collection makefile for: squirrelmail-newuser_wiz-plugin
# Date created: 2006-06-20
# Whom: Thomas Abthorpe <thomas@goodking.ca>
#
# $FreeBSD$
#
2007-02-26 23:18:08 +01:00
PORTNAME = newuser_wiz
2006-06-26 18:35:16 +02:00
PORTVERSION = 1.3.2
2008-06-06 16:17:21 +02:00
PORTREVISION = 4
2006-06-26 18:35:16 +02:00
CATEGORIES = mail www
MASTER_SITES = http://www.squirrelmail.org/plugins/
2007-02-26 23:18:08 +01:00
PKGNAMEPREFIX = squirrelmail-
PKGNAMESUFFIX = -plugin
DISTNAME = ${ PORTNAME } -${ PORTVERSION }
2006-06-26 18:35:16 +02:00
DIST_SUBDIR = squirrelmail
2007-08-23 06:00:04 +02:00
MAINTAINER = tabthorpe@FreeBSD.org
2006-06-26 18:35:16 +02:00
COMMENT = Force user to enter Full name and Email address at initial logon
RUN_DEPENDS = ${ SQUIRRELDIR } /index.php:${ PORTSDIR } /mail/squirrelmail \
2007-02-26 23:18:08 +01:00
${ SQUIRRELDIR } /plugins/compatibility:${ PORTSDIR } /mail/squirrelmail-compatibility-plugin1
2006-06-26 18:35:16 +02:00
2007-02-26 23:18:08 +01:00
SQUIRREL_PLUGIN_NAME = ${ PORTNAME }
2006-06-26 18:35:16 +02:00
. i f d e f S Q U I R R E L D I R
PLIST_SUB += SQUIRRELDIR = ${ SQUIRRELDIR }
SUB_LIST += " SQUIRRELDIR= ${ SQUIRRELDIR } "
. e l s e
. i f n d e f W I T H O U T _ W W W D I R
SQUIRRELDIR = ${ PREFIX } /www/squirrelmail
PLIST_SUB += SQUIRRELDIR = www/squirrelmail
SUB_LIST += "SQUIRRELDIR=www/squirrelmail"
. e l s e
SQUIRRELDIR = ${ PREFIX } /squirrelmail
PLIST_SUB += SQUIRRELDIR = squirrelmail
SUB_LIST += "SQUIRRELDIR=squirrelmail"
. e n d i f
. e n d i f
2007-02-26 23:18:08 +01:00
PLIST_SUB += SQUIRREL_PLUGIN_NAME = ${ SQUIRREL_PLUGIN_NAME }
2006-06-26 18:35:16 +02:00
NO_BUILD = yes
NO_WRKSUBDIR = yes
USE_PERL5_BUILD = yes
USE_PHP = yes
WANT_PHP_WEB = yes
2007-02-26 23:18:08 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f e x i s t s ( $ { S Q U I R R E L D I R } / p l u g i n s / c o m p a t i b i l i t y / g e t p o t )
IGNORE = 'compatibility2 plugin is incompatible with this plugin, install mail/squirrelmail-compatibility-plugin1. WARNING compatibility-plugin1 could break other squirrelmail plugins'
. e n d i f
2006-06-26 18:35:16 +02:00
pre-everything ::
@${ ECHO } ""
. i f n d e f W I T H O U T _ A C T I V A T E
@${ 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"
. e l s e
@${ ECHO } "NOT Activating plug-in in SquirrelMail after installation."
@${ ECHO } "If you want to automatically activate the plug-in unset"
@${ ECHO } "WITHOUT_ACTIVATE"
. e n d i f
@${ ECHO } ""
do-install :
${ CP } -rp ${ WRKSRC } /${ SQUIRREL_PLUGIN_NAME } ${ SQUIRRELDIR } /plugins
${ CHOWN } -R ${ WWWOWN } :${ WWWGRP } ${ SQUIRRELDIR } /plugins/${ SQUIRREL_PLUGIN_NAME }
post-install :
. i f n d e f W I T H O U T _ A C T I V A T E
. i f e x i s t s ( $ { S Q U I R R E L D I R } / c o n f i g / c o n f i g . p h p )
@${ ECHO } "Activating plug-in in SquirrelMail"
${ SQUIRRELDIR } /config/conf.pl --install-plugin ${ SQUIRREL_PLUGIN_NAME }
. e n d i f
. e l s e
@${ ECHO } "To activate the plug-in in SquirrelMail use"
@${ ECHO } " ${ SQUIRRELDIR } /config/conf.pl --install-plugin ${ SQUIRREL_PLUGIN_NAME } "
. e n d i f
2007-02-26 23:18:08 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >