summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu@pkgsrc.org>2011-10-16 09:20:29 +0000
committerhiramatsu <hiramatsu@pkgsrc.org>2011-10-16 09:20:29 +0000
commit1d5547304a8906d7c4bae944ffd211a4f234431b (patch)
tree01f917f421997fa4d2ff34b22b0f7910c0635376 /www
parenta56711cb7bd2131533f6ce0d090a20c2fe39fa0e (diff)
downloadpkgsrc-1d5547304a8906d7c4bae944ffd211a4f234431b.tar.gz
Import perl module Catalyst::Plugin::StatusMessage into
www/p5-Catalyst-Plugin-StatusMessage, because tutorial recommends to use this module. The purpose of this plugin is to pass "status message" between screens through the following mechanisms: - Stores messages in the "$c->session" so that the application is free to redirect to the appropriate URL after an action is taken. - Associates a random 8-digit "token" with each messages, so it's completely unambiguous what message should be shown in each window/tab. - Only requires that the token (not the full message) be included in the redirect URL. - Automatically removes the message after the first time it is displayed. That way, if users hit refresh in their browsers they only see the messages the first time.
Diffstat (limited to 'www')
-rw-r--r--www/p5-Catalyst-Plugin-StatusMessage/DESCR16
-rw-r--r--www/p5-Catalyst-Plugin-StatusMessage/Makefile21
-rw-r--r--www/p5-Catalyst-Plugin-StatusMessage/distinfo5
3 files changed, 42 insertions, 0 deletions
diff --git a/www/p5-Catalyst-Plugin-StatusMessage/DESCR b/www/p5-Catalyst-Plugin-StatusMessage/DESCR
new file mode 100644
index 00000000000..870dacc1617
--- /dev/null
+++ b/www/p5-Catalyst-Plugin-StatusMessage/DESCR
@@ -0,0 +1,16 @@
+The purpose of this plugin is to pass "status message" between screens
+through the following mechanisms:
+
+- Stores messages in the "$c->session" so that the application is
+ free to redirect to the appropriate URL after an action is taken.
+
+- Associates a random 8-digit "token" with each messages, so it's
+ completely unambiguous what message should be shown in each
+ window/tab.
+
+- Only requires that the token (not the full message) be included in
+ the redirect URL.
+
+- Automatically removes the message after the first time it is
+ displayed. That way, if users hit refresh in their browsers they
+ only see the messages the first time.
diff --git a/www/p5-Catalyst-Plugin-StatusMessage/Makefile b/www/p5-Catalyst-Plugin-StatusMessage/Makefile
new file mode 100644
index 00000000000..407bb351c06
--- /dev/null
+++ b/www/p5-Catalyst-Plugin-StatusMessage/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/10/16 09:20:29 hiramatsu Exp $
+
+DISTNAME= Catalyst-Plugin-StatusMessage-0.003000
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= www perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Catalyst/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Catalyst-Plugin-StatusMessage/
+COMMENT= Handle passing of status messages between screens of a web application
+LICENSE= ${PERL5_LICENSE}
+
+DEPENDS+= p5-Catalyst-Runtime>=5.71001:../../www/p5-Catalyst-Runtime
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Catalyst/Plugin/StatusMessage/.packlist
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/p5-Catalyst-Plugin-StatusMessage/distinfo b/www/p5-Catalyst-Plugin-StatusMessage/distinfo
new file mode 100644
index 00000000000..047320c72d2
--- /dev/null
+++ b/www/p5-Catalyst-Plugin-StatusMessage/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/10/16 09:20:29 hiramatsu Exp $
+
+SHA1 (Catalyst-Plugin-StatusMessage-0.003000.tar.gz) = 44c466a58cf892fd16f1dd396e48ce484c712ef6
+RMD160 (Catalyst-Plugin-StatusMessage-0.003000.tar.gz) = 33ddf296aec4542a3c0dc3926a15ece58c682ad7
+Size (Catalyst-Plugin-StatusMessage-0.003000.tar.gz) = 10842 bytes