]> git.sesse.net Git - www-csrf/commitdiff
Add initial CPAN packaging.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 12 Nov 2013 18:18:26 +0000 (19:18 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 12 Nov 2013 18:23:31 +0000 (19:23 +0100)
Changes [new file with mode: 0644]
MANIFEST [new file with mode: 0644]
Makefile.PL [new file with mode: 0644]
lib/WWW/CSRF.pm [moved from CSRF.pm with 98% similarity]

diff --git a/Changes b/Changes
new file mode 100644 (file)
index 0000000..1166cb7
--- /dev/null
+++ b/Changes
@@ -0,0 +1,2 @@
+1.00 Tue, 12 Nov 2013 19:15:01 +0100
+    - Initial release.
diff --git a/MANIFEST b/MANIFEST
new file mode 100644 (file)
index 0000000..ae56c82
--- /dev/null
+++ b/MANIFEST
@@ -0,0 +1,4 @@
+Changes
+lib/WWW/CSRF.pm
+Makefile.PL
+MANIFEST                       This list of files
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..6c78496
--- /dev/null
@@ -0,0 +1,7 @@
+use ExtUtils::MakeMaker;
+
+WriteMakefile(
+       NAME              => "WWW::CSRF",
+       VERSION_FROM      => "lib/WWW/CSRF.pm"
+);
+
similarity index 98%
rename from CSRF.pm
rename to lib/WWW/CSRF.pm
index 089c08b50bfc7b909a4b20c5590e1b5fec4dd484..3876ad2be8095ce1d2e8b6e70f863269e86f5c40 100644 (file)
--- a/CSRF.pm
@@ -8,6 +8,7 @@ package WWW::CSRF;
 require Exporter;
 our @ISA = qw(Exporter);
 our @EXPORT_OK = qw(generate_csrf_token check_csrf_token);
+our $VERSION = '1.00';
 
 sub generate_csrf_token {
        my ($id, $secret) = @_;