SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Avoid deprecation message in Ruby 3.1, allow building with Ruby 3.2.
Index: conn.c
--- conn.c.orig
+++ conn.c
@@ -1855,7 +1855,8 @@ Init_ldap_conn ()
{
rb_ldap_sort_obj = Qnil;
- rb_cLDAP_Conn = rb_define_class_under (rb_mLDAP, "Conn", rb_cData);
+ rb_cLDAP_Conn = rb_define_class_under (rb_mLDAP, "Conn", rb_cObject);
+ rb_undef_alloc_func(rb_cLDAP_Conn);
rb_define_attr (rb_cLDAP_Conn, "referrals", 1, 0);
rb_define_attr (rb_cLDAP_Conn, "controls", 1, 0);
rb_define_attr (rb_cLDAP_Conn, "sasl_quiet", 1, 1);

View file

@ -0,0 +1,10 @@
--- test/add2.rb.orig Wed Dec 20 13:31:07 2006
+++ test/add2.rb Wed Dec 20 13:31:16 2006
@@ -6,6 +6,7 @@ require "#{$test}/conf"
require "./ldap"
conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option( LDAP::LDAP_OPT_PROTOCOL_VERSION, 3 )
conn.bind('cn=root, dc=localhost, dc=localdomain','secret'){
conn.perror("bind")
entry1 = {

View file

@ -0,0 +1,10 @@
--- test/add3.rb.orig Wed Dec 20 13:31:43 2006
+++ test/add3.rb Wed Dec 20 13:32:00 2006
@@ -8,6 +8,7 @@ require "./ldap"
$KCODE = "UTF8"
conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
conn.bind('cn=root, dc=localhost, dc=localdomain','secret'){
conn.perror("bind")
entry1 = {

View file

@ -0,0 +1,10 @@
--- test/add.rb.orig Wed Dec 20 13:18:24 2006
+++ test/add.rb Wed Dec 20 13:29:39 2006
@@ -6,6 +6,7 @@ require "#{$test}/conf"
require "./ldap"
conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option( LDAP::LDAP_OPT_PROTOCOL_VERSION, 3 )
conn.bind('cn=root, dc=localhost, dc=localdomain','secret'){
conn.perror("bind")
entry1 = [

View file

@ -0,0 +1,11 @@
--- test/bind.rb.orig Wed Dec 20 13:16:25 2006
+++ test/bind.rb Wed Dec 20 13:17:27 2006
@@ -28,6 +28,8 @@ begin
conn.bind
rescue LDAP::InvalidDataError
$ok = true
+rescue LDAP::ResultError
+ $ok = true
end
if( ! $ok )
raise(RuntimeError, "multiple bind calls")

View file

@ -0,0 +1,13 @@
--- test/compare.rb.orig Wed Dec 20 13:37:14 2006
+++ test/compare.rb Wed Dec 20 13:37:26 2006
@@ -5,7 +5,9 @@ $test = File.dirname($0)
require "#{$test}/conf"
require "./ldap"
-LDAP::Conn.new($HOST, $PORT).bind{|conn|
+conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
+conn.bind{|conn|
conn.perror("bind")
begin
conn.compare("cn=Takaaki Tateishi, dc=localhost, dc=localdomain",

View file

@ -0,0 +1,10 @@
--- test/delete.rb.orig Wed Dec 20 13:36:50 2006
+++ test/delete.rb Wed Dec 20 13:37:00 2006
@@ -6,6 +6,7 @@ require "#{$test}/conf"
require "./ldap"
conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
conn.bind('cn=root, dc=localhost, dc=localdomain','secret'){
conn.perror("bind")
conn.delete("cn=Takaaki-Tateishi, dc=localhost, dc=localdomain")

View file

@ -0,0 +1,10 @@
--- test/ext.rb.orig Wed Dec 20 13:37:36 2006
+++ test/ext.rb Wed Dec 20 13:37:42 2006
@@ -6,6 +6,7 @@ require "#{$test}/conf"
require "./ldap"
conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
conn.bind('cn=root, dc=localhost, dc=localdomain','secret'){
conn.perror("bind")
begin

View file

@ -0,0 +1,10 @@
--- test/misc1.rb.orig Wed Dec 20 13:37:51 2006
+++ test/misc1.rb Wed Dec 20 13:38:19 2006
@@ -35,6 +35,7 @@ def delete_ou(agency)
end
@ldap_conn = LDAP::Conn.new($HOST, $PORT)
+@ldap_conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
p LDAP::VERSION
begin

View file

@ -0,0 +1,10 @@
--- test/misc2.rb.orig Wed Dec 20 13:38:26 2006
+++ test/misc2.rb Wed Dec 20 13:38:36 2006
@@ -29,6 +29,7 @@ def delete_ou(agency)
end
@ldap_conn = LDAP::Conn.new($HOST, $PORT)
+@ldap_conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
@ldap_conn.bind("cn=root, dc=localhost, dc=localdomain", 'secret')
p LDAP::VERSION

View file

@ -0,0 +1,10 @@
--- test/modrdn.rb.orig Wed Dec 20 13:35:43 2006
+++ test/modrdn.rb Wed Dec 20 13:35:51 2006
@@ -6,6 +6,7 @@ require "#{$test}/conf"
require "./ldap"
conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
begin
conn.bind('cn=root, dc=localhost, dc=localdomain','seret')

View file

@ -0,0 +1,13 @@
--- test/search2.rb.orig Wed Dec 20 13:34:05 2006
+++ test/search2.rb Wed Dec 20 13:34:35 2006
@@ -10,7 +10,9 @@ sorter = proc{|s1,s2|
s1<=>s2
}
-LDAP::Conn.new($HOST, $PORT).bind{|conn|
+conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
+conn.bind{|conn|
conn.perror("bind")
sub = nil
conn.search("dc=localhost, dc=localdomain", LDAP::LDAP_SCOPE_SUBTREE,

View file

@ -0,0 +1,13 @@
--- test/search3.rb.orig Wed Dec 20 13:34:41 2006
+++ test/search3.rb Wed Dec 20 13:34:59 2006
@@ -8,8 +8,9 @@ require "./ldap"
$KCODE = "UTF8"
conn = LDAP::Conn.new($HOST, $PORT)
-conn.perror("bind")
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
conn.bind{
+ conn.perror("bind")
# search2 returns an array of hash
print("search2 without a block:\n")
conn.search2("dc=localhost, dc=localdomain", LDAP::LDAP_SCOPE_SUBTREE,

View file

@ -0,0 +1,14 @@
--- test/search.rb.orig Wed Dec 20 13:32:50 2006
+++ test/search.rb Wed Dec 20 13:33:24 2006
@@ -5,7 +5,10 @@ $test = File.dirname($0)
require "#{$test}/conf"
require "./ldap"
-LDAP::Conn.new($HOST, $PORT).bind{|conn|
+conn = LDAP::Conn.new($HOST, $PORT)
+conn.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
+conn.bind{|conn|
+
conn.perror("bind")
begin
conn.search("dc=localhost, dc=localdomain",