aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/Makefile1
-rw-r--r--mail/squirrelmail-multilogin-plugin/Makefile76
-rw-r--r--mail/squirrelmail-multilogin-plugin/distinfo3
-rw-r--r--mail/squirrelmail-multilogin-plugin/files/pkg-message.in5
-rw-r--r--mail/squirrelmail-multilogin-plugin/pkg-descr4
-rw-r--r--mail/squirrelmail-multilogin-plugin/pkg-plist22
6 files changed, 111 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index ad56942d4dc4..c62a0219b086 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -529,6 +529,7 @@
SUBDIR += squirrelmail-email_footer-plugin
SUBDIR += squirrelmail-login_auth-plugin
SUBDIR += squirrelmail-login_notes-plugin
+ SUBDIR += squirrelmail-multilogin-plugin
SUBDIR += squirrelmail-newuser_wiz-plugin
SUBDIR += squirrelmail-notes-plugin
SUBDIR += squirrelmail-notify-plugin
diff --git a/mail/squirrelmail-multilogin-plugin/Makefile b/mail/squirrelmail-multilogin-plugin/Makefile
new file mode 100644
index 000000000000..665bd80abbaf
--- /dev/null
+++ b/mail/squirrelmail-multilogin-plugin/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: squirrelmail-multilogin-plugin
+# Date created: 07 Sep 2006
+# Whom: Gerrit Beine <gerrit.beine@gmx.de>
+#
+# $FreeBSD$
+
+PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
+PORTVERSION= 2.3.2
+CATEGORIES= mail www
+MASTER_SITES= http://www.squirrelmail.org/plugins/
+DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.2
+DIST_SUBDIR= squirrelmail
+
+MAINTAINER= gerrit.beine@gmx.de
+COMMENT= Allows manual selection of login server on login page
+
+RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
+ ${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
+
+SQUIRREL_PLUGIN_NAME= multilogin
+
+.ifdef SQUIRRELDIR
+PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
+SUB_LIST+= "SQUIRRELDIR=${SQUIRRELDIR}"
+.else
+. ifndef WITHOUT_WWWDIR
+SQUIRRELDIR= ${PREFIX}/www/squirrelmail
+PLIST_SUB+= SQUIRRELDIR=www/squirrelmail
+SUB_LIST+= "SQUIRRELDIR=www/squirrelmail"
+. else
+SQUIRRELDIR= ${PREFIX}/squirrelmail
+PLIST_SUB+= SQUIRRELDIR=squirrelmail
+SUB_LIST+= "SQUIRRELDIR=squirrelmail"
+. endif
+.endif
+
+SUB_FILES= pkg-message
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+USE_PERL5_BUILD= yes
+USE_PHP= 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}
+ cd ${SQUIRRELDIR} && ${PATCH} -p0 < plugins/multilogin/patches/multilogin-squirrelmail-1.4.6.diff
+.endif
+.else
+ @${ECHO} "To activate the plug-in in SquirrelMail use"
+ @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
+.endif
+ @${ECHO} ""
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/mail/squirrelmail-multilogin-plugin/distinfo b/mail/squirrelmail-multilogin-plugin/distinfo
new file mode 100644
index 000000000000..dbd477bfd1ab
--- /dev/null
+++ b/mail/squirrelmail-multilogin-plugin/distinfo
@@ -0,0 +1,3 @@
+MD5 (squirrelmail/multilogin-2.3.2-1.2.tar.gz) = 7784bdc9852973a3fbb06c6fafacbce5
+SHA256 (squirrelmail/multilogin-2.3.2-1.2.tar.gz) = f5bb58f30b51dc56e39467a965663495ae161a9e9194a2c4fc8163c72074b6d3
+SIZE (squirrelmail/multilogin-2.3.2-1.2.tar.gz) = 15391
diff --git a/mail/squirrelmail-multilogin-plugin/files/pkg-message.in b/mail/squirrelmail-multilogin-plugin/files/pkg-message.in
new file mode 100644
index 000000000000..af75254c7407
--- /dev/null
+++ b/mail/squirrelmail-multilogin-plugin/files/pkg-message.in
@@ -0,0 +1,5 @@
+For the port to work properly you must copy the file
+%%PREFIX%%/%%SQUIRRELDIR%%/plugins/multilogin/config.php.sample
+to
+%%PREFIX%%/%%SQUIRRELDIR%%/plugins/multilogin/config.php
+and edit the configuration to meet your needs.
diff --git a/mail/squirrelmail-multilogin-plugin/pkg-descr b/mail/squirrelmail-multilogin-plugin/pkg-descr
new file mode 100644
index 000000000000..ba2bc2d7b41c
--- /dev/null
+++ b/mail/squirrelmail-multilogin-plugin/pkg-descr
@@ -0,0 +1,4 @@
+This plugin displays a pull-down select box with IMAP server choices on the
+login page. The user will be logged in using the IMAP server that is chosen.
+
+WWW: http://www.squirrelmail.org
diff --git a/mail/squirrelmail-multilogin-plugin/pkg-plist b/mail/squirrelmail-multilogin-plugin/pkg-plist
new file mode 100644
index 000000000000..573fd0bd7302
--- /dev/null
+++ b/mail/squirrelmail-multilogin-plugin/pkg-plist
@@ -0,0 +1,22 @@
+@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin multilogin; fi
+%%SQUIRRELDIR%%/plugins/multilogin/patches/multilogin-squirrelmail-1.4.1.diff
+%%SQUIRRELDIR%%/plugins/multilogin/patches/multilogin-squirrelmail-1.4.2.diff
+%%SQUIRRELDIR%%/plugins/multilogin/patches/multilogin-squirrelmail-1.4.3a.diff
+%%SQUIRRELDIR%%/plugins/multilogin/patches/multilogin-squirrelmail-1.4.4.diff
+%%SQUIRRELDIR%%/plugins/multilogin/patches/multilogin-squirrelmail-1.4.5.diff
+%%SQUIRRELDIR%%/plugins/multilogin/patches/multilogin-squirrelmail-1.4.6.diff
+%%SQUIRRELDIR%%/plugins/multilogin/patches/multilogin-squirrelmail-1.5.0.diff
+%%SQUIRRELDIR%%/plugins/multilogin/COPYING
+%%SQUIRRELDIR%%/plugins/multilogin/INSTALL
+%%SQUIRRELDIR%%/plugins/multilogin/README
+%%SQUIRRELDIR%%/plugins/multilogin/config.php.sample
+%%SQUIRRELDIR%%/plugins/multilogin/functions.php
+%%SQUIRRELDIR%%/plugins/multilogin/index.php
+%%SQUIRRELDIR%%/plugins/multilogin/setup.php
+%%SQUIRRELDIR%%/plugins/multilogin/getpot
+%%SQUIRRELDIR%%/plugins/multilogin/make_release.sh
+%%SQUIRRELDIR%%/plugins/multilogin/multilogin.pot
+%%SQUIRRELDIR%%/plugins/multilogin/version
+@dirrm %%SQUIRRELDIR%%/plugins/multilogin/patches
+@dirrmtry %%SQUIRRELDIR%%/plugins/multilogin/
+@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin multilogin; fi