diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-06-20 14:46:48 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-06-20 14:46:48 +0000 |
commit | bddf3be000f10dded2305ae67c954e21f9afc6e7 (patch) | |
tree | 98fad2b2558fb9874beb627681651212327ecbac /testing | |
parent | 00fa4e2bb6c0c08582aeea98158480f7b3a2239b (diff) | |
download | aports-bddf3be000f10dded2305ae67c954e21f9afc6e7.tar.bz2 aports-bddf3be000f10dded2305ae67c954e21f9afc6e7.tar.xz |
testing/redmine: some apkbuild fixes and cleanup
Diffstat (limited to 'testing')
-rw-r--r-- | testing/redmine/APKBUILD | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/testing/redmine/APKBUILD b/testing/redmine/APKBUILD index 235e8c043b..b3bd5a13f5 100644 --- a/testing/redmine/APKBUILD +++ b/testing/redmine/APKBUILD @@ -39,45 +39,43 @@ build() { package() { cd "$_builddir" - mkdir -p "$pkgdir/$_webapps/$pkgname" \ + mkdir -p "$pkgdir/$_webapps/$pkgname" \ "$pkgdir"/var/log \ "$pkgdir"/etc/lighttpd \ "$pkgdir"/var/www/localhost/htdocs # move app to webapps dir mv * "$pkgdir/$_webapps/$pkgname" - # install default config to /etc/redmine - install -m644 -D "$srcdir"/database.yml \ + # install default config to /etc/redmine + install -m644 -D "$srcdir"/database.yml \ "$pkgdir"/etc/redmine/database.yml - install -m644 -D "$srcdir"/configuration.yml \ + install -m644 -D "$srcdir"/configuration.yml \ "$pkgdir"/etc/redmine/configuration.yml - install -m644 -D "$srcdir"/additional_environment.rb \ + install -m644 -D "$srcdir"/additional_environment.rb \ "$pkgdir"/etc/redmine/additional_environment.rb + # we use fcgi by default + cd "$pkgdir/$_webapps/$pkgname"/public + ln -s dispatch.fcgi.example dispatch.fcgi + cd "$pkgdir/$_webapps/$pkgname"/config # link config to webapps dir - ln -s /etc/redmine/database.yml \ - "$pkgdir/$_webapps/$pkgname"/config/database.yml - ln -s /etc/redmine/configuration.yml \ - "$pkgdir/$_webapps/$pkgname"/config/configuration.yml - ln -s /etc/redmine/additional_environment.rb \ - "$pkgdir/$_webapps/$pkgname"/config/additional_environment.rb + 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 - mv "$pkgdir/$_webapps/$pkgname"/log \ - "$pkgdir"/var/log/$pkgname - # symlink logs to var log - ln -s /var/log/redmine \ - "$pkgdir/$_webapps/$pkgname"/log + cd "$pkgdir/$_webapps/$pkgname" + mv log "$pkgdir"/var/log/$pkgname + # symlink logs to var log + ln -s /var/log/redmine log # symlink redmine to htdocs dir ln -s "/$_webapps/$pkgname" \ "$pkgdir"/var/www/localhost/htdocs/"$pkgname" # example lighttpd config for redmine virtual hosting - cp "$srcdir"/lighttpd-virtual.conf \ - "$pkgdir"/etc/lighttpd/redmine-virtual.conf + cp "$srcdir"/lighttpd-virtual.conf \ + "$pkgdir"/etc/lighttpd/redmine-virtual.conf # set correct permissions chown -R lighttpd:lighttpd \ "$pkgdir/$_webapps/$pkgname" \ - "$pkgdir"/var/log/"$pkgname" \ - "$pkgdir"/etc/"$pkgname" - ln -s "$pkgdir/$_webapps/$pkgname"/public/dispatch.fcgi.example \ - "$pkgdir/$_webapps/$pkgname"/public/dispatch.fcgi + "$pkgdir"/var/log/"$pkgname" \ + "$pkgdir"/etc/"$pkgname" } md5sums="9d9809a6137c75f754a7fb6c0acc1d6c redmine-1.2.0.tar.gz |