1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Allows users to specify a list of additional folders they would like to be

treated as special, that is that these folders will be shown at the top of the
folders lists, and in different colour on the left frame (if you have the
option turned on).

WWW: http://www.squirrelmail.org/plugin_view.php?id=183
This commit is contained in:
Ion-Mihai Tetcu 2008-02-18 11:33:17 +00:00
parent 73846bb0f3
commit 3d4d715ad0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=207503
5 changed files with 96 additions and 0 deletions

View File

@ -616,6 +616,7 @@
SUBDIR += squirrelmail-timeout_user-plugin
SUBDIR += squirrelmail-tmda-plugin
SUBDIR += squirrelmail-unsafe_image_rules-plugin
SUBDIR += squirrelmail-user_special_mailboxes-plugin
SUBDIR += squirrelmail-vlogin-plugin
SUBDIR += squirrelmail-websearch-plugin
SUBDIR += squirrelmail-wetteronline-plugin

View File

@ -0,0 +1,78 @@
# New ports collection makefile for: squirrelmail-user_special_mailboxes-plugin
# Date created: 2008-02-16
# Whom: Ion-Mihai "IOnut" Tetcu <itetcu@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= user_special_mailboxes
PORTVERSION= 0.1
CATEGORIES= mail www
MASTER_SITES= http://www.squirrelmail.org/plugins/
PKGNAMEPREFIX= squirrelmail-
PKGNAMESUFFIX= -plugin
DISTNAME= ${PORTNAME:S/-/_/}.${PORTVERSION}-1.4
DIST_SUBDIR= squirrelmail
MAINTAINER= itetcu@FreeBSD.org
COMMENT= Lets define folders to be displayed at the top of the folders list
RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
SQUIRREL_PLUGIN_NAME= ${PORTNAME:S/-/_/}
.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
PLIST_SUB+= SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME}
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_PERL5_BUILD= yes
USE_PHP= yes
WANT_PHP_WEB= yes
.include <bsd.port.pre.mk>
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} -R ${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} ""
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (squirrelmail/user_special_mailboxes.0.1-1.4.tar.gz) = 52ef69baafdf35f0da09a011e4e1138e
SHA256 (squirrelmail/user_special_mailboxes.0.1-1.4.tar.gz) = eb7606e77de7f96761770d8234f28bee60f121db63b5886a10f8a27d0527b16c
SIZE (squirrelmail/user_special_mailboxes.0.1-1.4.tar.gz) = 2899

View File

@ -0,0 +1,6 @@
Allows users to specify a list of additional folders they would like to be
treated as special, that is that these folders will be shown at the top of the
folders lists, and in different colour on the left frame (if you have the
option turned on).
WWW: http://www.squirrelmail.org/plugin_view.php?id=183

View File

@ -0,0 +1,8 @@
@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/INSTALL
%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/README
%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/set_mailboxes.php
%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/setup.php
%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/version
@dirrm %%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%
@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin %%SQUIRREL_PLUGIN_NAME%%; fi