diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-02-17 17:39:54 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-02-17 17:39:54 +0000 |
commit | 7734329b02aad47f98ffeec182fec2aefe6b60ca (patch) | |
tree | e6b673c3f262eca72c9beef8eb44637fea196d6a /mail/squirrelmail-mark_read-plugin | |
parent | - Update to 2.2. (diff) |
This plugin allows the user to turn on the display of "(read/unread)" links to
the right of any folders in their folder list that contain at least one
message. Clicking on the link will then mark all messages in this folder as
read/unread. Note that you may turn the "read/unread" link on and off by going
to the Folders page. You may even turn only the "read" or the "unread" link on
or off. It also displays a "mark all read/unread" link below the folder list to
mark all folders read/unread that are selected on the Folders page.
WWW: http://www.squirrelmail.org/plugin_view.php?id=218
Notes
Notes:
svn path=/head/; revision=207477
Diffstat (limited to 'mail/squirrelmail-mark_read-plugin')
-rw-r--r-- | mail/squirrelmail-mark_read-plugin/Makefile | 82 | ||||
-rw-r--r-- | mail/squirrelmail-mark_read-plugin/distinfo | 3 | ||||
-rw-r--r-- | mail/squirrelmail-mark_read-plugin/files/pkg-message.in | 7 | ||||
-rw-r--r-- | mail/squirrelmail-mark_read-plugin/pkg-descr | 9 | ||||
-rw-r--r-- | mail/squirrelmail-mark_read-plugin/pkg-plist | 15 |
5 files changed, 116 insertions, 0 deletions
diff --git a/mail/squirrelmail-mark_read-plugin/Makefile b/mail/squirrelmail-mark_read-plugin/Makefile new file mode 100644 index 000000000000..5feeeb590055 --- /dev/null +++ b/mail/squirrelmail-mark_read-plugin/Makefile @@ -0,0 +1,82 @@ +# New ports collection makefile for: squirrelmail-mark_read-plugin +# Date created: 2008-02-16 +# Whom: Ion-Mihai "IOnut" Tetcu <itetcu@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mark_read +PORTVERSION= 1.4.2 +CATEGORIES= mail www +MASTER_SITES= http://www.squirrelmail.org/plugins/ +PKGNAMEPREFIX= squirrelmail- +PKGNAMESUFFIX= -plugin +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}-1.2 +DIST_SUBDIR= squirrelmail + +MAINTAINER= itetcu@FreeBSD.org +COMMENT= Provides one-click link to mark read/unread all mails in a folder + +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} + +SUB_FILES+= pkg-message +SUB_LIST+= 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} "" + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/mail/squirrelmail-mark_read-plugin/distinfo b/mail/squirrelmail-mark_read-plugin/distinfo new file mode 100644 index 000000000000..12ac41b4ecfc --- /dev/null +++ b/mail/squirrelmail-mark_read-plugin/distinfo @@ -0,0 +1,3 @@ +MD5 (squirrelmail/mark_read-1.4.2-1.2.tar.gz) = f5b80fb8f14ee0a63e4c55ba0ff6f44b +SHA256 (squirrelmail/mark_read-1.4.2-1.2.tar.gz) = bb3208b97f14fd1ec388dc5fbd44af36e06fa06de703036bc5436760c7dd1fce +SIZE (squirrelmail/mark_read-1.4.2-1.2.tar.gz) = 16111 diff --git a/mail/squirrelmail-mark_read-plugin/files/pkg-message.in b/mail/squirrelmail-mark_read-plugin/files/pkg-message.in new file mode 100644 index 000000000000..1a5735477804 --- /dev/null +++ b/mail/squirrelmail-mark_read-plugin/files/pkg-message.in @@ -0,0 +1,7 @@ +================================================================ +For the port to work properly you must copy the file +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/config.sample.php +to +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/config.php +and edit the configuration to meet your needs. +================================================================ diff --git a/mail/squirrelmail-mark_read-plugin/pkg-descr b/mail/squirrelmail-mark_read-plugin/pkg-descr new file mode 100644 index 000000000000..28711e09dc30 --- /dev/null +++ b/mail/squirrelmail-mark_read-plugin/pkg-descr @@ -0,0 +1,9 @@ +This plugin allows the user to turn on the display of "(read/unread)" links to +the right of any folders in their folder list that contain at least one +message. Clicking on the link will then mark all messages in this folder as +read/unread. Note that you may turn the "read/unread" link on and off by going +to the Folders page. You may even turn only the "read" or the "unread" link on +or off. It also displays a "mark all read/unread" link below the folder list to + mark all folders read/unread that are selected on the Folders page. + +WWW: http://www.squirrelmail.org/plugin_view.php?id=218 diff --git a/mail/squirrelmail-mark_read-plugin/pkg-plist b/mail/squirrelmail-mark_read-plugin/pkg-plist new file mode 100644 index 000000000000..00bc20b33750 --- /dev/null +++ b/mail/squirrelmail-mark_read-plugin/pkg-plist @@ -0,0 +1,15 @@ +@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%%/COPYING +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/INSTALL +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/README +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/config.sample.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/functions.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/getpot +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/index.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/make_release.sh +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/mark_read.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/mark_read.pot +%%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 |