summaryrefslogtreecommitdiff
path: root/dev-perl/Net-LDAPapi
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Net-LDAPapi')
-rw-r--r--dev-perl/Net-LDAPapi/Manifest6
-rw-r--r--dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.5.ebuild64
-rw-r--r--dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-ldap_result-no_error.patch28
-rw-r--r--dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-test-env.patch53
4 files changed, 150 insertions, 1 deletions
diff --git a/dev-perl/Net-LDAPapi/Manifest b/dev-perl/Net-LDAPapi/Manifest
index a81a98d9a6a1..991b4a811614 100644
--- a/dev-perl/Net-LDAPapi/Manifest
+++ b/dev-perl/Net-LDAPapi/Manifest
@@ -1,4 +1,8 @@
AUX 3.0.4-ldap_result-no_error.patch 345 BLAKE2B 8921e73266a986afa5664a7c71a997514f5bab0b31fabd29905086f0c632abf06a802e805427b2fcb712140cb57042d9301adc084c9123a221d9f6824169e3ff SHA512 20bdad2c9c7ba91532a9d6e7714b7ba5a9f995c4ee9474739c02a329749376d0ac9e58b4dbd8cc9272be985e447e7ead825f69ee5544bdedc51eb5b3348c642c
-DIST Net-LDAPapi-3.0.4.tar.gz 66972 SHA256 99874f6fe1cd1540c267bb33cb28c2f93881d8644bcc09e6e0fc2c039dd774a3 SHA512 9e2153c9f50a8fba1c8e52493c147a9db7e88015fa48739d4762a4cbc1711c24472b031a6c077d46d38285146ff389f07d9f2908016b0e2c07b76aa75ef2d2ca WHIRLPOOL 7dcf54b8ca3dbcb6a6b66f3658e6e589b047bc3961261d0fdcd23488ae0131a7a84fcf4d500dd67088e9737eb1d13c1306c1bfcd2fcc8ca85d7ef106dc597c94
+AUX Net-LDAPapi-3.0.5-ldap_result-no_error.patch 779 BLAKE2B 9bfe88bf8e43fdcbe7586c497ce5eca4fbdee425aab8a4469bd0dd2932e304fb63d51cba4d5ffc5b307495a73b0ae821502a1e92fa326efb2d7cb7159715c0a6 SHA512 7ffa6d5dcc13aed3f3b7ba4672a77e154c1a0ba7de75b0c9754ccace383d628467351cc650b1ec910892a84e55331ad3599be92fa671f368dc4103efc51039dc
+AUX Net-LDAPapi-3.0.5-test-env.patch 1392 BLAKE2B c83dc553fd535e9fa7693d761f47b7016729f2b12ad40e57ea4d62610b3db68b4bedbb4c0c9f749a66bcb35b34452ccb0267ca15e5fdb8bfdff74bac7c8e0bfe SHA512 d743885c10656bf2132c1067ea94d78686ab2b7a90cae195d63ee505ac8c884e7b2e6036d55dd21ac94bff497be7dbec93d9fa720c81079bf8225517e13e34e9
+DIST Net-LDAPapi-3.0.4.tar.gz 66972 BLAKE2B 58fc7f4a949dfbd5a795234c9a16a157232238ce27f3157761c704965f3d7521f8ef5671af4b5bbd15050eda4464230697917817270cf77dacbeb49598a6a551 SHA512 9e2153c9f50a8fba1c8e52493c147a9db7e88015fa48739d4762a4cbc1711c24472b031a6c077d46d38285146ff389f07d9f2908016b0e2c07b76aa75ef2d2ca
+DIST Net-LDAPapi-3.0.5.tar.gz 67814 BLAKE2B 2f35000e23ba17016837cd4a0cbe86be5d25254d8a34dd39c8c82cbc5a1979bb56b5b8a37af81cf1e8f12326709e252181e441d051ca0b18314408348d1435be SHA512 f3a6f4bb2e182ca93de2aa6c7a80bf20d64152fec5c4bda54efb91ec2a9be52939922993b79a2cdd248be3b83e605fc9ca3e6020f2cfb49b85256361edb512bd
EBUILD Net-LDAPapi-3.0.4.ebuild 1132 BLAKE2B 1d12f0ec4691247cf962e363d5884c7c3c47a35c509dcbe95415e862fc0bc60d0f4b381e09f83fd28d932d7946fb4317436599b45675c294901b194f233b22cb SHA512 e48a5f5026c6746e0d44f2f8276763f6e55b62e1f3893ba0c2e2dcde00a59929881d95446c236e5cd56ca007640dc0c48a804fda4965d964e55c85bec37b36cd
+EBUILD Net-LDAPapi-3.0.5.ebuild 1590 BLAKE2B 535d55d579e2975f905d80ec52fb43de60450907de680add167835322ff2d2edfc84a24bd9fd3b09dd535c10ef7030ca6d3ead9d57ad687d7111289a96170794 SHA512 db52a55bb880e595694009fdd248e6837a4f11af044e946e70ae12e2fc00e4ca8e6bedc2e11a8f83b5a4da16304a5edb24d13568def9c5fa0c344024ae530e65
MISC metadata.xml 569 BLAKE2B b1969ecbc7bbaa97cc9bf3138b2fae102b5046639a9533945ba7ec42cbea86a4842e67c7b5c9e094d5709319f4677e00242bc03f855e01ed80d26114699f7183 SHA512 a70b4549e4186100a3e58a2cf527fcad9d44373ccbd572a12dcdde11a70f698c1a91c876cd7fc3170a1425b6fd2e26cf1dcb553b3c5c126f0fb2389656069fa1
diff --git a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.5.ebuild b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.5.ebuild
new file mode 100644
index 000000000000..aa72e67283f7
--- /dev/null
+++ b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.5.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=MISHIKAL
+DIST_EXAMPLES=( "examples/*" )
+inherit multilib perl-module
+
+DESCRIPTION="Perl5 Module Supporting LDAP API"
+HOMEPAGE="https://sourceforge.net/projects/net-ldapapi/
+ http://search.cpan.org/~mishikal/Net-LDAPapi/"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+# LICENSE is given on the corresponding sourceforge project and matches the
+# default cpan/perl license
+
+RDEPEND="net-nds/openldap[sasl]
+ dev-libs/cyrus-sasl
+ >=dev-perl/Convert-ASN1-0.190.0"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker"
+
+PATCHES=(
+ "${FILESDIR}/${P}-ldap_result-no_error.patch"
+ "${FILESDIR}/${P}-test-env.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
+}
+
+src_test() {
+ local MODULES=(
+ "Net::LDAPapi ${DIST_VERSION}"
+ )
+ local failed=()
+ for dep in "${MODULES[@]}"; do
+ ebegin "Compile testing ${dep}"
+ perl -Mblib="${S}" -M"${dep} ()" -e1
+ eend $? || failed+=( "$dep" )
+ done
+ if [[ ${failed[@]} ]]; then
+ echo
+ eerror "One or more modules failed compile:";
+ for dep in "${failed[@]}"; do
+ eerror " ${dep}"
+ done
+ die "Failing due to module compilation errors";
+ fi
+ if [[ -n "${LDAP_TEST_HOST}" ]]; then
+ perl-module_src_test
+ else
+ elog "Comprehensive testing disabled without LDAP_TEST_HOST set. For details, see:"
+ elog "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}"
+ fi
+}
diff --git a/dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-ldap_result-no_error.patch b/dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-ldap_result-no_error.patch
new file mode 100644
index 000000000000..e8f8d915db10
--- /dev/null
+++ b/dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-ldap_result-no_error.patch
@@ -0,0 +1,28 @@
+From 56f9ac5e45e63789012ae61c752f7aa7a3141da3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tiziano=20M=C3=BCller?= <dev-zero@gentoo.org>
+Date: Thu, 10 Jun 2010 01:06:23 +1200
+Subject: Stop treating results from ldap_results as normal ldap return values
+
+Don't to treat results from ldap_results as normal ldap return
+values in 'sub error' ( as in 3.0.2 )
+---
+ LDAPapi.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/LDAPapi.pm b/LDAPapi.pm
+index 8fa91ce..fda4b12 100644
+--- a/LDAPapi.pm
++++ b/LDAPapi.pm
+@@ -1453,8 +1453,8 @@ sub result
+ $self->{"result"} = $result;
+ $self->{"status"} = $status;
+
+- $self->errorize($status);
+ if( $status == -1 || $status == 0 ) {
++ $self->errorize($status);
+ return undef;
+ }
+
+--
+2.14.3
+
diff --git a/dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-test-env.patch b/dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-test-env.patch
new file mode 100644
index 000000000000..946ec8ee74c0
--- /dev/null
+++ b/dev-perl/Net-LDAPapi/files/Net-LDAPapi-3.0.5-test-env.patch
@@ -0,0 +1,53 @@
+From 10ad8990c92f2b4c4f4d550e0b42fb083aa90f84 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Wed, 6 Dec 2017 03:43:22 +1300
+Subject: Use ENV settings for LDAP tests
+
+This absolves the need for users to patch sources just to configure
+a test server.
+---
+ test.pl | 26 ++++++++++++++------------
+ 1 file changed, 14 insertions(+), 12 deletions(-)
+
+diff --git a/test.pl b/test.pl
+index 7deb1a6..1a0871b 100644
+--- a/test.pl
++++ b/test.pl
+@@ -18,20 +18,22 @@ print "modinit - ok\n";
+ ## Change these values for test to work...
+ ##
+
+-print "\nEnter LDAP Server: ";
+-chomp($ldap_host = <>);
+-print "Enter port: ";
+-chomp($ldap_port = <>);
+-print "Enter Search Filter (ex. uid=abc123): ";
+-chomp($filter = <>);
+-print "Enter LDAP Search Base (ex. o=Org, c=US): ";
+-chomp($BASEDN = <>);
+-print "\n";
+-
+-if (!$ldap_host)
++if (!$ENV{LDAP_TEST_HOST})
+ {
+- die "Please edit \$BASEDN, \$filter and \$ldap_host in test.pl.\n";
++ die "LDAP_TEST_HOST not set";
+ }
++$ldap_host = $ENV{LDAP_TEST_HOST};
++$ldap_port = $ENV{LDAP_TEST_PORT};
++$filter = $ENV{LDAP_TEST_FILTER};
++$BASEDN = $ENV{LDAP_TEST_BASEDN};
++
++printf "\nLDAP Server: %s", $ldap_host;
++printf "\nLDAP port: %s", $ldap_port;
++printf "\nSearch Filter (ex. uid=abc123): %s", $filter;
++printf "\nLDAP Search Base (ex. o=Org, c=US): %s", $BASEDN;
++print "\n";
++
++
+
+ ##
+ ## Initialize LDAP Connection
+--
+2.14.3
+