Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove redmine.

  • Loading branch information...
commit 75b143f07777a99fc3c53ed3842d81dc9d1da453 1 parent 25f5054
Sune Kloppenborg Jeppesen authored
View
58 www-apps/redmine/ChangeLog
@@ -1,58 +0,0 @@
-# ChangeLog for www-apps/redmine
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/ChangeLog,v 1.10 2010/07/10 04:54:33 matsuu Exp $
-
- 10 Jul 2010; MATSUU Takuto <matsuu@gentoo.org> redmine-0.9.6.ebuild:
- Fixed dependency.
-
-*redmine-0.9.6 (08 Jul 2010)
-
- 08 Jul 2010; MATSUU Takuto <matsuu@gentoo.org> -redmine-0.9.2.ebuild,
- -redmine-0.9.3.ebuild, -redmine-0.9.4.ebuild, -redmine-0.9.5.ebuild,
- +redmine-0.9.6.ebuild:
- Version bumped. Removed old versions.
-
-*redmine-0.9.5 (07 Jul 2010)
-
- 07 Jul 2010; MATSUU Takuto <matsuu@gentoo.org> +redmine-0.9.5.ebuild:
- Version bumped. Convert to ruby-ng.
-
- 22 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
- redmine-0.9.2.ebuild, redmine-0.9.3.ebuild, redmine-0.9.4.ebuild:
- dev-util/subversion renamed to dev-vcs/subversion.
-
- 19 Jun 2010; Jonathan Callen <abcd@gentoo.org> redmine-0.9.2.ebuild,
- redmine-0.9.3.ebuild, redmine-0.9.4.ebuild:
- Moving dev-util/cvs* to dev-vcs/cvs*
-
-*redmine-0.9.4-r1 (08 May 2010)
-
- 08 May 2010; MATSUU Takuto <matsuu@gentoo.org> +redmine-0.9.4-r1.ebuild:
- Added fastcgi USE flag, bug #318089.
-
-*redmine-0.9.4 (07 May 2010)
-
- 07 May 2010; MATSUU Takuto <matsuu@gentoo.org> +redmine-0.9.4.ebuild,
- metadata.xml:
- Version bumped.
-
- 17 Mar 2010; Sebastian Pipping <sping@gentoo.org> redmine-0.9.2.ebuild,
- redmine-0.9.3.ebuild, metadata.xml:
- Propagate move of dev-util/git to dev-vcs/git
-
- 14 Mar 2010; Lennart Kolmodin <kolmodin@gentoo.org> redmine-0.9.2.ebuild,
- redmine-0.9.3.ebuild, metadata.xml:
- Change references to dev-util/darcs to dev-vcs/darcs due to the move.
-
-*redmine-0.9.3 (04 Mar 2010)
-
- 04 Mar 2010; MATSUU Takuto <matsuu@gentoo.org> +redmine-0.9.3.ebuild:
- Version bumped.
-
-*redmine-0.9.2 (10 Feb 2010)
-
- 10 Feb 2010; MATSUU Takuto <matsuu@gentoo.org>
- +files/10_redmine_vhost.conf, +redmine-0.9.2.ebuild, +files/redmine.confd,
- +files/redmine.initd, +metadata.xml:
- Initial import, bug #260575.
-
View
13 www-apps/redmine/Manifest
@@ -1,13 +0,0 @@
-AUX 10_redmine_vhost.conf 343 RMD160 b4d6188a7579162b5d3ce891cab3ed1b7a1fc2f8 SHA1 e176c667402308b8475bec75890cca3a22d99a42 SHA256 4067d312a5fc8e7f1f98e8917d2e9c296a70a7e9847efaf92a8415d753387435
-AUX redmine.confd 267 RMD160 03b2a3d9d4e156bc0a6bd6969a3ae8800c9a51d9 SHA1 9402fd36df731413ce130e7e63411729de391444 SHA256 2ac6b7dfc2d055554b7ee9380fcf1a49a708bbd866987b775507d7a3b30f2d41
-AUX redmine.initd 1087 RMD160 13ab93c43d9107e0aba194ec7fa091eee07fccfe SHA1 41d8731f4e24743778c8ea45266dd1a56d95bb74 SHA256 f39996beac3cafb023086795baa277e8ec6342697feff28dc89641869bfaaee6
-DIST redmine-1.0.1.tar.gz 4804274 RMD160 fe98d8e7377e37561374dc3a38c54b4d008597ee SHA1 e96bf28639af4e51f477a1e33d532f4a88c10723 SHA256 974677b19a448ae43d78f6375a0efc224765251e0323159419ac96617124c07e
-DIST redmine-1.0.4.tar.gz 4768883 RMD160 91bc58bb9387bb8835f1e8d88c465a287303249b SHA1 75ea9afa7827bbc4858e77b429fe1d46064164f4 SHA256 030115866274600d13072a9caf0680d2ddc360469bdc69678f1d040d8936aef8
-DIST redmine-1.1.0.tar.gz 4823404 RMD160 2204d9cb9d7089d46705b6a9137f381cca92d277 SHA1 ddac05788c99701f0b7ebe0a7196cefb1adbb928 SHA256 21ad962b73504ffa7f7afdc27dac23c4526b1050d106652ab6ac7e066b9a0a17
-DIST redmine-1.1.2.tar.gz 4829954 RMD160 399b15166eb7c6f89e2d3ff9809d67679888d846 SHA1 6a711a9f7181a476ff6c67456000e5578734c245 SHA256 3451363c45eae9fd25bc047a62f8e11509e53f8a0bb4749526bb1cb0c8723953
-EBUILD redmine-1.0.1.ebuild 4926 RMD160 2e8c32cfc723c80e4101b3019e5f68e7e824d437 SHA1 fca27bd89a3681186c90a79fe5a9f020564cb5b5 SHA256 d7462fcdbf14e93b0b26a832d5eab091de19ba1e1226ce66586910c4940362ec
-EBUILD redmine-1.0.4.ebuild 5042 RMD160 8161d3be364b2e70c899ef24a3a155fa4da29682 SHA1 afcb5fec0a0e2a438e42936f22c243f701504194 SHA256 c07bc5a05519d1e5f4bd6e1fd1becf71f169529ea99ae5672c33151dedaf8f40
-EBUILD redmine-1.1.0.ebuild 5043 RMD160 3dcead8df40c916ef3272313466585fb44bdf7f2 SHA1 b13f41b44b6c9628423e8cd3ef0a6cd067e82caa SHA256 59c8aad21eda2bf5d019ee12d0132060043b7fbea573f4e8798ee138aca42e82
-EBUILD redmine-1.1.2.ebuild 5018 RMD160 0c0e51d7965a15059b5bc0b8650ed7af8f952b31 SHA1 ef8ec35559816ee74d33246a17362123e75d9568 SHA256 e0b98d67e2da187287b226acae5cfad8b51fa90f91fe414e13641536966290d3
-MISC ChangeLog 2011 RMD160 9c4d8f2e9567e2b79b9fc08a5df982d2d50a5ad8 SHA1 fe3493621e29a258e0a1a3d8f24c5a33e6c934ba SHA256 d45e52bfad1f909d1c6845de0d1d5e1ed1fdfafa3a08f96b49ab898227c3476f
-MISC metadata.xml 639 RMD160 fe34460ce10d91252a65a67953fe04df99140d07 SHA1 f35d46b5ba207fb36dba92127395b48260afe770 SHA256 d80112afbed97dbc584e9864d01df04949f7291cd13849b09fc4ff648c0c27fd
View
12 www-apps/redmine/files/10_redmine_vhost.conf
@@ -1,12 +0,0 @@
-<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>
View
13 www-apps/redmine/files/redmine.confd
@@ -1,13 +0,0 @@
-# /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=""
View
35 www-apps/redmine/files/redmine.initd
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/files/redmine.initd,v 1.1 2010/02/10 16:40:42 matsuu 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="${REDMINE_DIR}/tmp/pids/server.pid"
-
-depend() {
- use apache2 git-daemon mysql net postgresql svnserve
-}
-
-start() {
- ebegin "Starting redmine"
- cd "${REDMINE_DIR}"
- start-stop-daemon --start --quiet --chuid ${REDMINE_USER}:${REDMINE_GROUP} \
- --pidfile "${REDMINE_PIDFILE}" \
- --exec /usr/bin/ruby "${REDMINE_DIR}"/script/server -- \
- --daemon --environment=${RAILS_ENV} \
- --binding=${REDMINE_ADDRESS} --port=${REDMINE_PORT} \
- ${REDMINE_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping redmine"
- cd "${REDMINE_DIR}"
- start-stop-daemon --stop --quiet --pidfile "${REDMINE_PIDFILE}"
- eend $?
-}
View
18 www-apps/redmine/metadata.xml
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>no-herd</herd>
-<maintainer>
-<email>matsuu@gentoo.org</email>
-</maintainer>
-<longdescription lang="en">
-</longdescription>
-<use>
- <flag name='darcs'>Enable support for <pkg>dev-vcs/darcs</pkg></flag>
- <flag name='git'>Enable support for <pkg>dev-vcs/git</pkg></flag>
- <flag name='mercurial'>Enable support for <pkg>dev-vcs/mercurial</pkg></flag>
- <flag name='openid'>Enable support for OpenID</flag>
- <flag name='passenger'>Enable support for <pkg>www-apache/passenger</pkg></flag>
-</use>
-</pkgmetadata>
-
View
152 www-apps/redmine/redmine-1.0.1.ebuild
@@ -1,152 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-0.9.6.ebuild,v 1.2 2010/07/10 04:54:33 matsuu Exp $
-
-EAPI="2"
-USE_RUBY="ruby18"
-inherit eutils confutils depend.apache ruby-ng
-
-DESCRIPTION="Redmine is a flexible project management web application written using Ruby on Rails framework"
-HOMEPAGE="http://www.redmine.org/"
-SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
-
-KEYWORDS="~amd64 ~x86"
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="cvs darcs fastcgi git imagemagick mercurial mysql openid passenger postgres sqlite3 subversion"
-
-ruby_add_rdepend ">=dev-ruby/rails-2.3.5:2.3
- >=dev-ruby/coderay-0.7.6.227
- >=dev-ruby/rubygems-1.3.5
- >=dev-ruby/ruby-net-ldap-0.0.4"
-#ruby_add_rdepend "dev-ruby/activerecord:2.3[mysql?,postgres?,sqlite3?]"
-ruby_add_rdepend fastcgi dev-ruby/ruby-fcgi
-ruby_add_rdepend imagemagick dev-ruby/rmagick
-ruby_add_rdepend openid dev-ruby/ruby-openid
-#ruby_add_rdepend passenger "=dev-ruby/rack-1.0.1* www-apache/passenger"
-
-RDEPEND="${RDEPEND}
- passenger? ( =dev-ruby/rack-1.1.0 www-apache/passenger )
- dev-ruby/activerecord:2.3[mysql?,postgres?,sqlite3?]
- cvs? ( >=dev-vcs/cvs-1.12 )
- darcs? ( dev-vcs/darcs )
- git? ( dev-vcs/git )
- mercurial? ( dev-vcs/mercurial )
- subversion? ( >=dev-vcs/subversion-1.3 )"
-
-REDMINE_DIR="/var/lib/${PN}"
-
-pkg_setup() {
- confutils_require_any mysql postgres sqlite3
- enewgroup redmine
- # home directory is required for SCM.
- enewuser redmine -1 -1 "${REDMINE_DIR}" redmine
-}
-
-all_ruby_prepare() {
- rm -fr log files/delete.me || die
- rm -fr vendor/plugins/coderay-0.7.6.227 || die
- rm -fr vendor/plugins/ruby-net-ldap-0.0.4 || die
- rm -fr vendor/rails || die
- echo "CONFIG_PROTECT=\"${REDMINE_DIR}/config\"" > "${T}/50${PN}"
-}
-
-all_ruby_install() {
- dodoc doc/{CHANGELOG,INSTALL,README_FOR_APP,RUNNING_TESTS,UPGRADING} || die
- rm -fr doc || die
-
- keepdir /var/log/${PN} || die
- dosym /var/log/${PN}/ "${REDMINE_DIR}/log" || die
-
- insinto "${REDMINE_DIR}"
- doins -r . || die
- keepdir "${REDMINE_DIR}/files" || die
- keepdir "${REDMINE_DIR}/public/plugin_assets" || die
-
- fowners -R redmine:redmine \
- "${REDMINE_DIR}/config/environment.rb" \
- "${REDMINE_DIR}/files" \
- "${REDMINE_DIR}/public/plugin_assets" \
- "${REDMINE_DIR}/tmp" \
- /var/log/${PN} || die
- # for SCM
- fowners redmine:redmine "${REDMINE_DIR}" || die
-
- if use passenger ; then
- has_apache
- insinto "${APACHE_VHOSTS_CONFDIR}"
- doins "${FILESDIR}/10_redmine_vhost.conf" || die
- else
- newconfd "${FILESDIR}/${PN}.confd" ${PN} || die
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
- keepdir /var/run/${PN} || die
- fowners -R redmine:redmine /var/run/${PN} || die
- dosym /var/run/${PN}/ "${REDMINE_DIR}/tmp/pids" || die
- fi
- doenvd "${T}/50${PN}" || die
-}
-
-pkg_postinst() {
- einfo
- if [ -e "${ROOT}${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- elog "Execute the following command to upgrade environment:"
- elog
- elog "# emerge --config =${CATEGORY}/${PF}"
- elog
- elog "For upgrade instructions take a look at:"
- elog "http://www.redmine.org/wiki/redmine/RedmineUpgrade"
- else
- elog "Execute the following command to initlize environment:"
- elog
- elog "# cd ${REDMINE_DIR}"
- elog "# cp config/database.yml.example config/database.yml"
- elog "# \${EDITOR} config/database.yml"
- elog "# emerge --config =${CATEGORY}/${PF}"
- elog
- elog "Installation notes are at official site"
- elog "http://www.redmine.org/wiki/redmine/RedmineInstall"
- fi
- einfo
-}
-
-pkg_config() {
- if [ ! -e "${REDMINE_DIR}/config/database.yml" ] ; then
- eerror "Copy ${REDMINE_DIR}/config/database.yml.example to ${REDMINE_DIR}/config/database.yml and edit this file in order to configure your database settings for \"production\" environment."
- die
- fi
-
- local RAILS_ENV=${RAILS_ENV:-production}
-
- cd "${REDMINE_DIR}"
- if [ -e "${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- einfo
- einfo "Upgrade database."
- einfo
-
- einfo "Migrate database."
- RAILS_ENV="${RAILS_ENV}" rake db:migrate || die
- einfo "Upgrade the plugin migrations."
- RAILS_ENV="${RAILS_ENV}" rake db:migrate:upgrade_plugin_migrations # || die
- RAILS_ENV="${RAILS_ENV}" rake db:migrate_plugins || die
- einfo "Clear the cache and the existing sessions."
- rake tmp:cache:clear || die
- rake tmp:sessions:clear || die
- else
- einfo
- einfo "Initialize database."
- einfo
-
- einfo "Generate a session store secret."
- rake config/initializers/session_store.rb || die
- einfo "Create the database structure."
- RAILS_ENV="${RAILS_ENV}" rake db:migrate || die
- einfo "Insert default configuration data in database."
- RAILS_ENV="${RAILS_ENV}" rake redmine:load_default_data || die
- fi
-
- if [ ! -e "${REDMINE_DIR}/config/email.yml" ] ; then
- ewarn
- ewarn "Copy ${REDMINE_DIR}/config/email.yml.example to ${REDMINE_DIR}/config/email.yml and edit this file to adjust your SMTP settings."
- ewarn
- fi
-}
View
153 www-apps/redmine/redmine-1.0.4.ebuild
@@ -1,153 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-1.0.3.ebuild,v 1.1 2010/11/04 04:40:36 matsuu Exp $
-
-EAPI="2"
-USE_RUBY="ruby18"
-inherit eutils confutils depend.apache ruby-ng
-
-DESCRIPTION="Redmine is a flexible project management web application written using Ruby on Rails framework"
-HOMEPAGE="http://www.redmine.org/"
-SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
-
-KEYWORDS="~amd64 ~x86"
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="cvs darcs fastcgi git imagemagick mercurial mysql openid passenger postgres sqlite3 subversion"
-
-ruby_add_rdepend "~dev-ruby/rails-2.3.5:2.3
- >=dev-ruby/coderay-0.7.6.227
- >=dev-ruby/rubygems-1.3.5
- >=dev-ruby/ruby-net-ldap-0.0.4"
-#ruby_add_rdepend "dev-ruby/activerecord:2.3[mysql?,postgres?,sqlite3?]"
-ruby_add_rdepend fastcgi dev-ruby/ruby-fcgi
-ruby_add_rdepend imagemagick dev-ruby/rmagick
-ruby_add_rdepend openid dev-ruby/ruby-openid
-#ruby_add_rdepend passenger "=dev-ruby/rack-1.0.1* www-apache/passenger"
-
-RDEPEND="${RDEPEND}
- passenger? ( =dev-ruby/rack-1.0.1* www-apache/passenger )
- dev-ruby/activerecord:2.3[mysql?,postgres?,sqlite3?]
- cvs? ( >=dev-vcs/cvs-1.12 )
- darcs? ( dev-vcs/darcs )
- git? ( dev-vcs/git )
- mercurial? ( dev-vcs/mercurial )
- subversion? ( >=dev-vcs/subversion-1.3 )"
-
-REDMINE_DIR="/var/lib/${PN}"
-
-pkg_setup() {
- confutils_require_any mysql postgres sqlite3
- enewgroup redmine
- # home directory is required for SCM.
- enewuser redmine -1 -1 "${REDMINE_DIR}" redmine
-}
-
-all_ruby_prepare() {
- rm -fr log files/delete.me || die
- rm -fr vendor/plugins/coderay-0.7.6.227 || die
- rm -fr vendor/plugins/ruby-net-ldap-0.0.4 || die
- rm -fr vendor/rails || die
- echo "CONFIG_PROTECT=\"${REDMINE_DIR}/config\"" > "${T}/50${PN}"
-}
-
-all_ruby_install() {
- dodoc doc/{CHANGELOG,INSTALL,README_FOR_APP,RUNNING_TESTS,UPGRADING} || die
- rm -fr doc || die
-
- keepdir /var/log/${PN} || die
- dosym /var/log/${PN}/ "${REDMINE_DIR}/log" || die
-
- insinto "${REDMINE_DIR}"
- doins -r . || die
- keepdir "${REDMINE_DIR}/files" || die
- keepdir "${REDMINE_DIR}/public/plugin_assets" || die
-
- fowners -R redmine:redmine \
- "${REDMINE_DIR}/config/environment.rb" \
- "${REDMINE_DIR}/files" \
- "${REDMINE_DIR}/public/plugin_assets" \
- "${REDMINE_DIR}/tmp" \
- /var/log/${PN} || die
- # for SCM
- fowners redmine:redmine "${REDMINE_DIR}" || die
-
- if use passenger ; then
- has_apache
- insinto "${APACHE_VHOSTS_CONFDIR}"
- doins "${FILESDIR}/10_redmine_vhost.conf" || die
- else
- newconfd "${FILESDIR}/${PN}.confd" ${PN} || die
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
- keepdir /var/run/${PN} || die
- fowners -R redmine:redmine /var/run/${PN} || die
- dosym /var/run/${PN}/ "${REDMINE_DIR}/tmp/pids" || die
- fi
- doenvd "${T}/50${PN}" || die
-}
-
-pkg_postinst() {
- einfo
- if [ -e "${ROOT}${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- elog "Execute the following command to upgrade environment:"
- elog
- elog "# emerge --config =${CATEGORY}/${PF}"
- elog
- elog "For upgrade instructions take a look at:"
- elog "http://www.redmine.org/wiki/redmine/RedmineUpgrade"
- else
- elog "Execute the following command to initlize environment:"
- elog
- elog "# cd ${REDMINE_DIR}"
- elog "# cp config/database.yml.example config/database.yml"
- elog "# \${EDITOR} config/database.yml"
- elog "# emerge --config =${CATEGORY}/${PF}"
- elog
- elog "Installation notes are at official site"
- elog "http://www.redmine.org/wiki/redmine/RedmineInstall"
- fi
- einfo
-}
-
-pkg_config() {
- if [ ! -e "${REDMINE_DIR}/config/database.yml" ] ; then
- eerror "Copy ${REDMINE_DIR}/config/database.yml.example to ${REDMINE_DIR}/config/database.yml and edit this file in order to configure your database settings for \"production\" environment."
- die
- fi
-
- local RAILS_ENV=${RAILS_ENV:-production}
- local RUBY=${RUBY:-ruby18}
-
- cd "${REDMINE_DIR}"
- if [ -e "${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- einfo
- einfo "Upgrade database."
- einfo
-
- einfo "Migrate database."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Upgrade the plugin migrations."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate:upgrade_plugin_migrations # || die
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate_plugins || die
- einfo "Clear the cache and the existing sessions."
- ${RUBY} -S rake tmp:cache:clear || die
- ${RUBY} -S rake tmp:sessions:clear || die
- else
- einfo
- einfo "Initialize database."
- einfo
-
- einfo "Generate a session store secret."
- ${RUBY} -S rake config/initializers/session_store.rb || die
- einfo "Create the database structure."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Insert default configuration data in database."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:load_default_data || die
- fi
-
- if [ ! -e "${REDMINE_DIR}/config/email.yml" ] ; then
- ewarn
- ewarn "Copy ${REDMINE_DIR}/config/email.yml.example to ${REDMINE_DIR}/config/email.yml and edit this file to adjust your SMTP settings."
- ewarn
- fi
-}
View
153 www-apps/redmine/redmine-1.1.0.ebuild
@@ -1,153 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-1.0.3.ebuild,v 1.1 2010/11/04 04:40:36 matsuu Exp $
-
-EAPI="2"
-USE_RUBY="ruby18"
-inherit eutils confutils depend.apache ruby-ng
-
-DESCRIPTION="Redmine is a flexible project management web application written using Ruby on Rails framework"
-HOMEPAGE="http://www.redmine.org/"
-SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
-
-KEYWORDS="~amd64 ~x86"
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="cvs darcs fastcgi git imagemagick mercurial mysql openid passenger postgres sqlite3 subversion"
-
-ruby_add_rdepend "~dev-ruby/rails-2.3.10:2.3
- >=dev-ruby/coderay-0.7.6.227
- >=dev-ruby/rubygems-1.3.5
- >=dev-ruby/ruby-net-ldap-0.0.4"
-#ruby_add_rdepend "dev-ruby/activerecord:2.3[mysql?,postgres?,sqlite3?]"
-ruby_add_rdepend fastcgi dev-ruby/ruby-fcgi
-ruby_add_rdepend imagemagick dev-ruby/rmagick
-ruby_add_rdepend openid dev-ruby/ruby-openid
-#ruby_add_rdepend passenger "=dev-ruby/rack-1.0.1* www-apache/passenger"
-
-RDEPEND="${RDEPEND}
- passenger? ( =dev-ruby/rack-1.0.1* www-apache/passenger )
- dev-ruby/activerecord:2.3[mysql?,postgres?,sqlite3?]
- cvs? ( >=dev-vcs/cvs-1.12 )
- darcs? ( dev-vcs/darcs )
- git? ( dev-vcs/git )
- mercurial? ( dev-vcs/mercurial )
- subversion? ( >=dev-vcs/subversion-1.3 )"
-
-REDMINE_DIR="/var/lib/${PN}"
-
-pkg_setup() {
- confutils_require_any mysql postgres sqlite3
- enewgroup redmine
- # home directory is required for SCM.
- enewuser redmine -1 -1 "${REDMINE_DIR}" redmine
-}
-
-all_ruby_prepare() {
- rm -fr log files/delete.me || die
- rm -fr vendor/plugins/coderay-0.7.6.227 || die
- rm -fr vendor/plugins/ruby-net-ldap-0.0.4 || die
- rm -fr vendor/rails || die
- echo "CONFIG_PROTECT=\"${REDMINE_DIR}/config\"" > "${T}/50${PN}"
-}
-
-all_ruby_install() {
- dodoc doc/{CHANGELOG,INSTALL,README_FOR_APP,RUNNING_TESTS,UPGRADING} || die
- rm -fr doc || die
-
- keepdir /var/log/${PN} || die
- dosym /var/log/${PN}/ "${REDMINE_DIR}/log" || die
-
- insinto "${REDMINE_DIR}"
- doins -r . || die
- keepdir "${REDMINE_DIR}/files" || die
- keepdir "${REDMINE_DIR}/public/plugin_assets" || die
-
- fowners -R redmine:redmine \
- "${REDMINE_DIR}/config/environment.rb" \
- "${REDMINE_DIR}/files" \
- "${REDMINE_DIR}/public/plugin_assets" \
- "${REDMINE_DIR}/tmp" \
- /var/log/${PN} || die
- # for SCM
- fowners redmine:redmine "${REDMINE_DIR}" || die
-
- if use passenger ; then
- has_apache
- insinto "${APACHE_VHOSTS_CONFDIR}"
- doins "${FILESDIR}/10_redmine_vhost.conf" || die
- else
- newconfd "${FILESDIR}/${PN}.confd" ${PN} || die
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
- keepdir /var/run/${PN} || die
- fowners -R redmine:redmine /var/run/${PN} || die
- dosym /var/run/${PN}/ "${REDMINE_DIR}/tmp/pids" || die
- fi
- doenvd "${T}/50${PN}" || die
-}
-
-pkg_postinst() {
- einfo
- if [ -e "${ROOT}${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- elog "Execute the following command to upgrade environment:"
- elog
- elog "# emerge --config =${CATEGORY}/${PF}"
- elog
- elog "For upgrade instructions take a look at:"
- elog "http://www.redmine.org/wiki/redmine/RedmineUpgrade"
- else
- elog "Execute the following command to initlize environment:"
- elog
- elog "# cd ${REDMINE_DIR}"
- elog "# cp config/database.yml.example config/database.yml"
- elog "# \${EDITOR} config/database.yml"
- elog "# emerge --config =${CATEGORY}/${PF}"
- elog
- elog "Installation notes are at official site"
- elog "http://www.redmine.org/wiki/redmine/RedmineInstall"
- fi
- einfo
-}
-
-pkg_config() {
- if [ ! -e "${REDMINE_DIR}/config/database.yml" ] ; then
- eerror "Copy ${REDMINE_DIR}/config/database.yml.example to ${REDMINE_DIR}/config/database.yml and edit this file in order to configure your database settings for \"production\" environment."
- die
- fi
-
- local RAILS_ENV=${RAILS_ENV:-production}
- local RUBY=${RUBY:-ruby18}
-
- cd "${REDMINE_DIR}"
- if [ -e "${REDMINE_DIR}/config/initializers/session_store.rb" ] ; then
- einfo
- einfo "Upgrade database."
- einfo
-
- einfo "Migrate database."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Upgrade the plugin migrations."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate:upgrade_plugin_migrations # || die
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate_plugins || die
- einfo "Clear the cache and the existing sessions."
- ${RUBY} -S rake tmp:cache:clear || die
- ${RUBY} -S rake tmp:sessions:clear || die
- else
- einfo
- einfo "Initialize database."
- einfo
-
- einfo "Generate a session store secret."
- ${RUBY} -S rake config/initializers/session_store.rb || die
- einfo "Create the database structure."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Insert default configuration data in database."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:load_default_data || die
- fi
-
- if [ ! -e "${REDMINE_DIR}/config/email.yml" ] ; then
- ewarn
- ewarn "Copy ${REDMINE_DIR}/config/email.yml.example to ${REDMINE_DIR}/config/email.yml and edit this file to adjust your SMTP settings."
- ewarn
- fi
-}
Please sign in to comment.
Something went wrong with that request. Please try again.