diff options
author | itetcu <itetcu@FreeBSD.org> | 2008-02-17 06:48:27 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2008-02-17 06:48:27 +0800 |
commit | 0fdf23c59c03f3e0fe622022d63f0088a57b1a42 (patch) | |
tree | bc83913d4119e7a9c3c4c53ab1d78629018738d7 /mail/squirrelmail-spam-buttons-plugin | |
parent | d0742aec719daef6955a6dfde3935d294870f625 (diff) | |
download | freebsd-ports-gnome-0fdf23c59c03f3e0fe622022d63f0088a57b1a42.tar.gz freebsd-ports-gnome-0fdf23c59c03f3e0fe622022d63f0088a57b1a42.tar.zst freebsd-ports-gnome-0fdf23c59c03f3e0fe622022d63f0088a57b1a42.zip |
Add squirrelmail-spam-buttons-plugin 2.1 which provides buttons with
customizable action (for reporting spam, etc.).
Diffstat (limited to 'mail/squirrelmail-spam-buttons-plugin')
-rw-r--r-- | mail/squirrelmail-spam-buttons-plugin/Makefile | 81 | ||||
-rw-r--r-- | mail/squirrelmail-spam-buttons-plugin/distinfo | 3 | ||||
-rw-r--r-- | mail/squirrelmail-spam-buttons-plugin/files/pkg-message.in | 7 | ||||
-rw-r--r-- | mail/squirrelmail-spam-buttons-plugin/pkg-descr | 10 | ||||
-rw-r--r-- | mail/squirrelmail-spam-buttons-plugin/pkg-plist | 41 |
5 files changed, 142 insertions, 0 deletions
diff --git a/mail/squirrelmail-spam-buttons-plugin/Makefile b/mail/squirrelmail-spam-buttons-plugin/Makefile new file mode 100644 index 000000000000..b5fc53916b62 --- /dev/null +++ b/mail/squirrelmail-spam-buttons-plugin/Makefile @@ -0,0 +1,81 @@ +# New ports collection makefile for: squirrelmail-spam-buttons-plugin +# Date created: 2008-02-16 +# Whom: Ion-Mihai "IOnut" Tetcu <itetcu@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= spam-buttons +PORTVERSION= 2.1 +CATEGORIES= mail www +MASTER_SITES= http://www.squirrelmail.org/plugins/ +PKGNAMEPREFIX= squirrelmail- +PKGNAMESUFFIX= -plugin +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}-1.4.0 +DIST_SUBDIR= squirrelmail + +MAINTAINER= itetcu@FreeBSD.org +COMMENT= Provides buttons with customizable action (for reporting spam, etc.) + +RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \ + ${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin # this line might no be required + +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 + +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-spam-buttons-plugin/distinfo b/mail/squirrelmail-spam-buttons-plugin/distinfo new file mode 100644 index 000000000000..643cf45513a8 --- /dev/null +++ b/mail/squirrelmail-spam-buttons-plugin/distinfo @@ -0,0 +1,3 @@ +MD5 (squirrelmail/spam_buttons-2.1-1.4.0.tar.gz) = e9b1a72e6cc7426826e4e0b6c8723ec2 +SHA256 (squirrelmail/spam_buttons-2.1-1.4.0.tar.gz) = cf428f48542c15ea4ea74ddeaaaca9c4f12e8bd67e4dc68f74c825cc4bc58027 +SIZE (squirrelmail/spam_buttons-2.1-1.4.0.tar.gz) = 68534 diff --git a/mail/squirrelmail-spam-buttons-plugin/files/pkg-message.in b/mail/squirrelmail-spam-buttons-plugin/files/pkg-message.in new file mode 100644 index 000000000000..6f3a1034a500 --- /dev/null +++ b/mail/squirrelmail-spam-buttons-plugin/files/pkg-message.in @@ -0,0 +1,7 @@ +================================================================ +For the port to work properly you must copy the file +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.sample.php +to +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.php +and edit the configuration to meet your needs. +================================================================ diff --git a/mail/squirrelmail-spam-buttons-plugin/pkg-descr b/mail/squirrelmail-spam-buttons-plugin/pkg-descr new file mode 100644 index 000000000000..dfb96c428a99 --- /dev/null +++ b/mail/squirrelmail-spam-buttons-plugin/pkg-descr @@ -0,0 +1,10 @@ +This plugin will place "Spam" and/or "Not Spam" buttons on the mailbox message +list page as well as on a single message view page. The action associated with +the buttons (as well as the button text) can be configured to suit most any +spam reporting system. Reporting by email, reporting by executing a command on +the server and reporting by moving (or copying) the message to a designated +folder are all supported. Any number of custom buttons may also be added, where +the associated action is completely customizable (for instance, adding the +message sender to a whitelist or blacklist). + +WWW: http://www.squirrelmail.org/plugin_view.php?id=242 diff --git a/mail/squirrelmail-spam-buttons-plugin/pkg-plist b/mail/squirrelmail-spam-buttons-plugin/pkg-plist new file mode 100644 index 000000000000..711248f6f37c --- /dev/null +++ b/mail/squirrelmail-spam-buttons-plugin/pkg-plist @@ -0,0 +1,41 @@ +@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%%/bounce_identity.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/bounce_send.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/buttons.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/compose_functions-1.4.10.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/compose_functions-1.4.11.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/compose_functions-1.4.14.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/compose_functions-1.5.2.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/config.sample.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/configtest.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/contrib/sa-postfix-en.html +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/contrib/sa-wrapper.html +%%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%%/options.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/patches/index.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/patches/spam_buttons-squirrelmail-1.4.10.diff +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/patches/spam_buttons-squirrelmail-1.4.3.diff +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/patches/spam_buttons-squirrelmail-1.4.4.diff +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/patches/spam_buttons-squirrelmail-1.5.1.diff +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/report.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/setup.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/spam_buttons.pot +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates/default/confirmation_note.tpl +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates/default/index.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates/default/read_menubar_buttons.tpl +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates/default/redirect_preview_pane.tpl +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates/default/redirect_standard.tpl +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates/index.php +%%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/version +@dirrm %%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/contrib +@dirrm %%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/patches +@dirrm %%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates/default +@dirrm %%SQUIRRELDIR%%/plugins/%%SQUIRREL_PLUGIN_NAME%%/templates +@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 |