summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2010-06-09 13:06:23 +0000
committerTiziano Müller <dev-zero@gentoo.org>2010-06-09 13:06:23 +0000
commitfe9ab3904d1af23fa119cea957263ed22933d4ee (patch)
treee72f3f4e42f003c5a5c10dcbea3109972061ef40 /dev-perl/Net-LDAPapi
parentDelete older ebuilds. (diff)
downloadgentoo-2-fe9ab3904d1af23fa119cea957263ed22933d4ee.tar.gz
gentoo-2-fe9ab3904d1af23fa119cea957263ed22933d4ee.tar.bz2
gentoo-2-fe9ab3904d1af23fa119cea957263ed22933d4ee.zip
Added patch to not treat results from ldap_results as normal ldap return values in 'sub error' (as in 3.0.2).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-perl/Net-LDAPapi')
-rw-r--r--dev-perl/Net-LDAPapi/ChangeLog9
-rw-r--r--dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r1.ebuild43
-rw-r--r--dev-perl/Net-LDAPapi/files/3.0.3-ldap_result-no_error.patch14
3 files changed, 65 insertions, 1 deletions
diff --git a/dev-perl/Net-LDAPapi/ChangeLog b/dev-perl/Net-LDAPapi/ChangeLog
index 5f979389365e..d3623d294ec9 100644
--- a/dev-perl/Net-LDAPapi/ChangeLog
+++ b/dev-perl/Net-LDAPapi/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-perl/Net-LDAPapi
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-LDAPapi/ChangeLog,v 1.1 2010/06/09 11:33:33 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-LDAPapi/ChangeLog,v 1.2 2010/06/09 13:06:23 dev-zero Exp $
+
+*Net-LDAPapi-3.0.3-r1 (09 Jun 2010)
+
+ 09 Jun 2010; Tiziano Müller <dev-zero@gentoo.org>
+ +files/3.0.3-ldap_result-no_error.patch, +Net-LDAPapi-3.0.3-r1.ebuild:
+ Added patch to not treat results from ldap_results as normal ldap return
+ values in 'sub error' (as in 3.0.2).
*Net-LDAPapi-3.0.3 (09 Jun 2010)
diff --git a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r1.ebuild b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r1.ebuild
new file mode 100644
index 000000000000..2b0f164eb93d
--- /dev/null
+++ b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r1.ebuild,v 1.1 2010/06/09 13:06:23 dev-zero Exp $
+
+EAPI="3"
+
+MODULE_AUTHOR="MISHIKAL"
+
+inherit eutils multilib perl-module
+
+DESCRIPTION="Perl5 Module Supporting LDAP API"
+HOMEPAGE="http://sourceforge.net/projects/net-ldapapi/
+ http://search.cpan.org/~mishikal/Net-LDAPapi/"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+# LICENSE is given on the corresponding sourceforge project and matches the
+# default cpan/perl license
+
+COMMON="dev-lang/perl
+ net-nds/openldap
+ dev-perl/Convert-ASN1"
+DEPEND="${COMMON}
+ virtual/perl-ExtUtils-MakeMaker"
+RDEPEND="${COMMON}"
+
+# NOTE: tests are available but they hang
+
+PATCHES=("${FILESDIR}/${PV}-ldap_result-no_error.patch")
+
+src_configure() {
+ myconf="-sdk OpenLDAP -lib_path /usr/$(get_libdir) -include_path /usr/include"
+ perl-module_src_configure
+}
+
+src_install() {
+ mydoc="Credits Todo"
+ perl-module_src_install
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
diff --git a/dev-perl/Net-LDAPapi/files/3.0.3-ldap_result-no_error.patch b/dev-perl/Net-LDAPapi/files/3.0.3-ldap_result-no_error.patch
new file mode 100644
index 000000000000..d1003ee9ae7e
--- /dev/null
+++ b/dev-perl/Net-LDAPapi/files/3.0.3-ldap_result-no_error.patch
@@ -0,0 +1,14 @@
+diff --git a/LDAPapi.pm b/LDAPapi.pm
+index 113d922..cba3b61 100644
+--- a/LDAPapi.pm
++++ b/LDAPapi.pm
+@@ -1355,8 +1355,8 @@ sub result
+ $self->{"result"} = $result;
+ $self->{"status"} = $status;
+
+- $self->errorize($status);
+ if( $status == -1 || $status == 0 ) {
++ $self->errorize($status);
+ return undef;
+ }
+