# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=redmine pkgver=2.3.2 pkgrel=1 pkgdesc="Project management web application written in Ruby" url="http://redmine.org" arch="noarch" license="GPL2" depends="ruby-redmine-rails ruby-rmagick ruby-i18n ruby-openid ruby-rack ruby-mocha ruby-redmine-jquery-rails ruby-coderay ruby-fastercsv ruby-net-ldap ruby-rack-openid ruby-bigdecimal ruby-json ruby-redmine-rdoc ruby-gems" depends_dev= makedepends="$depends_dev" install="$pkgname.pre-install" subpackages="" pkgusers="$pkgname" pkggroups="$pkgname" source="http://rubyforge.org/frs/download.php/77023/redmine-2.3.2.tar.gz additional_environment.rb configuration.yml database.yml" _webapps="usr/share/webapps" _builddir="$srcdir"/redmine-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { #nothing to do here return 0 } package() { cd "$_builddir" # move app to webapps dir mkdir -p "$pkgdir/$_webapps/$pkgname" mv * "$pkgdir/$_webapps/$pkgname" # install default config to /etc/redmine install -g $pkggroups -m640 -D "$srcdir"/database.yml \ "$pkgdir"/etc/redmine/database.yml install -g $pkggroups -m644 -D "$srcdir"/configuration.yml \ "$pkgdir"/etc/redmine/configuration.yml install -g $pkggroups -m644 -D "$srcdir"/additional_environment.rb \ "$pkgdir"/etc/redmine/additional_environment.rb cd "$pkgdir/$_webapps/$pkgname"/config # link config to webapps dir ln -s /etc/redmine/database.yml ln -s /etc/redmine/configuration.yml ln -s /etc/redmine/additional_environment.rb cd "$pkgdir/$_webapps/$pkgname" mkdir -p tmp tmp/pdf public/plugin_assets \ "$pkgdir"/var/log chmod -R 755 files log tmp public/plugin_assets # move redmine log to /var/log mv log "$pkgdir"/var/log/$pkgname # symlink logs to var log ln -s /var/log/redmine log # set correct permissions chown -R $pkgusers:$pkggroups \ "$pkgdir/$_webapps/$pkgname" \ "$pkgdir"/var/log/"$pkgname" # this should disable bundler dependencies mv "$pkgdir"/usr/share/webapps/redmine/Gemfile \ "$pkgdir"/usr/share/webapps/redmine/.Gemfile } md5sums="b5e9d915ee5cd2fbe6d5618117ce6a7c redmine-2.3.2.tar.gz 06fa866e699a6f867603f886be3a5eea additional_environment.rb 7347eb8fa89144c8a0ca292702203803 configuration.yml 05e17d7ca4a268b7ab7d3b6a9f5f3fcb database.yml" sha256sums="dc3f86f2ac591c6d0886d183b68604aa80fc90d412bdeab0c3a57c9cd7b43384 redmine-2.3.2.tar.gz fc151100cad99bec40cd57eefcf05917b760cd1d189609b0da3c2454916363e0 additional_environment.rb 5f17d5f2e37b4487c44154b2f212811d3a52fa1b7a0bcc9664e3caac80aa887c configuration.yml 243bf7ec026af6d158706f9275d40fd046a6038200664b9329fba25b4697816f database.yml" sha512sums="e7dbf520762db204f8aca8940b429ca004e96f7f5175dcc261e2d96e2d730714189bce3dce91374cd360968250239680894872af459986e97ed76700e496d699 redmine-2.3.2.tar.gz 0ac637c140ace5760067917db755a65add5362a8fbda87bdbe17c1f39c46861ecfbe096fe5d4e9ff2525d325ebd46ca995049f9cb326e376cc9074843bd0051a additional_environment.rb a62ac016fc3e58db7db453bdb779cd0d542a610cf7d1be2fdb07d39a1531c558d81af3d91adafffee28311387b65079faf3ee3bc9c14dd12ceb5bac83254fdbd configuration.yml a6a52d469ce390331124908bad650c190236b86439f7e38bfc2ff738c82182915ad4c35365533f6eed1216a47ef0f3fe7185e5a4107f6e7c8646222804743112 database.yml"