pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-redmine51



Module Name:    pkgsrc
Committed By:   taca
Date:           Wed Feb 11 07:50:27 UTC 2026

Modified Files:
        pkgsrc/devel/ruby-redmine51: INSTALL Makefile PLIST distinfo options.mk
        pkgsrc/devel/ruby-redmine51/patches: patch-Gemfile
Added Files:
        pkgsrc/devel/ruby-redmine51/files: README-pkgsrc
Removed Files:
        pkgsrc/devel/ruby-redmine51: MESSAGE

Log Message:
devel/ruby-redmine51: package overhaul

* Move MESSAGE to README-pkgsrc.
* Change dependency to textproc/ruby-actionpack-xml_parser.
* Fix various dependency in Gemfile.
* Add dependency to databases/ruby-with_advisory_lock53 with mysql option.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/ruby-redmine51/INSTALL
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/ruby-redmine51/MESSAGE
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/ruby-redmine51/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/ruby-redmine51/PLIST
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/ruby-redmine51/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/ruby-redmine51/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ruby-redmine51/files/README-pkgsrc
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/ruby-redmine51/patches/patch-Gemfile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ruby-redmine51/INSTALL
diff -u pkgsrc/devel/ruby-redmine51/INSTALL:1.1 pkgsrc/devel/ruby-redmine51/INSTALL:1.2
--- pkgsrc/devel/ruby-redmine51/INSTALL:1.1     Wed Nov 29 16:10:19 2023
+++ pkgsrc/devel/ruby-redmine51/INSTALL Wed Feb 11 07:50:27 2026
@@ -1,6 +1,6 @@
 #!@SH@
 #
-# $NetBSD: INSTALL,v 1.1 2023/11/29 16:10:19 taca Exp $
+# $NetBSD: INSTALL,v 1.2 2026/02/11 07:50:27 taca Exp $
 
 WWWGRP="@WWWGRP@"
 WWWOWN="@WWWOWN@"
@@ -9,6 +9,8 @@ RM_DIR="@PREFIX@/@RM_DIR@"
 case "${STAGE}" in
 POST-INSTALL)
        cd ${RM_DIR} &&
+               bundle@RUBY_SUFFIX@ config \
+                       set --local without 'development test'
                ${CHOWN} -R ${WWWOWN} ${RM_DIR}
                ${CHGRP} -R ${WWWGRP} ${RM_DIR}
        ;;

Index: pkgsrc/devel/ruby-redmine51/Makefile
diff -u pkgsrc/devel/ruby-redmine51/Makefile:1.19 pkgsrc/devel/ruby-redmine51/Makefile:1.20
--- pkgsrc/devel/ruby-redmine51/Makefile:1.19   Sun Jan 18 15:48:16 2026
+++ pkgsrc/devel/ruby-redmine51/Makefile        Wed Feb 11 07:50:27 2026
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2026/01/18 15:48:16 taca Exp $
+# $NetBSD: Makefile,v 1.20 2026/02/11 07:50:27 taca Exp $
 
 DISTNAME=      redmine-${RM_VERSION}
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:S/redmine/redmine${RM_VER}/}
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  https://www.redmine.org/releases/
 
@@ -29,7 +30,7 @@ DEPENDS+=     ${RUBY_PKGPREFIX}-rouge>=4.2.0
 DEPENDS+=      ${RUBY_PKGPREFIX}-request_store>=1.5.0<1.6:../../www/ruby-request_store
 # ruby-mail depends it.
 #DEPENDS+=     ${RUBY_PKGPREFIX}-mini_mime>=1.1.0<1.2:../../mail/ruby-mini_mime
-DEPENDS+=      ${RUBY_PKGPREFIX}-actionpack${RUBY_RAILS}-xml_parser>=2.0:../../textproc/ruby-actionpack-xml_parser
+DEPENDS+=      ${RUBY_PKGPREFIX}-actionpack-xml_parser>=2.0:../../textproc/ruby-actionpack-xml_parser
 DEPENDS+=      ${RUBY_PKGPREFIX}-roadie-rails31_${RUBY_RAILS}>=3.1.0<3.2:../../mail/ruby-roadie-rails31
 DEPENDS+=      ${RUBY_PKGPREFIX}-marcel>=1.0.0:../../devel/ruby-marcel
 DEPENDS+=      ${RUBY_PKGPREFIX}-mail>=2.8.1<2.9:../../mail/ruby-mail
@@ -54,11 +55,12 @@ REPLACE_RUBY+=      extra/mail_handler/rdm-ma
 REPLACE_RUBY+= extra/svn/reposman.rb
 REPLACE_RUBY+= public/dispatch.fcgi.example
 
