aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2017-01-03 13:06:33 +0800
committerswills <swills@FreeBSD.org>2017-01-03 13:06:33 +0800
commit230ccec0f4006b2629357821b3315212c3c63131 (patch)
tree3cd353917c01d170592776046de6f4460a780d45
parent47f88cbc6bd4ff2499e219bdcdfae65ad61fd4f5 (diff)
downloadfreebsd-ports-gnome-230ccec0f4006b2629357821b3315212c3c63131.tar.gz
freebsd-ports-gnome-230ccec0f4006b2629357821b3315212c3c63131.tar.zst
freebsd-ports-gnome-230ccec0f4006b2629357821b3315212c3c63131.zip
www/redmine: fix with newer gems
Fix with newer ldap and mysql. PR: 213127
-rw-r--r--www/redmine/Makefile8
-rw-r--r--www/redmine/files/mysql.rb2
-rw-r--r--www/redmine/files/patch-Gemfile25
3 files changed, 20 insertions, 15 deletions
diff --git a/www/redmine/Makefile b/www/redmine/Makefile
index 0d0e047028d3..f7bb96e95c28 100644
--- a/www/redmine/Makefile
+++ b/www/redmine/Makefile
@@ -3,7 +3,7 @@
PORTNAME= redmine
PORTVERSION= 3.2.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.redmine.org/releases/
@@ -28,7 +28,8 @@ RUN_DEPENDS= rubygem-bundler>=1.5.0:sysutils/rubygem-bundler \
rubygem-rbpdf>=1.19.0:print/rubygem-rbpdf \
rubygem-rake>=0:devel/rubygem-rake \
rubygem-ruby-openid>=2.3.0:net/rubygem-ruby-openid \
- rubygem-rack-openid>=0:www/rubygem-rack-openid
+ rubygem-rack-openid>=0:www/rubygem-rack-openid \
+ rubygem-net-ldap>=0.12.0:net/rubygem-net-ldap
NO_ARCH= yes
NO_BUILD= yes
@@ -54,12 +55,11 @@ PASSENGER_DESC= Use Apache/Nginx WEB server
MYSQL_DESC= MySQL database support (via mysql2 rubygem)
NO_OPTIONS_SORT= yes
-MYSQL_RUN_DEPENDS= rubygem-mysql2>=0.3.11:databases/rubygem-mysql2
+MYSQL_RUN_DEPENDS= rubygem-mysql2>=0.4.5:databases/rubygem-mysql2
PASSENGER_RUN_DEPENDS= passenger-config:www/rubygem-passenger
POSTGRESQL_RUN_DEPENDS= rubygem-pg>=0.18.1:databases/rubygem-pg
MARKDOWN_RUN_DEPENDS= rubygem-redcarpet>=3.3.2:textproc/rubygem-redcarpet
RMAGIC_RUN_DEPENDS= rubygem-rmagick>=2.14.0:graphics/rubygem-rmagick
-LDAP_RUN_DEPENDS= rubygem-net-ldap>=0.12.0:net/rubygem-net-ldap
THIN_RUN_DEPENDS= rubygem-thin>=1.6.2:www/rubygem-thin
THIN_SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
THIN_VARS= USE_RC_SUBR=redmine
diff --git a/www/redmine/files/mysql.rb b/www/redmine/files/mysql.rb
index 818abca39e55..ee5b60c27042 100644
--- a/www/redmine/files/mysql.rb
+++ b/www/redmine/files/mysql.rb
@@ -1 +1 @@
-gem "mysql2", "~> 0.3.11"
+gem "mysql2", "~> 0.4.5"
diff --git a/www/redmine/files/patch-Gemfile b/www/redmine/files/patch-Gemfile
index e104b617c4ed..c31a21d675d1 100644
--- a/www/redmine/files/patch-Gemfile
+++ b/www/redmine/files/patch-Gemfile
@@ -24,15 +24,14 @@
# Request at least rails-html-sanitizer 1.0.3 because of security advisories
gem "rails-html-sanitizer", ">= 1.0.3"
-@@ -26,29 +26,12 @@ gem "rails-html-sanitizer", ">= 1.0.3"
- gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
- gem "rbpdf", "~> 1.19.0"
+@@ -28,27 +28,15 @@ gem "rbpdf", "~> 1.19.0"
--# Optional gem for LDAP authentication
--group :ldap do
+ # Optional gem for LDAP authentication
+ group :ldap do
- gem "net-ldap", "~> 0.12.0"
--end
--
++ gem "net-ldap", "~> 0.15.0"
+ end
+
# Optional gem for OpenID authentication
group :openid do
- gem "ruby-openid", "~> 2.3.0", :require => "openid"
@@ -55,7 +54,13 @@
platforms :jruby do
# jruby-openssl is bundled with JRuby 1.7.0
gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
-@@ -72,7 +55,7 @@ if File.exist?(database_file)
+@@ -67,12 +55,12 @@ if File.exist?(database_file)
+ adapters.each do |adapter|
+ case adapter
+ when 'mysql2'
+- gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw]
++ gem "mysql2", "~> 0.4.5", :platforms => [:mri, :mingw, :x64_mingw]
+ gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
when 'mysql'
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
when /postgresql/
@@ -64,7 +69,7 @@
gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
when /sqlite3/
gem "sqlite3", :platforms => [:mri, :mingw, :x64_mingw]
-@@ -92,21 +75,6 @@ else
+@@ -92,21 +80,6 @@ else
warn("Please configure your config/database.yml first")
end
@@ -86,7 +91,7 @@
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
if File.exists?(local_gemfile)
eval_gemfile local_gemfile
-@@ -116,3 +84,7 @@ end
+@@ -116,3 +89,7 @@ end
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
eval_gemfile file
end