aboutsummaryrefslogtreecommitdiffstats
path: root/main/redmine
diff options
context:
space:
mode:
Diffstat (limited to 'main/redmine')
-rw-r--r--main/redmine/APKBUILD17
-rw-r--r--main/redmine/database.yml2
2 files changed, 6 insertions, 13 deletions
diff --git a/main/redmine/APKBUILD b/main/redmine/APKBUILD
index ca67e3fb36..0e572df75b 100644
--- a/main/redmine/APKBUILD
+++ b/main/redmine/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=redmine
pkgver=2.1.2
-pkgrel=4
+pkgrel=5
pkgdesc="Project management web application written in Ruby"
url="http://redmine.org"
arch="noarch"
@@ -21,7 +21,6 @@ source="http://rubyforge.org/frs/download.php/76495/redmine-$pkgver.tar.gz
additional_environment.rb
configuration.yml
database.yml
- bundle.config
$pkgname.initd"
_webapps="usr/share/webapps"
@@ -44,14 +43,8 @@ build() {
package() {
cd "$_builddir"
- mkdir -p "$pkgdir/$_webapps/$pkgname/.bundle" \
- "$pkgdir"/var/log
- # install bundle config so redmine will not
- # complain about missing deps. users will
- # need to install a db driver themselves.
- install -m644 -D "$srcdir"/bundle.config \
- "$pkgdir/$_webapps/$pkgname/.bundle/config"
# 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 \
@@ -66,7 +59,8 @@ package() {
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
+ 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
@@ -83,6 +77,5 @@ package() {
md5sums="42feb03a4447bb6551eba34721ec235b redmine-2.1.2.tar.gz
06fa866e699a6f867603f886be3a5eea additional_environment.rb
7347eb8fa89144c8a0ca292702203803 configuration.yml
-2b97d378d27a10a7b5ff2161aefbbb1a database.yml
-b42dd5308f44156e6c8f1cf83656993d bundle.config
+009821f07e7337a5fe737a1704cf867d database.yml
08833c0929543f3f42c6e7cb7f408aef redmine.initd"
diff --git a/main/redmine/database.yml b/main/redmine/database.yml
index fb20946b13..8f65c975c9 100644
--- a/main/redmine/database.yml
+++ b/main/redmine/database.yml
@@ -1,7 +1,7 @@
# MySQL (default setup).
production:
- adapter: mysql
+ adapter: mysql2
database: redmine
host: localhost
username: root