diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2017-05-05 16:59:05 +0500 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-07-14 23:56:38 +0200 |
commit | 118747fdd2fa232f4d11ef2a032c1107e5775a0a (patch) | |
tree | cbf88128a255b36e2fbf71da966d89da70d2501a /www-apps/redmine/files | |
parent | dev-python/pep8: keyword ~arm64 (diff) | |
download | gentoo-118747fdd2fa232f4d11ef2a032c1107e5775a0a.tar.gz gentoo-118747fdd2fa232f4d11ef2a032c1107e5775a0a.tar.bz2 gentoo-118747fdd2fa232f4d11ef2a032c1107e5775a0a.zip |
www-apps/redmine: Bump to 3.2.7, 3.3.4, 3.4.0.
Fixed slot dependencies, startup script (Bug #603452), added new log
location and logrotate, added myself to proxied maintainers (Bug
Closes: https://github.com/gentoo/gentoo/pull/4550
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'www-apps/redmine/files')
-rw-r--r-- | www-apps/redmine/files/additional_environment.rb | 7 | ||||
-rw-r--r-- | www-apps/redmine/files/redmine-3.3.4_requires.patch | 60 | ||||
-rw-r--r-- | www-apps/redmine/files/redmine-3.initd (renamed from www-apps/redmine/files/redmine-2.initd) | 21 | ||||
-rw-r--r-- | www-apps/redmine/files/redmine.logrotate | 9 |
4 files changed, 85 insertions, 12 deletions
diff --git a/www-apps/redmine/files/additional_environment.rb b/www-apps/redmine/files/additional_environment.rb new file mode 100644 index 000000000000..a4e9baf758a1 --- /dev/null +++ b/www-apps/redmine/files/additional_environment.rb @@ -0,0 +1,7 @@ +# Copy this file to additional_environment.rb and add any statements +# that need to be passed to the Rails::Initializer. `config` is +# available in this context. + +# Place log-files to /var/log/redmine +config.logger = Logger.new(Rails.root.join("/var/log/redmine",Rails.env + ".log"), 0, 10485760) +config.log_level= :info diff --git a/www-apps/redmine/files/redmine-3.3.4_requires.patch b/www-apps/redmine/files/redmine-3.3.4_requires.patch new file mode 100644 index 000000000000..e4510839cf48 --- /dev/null +++ b/www-apps/redmine/files/redmine-3.3.4_requires.patch @@ -0,0 +1,60 @@ +diff -Nuar redmine-3.3.3-orig/app/controllers/application_controller.rb redmine-3.3.3/app/controllers/application_controller.rb +--- redmine-3.3.3-orig/app/controllers/application_controller.rb 2017-05-24 21:05:03.515966923 +0500 ++++ redmine-3.3.3/app/controllers/application_controller.rb 2017-05-24 21:07:22.629960174 +0500 +@@ -15,6 +15,7 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + ++require 'request_store' + require 'uri' + require 'cgi' + +diff -Nuar redmine-3.3.3-orig/app/controllers/welcome_controller.rb redmine-3.3.3/app/controllers/welcome_controller.rb +--- redmine-3.3.3-orig/app/controllers/welcome_controller.rb 2017-05-24 21:05:03.514966923 +0500 ++++ redmine-3.3.3/app/controllers/welcome_controller.rb 2017-05-24 21:08:14.895957638 +0500 +@@ -15,6 +15,9 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + ++require 'action_controller' ++require 'action_controller/action_caching' ++ + class WelcomeController < ApplicationController + caches_action :robots + +diff -Nuar redmine-3.3.3-orig/app/models/custom_field.rb redmine-3.3.3/app/models/custom_field.rb +--- redmine-3.3.3-orig/app/models/custom_field.rb 2017-05-24 21:05:03.513966923 +0500 ++++ redmine-3.3.3/app/models/custom_field.rb 2017-05-24 21:08:32.223956797 +0500 +@@ -15,6 +15,8 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + ++require 'protected_attributes' ++ + class CustomField < ActiveRecord::Base + include Redmine::SubclassFactory + +diff -Nuar redmine-3.3.3-orig/app/models/mailer.rb redmine-3.3.3/app/models/mailer.rb +--- redmine-3.3.3-orig/app/models/mailer.rb 2017-05-24 21:05:03.514966923 +0500 ++++ redmine-3.3.3/app/models/mailer.rb 2017-05-24 21:05:47.039964812 +0500 +@@ -16,6 +16,7 @@ + # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + require 'roadie' ++require 'roadie-rails' + + class Mailer < ActionMailer::Base + layout 'mailer' +diff -Nuar redmine-3.3.3-orig/config/application.rb redmine-3.3.3/config/application.rb +--- redmine-3.3.3-orig/config/application.rb 2017-05-24 21:05:03.689966915 +0500 ++++ redmine-3.3.3/config/application.rb 2017-05-24 21:05:35.723965361 +0500 +@@ -1,8 +1,8 @@ + require File.expand_path('../boot', __FILE__) + + require 'rails/all' ++require 'action_dispatch/xml_params_parser' + +-Bundler.require(*Rails.groups) + + module RedmineApp + class Application < Rails::Application diff --git a/www-apps/redmine/files/redmine-2.initd b/www-apps/redmine/files/redmine-3.initd index 72ad1007992e..507987034be3 100644 --- a/www-apps/redmine/files/redmine-2.initd +++ b/www-apps/redmine/files/redmine-3.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 RAILS_ENV=${RAILS_ENV:-production} @@ -11,30 +11,28 @@ REDMINE_GROUP=${REDMINE_GROUP:-redmine} REDMINE_PIDFILE="/var/run/redmine/server.pid" depend() { - use apache2 git-daemon mysql net postgresql svnserve + use git-daemon mysql net postgresql svnserve } start_pre() { if [ ! -e "${REDMINE_DIR}/config/initializers/secret_token.rb" ] ; then - eerror "Execute the following command to initlize environment:" + eerror "Execute the following command to initialize environment:" eerror eerror "# emerge --config www-apps/redmine" eerror return 1 fi - if [ ! -d /var/run/redmine ]; then - checkpath -q -d -m 0755 -o redmine:redmine /var/run/redmine - fi + checkpath -q -d -m 0755 -o redmine:redmine /var/run/redmine } start() { ebegin "Starting redmine" - cd "${REDMINE_DIR}" - start-stop-daemon --start --quiet --user ${REDMINE_USER}:${REDMINE_GROUP} \ + start-stop-daemon --start --quiet \ + --user "${REDMINE_USER}:${REDMINE_GROUP}" \ --pidfile "${REDMINE_PIDFILE}" \ - --exec /usr/bin/ruby "${REDMINE_DIR}"/script/rails server -- \ - --daemon --environment=${RAILS_ENV} \ - --binding=${REDMINE_ADDRESS} --port=${REDMINE_PORT} \ + --exec /usr/bin/ruby "${REDMINE_DIR}"/bin/rails server -- \ + --daemon --environment="${RAILS_ENV}" \ + --binding="${REDMINE_ADDRESS}" --port="${REDMINE_PORT}" \ --pid="${REDMINE_PIDFILE}" \ ${REDMINE_OPTS} eend $? @@ -42,7 +40,6 @@ start() { stop() { ebegin "Stopping redmine" - cd "${REDMINE_DIR}" start-stop-daemon --signal INT --quiet --pidfile "${REDMINE_PIDFILE}" eend $? } diff --git a/www-apps/redmine/files/redmine.logrotate b/www-apps/redmine/files/redmine.logrotate new file mode 100644 index 000000000000..69e98cb3fc64 --- /dev/null +++ b/www-apps/redmine/files/redmine.logrotate @@ -0,0 +1,9 @@ +/var/log/redmine/*.log { + daily + missingok + rotate 7 + compress + delaycompress + notifempty + copytruncate +} |