summaryrefslogtreecommitdiff
path: root/mail/squirrelmail-quota_usage-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'mail/squirrelmail-quota_usage-plugin')
-rw-r--r--mail/squirrelmail-quota_usage-plugin/Makefile75
-rw-r--r--mail/squirrelmail-quota_usage-plugin/distinfo3
-rw-r--r--mail/squirrelmail-quota_usage-plugin/files/pkg-message.in5
-rw-r--r--mail/squirrelmail-quota_usage-plugin/pkg-descr7
-rw-r--r--mail/squirrelmail-quota_usage-plugin/pkg-plist17
5 files changed, 107 insertions, 0 deletions
diff --git a/mail/squirrelmail-quota_usage-plugin/Makefile b/mail/squirrelmail-quota_usage-plugin/Makefile
new file mode 100644
index 000000000000..b2dc53591fa9
--- /dev/null
+++ b/mail/squirrelmail-quota_usage-plugin/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: squirrelmail-quota_usage-plugin
+# Date created: 10 Feb 2006
+# Whom: Gerrit Beine <gerrit.beine@gmx.de>
+#
+# $FreeBSD$
+
+PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
+PORTVERSION= 1.3
+CATEGORIES= mail www
+MASTER_SITES= http://www.squirrelmail.org/plugins/
+DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.2.7
+DIST_SUBDIR= squirrelmail
+
+MAINTAINER= gerrit.beine@gmx.de
+COMMENT= View quota and current usage
+
+RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
+ ${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
+
+SQUIRREL_PLUGIN_NAME= quota_usage
+
+.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}
+.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-quota_usage-plugin/distinfo b/mail/squirrelmail-quota_usage-plugin/distinfo
new file mode 100644
index 000000000000..11d9491f6ab0
--- /dev/null
+++ b/mail/squirrelmail-quota_usage-plugin/distinfo
@@ -0,0 +1,3 @@
+MD5 (squirrelmail/quota_usage-1.3-1.2.7.tar.gz) = 55dc3ef776e6b0e75978a1090b16dad0
+SHA256 (squirrelmail/quota_usage-1.3-1.2.7.tar.gz) = bf9e3c48de72fa84147b36693677af2ac79ff1b9806f4247c61ce35cd9255af6
+SIZE (squirrelmail/quota_usage-1.3-1.2.7.tar.gz) = 38215
diff --git a/mail/squirrelmail-quota_usage-plugin/files/pkg-message.in b/mail/squirrelmail-quota_usage-plugin/files/pkg-message.in
new file mode 100644
index 000000000000..5fa04f5b3da0
--- /dev/null
+++ b/mail/squirrelmail-quota_usage-plugin/files/pkg-message.in
@@ -0,0 +1,5 @@
+For the port to work properly you must copy the file
+%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.php.sample
+to
+%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.php
+and edit the configuration to meet your needs.
diff --git a/mail/squirrelmail-quota_usage-plugin/pkg-descr b/mail/squirrelmail-quota_usage-plugin/pkg-descr
new file mode 100644
index 000000000000..899c68121663
--- /dev/null
+++ b/mail/squirrelmail-quota_usage-plugin/pkg-descr
@@ -0,0 +1,7 @@
+If you have an IMAP server with QUOTA Extension capability, you can use
+this plugin to view the current quota usage (both size and message count),
+which is displayed just above the folders list.
+A warning message can also be displayed to users upon login if desired.
+If no quota is set, nothing is displayed.
+
+WWW: http://www.squirrelmail.org
diff --git a/mail/squirrelmail-quota_usage-plugin/pkg-plist b/mail/squirrelmail-quota_usage-plugin/pkg-plist
new file mode 100644
index 000000000000..c74e3e524e44
--- /dev/null
+++ b/mail/squirrelmail-quota_usage-plugin/pkg-plist
@@ -0,0 +1,17 @@
+@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin quota_usage; fi
+%%SQUIRRELDIR%%/plugins/quota_usage/locale/quota_usage.pot
+%%SQUIRRELDIR%%/plugins/quota_usage/COPYING
+%%SQUIRRELDIR%%/plugins/quota_usage/FAQ
+%%SQUIRRELDIR%%/plugins/quota_usage/INSTALL
+%%SQUIRRELDIR%%/plugins/quota_usage/README
+%%SQUIRRELDIR%%/plugins/quota_usage/getpot
+%%SQUIRRELDIR%%/plugins/quota_usage/bar.php
+%%SQUIRRELDIR%%/plugins/quota_usage/config.php.sample
+%%SQUIRRELDIR%%/plugins/quota_usage/functions.php
+%%SQUIRRELDIR%%/plugins/quota_usage/index.php
+%%SQUIRRELDIR%%/plugins/quota_usage/setup.php
+%%SQUIRRELDIR%%/plugins/quota_usage/screenshot.jpg
+%%SQUIRRELDIR%%/plugins/quota_usage/version
+@dirrm %%SQUIRRELDIR%%/plugins/quota_usage/locale
+@dirrm %%SQUIRRELDIR%%/plugins/quota_usage/
+@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin quota_usage; fi