aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-11-21 15:09:32 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-11-21 15:09:32 +0000
commit50a18e8b9e69df3a24798ac49e5181b3554b6163 (patch)
tree7049c14c0bcc303dfae3dec8d5ce640fa4e09b74 /mail
parent4a89940ec6d4b009b23ec94b98996ff5dc2bead6 (diff)
This plugin for SquirrelMail allows a single installation support multiple
domains, via per-domain (and per-user) configurations. PR: ports/87860 Submitted by: Matt Emmerton <matt@gsicomp.on.ca>
Notes
Notes: svn path=/head/; revision=148946
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/squirrelmail-vlogin-plugin/Makefile63
-rw-r--r--mail/squirrelmail-vlogin-plugin/distinfo3
-rw-r--r--mail/squirrelmail-vlogin-plugin/pkg-descr5
-rw-r--r--mail/squirrelmail-vlogin-plugin/pkg-plist22
5 files changed, 94 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 72a52dc525a7..a0c7df88acc0 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -506,6 +506,7 @@
SUBDIR += squirrelmail
SUBDIR += squirrelmail-change_ldappass-plugin
SUBDIR += squirrelmail-compatibility-plugin
+ SUBDIR += squirrelmail-vlogin-plugin
SUBDIR += sqwebmail
SUBDIR += ssmtp
SUBDIR += svnmailer
diff --git a/mail/squirrelmail-vlogin-plugin/Makefile b/mail/squirrelmail-vlogin-plugin/Makefile
new file mode 100644
index 000000000000..f8c17ea2a9b1
--- /dev/null
+++ b/mail/squirrelmail-vlogin-plugin/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: squirrelmail-vlogin-plugin
+# Date created: 10 Oct 2005
+# Whom: Matt Emmerton <matt@gsicomp.on.ca>
+#
+# $FreeBSD$
+
+PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
+PORTVERSION= 3.6
+CATEGORIES= mail www
+MASTER_SITES= http://www.squirrelmail.org/plugins/
+DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.2.7
+DIST_SUBDIR= squirrelmail
+
+MAINTAINER= matt@gsicomp.on.ca
+COMMENT= Adds multi-site-hosting capabilities to SquirrelMail
+
+RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
+
+SQUIRREL_PLUGIN_NAME= vlogin
+
+.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}
+
+.ifndef WITHOUT_ACTIVATE
+ @${ECHO} "Activating plug-in in SquirrelMail"
+ ${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
+.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>
diff --git a/mail/squirrelmail-vlogin-plugin/distinfo b/mail/squirrelmail-vlogin-plugin/distinfo
new file mode 100644
index 000000000000..d7956df5b58e
--- /dev/null
+++ b/mail/squirrelmail-vlogin-plugin/distinfo
@@ -0,0 +1,3 @@
+MD5 (squirrelmail/vlogin-3.6-1.2.7.tar.gz) = e9fc95fb81fe38c1ed3c06b43ec22273
+SHA256 (squirrelmail/vlogin-3.6-1.2.7.tar.gz) = 3f65ebc79ecf0695c363308b819881de06a937b3661a8a0566a8192a894a237b
+SIZE (squirrelmail/vlogin-3.6-1.2.7.tar.gz) = 36573
diff --git a/mail/squirrelmail-vlogin-plugin/pkg-descr b/mail/squirrelmail-vlogin-plugin/pkg-descr
new file mode 100644
index 000000000000..0928adb5152d
--- /dev/null
+++ b/mail/squirrelmail-vlogin-plugin/pkg-descr
@@ -0,0 +1,5 @@
+SquirrelMail Plug-in that allows system administrators to use a single
+installation of SquirrelMail to provide web-mail capabilities for multiple
+domains.
+
+WWW: http://www.squirrelmail.org
diff --git a/mail/squirrelmail-vlogin-plugin/pkg-plist b/mail/squirrelmail-vlogin-plugin/pkg-plist
new file mode 100644
index 000000000000..81495a660271
--- /dev/null
+++ b/mail/squirrelmail-vlogin-plugin/pkg-plist
@@ -0,0 +1,22 @@
+@unexec %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin vlogin
+@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/vlogin/data/domains
+%%SQUIRRELDIR%%/plugins/vlogin/data/domains/domain.com.vlogin.config.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/index.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/config.php.sample
+%%SQUIRRELDIR%%/plugins/vlogin/data/config.php.sample.typical
+%%SQUIRRELDIR%%/plugins/vlogin/data/hostmap.dat.sample
+%%SQUIRRELDIR%%/plugins/vlogin/data/users.dat.sample
+%%SQUIRRELDIR%%/plugins/vlogin/data/.htaccess
+%%SQUIRRELDIR%%/plugins/vlogin/data/config.php.sample.per_user_functions_only
+%%SQUIRRELDIR%%/plugins/vlogin/INSTALL
+%%SQUIRRELDIR%%/plugins/vlogin/COPYING
+%%SQUIRRELDIR%%/plugins/vlogin/index.php
+%%SQUIRRELDIR%%/plugins/vlogin/README
+%%SQUIRRELDIR%%/plugins/vlogin/functions.php
+%%SQUIRRELDIR%%/plugins/vlogin/version
+%%SQUIRRELDIR%%/plugins/vlogin/setup.php
+%%SQUIRRELDIR%%/plugins/vlogin/functions.php.debug
+@dirrm %%SQUIRRELDIR%%/plugins/vlogin/data/domains
+@dirrm %%SQUIRRELDIR%%/plugins/vlogin/data
+@dirrm %%SQUIRRELDIR%%/plugins/vlogin
+@exec %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin vlogin