-SUBST_CLASSES+=                shell
-SUBST_FILES.shell=     ${DESTDIR}${PREFIX}/bin/redmine51_*${RUBY_SUFFIX}.sh
-SUBST_MESSAGE.shell=   Fixing paths in helper shell scripts.
-SUBST_VARS.shell=      PREFIX RUBY RM_DIR
-SUBST_STAGE.shell=     post-install
+SUBST_CLASSES+=                path
+SUBST_FILES.path+=     ${DESTDIR}${PREFIX}/bin/redmine51_*${RUBY_SUFFIX}.sh
+SUBST_FILES.path+=     ${DESTDIR}${PREFIX}/${RM_DIR}/README-pkgsrc
+SUBST_MESSAGE.path=    Fixing paths in helper shell scripts and documents.
+SUBST_VARS.path=       PREFIX RM_DIR RM_VER RUBY RUBY_SUFFIX RCD_SCRIPTS_DIR
+SUBST_STAGE.path=      post-install
 
 EGDIR=         ${PREFIX}/share/examples/${RUBY_PKGPREFIX}-redmine51
 INSTALLATION_DIRS=     bin ${EGDIR} ${RM_DIR} ${RM_DIR}/config
@@ -70,6 +72,7 @@ CONF_FILES+=  ${EGDIR}/database.yml.examp
 CONF_FILES+=   ${EGDIR}/additional_environment.rb.example \
                        ${RM_DIR}/config/additional_environment.rb
 REQD_FILES+=   /dev/null ${RM_DIR}/Gemfile.lock
+OWN_DIRS+=     ${RM_DIR}/.bundle
 
 PKG_GROUPS=    ${APACHE_GROUP}
 PKG_USERS=     ${APACHE_USER}:${APACHE_GROUP}
@@ -90,6 +93,7 @@ do-install:
                ${DESTDIR}${PREFIX}/bin/redmine51_migrate_db${RUBY_SUFFIX}.sh
        ${INSTALL_SCRIPT} ${FILESDIR}/redmine51_load_default_data.sh \
                ${DESTDIR}${PREFIX}/bin/redmine51_load_default_data${RUBY_SUFFIX}.sh
+       ${INSTALL_DATA} ${FILESDIR}/README-pkgsrc ${DESTDIR}${PREFIX}/${RM_DIR}
 
 post-install: unicorn-post-install
        ${FIND} ${DESTDIR}${PREFIX} -name '.*' -exec ${RM} -rf {} +

Index: pkgsrc/devel/ruby-redmine51/PLIST
diff -u pkgsrc/devel/ruby-redmine51/PLIST:1.6 pkgsrc/devel/ruby-redmine51/PLIST:1.7
--- pkgsrc/devel/ruby-redmine51/PLIST:1.6       Sun Jan 18 15:48:16 2026
+++ pkgsrc/devel/ruby-redmine51/PLIST   Wed Feb 11 07:50:27 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2026/01/18 15:48:16 taca Exp $
+@comment $NetBSD: PLIST,v 1.7 2026/02/11 07:50:27 taca Exp $
 bin/redmine51_generate_secret_token${RUBY_SUFFIX}.sh
 bin/redmine51_load_default_data${RUBY_SUFFIX}.sh
 bin/redmine51_migrate_db${RUBY_SUFFIX}.sh
@@ -10,6 +10,7 @@ ${PLIST.unicorn}${RUBY_EG}-redmine51/uni
 ${RM_DIR}/CONTRIBUTING.md
 ${RM_DIR}/Gemfile
 ${PLIST.unicorn}${RM_DIR}/Gemfile.local
+${RM_DIR}/README-pkgsrc
 ${RM_DIR}/README.rdoc
 ${RM_DIR}/Rakefile
 ${RM_DIR}/app/controllers/account_controller.rb

Index: pkgsrc/devel/ruby-redmine51/distinfo
diff -u pkgsrc/devel/ruby-redmine51/distinfo:1.13 pkgsrc/devel/ruby-redmine51/distinfo:1.14
--- pkgsrc/devel/ruby-redmine51/distinfo:1.13   Sun Jan 18 15:48:16 2026
+++ pkgsrc/devel/ruby-redmine51/distinfo        Wed Feb 11 07:50:27 2026
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.13 2026/01/18 15:48:16 taca Exp $
+$NetBSD: distinfo,v 1.14 2026/02/11 07:50:27 taca Exp $
 
 BLAKE2s (redmine-5.1.11.tar.gz) = a70c022b6d80150b604819e2a07e87bf112f7282fe165d2ca85d5a6c4d31ba54
 SHA512 (redmine-5.1.11.tar.gz) = ba7f40daf650502a683f07d8600c685912338f37340dc030123540c85d3a913d1f0d7718491c97b95a9f883db74731f3acf5eaad2dd583992dad9a37bc89957d
 Size (redmine-5.1.11.tar.gz) = 3260741 bytes
