- updated to 1.2.5

- ipv6 patch now included in distribution
This commit is contained in:
Dirk Meyer 2006-02-20 08:53:14 +00:00
parent 78ed31c71e
commit da2dbcdfa1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156474
4 changed files with 6 additions and 31 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= mod_ruby
PORTVERSION= 1.2.4
PORTVERSION= 1.2.5
CATEGORIES= www ruby
MASTER_SITES= http://www.modruby.net/archive/
DIST_SUBDIR= ruby

View file

@ -1,3 +1,3 @@
MD5 (ruby/mod_ruby-1.2.4.tar.gz) = 2b803c021297517eecb3dc6cf77b9534
SHA256 (ruby/mod_ruby-1.2.4.tar.gz) = de21cc60306100fab125ffcbc413e0128bac92133e5c1a3837d33c1cd2d6e269
SIZE (ruby/mod_ruby-1.2.4.tar.gz) = 107797
MD5 (ruby/mod_ruby-1.2.5.tar.gz) = 3c867008bd6518c1fec395d9040cd964
SHA256 (ruby/mod_ruby-1.2.5.tar.gz) = 6dfa64bf8fe28e9bdceedef1425475f49921e2d8fececb0dfb7afaba9780bcea
SIZE (ruby/mod_ruby-1.2.5.tar.gz) = 109849

View file

@ -1,27 +0,0 @@
--- connection.c.orig Fri Jul 16 11:16:29 2004
+++ connection.c Fri Sep 9 06:38:14 2005
@@ -100,8 +100,12 @@
#ifdef APACHE2
return INT2NUM(conn->local_addr->port);
#else
+#ifdef APACHE6
+ return INT2NUM(ntohs(((struct sockaddr_in *)&conn->local_addr)->sin_port));
+#else
return INT2NUM(ntohs(conn->local_addr.sin_port));
#endif
+#endif
}
static VALUE connection_remote_port(VALUE self)
@@ -112,7 +116,11 @@
#ifdef APACHE2
return INT2NUM(conn->remote_addr->port);
#else
+#ifdef APACHE6
+ return INT2NUM(ntohs(((struct sockaddr_in *)&conn->remote_addr)->sin_port));
+#else
return INT2NUM(ntohs(conn->remote_addr.sin_port));
+#endif
#endif
}

View file

@ -5,6 +5,8 @@
%%RUBY_SITELIBDIR%%/apache/rd2html.rb
%%RUBY_SITELIBDIR%%/apache/registry.rb
%%RUBY_SITELIBDIR%%/apache/ruby-debug.rb
%%RUBY_SITELIBDIR%%/apache/ruby-profile.rb
%%RUBY_SITELIBDIR%%/apache/rails-dispatcher.rb
%%RUBY_SITELIBDIR%%/apache/ruby-run.rb
%%RUBY_SITELIBDIR%%/auto-reload.rb
@dirrm %%RUBY_SITELIBDIR%%/apache