pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ruby-redmine41 devel/ruby-redmine41: add version...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0fd4243f9b9c
branches: trunk
changeset: 447910:0fd4243f9b9c
user: taca <taca%pkgsrc.org@localhost>
date: Sun Feb 28 16:50:02 2021 +0000
description:
devel/ruby-redmine41: add version 4.1.1
Add ruby-redmine41 (Redmine) package version 4.1.1 based
on wip/ruby-redmine.
Redmine 4.1.1 (2020-04-06)
* Security: these 2 releases include several security fixes, including
a fix for a persistent XSS vulnerability in Textile formatting, so
upgrading as soon as possible is recommanded.
Redmine 4.1.0 (2019-12-20)
Main improvements:
* New permissions
* Issue list improvements
* Issue history tabs
* Allow pasting screenshots from clipboard
* Query system for Projects page
* Bookmarks and recently used projects in the project jump box
* Custom fields visibility
* CSV Import for Time Entries
diffstat:
devel/ruby-redmine41/DEINSTALL | 12 +
devel/ruby-redmine41/DESCR | 22 +
devel/ruby-redmine41/INSTALL | 15 +
devel/ruby-redmine41/MESSAGE | 70 +
devel/ruby-redmine41/Makefile | 105 +
devel/ruby-redmine41/PLIST | 2159 ++++++++++
devel/ruby-redmine41/distinfo | 8 +
devel/ruby-redmine41/files/Gemfile.local | 1 +
devel/ruby-redmine41/files/redmine41_generate_secret_token.sh | 5 +
devel/ruby-redmine41/files/redmine41_load_default_data.sh | 5 +
devel/ruby-redmine41/files/redmine41_migrate_db.sh | 5 +
devel/ruby-redmine41/files/redmine41_migrate_plugins.sh | 12 +
devel/ruby-redmine41/files/redmine41_unicorn.sh | 31 +
devel/ruby-redmine41/files/unicorn.rb | 8 +
devel/ruby-redmine41/options.mk | 59 +
devel/ruby-redmine41/patches/patch-Gemfile | 90 +
devel/ruby-redmine41/patches/patch-lib_tasks_initializers.rake | 15 +
17 files changed, 2622 insertions(+), 0 deletions(-)
diffs (truncated from 2690 to 300 lines):
diff -r 4ec48d66597f -r 0fd4243f9b9c devel/ruby-redmine41/DEINSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine41/DEINSTALL Sun Feb 28 16:50:02 2021 +0000
@@ -0,0 +1,12 @@
+#!@SH@
+#
+# $NetBSD: DEINSTALL,v 1.1 2021/02/28 16:50:02 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 4ec48d66597f -r 0fd4243f9b9c devel/ruby-redmine41/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine41/DESCR Sun Feb 28 16:50:02 2021 +0000
@@ -0,0 +1,22 @@
+Redmine is a flexible project management web application. Written using the Ruby
+on Rails framework, it is cross-platform and cross-database.
+
+Redmine is open source and released under the terms of the GNU General Public
+License v2 (GPL). Some of the main features of Redmine are:
+
+ Multiple projects support
+ Flexible role based access control
+ Flexible issue tracking system
+ Gantt chart and calendar
+ News, documents & files management
+ Feeds & email notifications
+ Per project wiki
+ Per project forums
+ Time tracking
+ Custom fields for issues, time-entries, projects and users
+ SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs)
+ Issue creation via email
+ Multiple LDAP authentication support
+ User self-registration support
+ Multilanguage support
+ Multiple databases support
diff -r 4ec48d66597f -r 0fd4243f9b9c devel/ruby-redmine41/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine41/INSTALL Sun Feb 28 16:50:02 2021 +0000
@@ -0,0 +1,15 @@
+#!@SH@
+#
+# $NetBSD: INSTALL,v 1.1 2021/02/28 16:50:02 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 4ec48d66597f -r 0fd4243f9b9c devel/ruby-redmine41/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine41/MESSAGE Sun Feb 28 16:50:02 2021 +0000
@@ -0,0 +1,70 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2021/02/28 16:50:02 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[5|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
+
+ # redmine41_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:
+
+ # redmine41_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}/redmine41_unicorn${RUBY_SUFFIX} start
+
+9. Start nginx.
+
+ # ${RCD_SCRIPTS_DIR}/nginx start
+
+10. Access Redmine with username: admin and password: admin.
+===========================================================================
diff -r 4ec48d66597f -r 0fd4243f9b9c devel/ruby-redmine41/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine41/Makefile Sun Feb 28 16:50:02 2021 +0000
@@ -0,0 +1,105 @@
+# $NetBSD: Makefile,v 1.1 2021/02/28 16:50:02 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.1.1
+
+NO_BUILD= yes
+
+RUBY_VERSIONS_ACCEPTED= 25 26
+
+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.12:../../www/ruby-rouge
+DEPENDS+= ${RUBY_PKGPREFIX}-request_store>=1.4.1:../../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.1.0:../../mail/ruby-roadie-rails
+DEPENDS+= ${RUBY_PKGPREFIX}-mimemagic-[0-9]*:../../misc/ruby-mimemagic
+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.10.0:../../textproc/ruby-nokogiri
+DEPENDS+= ${RUBY_PKGPREFIX}-i18n>=1.6.0:../../devel/ruby-i18n
+DEPENDS+= ${RUBY_PKGPREFIX}-rbpdf>=1.20.0<1.21:../../print/ruby-rbpdf
+#DEPENDS+= ${RUBY_PKGPREFIX}-tzinfo-data>=1:../../time/ruby-tzinfo-data
+DEPENDS+= ${RUBY_PKGPREFIX}-net-ldap>=0.16.0:../../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.9.5:../../graphics/ruby-mini-magick
+DEPENDS+= ${RUBY_PKGPREFIX}-redcarpet>=3.5.0<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/redmine41_*${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}-redmine41
+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}/redmine41_migrate_plugins.sh \
+ ${DESTDIR}${PREFIX}/bin/redmine41_migrate_plugins${RUBY_SUFFIX}.sh
+ ${INSTALL_SCRIPT} ${FILESDIR}/redmine41_generate_secret_token.sh \
+ ${DESTDIR}${PREFIX}/bin/redmine41_generate_secret_token${RUBY_SUFFIX}.sh
+ ${INSTALL_SCRIPT} ${FILESDIR}/redmine41_migrate_db.sh \
+ ${DESTDIR}${PREFIX}/bin/redmine41_migrate_db${RUBY_SUFFIX}.sh
+ ${INSTALL_SCRIPT} ${FILESDIR}/redmine41_load_default_data.sh \
+ ${DESTDIR}${PREFIX}/bin/redmine41_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 4ec48d66597f -r 0fd4243f9b9c devel/ruby-redmine41/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-redmine41/PLIST Sun Feb 28 16:50:02 2021 +0000
@@ -0,0 +1,2159 @@
+@comment $NetBSD: PLIST,v 1.1 2021/02/28 16:50:02 taca Exp $
+bin/redmine41_generate_secret_token${RUBY_SUFFIX}.sh
+bin/redmine41_load_default_data${RUBY_SUFFIX}.sh
+bin/redmine41_migrate_db${RUBY_SUFFIX}.sh
+bin/redmine41_migrate_plugins${RUBY_SUFFIX}.sh
+${RUBY_EG}-redmine41/additional_environment.rb.example
+${RUBY_EG}-redmine41/configuration.yml.example
+${RUBY_EG}-redmine41/database.yml.example
+${PLIST.unicorn}${RUBY_EG}-redmine41/unicorn.rb.example
+share/${RUBY_NAME}-redmine41/CONTRIBUTING.md
+share/${RUBY_NAME}-redmine41/Gemfile
+${PLIST.unicorn}share/${RUBY_NAME}-redmine41/Gemfile.local
+share/${RUBY_NAME}-redmine41/README.rdoc
+share/${RUBY_NAME}-redmine41/Rakefile
+share/${RUBY_NAME}-redmine41/app/controllers/account_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/activities_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/admin_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/application_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/attachments_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/auth_sources_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/auto_completes_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/boards_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/calendars_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/comments_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/context_menus_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/custom_field_enumerations_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/custom_fields_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/documents_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/email_addresses_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/enumerations_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/files_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/gantts_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/groups_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/imports_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/issue_categories_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/issue_relations_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/issue_statuses_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/issues_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/journals_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/mail_handler_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/members_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/messages_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/my_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/news_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/previews_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/principal_memberships_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/project_enumerations_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/projects_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/queries_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/reports_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/repositories_controller.rb
+share/${RUBY_NAME}-redmine41/app/controllers/roles_controller.rb
Home |
Main Index |
Thread Index |
Old Index