pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21af0bd9dec2
branches:  trunk
changeset: 453751:21af0bd9dec2
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed Jun 02 16:23:48 2021 +0000

description:
devel/ruby-redmine42: add package version 4.2.1

Note: ruby-redmine42 supports not only ruby26 but also ruby27.


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

Redmine 4.2 introduces these new features in these categories:

Authentication / User accounts
* two-factor authentication.
* email domains restriction for user accounts.

Notifications
* Notify users about high issues (only).

Issues
* Bulk addition of related issues.
* Query links for subtasks on issue page.

Watchers
* Groups can be added as watchers for issues.
* Forum threads can now be watched.
* Watchers that are not going to receive a notification because they watch a
  non visible object (for ex: issue) are now marked in the UI as invalid.

Text formatting
* New toolbar button to insert a table.
* Wiki table column sorting.
* Languages in Highlighted code button in toolbar are now customizable by
  each user.

Keyboard shortcuts

* Switch between Edit/Preview tabs using Command/Ctrl + Shift + P.
* Bold, italic and underline text using Command/Ctrl + b, Command/Ctrl + i
  and Command/Ctrl + u.
* Submit a form using Ctrl+Enter / Command+Return.

Activity improvements
* UI options to filter activities by date or by user.
* Slight design improvements.

Another nice features
* Download all attachments at once.
* Auto complete wiki page links.
* Auto-select fields mapping in Importing.
* Fields with validation errors are now highlighted.

diffstat:

 devel/ruby-redmine42/DEINSTALL                                 |    12 +
 devel/ruby-redmine42/DESCR                                     |    22 +
 devel/ruby-redmine42/INSTALL                                   |    15 +
 devel/ruby-redmine42/MESSAGE                                   |    70 +
 devel/ruby-redmine42/Makefile                                  |   109 +
 devel/ruby-redmine42/PLIST                                     |  2196 ++++++++++
 devel/ruby-redmine42/distinfo                                  |     8 +
 devel/ruby-redmine42/files/Gemfile.local                       |     1 +
 devel/ruby-redmine42/files/redmine42_generate_secret_token.sh  |     5 +
 devel/ruby-redmine42/files/redmine42_load_default_data.sh      |     5 +
 devel/ruby-redmine42/files/redmine42_migrate_db.sh             |     5 +
 devel/ruby-redmine42/files/redmine42_migrate_plugins.sh        |    12 +
 devel/ruby-redmine42/files/redmine42_unicorn.sh                |    31 +
 devel/ruby-redmine42/files/unicorn.rb                          |     8 +
 devel/ruby-redmine42/options.mk                                |    59 +
 devel/ruby-redmine42/patches/patch-Gemfile                     |    42 +
 devel/ruby-redmine42/patches/patch-lib_tasks_initializers.rake |    15 +
 17 files changed, 2615 insertions(+), 0 deletions(-)

diffs (truncated from 2683 to 300 lines):

