summaryrefslogtreecommitdiff
path: root/converters/p5-MIME-Base64-URLSafe
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2007-02-21 12:21:45 +0000
committerabs <abs@pkgsrc.org>2007-02-21 12:21:45 +0000
commit1f9ad435eb67835cb4a5492417198ec9b6aa0807 (patch)
tree750c8ba18f2ec5e54d88216f590da6042628f647 /converters/p5-MIME-Base64-URLSafe
parent4c8515c3a07b1e534a805aa197584f8757a39f68 (diff)
downloadpkgsrc-1f9ad435eb67835cb4a5492417198ec9b6aa0807.tar.gz
Import convertors/MIME-Base64-URLSafe-0.01:
This module is a perl version of python's URL-safe base64 encoder / decoder. When embedding binary data in URL, it is preferable to use base64 encoding. However, two characters ('+' and '/') used in the standard base64 encoding have special meanings in URLs, often leading to re-encoding with URL-encoding, or worse, interoperability problems. To overcome the problem, the module provides a variation of base64 codec compatible with python's urlsafe_b64encode / urlsafe_b64decode. Modification rules from base64: use '-' and '_' instead of '+' and '/' no line feeds no trailing equals (=)
Diffstat (limited to 'converters/p5-MIME-Base64-URLSafe')
-rw-r--r--converters/p5-MIME-Base64-URLSafe/DESCR16
-rw-r--r--converters/p5-MIME-Base64-URLSafe/Makefile19
-rw-r--r--converters/p5-MIME-Base64-URLSafe/PLIST1
-rw-r--r--converters/p5-MIME-Base64-URLSafe/distinfo5
4 files changed, 41 insertions, 0 deletions
diff --git a/converters/p5-MIME-Base64-URLSafe/DESCR b/converters/p5-MIME-Base64-URLSafe/DESCR
new file mode 100644
index 00000000000..239a6fca68c
--- /dev/null
+++ b/converters/p5-MIME-Base64-URLSafe/DESCR
@@ -0,0 +1,16 @@
+This module is a perl version of python's URL-safe base64 encoder
+/ decoder.
+
+When embedding binary data in URL, it is preferable to use base64
+encoding. However, two characters ('+' and '/') used in the standard
+base64 encoding have special meanings in URLs, often leading to
+re-encoding with URL-encoding, or worse, interoperability problems.
+
+To overcome the problem, the module provides a variation of base64
+codec compatible with python's urlsafe_b64encode / urlsafe_b64decode.
+
+Modification rules from base64:
+
+ use '-' and '_' instead of '+' and '/'
+ no line feeds
+ no trailing equals (=)
diff --git a/converters/p5-MIME-Base64-URLSafe/Makefile b/converters/p5-MIME-Base64-URLSafe/Makefile
new file mode 100644
index 00000000000..f79dc4e7b08
--- /dev/null
+++ b/converters/p5-MIME-Base64-URLSafe/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/02/21 12:21:45 abs Exp $
+#
+
+DISTNAME= MIME-Base64-URLSafe-0.01
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= converters perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=MIME/}
+
+MAINTAINER= abs@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/MIME-Base64-URLSafe/
+COMMENT= Perl version of Python's URL-safe base64 codec
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_PACKLIST= auto/MIME/Base64/URLSafe/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/p5-MIME-Base64-URLSafe/PLIST b/converters/p5-MIME-Base64-URLSafe/PLIST
new file mode 100644
index 00000000000..d3aa812f423
--- /dev/null
+++ b/converters/p5-MIME-Base64-URLSafe/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/02/21 12:21:45 abs Exp $
diff --git a/converters/p5-MIME-Base64-URLSafe/distinfo b/converters/p5-MIME-Base64-URLSafe/distinfo
new file mode 100644
index 00000000000..0449755e7a7
--- /dev/null
+++ b/converters/p5-MIME-Base64-URLSafe/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/02/21 12:21:45 abs Exp $
+
+SHA1 (MIME-Base64-URLSafe-0.01.tar.gz) = f37a9c32c8f2847db2e00aca4998b32c7b9ca384
+RMD160 (MIME-Base64-URLSafe-0.01.tar.gz) = 561b7c26371079494c91f56b3f23347837f14a1b
+Size (MIME-Base64-URLSafe-0.01.tar.gz) = 2404 bytes