pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ruby-redmine50 devel/ruby-redmine50: add package...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1933a981fdec
branches:  trunk
changeset: 384654:1933a981fdec
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Sep 03 13:53:58 2022 +0000

description:
devel/ruby-redmine50: add package 5.0.2

Redmine is a flexible project management web application using the
Ruby on Rails framework, it is cross-platform and cross-database.

Redmine 5.0 introduces these new features in these categories:

* Migrate to Rails 6.1 with Zeitwerk autoloading.
* Introduced CommonMark Markdown (GitHub Flavored) formatter as an
  alternative to existing Markdown formatter based on Redcarpet.
* Users can be mention now using @ autocomplete by other users with add
  watchers permission.
* Issue custom query: default query per instance, project and user.
* Default project custom query: per instance and per user.
* Ability to add watchers to Wiki pages.
* Issues can now be filtered by notes or by file description.
* "Contains" operator supports now multiple search items.
  Using wilcard characters (_ or %) is no longer supported.
* Two-factor authentication improvements: you can enable it only for certain
  groups or for users with administration rights.

diffstat:

 devel/ruby-redmine50/DEINSTALL                                               |    12 +
 devel/ruby-redmine50/DESCR                                                   |    18 +
 devel/ruby-redmine50/INSTALL                                                 |    15 +
 devel/ruby-redmine50/MESSAGE                                                 |    70 +
 devel/ruby-redmine50/Makefile                                                |   115 +
 devel/ruby-redmine50/PLIST                                                   |  2223 ++++++++++
 devel/ruby-redmine50/distinfo                                                |     8 +
 devel/ruby-redmine50/files/Gemfile.local                                     |     1 +
 devel/ruby-redmine50/files/redmine50_generate_secret_token.sh                |     5 +
 devel/ruby-redmine50/files/redmine50_load_default_data.sh                    |     5 +
 devel/ruby-redmine50/files/redmine50_migrate_db.sh                           |     5 +
 devel/ruby-redmine50/files/redmine50_migrate_plugins.sh                      |    12 +
 devel/ruby-redmine50/files/redmine50_unicorn.sh                              |    31 +
 devel/ruby-redmine50/files/unicorn.rb                                        |     8 +
 devel/ruby-redmine50/options.mk                                              |    59 +
 devel/ruby-redmine50/patches/patch-Gemfile                                   |    55 +
 devel/ruby-redmine50/patches/patch-config_additional__environment.rb.example |    11 +
 devel/ruby-redmine50/patches/patch-lib_tasks_initializers.rake               |    15 +
 18 files changed, 2668 insertions(+), 0 deletions(-)

diffs (truncated from 2740 to 300 lines):