-SHA1 (patch-Gemfile) = e73bce697b8fba4a2ab4ca5aaf8fed7185da961e
+SHA1 (patch-Gemfile) = 399ff837df036fdb1ee379172aecd7a549e6a6f3
 SHA1 (patch-config_additional__environment.rb.example) = 7ad913800c5f31fdd9b71aa92294bdbeea7b77fe
 SHA1 (patch-lib_redmine_scm_adapters_mercurial_redminehelper.py) = 87db1005896b2a962b8b93ec5b5b7d313ae6f691
 SHA1 (patch-lib_tasks_initializers.rake) = d5ccb73cff6baedee9dfbe7563e25925f1ff9d85

Index: pkgsrc/devel/ruby-redmine51/options.mk
diff -u pkgsrc/devel/ruby-redmine51/options.mk:1.3 pkgsrc/devel/ruby-redmine51/options.mk:1.4
--- pkgsrc/devel/ruby-redmine51/options.mk:1.3  Wed Nov  6 16:21:18 2024
+++ pkgsrc/devel/ruby-redmine51/options.mk      Wed Feb 11 07:50:27 2026
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.3 2024/11/06 16:21:18 taca Exp $
+# $NetBSD: options.mk,v 1.4 2026/02/11 07:50:27 taca Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.redmine51
 
@@ -16,6 +16,7 @@ PLIST_VARS+=                  unicorn
 ###
 .if !empty(PKG_OPTIONS:Mmysql)
 DEPENDS+=      ${RUBY_PKGPREFIX}-mysql2>=0.5.0<0.6:../../databases/ruby-mysql2
+DEPENDS+=      ${RUBY_PKGPREFIX}-with_advisory_lock53>=5.3.0<6:../../databases/ruby-with_advisory_lock53
 .elif !empty(PKG_OPTIONS:Mpgsql)
 DEPENDS+=      ${RUBY_PKGPREFIX}-pg>=1.5.3<2.0:../../databases/ruby-pg
 .elif !empty(PKG_OPTIONS:Msqlite3)

Index: pkgsrc/devel/ruby-redmine51/patches/patch-Gemfile
diff -u pkgsrc/devel/ruby-redmine51/patches/patch-Gemfile:1.7 pkgsrc/devel/ruby-redmine51/patches/patch-Gemfile:1.8
--- pkgsrc/devel/ruby-redmine51/patches/patch-Gemfile:1.7       Sun Mar 16 12:38:01 2025
+++ pkgsrc/devel/ruby-redmine51/patches/patch-Gemfile   Wed Feb 11 07:50:27 2026
@@ -1,20 +1,21 @@
-$NetBSD: patch-Gemfile,v 1.7 2025/03/16 12:38:01 taca Exp $
+$NetBSD: patch-Gemfile,v 1.8 2026/02/11 07:50:27 taca Exp $
 
 * Relax dependency.
 * Do not load gem for developemt and test.
 
---- Gemfile.orig       2025-03-10 23:30:03.000000000 +0000
+--- Gemfile.orig       2026-01-06 02:25:01.000000000 +0000
 +++ Gemfile
-@@ -2,7 +2,7 @@ source 'https://rubygems.org'
+@@ -2,19 +2,19 @@ source 'https://rubygems.org'
  
  ruby '>= 2.7.0', '< 3.3.0'
  
 -gem 'rails', '6.1.7.10'
-+gem 'rails', '~>6.1.7,>=6.1.7.10'
- gem 'rouge', '~> 4.2.0'
+-gem 'rouge', '~> 4.2.0'
++gem 'rails', '~> 6.1.7', '>= 6.1.7.10'
++gem 'rouge', '~> 4.2'
  gem 'request_store', '~> 1.5.0'
  gem 'mini_mime', '~> 1.1.0'
-@@ -10,7 +10,7 @@ gem "actionpack-xml_parser"
+ gem "actionpack-xml_parser"
  gem 'roadie-rails', '~> 3.1.0'
  gem 'marcel'
  gem 'mail', '~> 2.8.1'
@@ -23,6 +24,11 @@ $NetBSD: patch-Gemfile,v 1.7 2025/03/16 
  gem 'i18n', '~> 1.14.1'
  gem 'rbpdf', '~> 1.21.3'
  gem 'addressable'
