diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2012-06-07 16:14:06 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2012-06-07 16:14:06 +0000 |
commit | 02990f7919aa02002a31fe3e5aa127c2ff4cb255 (patch) | |
tree | fd0bdf591f01b52171259cb183d30c30ca0888cb /www-apps | |
parent | Stable for x86, wrt bug #419619 (diff) | |
download | historical-02990f7919aa02002a31fe3e5aa127c2ff4cb255.tar.gz historical-02990f7919aa02002a31fe3e5aa127c2ff4cb255.tar.bz2 historical-02990f7919aa02002a31fe3e5aa127c2ff4cb255.zip |
Version bumped.
Package-Manager: portage-2.1.10.54/cvs/Linux x86_64
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/redmine/ChangeLog | 7 | ||||
-rw-r--r-- | www-apps/redmine/Manifest | 30 | ||||
-rw-r--r-- | www-apps/redmine/redmine-1.4.3.ebuild | 203 |
3 files changed, 225 insertions, 15 deletions
diff --git a/www-apps/redmine/ChangeLog b/www-apps/redmine/ChangeLog index dc2aa5d45241..b183c7ae2275 100644 --- a/www-apps/redmine/ChangeLog +++ b/www-apps/redmine/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-apps/redmine # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/ChangeLog,v 1.30 2012/04/25 15:02:00 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/ChangeLog,v 1.31 2012/06/07 16:14:06 matsuu Exp $ + +*redmine-1.4.3 (07 Jun 2012) + + 07 Jun 2012; MATSUU Takuto <matsuu@gentoo.org> +redmine-1.4.3.ebuild: + Version bumped. *redmine-1.4.1 (25 Apr 2012) *redmine-1.3.3 (25 Apr 2012) diff --git a/www-apps/redmine/Manifest b/www-apps/redmine/Manifest index a70fbc36beca..c4733851d7f1 100644 --- a/www-apps/redmine/Manifest +++ b/www-apps/redmine/Manifest @@ -9,25 +9,27 @@ AUX redmine.initd 1328 RMD160 5d5ca5fdcb85b95554ecfb8f907c8bc428f5eebf SHA1 5277 DIST redmine-1.3.2.tar.gz 6001754 RMD160 7bc93d0e44a07c942226c14d552e47e394a74f0b SHA1 1ae35e42a5d6f3e82b95e2f299d185e5a543b56e SHA256 35c8300c875e3c8461b5c21fe026ef3820dfd182b3cd467895c84eb147feabfc DIST redmine-1.3.3.tar.gz 6002651 RMD160 dffc11668890aa4430ab4ddfd6d9860b6bd06e1d SHA1 252e5522b95bcbc38028ff07e03fa2f91d3f098a SHA256 5e69f80509f042a44bd3f5666b7df42995e90d74b5de154ec5429d658642d6ce DIST redmine-1.4.1.tar.gz 3651844 RMD160 03d50a1074cc2bc6182a88679299b279df4219f1 SHA1 e870f918052566cabd8df51d2d7e23f98e1a905b SHA256 1f4aeab39c28ebe946fe244aab251e5aca1db1c040f7b2a63db41ac0c589b922 +DIST redmine-1.4.3.tar.gz 3666875 RMD160 75ecf29e1f38c4333ea354253615a992b058295a SHA1 ce5dbe22ad647aa4a4d6b431b4c67dbce2883d83 SHA256 2f54ba3055234fb93515395d477de385259ef88b144cf382a980257cf14c8bf2 EBUILD redmine-1.3.2.ebuild 5735 RMD160 80d1deeb0d1955c6808200d370cce174bc8d0f4e SHA1 463933344b7ea40fc77835b8ac6edf90c77e21bd SHA256 91a9a8d2f8725b2aaeb777f969f23ebdb343ccf9da3b7f2e3efff4655ff2b23c EBUILD redmine-1.3.3.ebuild 5735 RMD160 40a32f252a463db44c74fcec51ca52f94697213e SHA1 d3199f3385e3a6f24298ea728db25e778939fb46 SHA256 8fbc0f6c123e2933f9da79573ed3208864395f925eb3e026ad566de33e2f1239 EBUILD redmine-1.4.1.ebuild 6298 RMD160 fdb060d6decff3bc3634bf3047a2f251eaee4def SHA1 dea2f92233d907182bcf93a0b3481577fc121fab SHA256 a22f197000dbb7cd477a055d09e5e62b6737216ac86391dcf2b1c1d9725eff9a -MISC ChangeLog 5832 RMD160 a5d36294cc9f332e343405271aedab1c17c2a7e8 SHA1 e3c4958cecef16b44a471a6afaf357352567c95a SHA256 876faecfe4ae2c5c0ce5fa2a96792e4fc1b871b2df70a969e05227b974991c9b +EBUILD redmine-1.4.3.ebuild 6305 RMD160 09c1b23ec36c24aacc3097ea0e2fb34355581794 SHA1 081a0f2d6e2032f5b9760fd564725d8f73c2212f SHA256 d848fe0684544410cee374c411e874753d5cf144dbd056f8d18223957126f7c5 +MISC ChangeLog 5953 RMD160 235bb3a31a9590ec16bf44c2ce081d45adff7dd7 SHA1 6d093f6af30b847cb946be9209c11ec8c87ad2c3 SHA256 e87bd78070121f19e6ea8d1f3ebb3f1c5507eef141596d63f2bdf139fde4e590 MISC metadata.xml 398 RMD160 735855f2c2c3938b5836087fd524fdef8feca7da SHA1 fdb1314393eb313bbdad99ed6824f998bc53bc00 SHA256 492fedc9e0ee6f7d2aad26b056be8d4f726159417554a5132c5bc3b91ddb68f0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBAgAGBQJPmBHxAAoJECaGw+YFKA1pbfgP/1f4/XpUwjNW4lZ7FkX//eqL -Zz12QuGj4rNDCUbxCAorq7vhODHIhuFptB7pza49/tHVDcn4lOgrrj2IbK3mYp/c -GgCRVEXluS6SgfzEnG+2ZIz9K9pdx0zVDsdQnk3WqIXPB5pvf5f9jYDajBQB1V2g -t3pkdQ0NPHLJnm6gAlkWQy4R/+zOctQvm9np5X9AQDDOEeCLGMSH0nTTs2e/eixi -HGnL4UmgLorM1HZ9lUj3yaMCIT+GW1nq4g5PShTrvwLGoCPBGcrJT9JEvfRG/4S8 -ZsxbBjUnTY7Q8tkLGf4EzZ3gvmMwdAcxY6lgdAer9l+gUrXcJAgEuA73jV/Tlw8L -RLApNQI7m12iB0xw8C9tq5de67ijA5KWaPvdjsk6tX2QeaatZi8htYmT1g4+A7No -WJYQIBHtoE9JC+0vvsQkqvsgZkypBdzidMz4QFMiEJYbSeUPsyBNhTHBx8aL/Kad -2xrIAHCS1klIcaKXPaqzPYxWf7wJL4GyjmJf2e0ghaDA8Cclk/oHSC7ugsb9wkEj -f1dd7mdsm+kY4yDyolE2ogURXdr8WFP9ZzL3hSw1va3rQNIpN+4ccZFBnspl+6Bu -tZN8mJ3F3WzxdbKwzqnS6odbFWvsBp9Lpgl3EE4NngfQlWBOYXgLigY3Zt/HaBo3 -hd6R1tzlSsK6+0XpQUIW -=tIyh +iQIcBAEBAgAGBQJP0NNXAAoJECaGw+YFKA1pcTYQALT0zr52aSw0cu+ZavYECZ52 +e1zYwwWa4Vu0swtYy/Zt0evEHzvvp7T4vmfcwjOfNsnkb30HqpleKG5C+qV6g4te +NfUc94O+/0VvL2dg8on02sA3xgaluTgzBIT7Zzkq0R1aXKLnFPMRpxMD5BUcC6Jd +qqUZpcB8stTJU6oYm4bugVbZoqx+5Nbl7kzVsduj7LLYHLAVFDunNxe2exGbPh15 +hYpf15E7kRduEh/+OPVnOb+Z/R3TwkKjTfccca/+kLWkanp5n6xDO0fImZ9ybjar +oSI9OASGl7OPzccCP7uB8a6UT9nfAUA2we7+DXgMuXtJtecclxmE51JhzeBKPw2M +eiOa/1cQePB3L0CrFoKJS67JiO5+5fct10rVX4k1tQm7HHSie5Y6BTNTWSL8UeNc +KUBfdSzkGEFITPwFlnJNhDfz/WkyOQCRe0VEEDdZ+v4mccxVEky6hYnD8LOMHU6f +997Dx+32HZ2kOi2hzFfzOFPvQyt+M8wyrnujKjE2Em1h7Ax69AnWZxLqyJz3IiE4 +J/dCwUmSfAcDzbeolWPc/Pu87/tUfVF8KKjcP87bXsB7f6DfjDunQwvjP0uEqL6I +utOFzACv1Hvn9Jq4xvu+XeI9RBr5/IWQo4QvWNxjvW57nNLlNdP+xhIWitN3Qt4U +plvoHbMGbdAzOFKkYeFl +=Nkm9 -----END PGP SIGNATURE----- diff --git a/www-apps/redmine/redmine-1.4.3.ebuild b/www-apps/redmine/redmine-1.4.3.ebuild new file mode 100644 index 000000000000..862ed7c92b9a --- /dev/null +++ b/www-apps/redmine/redmine-1.4.3.ebuild @@ -0,0 +1,203 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-1.4.3.ebuild,v 1.1 2012/06/07 16:14:06 matsuu Exp $ + +EAPI="3" +# ruby19: dev-ruby/rack has no ruby19 +# jruby: dev-ruby/rails has no jruby +# rbx: dev-ruby/rails has no rbx +#USE_RUBY="ruby18 ree18" +USE_RUBY="ruby18" +inherit eutils 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="bazaar cvs darcs fastcgi git imagemagick mercurial mysql openid passenger postgres sqlite3 subversion" +IUSE="fastcgi imagemagick ldap openid passenger" + +RDEPEND="$(ruby_implementation_depend ruby18 '>=' -1.8.6)[ssl]" + +ruby_add_rdepend "virtual/ruby-ssl + virtual/rubygems + >=dev-ruby/coderay-1.0.6 + dev-ruby/i18n:0.4 + >=dev-ruby/rack-1.1:0 + >=dev-ruby/tzinfo-0.3.31 + dev-ruby/rake + >=dev-ruby/rails-2.3.14:2.3 + fastcgi? ( dev-ruby/ruby-fcgi ) + imagemagick? ( >=dev-ruby/rmagick-2 ) + ldap? ( >=dev-ruby/ruby-net-ldap-0.3.1 ) + openid? ( >=dev-ruby/ruby-openid-2.1.4 ) + passenger? ( www-apache/passenger ) + ruby_targets_ruby18? ( + >=dev-ruby/fastercsv-1.5 + )" +# ruby_targets_ruby18? ( +# >=dev-ruby/fastercsv-1.5 +# postgres? ( >=dev-ruby/pg-0.11 ) +# sqlite3? ( dev-ruby/sqlite3-ruby ) +# mysql? ( dev-ruby/mysql ) +# ) +# ruby_targets_ruby19? ( +# postgres? ( >=dev-ruby/pg-0.11 ) +# sqlite3? ( dev-ruby/sqlite3-ruby ) +# mysql? ( dev-ruby/mysql2:0.2 ) +# ) +# ruby_targets_jruby? ( +# >=dev-ruby/fastercsv-1.5 +# mysql? ( dev-ruby/activerecord-jdbcmysql-adapter ) +# postgres? ( dev-ruby/activerecord-jdbcpostgresql-adapter ) +# sqlite3? ( dev-ruby/activerecord-jdbcsqlite3-adapter ) +# ) + +#ruby_add_bdepend ">=dev-ruby/rdoc-2.4.2 +# test? ( +# >=dev-ruby/shoulda-2.10.3 +# >=dev-ruby/edavis10-object_daddy +# >=dev-ruby/mocha +# )" + +#RDEPEND="${RDEPEND} +# bazaar ( dev-vcs/bazaar ) +# 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() { + enewgroup redmine + # home directory is required for SCM. + enewuser redmine -1 -1 "${REDMINE_DIR}" redmine +} + +all_ruby_prepare() { + rm -r log files/delete.me || die + + # bug #406605 + rm .gitignore .hgignore || die + + rm Gemfile config/preinitializer.rb || die + epatch "${FILESDIR}/${PN}-1.4.1-bundler.patch" || die + + echo "CONFIG_PROTECT=\"${EPREFIX}${REDMINE_DIR}/config\"" > "${T}/50${PN}" + echo "CONFIG_PROTECT_MASK=\"${EPREFIX}${REDMINE_DIR}/config/locales ${EPREFIX}${REDMINE_DIR}/config/settings.yml\"" >> "${T}/50${PN}" +} + +all_ruby_install() { + dodoc doc/{CHANGELOG,INSTALL,README_FOR_APP,RUNNING_TESTS,UPGRADING} || die + rm -fr doc || die + dodoc README.rdoc || die + rm README.rdoc || 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" \ + "${REDMINE_DIR}/files" \ + "${REDMINE_DIR}/public/plugin_assets" \ + "${REDMINE_DIR}/tmp" \ + /var/log/${PN} || die + # for SCM + fowners redmine:redmine "${REDMINE_DIR}" || die + # bug #406605 + fperms -R go-rwx \ + "${REDMINE_DIR}/config" \ + "${REDMINE_DIR}/files" \ + "${REDMINE_DIR}/tmp" \ + /var/log/${PN} || 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 "${EPREFIX}${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 ${EPREFIX}${REDMINE_DIR}" + elog "# cp config/database.yml.example config/database.yml" + elog "# \${EDITOR} config/database.yml" + elog "# chown redmine:redmine 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 "${EPREFIX}${REDMINE_DIR}/config/database.yml" ] ; then + eerror "Copy ${EPREFIX}${REDMINE_DIR}/config/database.yml.example to ${EPREFIX}${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 "${EPREFIX}${REDMINE_DIR}" + if [ -e "${EPREFIX}${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 generate_session_store || 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 + einfo + einfo "If you use sqlite3. please do not forget to change the ownership of the sqlite files." + einfo + einfo "# cd \"${EPREFIX}${REDMINE_DIR}\"" + einfo "# chown redmine:redmine db/ db/*.sqlite3" + einfo + fi +} |