diff -r 3673b4f6cb8d -r 1933a981fdec devel/ruby-redmine50/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine50/DEINSTALL    Sat Sep 03 13:53:58 2022 +0000
@@ -0,0 +1,12 @@
+#!@SH@
+#
+# $NetBSD: DEINSTALL,v 1.1 2022/09/03 13:53:58 taca Exp $
+
+WWWGRP="@WWWGRP@"
+WWWOWN="@WWWOWN@"
+RM_DIR="@PREFIX@/@RM_DIR@"
+
+case "${STAGE}" in
+DEINSTALL)
+       cd ${RM_DIR} && ${RM} -f Gemfile.lock;;
+esac
diff -r 3673b4f6cb8d -r 1933a981fdec devel/ruby-redmine50/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine50/DESCR        Sat Sep 03 13:53:58 2022 +0000
@@ -0,0 +1,18 @@
+Redmine is a flexible project management web application using the
+Ruby on Rails framework, it is cross-platform and cross-database.
+
+Redmine 5.0 introduces these new features in these categories:
+
+* Migrate to Rails 6.1 with Zeitwerk autoloading.
+* Introduced CommonMark Markdown (GitHub Flavored) formatter as an
+  alternative to existing Markdown formatter based on Redcarpet.
+* Users can be mention now using @ autocomplete by other users with add
+  watchers permission.
+* Issue custom query: default query per instance, project and user.
+* Default project custom query: per instance and per user.
+* Ability to add watchers to Wiki pages.
+* Issues can now be filtered by notes or by file description.
+* "Contains" operator supports now multiple search items.
+  Using wilcard characters (_ or %) is no longer supported.
+* Two-factor authentication improvements: you can enable it only for certain
+  groups or for users with administration rights.
diff -r 3673b4f6cb8d -r 1933a981fdec devel/ruby-redmine50/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine50/INSTALL      Sat Sep 03 13:53:58 2022 +0000
@@ -0,0 +1,15 @@
+#!@SH@
+#
+# $NetBSD: INSTALL,v 1.1 2022/09/03 13:53:58 taca Exp $
+
+WWWGRP="@WWWGRP@"
+WWWOWN="@WWWOWN@"
+RM_DIR="@PREFIX@/@RM_DIR@"
+
+case "${STAGE}" in
+POST-INSTALL)
+       cd ${RM_DIR} &&
+               ${CHOWN} -R ${WWWOWN} ${RM_DIR}
+               ${CHGRP} -R ${WWWGRP} ${RM_DIR}
+       ;;
+esac
diff -r 3673b4f6cb8d -r 1933a981fdec devel/ruby-redmine50/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine50/MESSAGE      Sat Sep 03 13:53:58 2022 +0000
@@ -0,0 +1,70 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2022/09/03 13:53:58 taca Exp $
+
+To use Redmine with nginx, you will need to perform the following steps.
+
+1. If you want to use with MySQL server (by default), install
+   databases/mysql5[6|7]-* 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
+
+       # redmine42_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:
+
+       # redmine42_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}/redmine42_unicorn${RUBY_SUFFIX} start
+
+9. Start nginx.
+
+       # ${RCD_SCRIPTS_DIR}/nginx start
+
+10. Access Redmine with username: admin and password: admin.
+===========================================================================
diff -r 3673b4f6cb8d -r 1933a981fdec devel/ruby-redmine50/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine50/Makefile     Sat Sep 03 13:53:58 2022 +0000
@@ -0,0 +1,115 @@
+# $NetBSD: Makefile,v 1.1 2022/09/03 13:53:58 taca Exp $
+
+DISTNAME=      redmine-${RM_VERSION}
+PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:S/redmine/redmine${RM_VER}/}
+CATEGORIES=    devel
+MASTER_SITES=  https://www.redmine.org/releases/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.redmine.org/
+COMMENT=       Flexible project management web application
+LICENSE=       gnu-gpl-v2 # and so on.
+
+RM_VERSION=    5.0.2
+
+NO_BUILD=      yes
+
+RUBY_VERSIONS_ACCEPTED=        27 30 31
+
+RUBY_RAILS_ACCEPTED=   61
+
+OVERRIDE_GEMSPEC+=     nokogiri>=1.11.0 mini_mime>=1.0.1 csv>=3.1.1
+
+DEPENDS+=      ${RUBY_PKGPREFIX}-bundler>=1.5.0:../../misc/ruby-bundler
+DEPENDS+=      ${RUBY_RAILS_DEPENDS}
+DEPENDS+=      ${RUBY_PKGPREFIX}-rouge>=3.28:../../www/ruby-rouge
+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}-roadie-rails${RUBY_RAILS}>=3.0.0<3.1:../../mail/ruby-roadie-rails
+DEPENDS+=      ${RUBY_PKGPREFIX}-marcel>=1.0.0:../../devel/ruby-marcel
+DEPENDS+=      ${RUBY_PKGPREFIX}-mail>=2.7.1<2.8:../../mail/ruby-mail
+DEPENDS+=      ${RUBY_PKGPREFIX}-csv>=3.2.0<3.3:../../textproc/ruby-csv
+DEPENDS+=      ${RUBY_PKGPREFIX}-nokogiri>=1.13.0<1.14:../../textproc/ruby-nokogiri
+DEPENDS+=      ${RUBY_PKGPREFIX}-i18n>=1.10.0<1.11:../../devel/ruby-i18n
+DEPENDS+=      ${RUBY_PKGPREFIX}-rbpdf>=1.20.0<1.21:../../print/ruby-rbpdf
+DEPENDS+=      ${RUBY_PKGPREFIX}-addressable>=0:../../net/ruby-addressable
+DEPENDS+=      ${RUBY_PKGPREFIX}-zip>=2.3.0<2.4:../../archivers/ruby-zip
+#DEPENDS+=     ${RUBY_PKGPREFIX}-tzinfo-data>=1:../../time/ruby-tzinfo-data
+DEPENDS+=      ${RUBY_PKGPREFIX}-rotp>=6.2.0:../../security/ruby-rotp
+DEPENDS+=      ${RUBY_PKGPREFIX}-rqrcode>=1.2.0:../../textproc/ruby-rqrcode
+DEPENDS+=      ${RUBY_PKGPREFIX}-net-ldap>=0.17.0<0.18:../../net/ruby-net-ldap
+DEPENDS+=      ${RUBY_PKGPREFIX}-mini-magick>=4.11.0<4.12:../../graphics/ruby-mini-magick
+DEPENDS+=      ${RUBY_PKGPREFIX}-redcarpet>=3.5.1<3.6:../../textproc/ruby-redcarpet
+DEPENDS+=      ${RUBY_PKGPREFIX}-deckar01-task_list>=2.3.2:../../textproc/ruby-deckar01-task_list
+DEPENDS+=      ${RUBY_PKGPREFIX}-html-pipeline>=2.13.2<2.15:../../textproc/ruby-html-pipeline
+DEPENDS+=      ${RUBY_PKGPREFIX}-commonmarker>=0.23.1:../../textproc/ruby-commonmarker
+DEPENDS+=      ${RUBY_PKGPREFIX}-sanitize>=6.0<7:../../textproc/ruby-sanitize
+
+.include "../../lang/ruby/modules.mk"
+.include "options.mk"
+
+.if ${RUBY_VER} != 31
+DEPENDS+=      ${RUBY_PKGPREFIX}-net-imap>=0.2.2<0.3:../../net/ruby-net-imap
+DEPENDS+=      ${RUBY_PKGPREFIX}-net-pop>=0.1.1<0.2:../../net/ruby-net-pop
+DEPENDS+=      ${RUBY_PKGPREFIX}-net-smtp>=0.3.0<0.4:../../net/ruby-net-smtp
+.endif
+
+REPLACE_RUBY+= ${DISTNAME}/bin/*
+REPLACE_RUBY+= ${DISTNAME}/extra/mail_handler/rdm-mailhandler.rb
+REPLACE_RUBY+= ${DISTNAME}/extra/svn/reposman.rb
+REPLACE_RUBY+= ${DISTNAME}/public/dispatch.fcgi.example
+
+SUBST_CLASSES+=                shell
+SUBST_FILES.shell=     ${DESTDIR}${PREFIX}/bin/redmine50_*${RUBY_SUFFIX}.sh
+SUBST_MESSAGE.shell=   Fixing paths in helper shell scripts.
+SUBST_VARS.shell=      PREFIX RUBY RM_DIR
+SUBST_STAGE.shell=     post-install
+
+MESSAGE_SUBST+=        RM_DIR=${RM_DIR}
+
+USE_LANGUAGES= # none
+
+EGDIR=         ${PREFIX}/share/examples/${RUBY_PKGPREFIX}-redmine50
+INSTALLATION_DIRS=     bin ${EGDIR} ${RM_DIR} ${RM_DIR}/config
+
+CONF_FILES+=   ${EGDIR}/configuration.yml.example \
+                       ${RM_DIR}/config/configuration.yml
+CONF_FILES+=   ${EGDIR}/database.yml.example \
+                       ${RM_DIR}/config/database.yml
+CONF_FILES+=   ${EGDIR}/additional_environment.rb.example \
+                       ${RM_DIR}/config/additional_environment.rb
+REQD_FILES+=   /dev/null ${RM_DIR}/Gemfile.lock
+
+PKG_GROUPS=    ${APACHE_GROUP}
+PKG_USERS=     ${APACHE_USER}:${APACHE_GROUP}
+BUILD_DEFS+=   APACHE_GROUP APACHE_USER
+FILES_SUBST+=  WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
+               RM_DIR=${RM_DIR}
+
+do-install:
+       cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL_DATA_DIR} \
+               ${DESTDIR}${PREFIX}/${RM_DIR}/{} \;
+       cd ${WRKSRC} && ${FIND} . -type f ! -name "*.orig" -exec \
+               ${INSTALL_DATA} {} ${DESTDIR}${PREFIX}/${RM_DIR}/{} \;
+       ${INSTALL_SCRIPT} ${FILESDIR}/redmine50_migrate_plugins.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine50_migrate_plugins${RUBY_SUFFIX}.sh
+       ${INSTALL_SCRIPT} ${FILESDIR}/redmine50_generate_secret_token.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine50_generate_secret_token${RUBY_SUFFIX}.sh
+       ${INSTALL_SCRIPT} ${FILESDIR}/redmine50_migrate_db.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine50_migrate_db${RUBY_SUFFIX}.sh
+       ${INSTALL_SCRIPT} ${FILESDIR}/redmine50_load_default_data.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine50_load_default_data${RUBY_SUFFIX}.sh
+
+post-install: unicorn-post-install
+       ${FIND} ${DESTDIR}/ -name ".*" \( -type f -or -type d \) | xargs rm -rf
+       ${MV} ${DESTDIR}${PREFIX}/${RM_DIR}/config/configuration.yml.example \
+               ${DESTDIR}/${EGDIR}
+       ${MV} ${DESTDIR}${PREFIX}/${RM_DIR}/config/database.yml.example \
+               ${DESTDIR}/${EGDIR}
+       ${MV} ${DESTDIR}${PREFIX}/${RM_DIR}/config/additional_environment.rb.example \
+               ${DESTDIR}/${EGDIR}
+
+.include "../../devel/ruby-redmine/redmine.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3673b4f6cb8d -r 1933a981fdec devel/ruby-redmine50/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine50/PLIST        Sat Sep 03 13:53:58 2022 +0000
@@ -0,0 +1,2223 @@
+@comment $NetBSD: PLIST,v 1.1 2022/09/03 13:53:58 taca Exp $
+bin/redmine50_generate_secret_token${RUBY_SUFFIX}.sh
+bin/redmine50_load_default_data${RUBY_SUFFIX}.sh
+bin/redmine50_migrate_db${RUBY_SUFFIX}.sh
+bin/redmine50_migrate_plugins${RUBY_SUFFIX}.sh
+${RUBY_EG}-redmine50/additional_environment.rb.example
+${RUBY_EG}-redmine50/configuration.yml.example
+${RUBY_EG}-redmine50/database.yml.example
+${PLIST.unicorn}${RUBY_EG}-redmine50/unicorn.rb.example
+share/${RUBY_NAME}-redmine50/CONTRIBUTING.md
+share/${RUBY_NAME}-redmine50/Gemfile
+${PLIST.unicorn}share/${RUBY_NAME}-redmine50/Gemfile.local
+share/${RUBY_NAME}-redmine50/README.rdoc
+share/${RUBY_NAME}-redmine50/Rakefile
+share/${RUBY_NAME}-redmine50/app/controllers/account_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/activities_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/admin_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/application_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/attachments_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/auth_sources_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/auto_completes_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/boards_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/calendars_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/comments_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/context_menus_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/custom_field_enumerations_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/custom_fields_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/documents_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/email_addresses_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/enumerations_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/files_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/gantts_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/groups_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/imports_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/issue_categories_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/issue_relations_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/issue_statuses_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/issues_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/journals_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/mail_handler_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/members_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/messages_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/my_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/news_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/previews_controller.rb
+share/${RUBY_NAME}-redmine50/app/controllers/principal_memberships_controller.rb



Home | Main Index | Thread Index | Old Index