]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
perl-Authen-SASL: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Jun 2015 22:58:34 +0000 (22:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Jun 2015 22:58:34 +0000 (22:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
perl-Authen-SASL/patches/Authen-SASL-RT85294-Fix-WRITE.patch [new file with mode: 0644]
perl-Authen-SASL/perl-Authen-SASL.nm [new file with mode: 0644]

diff --git a/perl-Authen-SASL/patches/Authen-SASL-RT85294-Fix-WRITE.patch b/perl-Authen-SASL/patches/Authen-SASL-RT85294-Fix-WRITE.patch
new file mode 100644 (file)
index 0000000..0093ad2
--- /dev/null
@@ -0,0 +1,13 @@
+diff -up Authen-SASL-2.16/lib/Authen/SASL/Perl.pm.orig Authen-SASL-2.16/lib/Authen/SASL/Perl.pm
+--- Authen-SASL-2.16/lib/Authen/SASL/Perl.pm.orig      2012-09-04 18:00:31.000000000 +0200
++++ Authen-SASL-2.16/lib/Authen/SASL/Perl.pm   2014-06-04 09:51:34.654310724 +0200
+@@ -323,6 +323,9 @@ sub securesocket {
+     my $fh = $self->{fh};
++    # Fix for BZ#965739, RT#85294
++    $len = length($_[1]) if $len > length($_[1]);
++
+     # put on wire in peer-sized chunks
+     my $bsz = $self->{sndbufsz};
+     while ($len > 0) {
diff --git a/perl-Authen-SASL/perl-Authen-SASL.nm b/perl-Authen-SASL/perl-Authen-SASL.nm
new file mode 100644 (file)
index 0000000..b14f174
--- /dev/null
@@ -0,0 +1,42 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-Authen-SASL
+version    = 2.16
+release    = 1
+arch       = noarch
+thisapp    = Authen-SASL-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/Authen-SASL/
+license    = GPL+ or Artistic
+summary    = SASL Authentication framework for Perl
+
+description
+       SASL is a generic mechanism for authentication used by several
+       network protocols. Authen::SASL provides an implementation framework
+       that all protocols should be able to share.
+end
+
+source_dl  = http://www.cpan.org/authors/id/G/GB/GBARR/
+
+build
+       requires
+               perl(Digest::HMAC)
+               perl(Digest::MD5)
+               perl(ExtUtils::MakeMaker)
+               perl(File::Path)
+               perl(GSSAPI)
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=vendor
+               make %{PARALLELISMFLAGS}
+       end
+end
+
+packages
+       package %{name}
+end