diff -r 9a6230553692 -r 21af0bd9dec2 devel/ruby-redmine42/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine42/DEINSTALL    Wed Jun 02 16:23:48 2021 +0000
@@ -0,0 +1,12 @@
+#!@SH@
+#
+# $NetBSD: DEINSTALL,v 1.1 2021/06/02 16:23:48 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 9a6230553692 -r 21af0bd9dec2 devel/ruby-redmine42/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine42/DESCR        Wed Jun 02 16:23:48 2021 +0000
@@ -0,0 +1,22 @@
+Redmine is a flexible project management web application using the
+Ruby on Rails framework, it is cross-platform and cross-database.
+
+Redmine 4.2 introduces these new features in these categories:
+
+Authentication / User accounts
+* two-factor authentication.
+* email domains restriction for user accounts.
+
+Notifications
+* Notify users about high issues (only).
+
+Issues
+* Bulk addition of related issues.
+* Query links for subtasks on issue page.
+
+And more:
+
+Watchers
+Text formatting
+Keyboard shortcuts
+Activity improvements
diff -r 9a6230553692 -r 21af0bd9dec2 devel/ruby-redmine42/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine42/INSTALL      Wed Jun 02 16:23:48 2021 +0000
@@ -0,0 +1,15 @@
+#!@SH@
+#
+# $NetBSD: INSTALL,v 1.1 2021/06/02 16:23:48 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 9a6230553692 -r 21af0bd9dec2 devel/ruby-redmine42/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine42/MESSAGE      Wed Jun 02 16:23:48 2021 +0000
@@ -0,0 +1,70 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2021/06/02 16:23:48 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 9a6230553692 -r 21af0bd9dec2 devel/ruby-redmine42/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine42/Makefile     Wed Jun 02 16:23:48 2021 +0000
@@ -0,0 +1,109 @@
+# $NetBSD: Makefile,v 1.1 2021/06/02 16:23:48 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=    4.2.1
+
+NO_BUILD=      yes
+
+RUBY_VERSIONS_ACCEPTED=        26 27
+
+RUBY_RAILS_ACCEPTED=   52
+
+OVERRIDE_GEMSPEC+=     net-ldap>=0.16.0 nokogiri>=1.10.0 roadie-rails>=2.1.0
+
+.include "../../lang/ruby/modules.mk"
+
+DEPENDS+=      ${RUBY_PKGPREFIX}-bundler>=1.5.0:../../misc/ruby-bundler
+DEPENDS+=      ${RUBY_RAILS_DEPENDS}
+DEPENDS+=      ${RUBY_PKGPREFIX}-rouge>=3.26<3.27:../../www/ruby-rouge
+DEPENDS+=      ${RUBY_PKGPREFIX}-request_store>=1.5.0<1.6:../../www/ruby-request_store
+DEPENDS+=      ${RUBY_PKGPREFIX}-mini_mime>=1.0.1<1.1:../../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}>=2.2.0<2.3:../../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.1.1<3.2:../../textproc/ruby-csv
+DEPENDS+=      ${RUBY_PKGPREFIX}-nokogiri>=1.11.1<1.12:../../textproc/ruby-nokogiri
+DEPENDS+=      ${RUBY_PKGPREFIX}-i18n>=1.8.2<1.9:../../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}-ruby-openid>=2.9.2<2.10:../../security/ruby-ruby-openid
+DEPENDS+=      ${RUBY_PKGPREFIX}-rack-openid>=1.4.2:../../security/ruby-rack-openid
+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
+
+.include "options.mk"
+
+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/redmine42_*${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}-redmine42
+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
+
+.include "../../mk/bsd.prefs.mk"
+
+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}/redmine42_migrate_plugins.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine42_migrate_plugins${RUBY_SUFFIX}.sh
+       ${INSTALL_SCRIPT} ${FILESDIR}/redmine42_generate_secret_token.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine42_generate_secret_token${RUBY_SUFFIX}.sh
+       ${INSTALL_SCRIPT} ${FILESDIR}/redmine42_migrate_db.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine42_migrate_db${RUBY_SUFFIX}.sh
+       ${INSTALL_SCRIPT} ${FILESDIR}/redmine42_load_default_data.sh \
+               ${DESTDIR}${PREFIX}/bin/redmine42_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 9a6230553692 -r 21af0bd9dec2 devel/ruby-redmine42/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine42/PLIST        Wed Jun 02 16:23:48 2021 +0000
@@ -0,0 +1,2196 @@
+@comment $NetBSD: PLIST,v 1.1 2021/06/02 16:23:48 taca Exp $
+bin/redmine42_generate_secret_token${RUBY_SUFFIX}.sh
+bin/redmine42_load_default_data${RUBY_SUFFIX}.sh
+bin/redmine42_migrate_db${RUBY_SUFFIX}.sh
+bin/redmine42_migrate_plugins${RUBY_SUFFIX}.sh
+${RUBY_EG}-redmine42/additional_environment.rb.example
+${RUBY_EG}-redmine42/configuration.yml.example
+${RUBY_EG}-redmine42/database.yml.example
+${PLIST.unicorn}${RUBY_EG}-redmine42/unicorn.rb.example
+share/${RUBY_NAME}-redmine42/CONTRIBUTING.md
+share/${RUBY_NAME}-redmine42/Gemfile
+${PLIST.unicorn}share/${RUBY_NAME}-redmine42/Gemfile.local
+share/${RUBY_NAME}-redmine42/README.rdoc
+share/${RUBY_NAME}-redmine42/Rakefile
+share/${RUBY_NAME}-redmine42/app/controllers/account_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/activities_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/admin_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/application_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/attachments_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/auth_sources_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/auto_completes_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/boards_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/calendars_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/comments_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/context_menus_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/custom_field_enumerations_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/custom_fields_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/documents_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/email_addresses_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/enumerations_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/files_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/gantts_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/groups_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/imports_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/issue_categories_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/issue_relations_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/issue_statuses_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/issues_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/journals_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/mail_handler_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/members_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/messages_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/my_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/news_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/previews_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/principal_memberships_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/project_enumerations_controller.rb
+share/${RUBY_NAME}-redmine42/app/controllers/projects_controller.rb



Home | Main Index | Thread Index | Old Index