Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/redmine/files: 10_redmine_vhost.conf redmine.initd redmine.confd
Date: Wed, 10 Feb 2010 16:40:45
Message-Id: E1NfFcJ-0000aG-IR@stork.gentoo.org
1 matsuu 10/02/10 16:40:43
2
3 Added: 10_redmine_vhost.conf redmine.initd redmine.confd
4 Log:
5 Initial import, bug #260575.
6 (Portage version: 2.1.7.17/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 www-apps/redmine/files/10_redmine_vhost.conf
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/redmine/files/10_redmine_vhost.conf?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/redmine/files/10_redmine_vhost.conf?rev=1.1&content-type=text/plain
13
14 Index: 10_redmine_vhost.conf
15 ===================================================================
16 <IfModule passenger_module>
17 Listen 3000
18 <VirtualHost *:3000>
19 DocumentRoot /var/lib/redmine/public
20 # RailsEnv production
21 <Directory "/var/lib/redmine/public">
22 Options FollowSymLinks
23 Order allow,deny
24 Allow from all
25 </Directory>
26 </VirtualHost>
27 </IfModule>
28
29
30
31 1.1 www-apps/redmine/files/redmine.initd
32
33 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/redmine/files/redmine.initd?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/redmine/files/redmine.initd?rev=1.1&content-type=text/plain
35
36 Index: redmine.initd
37 ===================================================================
38 #!/sbin/runscript
39 # Copyright 1999-2009 Gentoo Foundation
40 # Distributed under the terms of the GNU General Public License v2
41 # $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/files/redmine.initd,v 1.1 2010/02/10 16:40:42 matsuu Exp $
42
43 RAILS_ENV=${RAILS_ENV:-production}
44 REDMINE_DIR=${REDMINE_DIR:-/var/lib/redmine}
45 REDMINE_ADDRESS=${REDMINE_ADDRESS:-localhost}
46 REDMINE_PORT=${REDMINE_PORT:-3000}
47 REDMINE_USER=${REDMINE_USER:-redmine}
48 REDMINE_GROUP=${REDMINE_GROUP:-redmine}
49 REDMINE_PIDFILE="${REDMINE_DIR}/tmp/pids/server.pid"
50
51 depend() {
52 use apache2 git-daemon mysql net postgresql svnserve
53 }
54
55 start() {
56 ebegin "Starting redmine"
57 cd "${REDMINE_DIR}"
58 start-stop-daemon --start --quiet --chuid ${REDMINE_USER}:${REDMINE_GROUP} \
59 --pidfile "${REDMINE_PIDFILE}" \
60 --exec /usr/bin/ruby "${REDMINE_DIR}"/script/server -- \
61 --daemon --environment=${RAILS_ENV} \
62 --binding=${REDMINE_ADDRESS} --port=${REDMINE_PORT} \
63 ${REDMINE_OPTS}
64 eend $?
65 }
66
67 stop() {
68 ebegin "Stopping redmine"
69 cd "${REDMINE_DIR}"
70 start-stop-daemon --stop --quiet --pidfile "${REDMINE_PIDFILE}"
71 eend $?
72 }
73
74
75
76 1.1 www-apps/redmine/files/redmine.confd
77
78 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/redmine/files/redmine.confd?rev=1.1&view=markup
79 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/redmine/files/redmine.confd?rev=1.1&content-type=text/plain
80
81 Index: redmine.confd
82 ===================================================================
83 # /etc/conf.d/redmine: config file for /etc/init.d/redmine
84 # Bind to specified address
85 # You can set to 0.0.0.0 to accept requests anywhere
86 #REDMINE_ADDRESS="localhost"
87
88 # Port
89 #REDMINE_PORT=3000
90
91 # RAILS_ENV
92 #RAILS_ENV=production
93
94 # additional opts
95 #REDMINE_OPTS=""