mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
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 PR: ports/93151 Submitted by: Gerrit Beine <gerrit.beine@gmx.de>
This commit is contained in:
parent
dd5aeb3760
commit
db2517b755
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157792
@ -514,6 +514,7 @@
|
||||
SUBDIR += squirrelmail-email_footer-plugin
|
||||
SUBDIR += squirrelmail-notes-plugin
|
||||
SUBDIR += squirrelmail-notify-plugin
|
||||
SUBDIR += squirrelmail-quota_usage-plugin
|
||||
SUBDIR += squirrelmail-vlogin-plugin
|
||||
SUBDIR += sqwebmail
|
||||
SUBDIR += ssmtp
|
||||
|
75
mail/squirrelmail-quota_usage-plugin/Makefile
Normal file
75
mail/squirrelmail-quota_usage-plugin/Makefile
Normal file
@ -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>
|
3
mail/squirrelmail-quota_usage-plugin/distinfo
Normal file
3
mail/squirrelmail-quota_usage-plugin/distinfo
Normal file
@ -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
|
@ -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.
|
7
mail/squirrelmail-quota_usage-plugin/pkg-descr
Normal file
7
mail/squirrelmail-quota_usage-plugin/pkg-descr
Normal file
@ -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
|
17
mail/squirrelmail-quota_usage-plugin/pkg-plist
Normal file
17
mail/squirrelmail-quota_usage-plugin/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user