diff --git a/www/redmine50/Makefile b/www/redmine50/Makefile index 119d7416ae5d..985eff2832e4 100644 --- a/www/redmine50/Makefile +++ b/www/redmine50/Makefile @@ -1,120 +1,121 @@ PORTNAME= redmine PORTVERSION= 5.0.4 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://www.redmine.org/releases/ PKGNAMESUFFIX= 50 MAINTAINER= mikael@FreeBSD.org COMMENT= Flexible project management web application WWW= https://www.redmine.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/doc/COPYING RUN_DEPENDS= rubygem-bundler>=1.12.0:sysutils/rubygem-bundler \ rubygem-globalid-rails61>0:databases/rubygem-globalid-rails61 \ rubygem-rails61>=6.1:www/rubygem-rails61 \ rubygem-rouge>=3.28.0:textproc/rubygem-rouge \ rubygem-request_store>=1.5.0:devel/rubygem-request_store \ rubygem-mini_mime>=1.0.1:mail/rubygem-mini_mime \ rubygem-actionpack-xml_parser-rails61>=0:textproc/rubygem-actionpack-xml_parser-rails61 \ rubygem-roadie-rails-rails61>=3.0.0:mail/rubygem-roadie-rails-rails61 \ rubygem-marcel>0:devel/rubygem-marcel \ rubygem-mail>=2.7.1:mail/rubygem-mail \ rubygem-csv>=3.2.0:devel/rubygem-csv \ rubygem-nokogiri>=1.13.8:textproc/rubygem-nokogiri \ rubygem-i18n>=1.10.0:devel/rubygem-i18n \ rubygem-rbpdf>=1.20.0:print/rubygem-rbpdf \ rubygem-addressable>0:www/rubygem-addressable \ rubygem-rubyzip>0:archivers/rubygem-rubyzip \ rubygem-net-smtp>0:mail/rubygem-net-smtp \ rubygem-net-imap>0:mail/rubygem-net-imap \ rubygem-net-pop>0:mail/rubygem-net-pop \ rubygem-psych>0:textproc/rubygem-psych \ rubygem-net-ldap>=0.17.0:net/rubygem-net-ldap \ rubygem-rotp>=5.0.0:devel/rubygem-rotp \ rubygem-rqrcode>0:www/rubygem-rqrcode \ rubygem-erb>0:devel/rubygem-erb # 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.5.1:textproc/rubygem-redcarpet \ rubygem-html-pipeline>=2.13.2:textproc/rubygem-html-pipeline \ rubygem-commonmarker>=0.23.6:textproc/rubygem-commonmarker \ rubygem-sanitize>=6.0:textproc/rubygem-sanitize \ rubygem-deckar01-task_list>=2.3.1:www/rubygem-deckar01-task_list USES= cpe USE_RUBY= yes CONFLICTS_INSTALL= redmine42 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 MARKDOWN RMAGIC THIN OPTIONS_DEFAULT=MYSQL MARKDOWN RMAGIC THIN OPTIONS_SUB= yes POSTGRESQL_DESC=Enable PostgreSQL support MARKDOWN_DESC= Enable Markdown support RMAGIC_DESC= Enable Gantt charts support THIN_DESC= Use Thin WEB server MYSQL_DESC= MySQL database support (via mysql2 rubygem) NO_OPTIONS_SORT= yes MYSQL_RUN_DEPENDS= rubygem-mysql2>=0.5.0:databases/rubygem-mysql2 POSTGRESQL_RUN_DEPENDS= rubygem-pg>=1.2.2:databases/rubygem-pg MARKDOWN_RUN_DEPENDS= rubygem-redcarpet>=3.5.1:textproc/rubygem-redcarpet RMAGIC_RUN_DEPENDS= rubygem-mini_magick>=4.11.0:graphics/rubygem-mini_magick THIN_RUN_DEPENDS= rubygem-thin>=1.6.2:www/rubygem-thin THIN_SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} THIN_VARS= USE_RC_SUBR=redmine .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 post-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-THIN-on: ${CP} ${FILESDIR}/thin.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/redmine50/files/redmine.in b/www/redmine50/files/redmine.in index 9e3c6d276b3c..00c82fa55d55 100644 --- a/www/redmine50/files/redmine.in +++ b/www/redmine50/files/redmine.in @@ -1,38 +1,39 @@ #!/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_flags (str): Custom additional arguments to be passed # to redmine. # redmine_user (str): User account to run thin with. (default: %%WWWOWN%%) # redmine_group (str): Group to run thin with. (default: %%WWWGRP%%) . /etc/rc.subr name="redmine" rcvar=redmine_enable command=ruby%%RUBY_SUFFIX%% pidfile="%%WWWDIR%%/tmp/pids/thin.pid" +logfile="/var/log/thin.log" load_rc_config $name # add /usr/local/bin to path export PATH=$PATH:%%PREFIX%%/bin # set defaults : ${redmine_enable="NO"} : ${redmine_flags="-a 0.0.0.0 -p 3000 -e production"} : ${redmine_user="%%WWWOWN%%"} : ${redmine_group="%%WWWGRP%%"} -command_args="-d -D -c %%WWWDIR%% -u ${redmine_user} -g ${redmine_group}" +command_args="-d -D -c %%WWWDIR%% -u ${redmine_user} -g ${redmine_group} --log ${logfile}" start_cmd="%%PREFIX%%/bin/thin ${command_args} ${redmine_flags} start" run_rc_command "$1"