From nobody Mon Feb 03 08:18:49 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YmfXV5bRJz5mb4G; Mon, 03 Feb 2025 08:18:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YmfXV0QgBz3C51; Mon, 03 Feb 2025 08:18:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738570730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZCGPdnaabBuEVOE21llfjw4IbJ8gjrsj4ATXGJirYoE=; b=F8umqup+d+qHlGFUFh+Un2o3dMS2Vy06DX9EVtrNtdSDyQcaq1YvoOAxWi2O8Z8dF9CZxO xDQc/AUbJGNijrLTVym9rOwIcinZPrvqYHaQT83ZA53HVKwlwhjgRxjFqy6kWg0ZpwtuAY pxisvLGjP7PN0QHUZo2C+ccLx1eDKWQIbeP0up9A+iKxiRv02ici9lyNKL//2+l5c3fwNM Bwx4ehu+Y927Sf1G7Q32hQJjAO4vT+MklslHnp0cX7KHN9y51xRt5qLmD70jnKj/WVLH5S FSk6tm4Ic0aTHB/gvEMttG9wtbfq1/y7+3a0dzJWso3UH6VOHIzz8q49w7PE4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738570730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZCGPdnaabBuEVOE21llfjw4IbJ8gjrsj4ATXGJirYoE=; b=qChQy/3+38JVrdUy76Q4N4A0pU026zr0MyFRehMYOWAlu7YqMMUQJNhCNmkyJlhJbJgccL 4xcryMprU+DKwGn45GpNqmUsN8OkjO/sEI6nIxgqFHzftKcjqe4sjIMMat/xHConemi0Bj RhXn9p5FGqdFoQci2++p1479XiGelLIHbjzwCTiRbW44aOE0N/gtbw8dCVvYe4q5YlEXr3 HY3KNNsZG9ntvzF2rdLlzwxtEoE15mrasOxDxqWQYNNvPE2i8oRNB8r+kZym5BvD/AXVw2 mbvM5qkJM4y3WHwOXZQ+flpEN2He9soeangCVkatY5ZFwq8WlFDezRxpTAAAWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738570730; a=rsa-sha256; cv=none; b=qoiDRNyTxZoWENlCZEaEXJht/YlD+Bcd54dgO2ZFF1QPPBMjMYd48VEgdc+n9ynnN9kwZJ F0yPMM8rv9DKCe62fjGxg09RZi5iJWPJyLvjOQRMRkdtW8vaz6zWet6w3ySVKigRNp24/5 IdDkuB3OsKYmcU7CqIPAG00lf3ffjc+gM+eM4kD/Eva7ZWw6RRlMcf/KWlqwyNqkD4U88M em3hcsCjEiVZtKmipjMpFO/keYTsNcftC14zhXs36k3XkJdeHb+roRwYR4QHIbhpitX7U/ 8Ehj6kwPFiMh2OQC7cHUd1Gx5SCtQOsS5lo+KrIFir2/mRRonQ7mcXaV1LFStw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YmfXT6ztszC36; Mon, 03 Feb 2025 08:18:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5138InE6033708; Mon, 3 Feb 2025 08:18:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5138InYd033705; Mon, 3 Feb 2025 08:18:49 GMT (envelope-from git) Date: Mon, 3 Feb 2025 08:18:49 GMT Message-Id: <202502030818.5138InYd033705@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Xin LI Subject: git: 89d518a58373 - main - www/redmine60: Add new port. List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 89d518a58373d9cadb0ce456d62c9bbae2f762b4 Auto-Submitted: auto-generated The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/ports/commit/?id=89d518a58373d9cadb0ce456d62c9bbae2f762b4 commit 89d518a58373d9cadb0ce456d62c9bbae2f762b4 Author: Xin LI AuthorDate: 2025-02-03 06:40:22 +0000 Commit: Xin LI CommitDate: 2025-02-03 08:18:41 +0000 www/redmine60: Add new port. --- www/Makefile | 1 + www/redmine60/Makefile | 128 +++ www/redmine60/bsd.redmine.mk | 78 ++ www/redmine60/distinfo | 3 + www/redmine60/files/commonmark.rb | 2 + www/redmine60/files/markdown.rb | 1 + www/redmine60/files/mini_magick.rb | 1 + www/redmine60/files/mysql.rb | 2 + www/redmine60/files/patch-Gemfile | 73 ++ www/redmine60/files/pg.rb | 1 + www/redmine60/files/puma.rb | 2 + www/redmine60/files/redmine.in | 38 + www/redmine60/pkg-descr | 21 + www/redmine60/pkg-message | 23 + www/redmine60/pkg-plist | 2219 ++++++++++++++++++++++++++++++++++++ 15 files changed, 2593 insertions(+) diff --git a/www/Makefile b/www/Makefile index 9c45f1ae3365..64a90ffce017 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1950,6 +1950,7 @@ SUBDIR += reddsaver SUBDIR += redmine50 SUBDIR += redmine51 + SUBDIR += redmine60 SUBDIR += rejik SUBDIR += remark42 SUBDIR += reportmagic diff --git a/www/redmine60/Makefile b/www/redmine60/Makefile new file mode 100644 index 000000000000..75f0d28ac9cf --- /dev/null +++ b/www/redmine60/Makefile @@ -0,0 +1,128 @@ +PORTNAME= redmine +PORTVERSION= 6.0.3 +CATEGORIES= www +MASTER_SITES= https://www.redmine.org/releases/ +PKGNAMESUFFIX= 60 + +# mikael@FreeBSD.org also have full maintainership +MAINTAINER= delphij@FreeBSD.org +COMMENT= Flexible project management web application +WWW= https://www.redmine.org/ + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/doc/COPYING + +RUN_DEPENDS= rubygem-actionpack-xml_parser-rails72>=0:textproc/rubygem-actionpack-xml_parser-rails72 \ + rubygem-addressable>0:www/rubygem-addressable \ + rubygem-bundler>=1.12.0:sysutils/rubygem-bundler \ + rubygem-csv>=3.2.6:devel/rubygem-csv \ + rubygem-debug>=0:devel/rubygem-debug \ + rubygem-erb>0:devel/rubygem-erb \ + rubygem-globalid-rails72>0:databases/rubygem-globalid-rails72 \ + rubygem-i18n>=1.14.1:devel/rubygem-i18n \ + rubygem-mail>=2.8.1:mail/rubygem-mail \ + rubygem-marcel>0:devel/rubygem-marcel \ + rubygem-mini_mime>=1.1.0:mail/rubygem-mini_mime \ + rubygem-mini_portile2>=2.8.2:devel/rubygem-mini_portile2 \ + rubygem-mocha>=0.5.3:devel/rubygem-mocha \ + rubygem-net-imap>=0.3.4:mail/rubygem-net-imap \ + rubygem-net-ldap>=0.19.0:net/rubygem-net-ldap \ + rubygem-net-pop>=0.1.2:mail/rubygem-net-pop \ + rubygem-net-smtp>=0.3.3:mail/rubygem-net-smtp \ + rubygem-nokogiri>=1.15.2:textproc/rubygem-nokogiri \ + rubygem-rails72>=7.2.2:www/rubygem-rails72 \ + rubygem-rbpdf>=1.21.3:print/rubygem-rbpdf \ + rubygem-request_store15>=1.5.1:devel/rubygem-request_store15 \ + rubygem-roadie-rails-rails72>=3.2.0:mail/rubygem-roadie-rails-rails72 \ + rubygem-rotp>=5.0.0:devel/rubygem-rotp \ + rubygem-rouge>=4.2.0:textproc/rubygem-rouge \ + rubygem-rqrcode>0:www/rubygem-rqrcode \ + rubygem-rubocop-performance>=0:devel/rubygem-rubocop-performance \ + rubygem-rubocop-rails>0:devel/rubygem-rubocop-rails \ + rubygem-rubocop>0<2:devel/rubygem-rubocop \ + rubygem-rubyzip>0:archivers/rubygem-rubyzip \ + rubygem-simplecov>0:devel/rubygem-simplecov \ + rubygem-svg_sprite>=0:graphics/rubygem-svg_sprite \ + rubygem-yard>=0:textproc/rubygem-yard + +# Per https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264638#c9 +# to be removed if https://www.redmine.org/issues/37394 is fixed +RUN_DEPENDS+= rubygem-redcarpet>=3.6.0:textproc/rubygem-redcarpet \ + rubygem-html-pipeline>=2.13.2:textproc/rubygem-html-pipeline \ + rubygem-commonmarker0>=0.23.8:textproc/rubygem-commonmarker0 \ + rubygem-sanitize>=6.0:textproc/rubygem-sanitize \ + rubygem-deckar01-task_list>=2.3.2:www/rubygem-deckar01-task_list + +USES= cpe ruby + +NO_ARCH= yes +NO_BUILD= yes + +USERS= ${WWWOWN} +GROUPS= ${WWWGRP} +PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} +SUB_LIST= RUBY_SUFFIX=${RUBY_SUFFIX} + +OPTIONS_DEFINE= MYSQL POSTGRESQL PUMA MARKDOWN RMAGIC +OPTIONS_DEFAULT=MYSQL MARKDOWN PUMA RMAGIC +OPTIONS_SUB= yes +POSTGRESQL_DESC=Enable PostgreSQL support +MARKDOWN_DESC= Enable Markdown support +PUMA_DESC= Use Puma WEB server +RMAGIC_DESC= Enable Gantt charts support +MYSQL_DESC= MySQL database support (via mysql2 rubygem) +NO_OPTIONS_SORT= yes +MYSQL_RUN_DEPENDS= rubygem-mysql2>=0.5.0:databases/rubygem-mysql2 \ + rubygem-with_advisory_lock61>0:devel/rubygem-with_advisory_lock61 +POSTGRESQL_RUN_DEPENDS= rubygem-pg>=1.2.2:databases/rubygem-pg +PUMA_RUN_DEPENDS= rubygem-puma>=6.5.0<7:www/rubygem-puma \ + rubygem-rb-kqueue>=0.2:devel/rubygem-rb-kqueue +PUMA_SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} +PUMA_VARS= USE_RC_SUBR=redmine +MARKDOWN_RUN_DEPENDS= rubygem-redcarpet>=3.5.1:textproc/rubygem-redcarpet +RMAGIC_RUN_DEPENDS= rubygem-mini_magick4>=4.11.0:graphics/rubygem-mini_magick4 + +.include + +post-extract: + @${RM} -r ${WRKSRC}/.hgignore ${WRKSRC}/.gitignore ${WRKSRC}/.github \ + ${WRKSRC}/files/delete.me ${WRKSRC}/log/delete.me + @${MV} ${WRKSRC}/config/settings.yml ${WRKSRC}/config/settings.yml.sample + @${MV} ${WRKSRC}/config/database.yml.example ${WRKSRC}/config/database.yml.sample + +Xpost-patch: + @${RM} ${WRKSRC}/Gemfile.orig + +do-install: + ${MKDIR} ${STAGEDIR}${WWWDIR} + ${MKDIR} ${STAGEDIR}${WWWDIR}/bundler.d + ${MKDIR} ${STAGEDIR}${WWWDIR}/log + ${MKDIR} ${STAGEDIR}${WWWDIR}/public/plugin_assets + ${MKDIR} ${STAGEDIR}${WWWDIR}/tmp + + # https://www.redmine.org/issues/37394 + ${CP} ${FILESDIR}/commonmark.rb ${STAGEDIR}${WWWDIR}/bundler.d + cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} + ${TOUCH} ${STAGEDIR}${WWWDIR}/Gemfile.lock + +do-install-MYSQL-on: + ${CP} ${FILESDIR}/mysql.rb ${STAGEDIR}${WWWDIR}/bundler.d + +do-install-POSTGRESQL-on: + ${CP} ${FILESDIR}/pg.rb ${STAGEDIR}${WWWDIR}/bundler.d + +do-install-MARKDOWN-on: + ${CP} ${FILESDIR}/markdown.rb ${STAGEDIR}${WWWDIR}/bundler.d + +do-install-RMAGIC-on: + ${CP} ${FILESDIR}/mini_magick.rb ${STAGEDIR}${WWWDIR}/bundler.d + +do-install-PUMA-on: + ${CP} ${FILESDIR}/puma.rb ${STAGEDIR}${WWWDIR}/bundler.d + +post-install: + (cd ${STAGEDIR}${WWWDIR} && ${RM} Gemfile.lock && bundle install --local) + ${RM} ${STAGEDIR}${WWWDIR}/package.json \ + ${STAGEDIR}${WWWDIR}/yarn.lock + +.include diff --git a/www/redmine60/bsd.redmine.mk b/www/redmine60/bsd.redmine.mk new file mode 100644 index 000000000000..8259c5ab06f9 --- /dev/null +++ b/www/redmine60/bsd.redmine.mk @@ -0,0 +1,78 @@ +# Module that simplifies installation of Redmine plugins. +# +# Date created: 2010-09-12 +# Whom: Eygene Ryabinkin +# +# We're assuming standard plugin installation sequence that is described +# in the https://www.redmine.org/projects/redmine/wiki/Plugins +# +# Basically, we need the following variables to be defined: +# - REDMINE_PLUGIN_NAME: the name of the plugin; +# - WWWDIR: the location of the Redmine installation; +# the default value is ${PREFIX}/www/redmine; +# the directory must lie under ${PREFIX} or such configuration +# will be IGNORE'd; +# - WRKSRC must be set to the root directory of the plugin contents: +# we will copy all objects in this directory to the plugin's +# destination directory, excluding all files named *.orig. +# +# PLIST will be generated automatically, there is no need to worry +# about it. But if you will need to use your own (even the standard +# packaging list in ${PORTDIR}/pkg-plist), set the variable PLIST +# pointing to that file. +# +# You can override the target 'do-build', but in this case, you should +# remember that the target named 'redmine-plugin-plist' does the +# automated generation of the PLIST: use it if you need. +# +# +# Here is an example of a simple Makefile for Redmine plugin: +# {{{ +# PORTNAME= me-the-plugin +# PORTVERSION= 1.0 +# CATEGORIES= www +# MASTER_SITES= http://cool.org.name/some/path/ +# +# MAINTAINER= you@your.org +# COMMENT= Another cool plugin for Redmine +# +# REDMINE_PLUGIN_NAME= redmine_http_auth +# +# .include "${.CURDIR}/../../www/redmine/bsd.redmine.mk" +# }}} + +PKGNAMEPREFIX?= redmine51- + +RUN_DEPENDS+= redmine51>0:www/redmine51 + +USE_RUBY= yes +.if !defined(PLIST) +PLIST= ${WRKDIR}/PLIST +_GEN_PLIST= YesPlease +.endif + +WWWDIR?= ${PREFIX}/www/redmine +WWWDIR_REL= ${WWWDIR:S|^${PREFIX}/||} + +.if ${WWWDIR_REL} == ${WWWDIR} +IGNORE= WWWDIR is not a child of PREFIX (${PREFIX}) +.endif + +.if !defined(do-build) +do-build: redmine-plugin-plist + @${DO_NADA} +.endif + +redmine-plugin-plist: +.if defined(_GEN_PLIST) + cd ${WRKSRC} && ${FIND} . -type f | ${GREP} -v '\.orig$$' | ${SED} -e's|^\.|${WWWDIR_REL}/plugins/${REDMINE_PLUGIN_NAME}|' >> ${PLIST} + cd ${WRKSRC} && ${FIND} -d . -empty -type d | ${SED} -e's|^\.|@dir ${WWWDIR_REL}/plugins/${REDMINE_PLUGIN_NAME}|' >> ${PLIST} +.else + @${DO_NADA} +.endif + +do-install: + ${MKDIR} "${STAGEDIR}${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}" + ${TAR} -C "${WRKSRC}" -cf - --exclude '*.orig' . | ${TAR} -C "${STAGEDIR}${WWWDIR}/plugins/${REDMINE_PLUGIN_NAME}" -xf - + +.include diff --git a/www/redmine60/distinfo b/www/redmine60/distinfo new file mode 100644 index 000000000000..b395efd8e7f9 --- /dev/null +++ b/www/redmine60/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1738535177 +SHA256 (redmine-6.0.3.tar.gz) = 48a139e9416f97922ab48231912fed8aa4c48d4a96b8f507124b11e4335218d6 +SIZE (redmine-6.0.3.tar.gz) = 4057070 diff --git a/www/redmine60/files/commonmark.rb b/www/redmine60/files/commonmark.rb new file mode 100644 index 000000000000..45c9b6df5d0a --- /dev/null +++ b/www/redmine60/files/commonmark.rb @@ -0,0 +1,2 @@ +gem "commonmarker", ">= 0.23.8" +gem "deckar01-task_list", ">=2.3.2" diff --git a/www/redmine60/files/markdown.rb b/www/redmine60/files/markdown.rb new file mode 100644 index 000000000000..2e9cf42a29d6 --- /dev/null +++ b/www/redmine60/files/markdown.rb @@ -0,0 +1 @@ +gem "redcarpet", '~> 3.6.0' diff --git a/www/redmine60/files/mini_magick.rb b/www/redmine60/files/mini_magick.rb new file mode 100644 index 000000000000..5e3d7b1cacd6 --- /dev/null +++ b/www/redmine60/files/mini_magick.rb @@ -0,0 +1 @@ +gem "mini_magick", ">= 4.12.0" diff --git a/www/redmine60/files/mysql.rb b/www/redmine60/files/mysql.rb new file mode 100644 index 000000000000..9d2627e1d84d --- /dev/null +++ b/www/redmine60/files/mysql.rb @@ -0,0 +1,2 @@ +gem "mysql2", "~> 0.5.0" +gem "with_advisory_lock" diff --git a/www/redmine60/files/patch-Gemfile b/www/redmine60/files/patch-Gemfile new file mode 100644 index 000000000000..526f3806153f --- /dev/null +++ b/www/redmine60/files/patch-Gemfile @@ -0,0 +1,73 @@ +--- Gemfile.orig 2025-01-29 07:55:01 UTC ++++ Gemfile +@@ -6,22 +6,22 @@ gem "actionpack-xml_parser" + gem 'rouge', '~> 4.5' + gem 'mini_mime', '~> 1.1.0' + gem "actionpack-xml_parser" +-gem 'roadie-rails', '~> 3.2.0' ++gem 'roadie-rails', '>= 3.2.0' + gem 'marcel' + gem 'mail', '~> 2.8.1' +-gem 'nokogiri', '~> 1.16.0' ++gem 'nokogiri', '>= 1.16' + gem 'i18n', '~> 1.14.1' + gem 'rbpdf', '~> 1.21.3' + gem 'addressable' + gem 'rubyzip', '~> 2.3.0' + gem 'propshaft', '~> 1.1.0' +-gem 'rack', '>= 3.1.3' ++gem 'rack', '>= 3.0.0' + + # Ruby Standard Gems +-gem 'csv', '~> 3.2.8' +-gem 'net-imap', '~> 0.4.8' ++gem 'csv', '>= 3.3.0' ++gem 'net-imap', '~> 0.5.0' + gem 'net-pop', '~> 0.1.2' +-gem 'net-smtp', '~> 0.4.0' ++gem 'net-smtp', '~> 0.5.0' + + # Windows does not include zoneinfo files, so bundle the tzinfo-data gem + gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin] +@@ -31,23 +31,23 @@ gem 'rqrcode' + gem 'rqrcode' + + # HTML pipeline and sanitization +-gem "html-pipeline", "~> 2.13.2" +-gem "sanitize", "~> 6.0" ++gem "html-pipeline", "~> 2.14.0" ++gem "sanitize", ">= 6.0" + + # Optional gem for LDAP authentication + group :ldap do +- gem 'net-ldap', '~> 0.17.0' ++ gem 'net-ldap', '~> 0.19.0' + end + + # Optional gem for exporting the gantt to a PNG file + group :minimagick do +- gem 'mini_magick', '~> 5.0.1' ++ gem 'mini_magick', '~> 4.13.0' + 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.4' + end + + # Include database gems for the adapters found in the database +@@ -110,9 +110,9 @@ group :test do + gem "capybara", ">= 3.39" + gem 'selenium-webdriver', '>= 4.11.0' + # RuboCop +- gem 'rubocop', '~> 1.68.0', require: false +- gem 'rubocop-performance', '~> 1.22.0', require: false +- gem 'rubocop-rails', '~> 2.27.0', require: false ++ gem 'rubocop', '>= 1.68.0', require: false ++ gem 'rubocop-performance', '>= 1.23.0', require: false ++ gem 'rubocop-rails', '>= 2.27.0', require: false + end + + local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local") diff --git a/www/redmine60/files/pg.rb b/www/redmine60/files/pg.rb new file mode 100644 index 000000000000..9764e55e7ad6 --- /dev/null +++ b/www/redmine60/files/pg.rb @@ -0,0 +1 @@ +gem "pg", "> 1.5.3" diff --git a/www/redmine60/files/puma.rb b/www/redmine60/files/puma.rb new file mode 100644 index 000000000000..c6790e682735 --- /dev/null +++ b/www/redmine60/files/puma.rb @@ -0,0 +1,2 @@ +gem "puma", ">= 6.0" +gem "rb-kqueue", ">= 0.2" diff --git a/www/redmine60/files/redmine.in b/www/redmine60/files/redmine.in new file mode 100644 index 000000000000..9c9ed9636db7 --- /dev/null +++ b/www/redmine60/files/redmine.in @@ -0,0 +1,38 @@ +#!/bin/sh + +# PROVIDE: redmine +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf[.local] to enable redmine +# +# redmine_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable redmine. +# redmine_args (str): Custom additional arguments to be passed +# to redmine. +# redmine_user (str): User account to run puma with. (default: %%WWWOWN%%) +# redmine_group (str): Group to run puma with. (default: %%WWWGRP%%) + +. /etc/rc.subr + +name="redmine" +rcvar=redmine_enable + +pidfile="%%WWWDIR%%/tmp/pids/puma.pid" + +load_rc_config $name + +# add /usr/local/bin to path +export PATH=$PATH:%%PREFIX%%/bin + +# set defaults +: ${redmine_args="--bind tcp://0.0.0.0:3000 -e production"} +: ${redmine_enable="NO"} +: ${redmine_user="%%WWWOWN%%"} +: ${redmine_group="%%WWWGRP%%"} + +command=/usr/sbin/daemon +command_args="-c -f -P ${pidfile} -S \ + %%PREFIX%%/bin/puma --dir %%WWWDIR%% --no-config ${redmine_args}" + +run_rc_command "$1" diff --git a/www/redmine60/pkg-descr b/www/redmine60/pkg-descr new file mode 100644 index 000000000000..05b0f6fb97a9 --- /dev/null +++ b/www/redmine60/pkg-descr @@ -0,0 +1,21 @@ +Redmine is a flexible project management web application +written using Ruby on Rails framework, it is cross-platform +and cross-database. + +Feature Overview: +* 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 --git a/www/redmine60/pkg-message b/www/redmine60/pkg-message new file mode 100644 index 000000000000..c3cc5bf40b02 --- /dev/null +++ b/www/redmine60/pkg-message @@ -0,0 +1,23 @@ +[ +{ type: install + message: <