public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Net-LDAPapi/files/, dev-perl/Net-LDAPapi/
@ 2016-03-31 21:44 Andreas Hüttel
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Hüttel @ 2016-03-31 21:44 UTC (permalink / raw
  To: gentoo-commits

commit:     74686dcf739b4aef7ffa6f4712082f0e68f876f8
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 31 21:28:04 2016 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu Mar 31 21:28:04 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74686dcf

dev-perl/Net-LDAPapi: Remove old

Package-Manager: portage-2.2.28

 dev-perl/Net-LDAPapi/Manifest                      |  1 -
 dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r2.ebuild   | 43 ----------------------
 .../files/3.0.3-ldap_result-no_error.patch         | 14 -------
 3 files changed, 58 deletions(-)

diff --git a/dev-perl/Net-LDAPapi/Manifest b/dev-perl/Net-LDAPapi/Manifest
index b0d056f..f40f07d 100644
--- a/dev-perl/Net-LDAPapi/Manifest
+++ b/dev-perl/Net-LDAPapi/Manifest
@@ -1,2 +1 @@
-DIST Net-LDAPapi-3.0.3.tar.gz 55369 SHA256 8266a0493d6e771635c6788e80ae8e4d480c9a4dd752825e5dc903b9570325fb SHA512 8935233eaf9bf5ba5595ecd8c1659edcb8b032a4b1595ffcc31562b23e9155507183b9f6c4d9a76021257ed074155275ad5d20c23a5d873c7e7a64b7adc41f0a WHIRLPOOL cd7f83950dadbba89097a25cc6c40d370381d40eaada7de69a1afcdfe64f32dd116462e7aa859700f1f58a11c7d6d7d9a977819142833c87a0677ae05b59acb7
 DIST Net-LDAPapi-3.0.4.tar.gz 66972 SHA256 99874f6fe1cd1540c267bb33cb28c2f93881d8644bcc09e6e0fc2c039dd774a3 SHA512 9e2153c9f50a8fba1c8e52493c147a9db7e88015fa48739d4762a4cbc1711c24472b031a6c077d46d38285146ff389f07d9f2908016b0e2c07b76aa75ef2d2ca WHIRLPOOL 7dcf54b8ca3dbcb6a6b66f3658e6e589b047bc3961261d0fdcd23488ae0131a7a84fcf4d500dd67088e9737eb1d13c1306c1bfcd2fcc8ca85d7ef106dc597c94

diff --git a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r2.ebuild b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r2.ebuild
deleted file mode 100644
index 74a6bca..0000000
--- a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.3-r2.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-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 ~x86"
-IUSE="examples"
-# LICENSE is given on the corresponding sourceforge project and matches the
-# default cpan/perl license
-
-COMMON="net-nds/openldap[sasl]
-	dev-libs/cyrus-sasl
-	dev-perl/Convert-ASN1"
-DEPEND="${COMMON}"
-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
-		docompress -x usr/share/doc/${PF}/examples
-		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
deleted file mode 100644
index d1003ee..0000000
--- a/dev-perl/Net-LDAPapi/files/3.0.3-ldap_result-no_error.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-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;
-     }
- 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Net-LDAPapi/files/, dev-perl/Net-LDAPapi/
@ 2017-12-05 15:10 Kent Fredric
  0 siblings, 0 replies; 3+ messages in thread
