diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-25 20:15:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-25 20:15:47 +0000 |
commit | 25dc339f9d7565838ff31e4dbaf04fda65129d17 (patch) | |
tree | 5716f5b523998a80b319b20cf7c3daf91ddb2da2 /main/redmine/APKBUILD | |
parent | 153affa06c8da60f9193185f74bcdfce133d19e1 (diff) | |
download | aports-25dc339f9d7565838ff31e4dbaf04fda65129d17.tar.bz2 aports-25dc339f9d7565838ff31e4dbaf04fda65129d17.tar.xz |
main/redmine: misc fixes
- use local sendmail as default mailer
- fix log config
- fix some deps
- fix some permissions
- add example for sqlite
Diffstat (limited to 'main/redmine/APKBUILD')
-rw-r--r-- | main/redmine/APKBUILD | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/main/redmine/APKBUILD b/main/redmine/APKBUILD index d55ab74c87..9018cb8016 100644 --- a/main/redmine/APKBUILD +++ b/main/redmine/APKBUILD @@ -2,12 +2,13 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=redmine pkgver=2.1.2 -pkgrel=0 +pkgrel=1 pkgdesc="Project management web application written in Ruby" url="http://redmine.org" arch="noarch" license="GPL2" depends="ruby-rails ruby-fcgi ruby-rmagick ruby-i18n ruby-openid + ruby-mocha ruby-jquery-rails lighttpd" depends_dev= makedepends="$depends_dev ruby-gems" @@ -48,11 +49,11 @@ package() { # move app to webapps dir mv * "$pkgdir/$_webapps/$pkgname" # install default config to /etc/redmine - install -m644 -D "$srcdir"/database.yml \ + install -g lighttpd -m640 -D "$srcdir"/database.yml \ "$pkgdir"/etc/redmine/database.yml - install -m644 -D "$srcdir"/configuration.yml \ + install -g lighttpd -m644 -D "$srcdir"/configuration.yml \ "$pkgdir"/etc/redmine/configuration.yml - install -m644 -D "$srcdir"/additional_environment.rb \ + install -g lighttpd -m644 -D "$srcdir"/additional_environment.rb \ "$pkgdir"/etc/redmine/additional_environment.rb # we use fcgi by default cd "$pkgdir/$_webapps/$pkgname"/public @@ -62,8 +63,12 @@ package() { ln -s /etc/redmine/database.yml ln -s /etc/redmine/configuration.yml ln -s /etc/redmine/additional_environment.rb - # move redmine log to /var/log cd "$pkgdir/$_webapps/$pkgname" + # permissions + mkdir -p tmp tmp/pdf public/plugin_assets + chown -R lighttpd:lighttpd files log tmp public/plugin_assets + 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 @@ -76,12 +81,11 @@ package() { # set correct permissions chown -R lighttpd:lighttpd \ "$pkgdir/$_webapps/$pkgname" \ - "$pkgdir"/var/log/"$pkgname" \ - "$pkgdir"/etc/"$pkgname" + "$pkgdir"/var/log/"$pkgname" } md5sums="42feb03a4447bb6551eba34721ec235b redmine-2.1.2.tar.gz -b9ca61be7418969188c74c110e3fe3a5 additional_environment.rb -69243d1b5b9b111da631c7034d51ba71 configuration.yml -4c4b10aadbc229ea75f309ff1fafcd7a database.yml +06fa866e699a6f867603f886be3a5eea additional_environment.rb +7347eb8fa89144c8a0ca292702203803 configuration.yml +2b97d378d27a10a7b5ff2161aefbbb1a database.yml f43ad7e5875b46b723c69b3a9b5e52f2 lighttpd-virtual.conf" |