aboutsummaryrefslogtreecommitdiff
path: root/www/redmine
diff options
context:
space:
mode:
authorBernhard Froehlich <decke@FreeBSD.org>2011-03-08 20:53:04 +0000
committerBernhard Froehlich <decke@FreeBSD.org>2011-03-08 20:53:04 +0000
commit0a7231e46d4bc4e676bb085be5ab28166438a55f (patch)
tree3c94d0cd4b3e86a0d67c8daba7145afd4c02236b /www/redmine
parent448fecdb9927eb0162e0b065ffbc83c1e734d737 (diff)
downloadports-0a7231e46d4bc4e676bb085be5ab28166438a55f.tar.gz
ports-0a7231e46d4bc4e676bb085be5ab28166438a55f.zip
Notes
Diffstat (limited to 'www/redmine')
-rw-r--r--www/redmine/Makefile4
-rw-r--r--www/redmine/files/redmine.in6
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"