ports/144299: [MAINTAINER] www/redmine: rc.d startscript and some fixes
Bernhard Froehlich
decke at bluelife.at
Thu Feb 25 20:40:01 UTC 2010
>Number: 144299
>Category: ports
>Synopsis: [MAINTAINER] www/redmine: rc.d startscript and some fixes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 25 20:40:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Bernhard Froehlich
>Release: FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD chii.bluelife.at 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri Jan 8 09:39:23 CET
>Description:
- Bump PORTREVISION
- Added rc.d startscript for thin as webrick support does not work reliably
- Add missing rubygem-rack dependency for webrick
Added file(s):
- files/redmine.in
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- redmine-0.9.2_1.patch begins here ---
diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/redmine.orig/Makefile /usr/ports/www/redmine/Makefile
--- /usr/ports/www/redmine.orig/Makefile 2010-02-22 22:00:26.000000000 +0100
+++ /usr/ports/www/redmine/Makefile 2010-02-25 21:33:07.000000000 +0100
@@ -7,6 +7,7 @@
PORTNAME= redmine
PORTVERSION= 0.9.2
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -14,11 +15,17 @@
MAINTAINER= decke at bluelife.at
COMMENT= A flexible project management web application
+RUN_DEPENDS= rackup:${PORTSDIR}/www/rubygem-rack \
+ thin:${PORTSDIR}/www/rubygem-thin
+
USE_RUBY= yes
USE_RUBY_FEATURES= iconv
USE_RAKE= yes
NO_BUILD= yes
+USE_RC_SUBR= redmine
+SUB_LIST+= RUBY_NAME=${RUBY_NAME}
+
OPTIONS= MYSQL "Enable MySQL Support" on \
POSTGRESQL "Enable PostgreSQL Support" off
diff -ruN --exclude=CVS --exclude=.svn /usr/ports/www/redmine.orig/files/redmine.in /usr/ports/www/redmine/files/redmine.in
--- /usr/ports/www/redmine.orig/files/redmine.in 1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/www/redmine/files/redmine.in 2010-02-22 21:03:43.000000000 +0100
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# PROVIDE: redmine
+# REQUIRE: DAEMON
+# 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.
+#
+
+. %%RC_SUBR%%
+
+name="redmine"
+rcvar=`set_rcvar`
+command=%%RUBY_NAME%%
+redmine_home="%%WWWDIR%%"
+pidfile="${redmine_home}/tmp/pids/thin.pid"
+
+load_rc_config $name
+
+# set defaults
+: ${redmine_enable="NO"}
+: ${redmine_flags="-a 0.0.0.0 -p 3000 -e production -u www -g www"}
+
+command_args="-d -D -c ${redmine_home} ${redmine_flags}"
+start_cmd="%%PREFIX%%/bin/thin ${command_args} start"
+
+run_rc_command "$1"
+
--- redmine-0.9.2_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list