aboutsummaryrefslogtreecommitdiff
path: root/mail/squirrelmail-password_forget-plugin/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-04 21:56:46 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-04 21:56:46 +0000
commit885e98d61cbdd174ff173c9a418ba584a6b0262b (patch)
treef983de5ec475207b2f5fd33701f5d0baf272f7da /mail/squirrelmail-password_forget-plugin/Makefile
parent7320cc1ad9b1627faeaa18d363cba1427d5e8f1f (diff)
Notes
Diffstat (limited to 'mail/squirrelmail-password_forget-plugin/Makefile')
-rw-r--r--mail/squirrelmail-password_forget-plugin/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/mail/squirrelmail-password_forget-plugin/Makefile b/mail/squirrelmail-password_forget-plugin/Makefile
new file mode 100644
index 000000000000..565685df1828
--- /dev/null
+++ b/mail/squirrelmail-password_forget-plugin/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: squirrelmail-password_forget-plugin
+# Date created: 4 Dec 2006
+# Whom: Neil Darlow <neil@darlow.co.uk>
+#
+# $FreeBSD$
+
+PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
+PORTVERSION= 2.1
+CATEGORIES= mail www
+MASTER_SITES= http://www.squirrelmail.org/plugins/
+PKGNAMESUFFIX= -${SQUIRREL_PLUGIN_NAME}-plugin
+DISTNAME= ${SQUIRREL_PLUGIN_NAME}.${PORTVERSION}-1.0.1
+DIST_SUBDIR= squirrelmail
+
+MAINTAINER= neil@darlow.co.uk
+COMMENT= Prevent reuse of login details by browsers at public terminals
+
+RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
+
+SQUIRREL_PLUGIN_NAME= password_forget
+
+.ifdef SQUIRRELDIR
+PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
+.else
+. ifndef WITHOUT_WWWDIR
+SQUIRRELDIR= ${PREFIX}/www/squirrelmail
+PLIST_SUB+= SQUIRRELDIR=www/squirrelmail
+. else
+SQUIRRELDIR= ${PREFIX}/squirrelmail
+PLIST_SUB+= SQUIRRELDIR=squirrelmail
+. endif
+.endif
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+USE_PERL5_BUILD= yes
+WANT_PHP_WEB= yes
+
+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
+ ${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}"
+.endif
+
+.include <bsd.port.mk>