diff options
-rw-r--r-- | www/redmine/Makefile | 4 | ||||
-rw-r--r-- | www/redmine/files/redmine.in | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/www/redmine/Makefile b/www/redmine/Makefile index 09283d88c805..21e9068fdb26 100644 --- a/www/redmine/Makefile +++ b/www/redmine/Makefile @@ -7,6 +7,7 @@ PORTNAME= redmine PORTVERSION= 1.1.2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_RUBYFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -44,8 +45,11 @@ RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/RMagick2.so:${PORTSDIR}/graphics/ruby-rmagi .endif .if defined(WITH_THIN) +USERS= ${WWWOWN} +GROUPS= ${WWWGRP} RUN_DEPENDS+= thin:${PORTSDIR}/www/rubygem-thin USE_RC_SUBR= redmine +SUB_LIST+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} .endif .if defined(WITH_PASSENGER) diff --git a/www/redmine/files/redmine.in b/www/redmine/files/redmine.in index 630c708de830..8f4da36647f9 100644 --- a/www/redmine/files/redmine.in +++ b/www/redmine/files/redmine.in @@ -12,6 +12,8 @@ # 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 @@ -26,8 +28,10 @@ load_rc_config $name # 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 www -g www" +command_args="-d -D -c %%WWWDIR%% -u ${redmine_user} -g ${redmine_group}" start_cmd="%%PREFIX%%/bin/thin ${command_args} ${redmine_flags} start" run_rc_command "$1" |