ports/93151: New port: mail/squirrelmail-quota_usage-plugin

Gerrit Beine gerrit.beine at gmx.de
Fri Feb 10 22:10:07 UTC 2006


>Number:         93151
>Category:       ports
>Synopsis:       New port: mail/squirrelmail-quota_usage-plugin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 10 22:10:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gerrit Beine
>Release:        FreeBSD 6.0-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD fbsd60.vmware 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
f 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

>How-To-Repeat:
              
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	squirrelmail-quota_usage-plugin
#	squirrelmail-quota_usage-plugin/Makefile
#	squirrelmail-quota_usage-plugin/distinfo
#	squirrelmail-quota_usage-plugin/pkg-descr
#	squirrelmail-quota_usage-plugin/pkg-plist
#	squirrelmail-quota_usage-plugin/files
#	squirrelmail-quota_usage-plugin/files/pkg-message.in
#
echo c - squirrelmail-quota_usage-plugin
mkdir -p squirrelmail-quota_usage-plugin > /dev/null 2>&1
echo x - squirrelmail-quota_usage-plugin/Makefile
sed 's/^X//' >squirrelmail-quota_usage-plugin/Makefile << 'END-of-squirrelmail-quota_usage-plugin/Makefile'
X# New ports collection makefile for:		squirrelmail-quota_usage-plugin
X# Date created:		10 Feb 2006
X# Whom:		Gerrit Beine <gerrit.beine at gmx.de>
X#
X# $FreeBSD$
X
XPORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
XPORTVERSION=		1.3
XCATEGORIES=		mail www
XMASTER_SITES=		http://www.squirrelmail.org/plugins/
XDISTNAME=		${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.2.7
XDIST_SUBDIR=		squirrelmail
X
XMAINTAINER=		gerrit.beine at gmx.de
XCOMMENT=		View quota and current usage
X
XRUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
X			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
X
XSQUIRREL_PLUGIN_NAME=	quota_usage
X
X.ifdef SQUIRRELDIR
XPLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
XSUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
X.else
X.	ifndef WITHOUT_WWWDIR
XSQUIRRELDIR=		${PREFIX}/www/squirrelmail
XPLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
XSUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
X.	else
XSQUIRRELDIR=		${PREFIX}/squirrelmail
XPLIST_SUB+=		SQUIRRELDIR=squirrelmail
XSUB_LIST+=		"SQUIRRELDIR=squirrelmail"
X.	endif
X.endif
X
XSUB_FILES=		pkg-message
X
XNO_BUILD=		yes
XNO_WRKSUBDIR=		yes
XUSE_PERL5_BUILD=	yes
XUSE_PHP=		yes
XWANT_PHP_WEB=		yes
X
Xpre-everything::
X	@${ECHO} ""
X.ifndef WITHOUT_ACTIVATE
X	@${ECHO} "Activating plug-in in SquirrelMail after installation."
X	@${ECHO} "If you don't want to automatically activate the plug-in set"
X	@${ECHO} "WITHOUT_ACTIVATE=yes"
X.else
X	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
X	@${ECHO} "If you want to automatically activate the plug-in unset"
X	@${ECHO} "WITHOUT_ACTIVATE"
X.endif
X	@${ECHO} ""
X
Xdo-install:
X	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
X	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
X
Xpost-install:
X.ifndef WITHOUT_ACTIVATE
X	@${ECHO} "Activating plug-in in SquirrelMail"
X	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
X.else
X	@${ECHO} "To activate the plug-in in SquirrelMail use"
X	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
X.endif
X	@${ECHO} ""
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-squirrelmail-quota_usage-plugin/Makefile
echo x - squirrelmail-quota_usage-plugin/distinfo
sed 's/^X//' >squirrelmail-quota_usage-plugin/distinfo << 'END-of-squirrelmail-quota_usage-plugin/distinfo'
XMD5 (squirrelmail/quota_usage-1.3-1.2.7.tar.gz) = 55dc3ef776e6b0e75978a1090b16dad0
XSHA256 (squirrelmail/quota_usage-1.3-1.2.7.tar.gz) = bf9e3c48de72fa84147b36693677af2ac79ff1b9806f4247c61ce35cd9255af6
XSIZE (squirrelmail/quota_usage-1.3-1.2.7.tar.gz) = 38215
END-of-squirrelmail-quota_usage-plugin/distinfo
echo x - squirrelmail-quota_usage-plugin/pkg-descr
sed 's/^X//' >squirrelmail-quota_usage-plugin/pkg-descr << 'END-of-squirrelmail-quota_usage-plugin/pkg-descr'
Xf you have an IMAP server with QUOTA Extension capability, you can use
Xthis plugin to view the current quota usage (both size and message count),
Xwhich is displayed just above the folders list.
XA warning message can also be displayed to users upon login if desired.
XIf no quota is set, nothing is displayed.
X
XWWW: http://www.squirrelmail.org
END-of-squirrelmail-quota_usage-plugin/pkg-descr
echo x - squirrelmail-quota_usage-plugin/pkg-plist
sed 's/^X//' >squirrelmail-quota_usage-plugin/pkg-plist << 'END-of-squirrelmail-quota_usage-plugin/pkg-plist'
X at unexec %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin quota_usage
X%%SQUIRRELDIR%%/plugins/quota_usage/locale/quota_usage.pot
X%%SQUIRRELDIR%%/plugins/quota_usage/COPYING
X%%SQUIRRELDIR%%/plugins/quota_usage/FAQ
X%%SQUIRRELDIR%%/plugins/quota_usage/INSTALL
X%%SQUIRRELDIR%%/plugins/quota_usage/README
X%%SQUIRRELDIR%%/plugins/quota_usage/getpot
X%%SQUIRRELDIR%%/plugins/quota_usage/bar.php
X%%SQUIRRELDIR%%/plugins/quota_usage/config.php.sample
X%%SQUIRRELDIR%%/plugins/quota_usage/functions.php
X%%SQUIRRELDIR%%/plugins/quota_usage/index.php
X%%SQUIRRELDIR%%/plugins/quota_usage/setup.php
X%%SQUIRRELDIR%%/plugins/quota_usage/screenshot.jpg
X%%SQUIRRELDIR%%/plugins/quota_usage/version
X at dirrm %%SQUIRRELDIR%%/plugins/quota_usage/locale
X at dirrm %%SQUIRRELDIR%%/plugins/quota_usage/
X at exec %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin quota_usage
END-of-squirrelmail-quota_usage-plugin/pkg-plist
echo c - squirrelmail-quota_usage-plugin/files
mkdir -p squirrelmail-quota_usage-plugin/files > /dev/null 2>&1
echo x - squirrelmail-quota_usage-plugin/files/pkg-message.in
sed 's/^X//' >squirrelmail-quota_usage-plugin/files/pkg-message.in << 'END-of-squirrelmail-quota_usage-plugin/files/pkg-message.in'
XFor the port to work properly you must copy the file 
X%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.php.sample
Xto
X%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.php
Xand edit the configuration to meet your needs.
END-of-squirrelmail-quota_usage-plugin/files/pkg-message.in
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list