+-gem 'rubyzip', '~> 2.3.0'
++gem 'rubyzip', '~> 2.4.0'
+ 
+ #  Ruby Standard Gems
+ gem 'csv', '~> 3.2.6'
 @@ -31,17 +31,17 @@ gem 'rotp', '>= 5.0.0'
  gem 'rqrcode'
  
@@ -44,6 +50,15 @@ $NetBSD: patch-Gemfile,v 1.7 2025/03/16 
  end
  
  # Optional Markdown support
+@@ -52,7 +52,7 @@ end
+ # Optional CommonMark support, not for JRuby
+ group :common_mark do
+   gem "commonmarker", '~> 0.23.8'
+-  gem 'deckar01-task_list', '2.3.2'
++  gem 'deckar01-task_list', '~> 2.3.2'
+ end
+ 
+ # Include database gems for the adapters found in the database
 @@ -80,7 +80,7 @@ if File.exist?(database_file)
        when /postgresql/
          gem 'pg', '~> 1.5.3', :platforms => [:mri, :mingw, :x64_mingw]
@@ -61,3 +76,11 @@ $NetBSD: patch-Gemfile,v 1.7 2025/03/16 
  group :development do
    gem 'listen', '~> 3.3'
    gem "yard"
+@@ -122,6 +123,7 @@ group :test do
+   # `bin/rails test` fails at startup with minitest >= 6.0
+   gem 'minitest', '< 6.0'
+ end
++end
+ 
+ local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
+ if File.exist?(local_gemfile)

Added files:

Index: pkgsrc/devel/ruby-redmine51/files/README-pkgsrc
diff -u /dev/null pkgsrc/devel/ruby-redmine51/files/README-pkgsrc:1.1
--- /dev/null   Wed Feb 11 07:50:27 2026
+++ pkgsrc/devel/ruby-redmine51/files/README-pkgsrc     Wed Feb 11 07:50:27 2026
@@ -0,0 +1,73 @@
+===========================================================================
+$NetBSD: README-pkgsrc,v 1.1 2026/02/11 07:50:27 taca Exp $
+
+To use Redmine with nginx, you will need to perform the following steps.
+For more information, please refer
+<https://www.redmine.org/projects/redmine/wiki/RedmineInstall>.
+
+1. If you want to use with MySQL server (by default), install
+   databases/mysql80-* (or mariadb) and enable it.
+   Then, create the database.
+
+2. Install nginx httpd server, www/nginx.
+
+3. Setup Redmine database:
+
+       $ mysql -u root -p
+       > create database redmine character set utf8;
+       > create database redmine_development character set utf8;
+       > create user 'redmine'@'localhost' identified by 'redmine_password';
+       > grant all privileges on redmine.* to 'redmine'@'localhost';
+       > grant all privileges on redmine_development.* to 'redmine'@'localhost';
+
+4. Set the database password for the redmine and redmine_development databases
+   in @PREFIX@/@RM_DIR@/config/database.yml;
+
+5. Create secret token and write to
+   @PREFIX@/@RM_DIR@/config/configuration.yml
+
+       # redmine@RM_VER@_generate_secret_token@RUBY_SUFFIX@.sh
+       # vi config/configuration.yml
+         [...]
+         secret_token: 'YOUR_SECRET_KEY'
+         [...]
+
+6. Import some data to Redmine database, select your locale, and migrate the DB:
+
+       # redmine@RM_VER@_migrate_db@RUBY_SUFFIX@.sh
+
+7. Setup nginx.
+
+       # vi @PREFIX@/etc/nginx/nginx.conf
+       http {
+       upstream unicorn_redmine {
+               server unix:@PREFIX@/@RM_DIR@/unicorn.redmine.sock fail_timeout=0;
+       }
+       server {
+       listen       80;
+       server_name  localhost;
+
+       root @PREFIX@/@RM_DIR@;
+       try_files $uri @unicorn_redmine;
+
+       location @unicorn_redmine {
+               proxy_set_header Host $http_host;
+               proxy_pass http://unicorn_redmine;
+       }
+
+       error_page   500 502 503 504  /50x.html;
+               location = /50x.html {
+               root   share/examples/nginx/html;
+       }
+       }
+
+8. Start Redmine with Unicorn.
+
+       # @RCD_SCRIPTS_DIR@/redmine@RM_VER@_unicorn@RUBY_SUFFIX@ start
+
+9. Start nginx.
+
+       # @RCD_SCRIPTS_DIR@/nginx start
+
+10. Access Redmine with username: admin and password: admin.
+===========================================================================



Home | Main Index | Thread Index | Old Index