From: Kent Fredric @ 2017-12-05 15:10 UTC (permalink / raw
  To: gentoo-commits

commit:     0ae4edb1f51585b30d13f1f61243b98e83b9aa95
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  5 15:03:11 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Tue Dec  5 15:04:34 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ae4edb1

dev-perl/Net-LDAPapi: Bump to version 3.0.5

- Reinstate tests, adding basic compilation tests, and making it more
  viable for consumers/testers to attempt test execution without needing
  to patch ebuilds.
- Rework patches to be git-am-able.
- Use DIST_EXAMPLES feature

Upstream:
- Fix cookie handling with MMR configuration
- Fix ASN1 encoding of sync cookie

Package-Manager: Portage-2.3.14, Repoman-2.3.6

 dev-perl/Net-LDAPapi/Manifest                      |  3 +-
 dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.5.ebuild      | 64 ++++++++++++++++++++++
 .../Net-LDAPapi-3.0.5-ldap_result-no_error.patch   | 28 ++++++++++
 .../files/Net-LDAPapi-3.0.5-test-env.patch         | 53 ++++++++++++++++++
 4 files changed, 147 insertions(+), 1 deletion(-)

diff --git a/dev-perl/Net-LDAPapi/Manifest b/dev-perl/Net-LDAPapi/Manifest
index f40f07d3ce9..bb8fab1efeb 100644
--- a/dev-perl/Net-LDAPapi/Manifest
+++ b/dev-perl/Net-LDAPapi/Manifest
@@ -1 +1,2 @@
-DIST Net-LDAPapi-3.0.4.tar.gz 66972 SHA256 99874f6fe1cd1540c267bb33cb28c2f93881d8644bcc09e6e0fc2c039dd774a3 SHA512 9e2153c9f50a8fba1c8e52493c147a9db7e88015fa48739d4762a4cbc1711c24472b031a6c077d46d38285146ff389f07d9f2908016b0e2c07b76aa75ef2d2ca WHIRLPOOL 7dcf54b8ca3dbcb6a6b66f3658e6e589b047bc3961261d0fdcd23488ae0131a7a84fcf4d500dd67088e9737eb1d13c1306c1bfcd2fcc8ca85d7ef106dc597c94
+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

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 00000000000..aa72e67283f
--- /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 00000000000..e8f8d915db1
--- /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 00000000000..946ec8ee74c
--- /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
+


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Net-LDAPapi/files/, dev-perl/Net-LDAPapi/
@ 2018-07-15  3:40 Kent Fredric
  0 siblings, 0 replies; 3+ messages in thread
From: Kent Fredric @ 2018-07-15  3:40 UTC (permalink / raw
  To: gentoo-commits

commit:     72169e833f20f73228d7428c7a6340c3bffcadba
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 15 03:17:44 2018 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sun Jul 15 03:40:06 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72169e83

dev-perl/Net-LDAPapi: Cleanup old version 3.0.4

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-perl/Net-LDAPapi/Manifest                      |  1 -
 dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild      | 45 ----------------------
 .../files/3.0.4-ldap_result-no_error.patch         | 14 -------
 3 files changed, 60 deletions(-)

diff --git a/dev-perl/Net-LDAPapi/Manifest b/dev-perl/Net-LDAPapi/Manifest
index bb8fab1efeb..f5e60f194a2 100644
--- a/dev-perl/Net-LDAPapi/Manifest
+++ b/dev-perl/Net-LDAPapi/Manifest
@@ -1,2 +1 @@
-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

diff --git a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild b/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild
deleted file mode 100644
index 683ec77215b..00000000000
--- a/dev-perl/Net-LDAPapi/Net-LDAPapi-3.0.4.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DIST_AUTHOR=MISHIKAL
-
-inherit eutils 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="examples"
-# 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"
-DEPEND="${RDEPEND}
-	virtual/perl-ExtUtils-MakeMaker"
-
-# NOTE: tests are available but they hang
-# Tests also require hand-customised live LDAP server
-# and configured LDAP Search Base
-RESTRICT="test"
-
-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
-		docompress -x usr/share/doc/${PF}/examples
-		insinto /usr/share/doc/${PF}
-		doins -r examples
-	fi
-}

diff --git a/dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch b/dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch
deleted file mode 100644
index d1003ee9ae7..00000000000
--- a/dev-perl/Net-LDAPapi/files/3.0.4-ldap_result-no_error.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-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;
-     }
- 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-15  3:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 15:10 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Net-LDAPapi/files/, dev-perl/Net-LDAPapi/ Kent Fredric
  -- strict thread matches above, loose matches on Subject: below --
2018-07-15  3:40 Kent Fredric
2016-03-31 21:44 Andreas Hüttel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox