aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2008-02-18 01:39:54 +0800
committeritetcu <itetcu@FreeBSD.org>2008-02-18 01:39:54 +0800
commite039226040af789eafb47a036ec7a84d085a43f1 (patch)
tree86c7dbc95aeaf29bd92607d28094964acb6508c4 /mail
parent4398ea600e242a02fb8a238bc4fc4c54c12692d7 (diff)
downloadfreebsd-ports-gnome-e039226040af789eafb47a036ec7a84d085a43f1.tar.gz
freebsd-ports-gnome-e039226040af789eafb47a036ec7a84d085a43f1.tar.zst
freebsd-ports-gnome-e039226040af789eafb47a036ec7a84d085a43f1.zip
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
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/squirrelmail-mark_read-plugin/Makefile82
-rw-r--r--mail/squirrelmail-mark_read-plugin/distinfo3
-rw-r--r--mail/squirrelmail-mark_read-plugin/files/pkg-message.in7
-rw-r--r--mail/squirrelmail-mark_read-plugin/pkg-descr9
-rw-r--r--mail/squirrelmail-mark_read-plugin/pkg-plist15
6 files changed, 117 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index c3916397cd6c..74e225f7e542 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -598,6 +598,7 @@
SUBDIR += squirrelmail-email_footer-plugin
SUBDIR += squirrelmail-login_auth-plugin
SUBDIR += squirrelmail-login_notes-plugin
+ SUBDIR += squirrelmail-mark_read-plugin
SUBDIR += squirrelmail-multilogin-plugin
SUBDIR += squirrelmail-newuser_wiz-plugin
SUBDIR += squirrelmail-notes-plugin
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