[www-apps/redmine] initial commit from mrueg overlay, possibly does not work, lets see what happens...
This commit is contained in:
12
www-apps/redmine/files/10_redmine_vhost.conf
Normal file
12
www-apps/redmine/files/10_redmine_vhost.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
<IfModule passenger_module>
|
||||
Listen 3000
|
||||
<VirtualHost *:3000>
|
||||
DocumentRoot /var/lib/redmine/public
|
||||
# RailsEnv production
|
||||
<Directory "/var/lib/redmine/public">
|
||||
Options FollowSymLinks
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
49
www-apps/redmine/files/redmine-2.initd
Normal file
49
www-apps/redmine/files/redmine-2.initd
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/files/redmine-2.initd,v 1.4 2013/09/02 14:13:44 pva Exp $
|
||||
|
||||
RAILS_ENV=${RAILS_ENV:-production}
|
||||
REDMINE_DIR=${REDMINE_DIR:-/var/lib/redmine}
|
||||
REDMINE_ADDRESS=${REDMINE_ADDRESS:-localhost}
|
||||
REDMINE_PORT=${REDMINE_PORT:-3000}
|
||||
REDMINE_USER=${REDMINE_USER:-redmine}
|
||||
REDMINE_GROUP=${REDMINE_GROUP:-redmine}
|
||||
REDMINE_PIDFILE="/var/run/redmine/server.pid"
|
||||
|
||||
depend() {
|
||||
use apache2 git-daemon mysql net postgresql svnserve
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
if [ ! -e "${REDMINE_DIR}/config/initializers/secret_token.rb" ] ; then
|
||||
eerror "Execute the following command to initlize environment:"
|
||||
eerror
|
||||
eerror "# emerge --config www-apps/redmine"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
if [ ! -d /var/run/redmine ]; then
|
||||
checkpath -q -d -m 0755 -o redmine:redmine /var/run/redmine
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting redmine"
|
||||
cd "${REDMINE_DIR}"
|
||||
start-stop-daemon --start --quiet --user ${REDMINE_USER}:${REDMINE_GROUP} \
|
||||
--pidfile "${REDMINE_PIDFILE}" \
|
||||
--exec /usr/bin/ruby "${REDMINE_DIR}"/script/rails server -- \
|
||||
--daemon --environment=${RAILS_ENV} \
|
||||
--binding=${REDMINE_ADDRESS} --port=${REDMINE_PORT} \
|
||||
--pid="${REDMINE_PIDFILE}" \
|
||||
${REDMINE_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping redmine"
|
||||
cd "${REDMINE_DIR}"
|
||||
start-stop-daemon --signal INT --quiet --pidfile "${REDMINE_PIDFILE}"
|
||||
eend $?
|
||||
}
|
||||
13
www-apps/redmine/files/redmine.confd
Normal file
13
www-apps/redmine/files/redmine.confd
Normal file
@@ -0,0 +1,13 @@
|
||||
# /etc/conf.d/redmine: config file for /etc/init.d/redmine
|
||||
# Bind to specified address
|
||||
# You can set to 0.0.0.0 to accept requests anywhere
|
||||
#REDMINE_ADDRESS="localhost"
|
||||
|
||||
# Port
|
||||
#REDMINE_PORT=3000
|
||||
|
||||
# RAILS_ENV
|
||||
#RAILS_ENV=production
|
||||
|
||||
# additional opts
|
||||
#REDMINE_OPTS=""
|
||||
Reference in New Issue
Block a user