aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-10-01 14:51:24 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-10-01 14:51:24 +0000
commit28818127fb91a2c8f405eba17f8cdd97ff32f738 (patch)
treeeb6c0cb67a6dd10eb9cf81ea72d50574f734089d
parent77a17ccd1040e10cec01b635df48a2dee7c0e3fa (diff)
downloadaports-28818127fb91a2c8f405eba17f8cdd97ff32f738.tar.bz2
aports-28818127fb91a2c8f405eba17f8cdd97ff32f738.tar.xz
main/ruby-redmine-unicorn: new aport
-rw-r--r--main/ruby-redmine-unicorn/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/main/ruby-redmine-unicorn/APKBUILD b/main/ruby-redmine-unicorn/APKBUILD
new file mode 100644
index 0000000000..54f1c6914c
--- /dev/null
+++ b/main/ruby-redmine-unicorn/APKBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
+_gemname=unicorn
+pkgname=ruby-redmine-$_gemname
+pkgver=4.6.3
+pkgrel=0
+pkgdesc="Unicorn is an HTTP server for Rack applications"
+url="http://unicorn.bogomips.org"
+arch="all"
+license="MIT"
+depends="ruby ruby-kgio ruby-redmine-rack ruby-raindrops"
+depends_dev="ruby-dev"
+makedepends="$depends_dev ruby"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem
+ redmine.conf.rb.sample
+ unicorn.initd
+ unicorn.confd"
+
+_builddir="$srcdir"/$_realname-$pkgver
+build() {
+ return 0
+}
+
+package() {
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
+ mkdir -p "$pkgdir" || return 1
+
+ gem install --local --install-dir "$pkgdir"/$_gemdir \
+ --ignore-dependencies --verbose --no-rdoc --no-ri \
+ "$srcdir"/$_gemname-$pkgver.gem || return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+ install -Dm644 "$srcdir"/$_gemname.confd \
+ "$pkgdir"/etc/conf.d/$_gemname
+ install -D -m755 "$srcdir"/$_gemname.initd \
+ "$pkgdir"/etc/init.d/$_gemname
+ # install sample redmine config
+ install -D -m644 "$srcdir"/redmine.conf.rb.sample \
+ "$pkgdir"/etc/unicorn/redmine.conf.rb.sample
+}
+
+md5sums="2e627fe7977eb48b02a2b580ff67583c unicorn-4.6.3.gem
+416e6d6c3e5f9f191d1e8c3975b0d4f5 redmine.conf.rb.sample
+3b788ff54077428658e7044fb54c8364 unicorn.initd
+0745d4e1605ff961c83773613c68347d unicorn.confd"
+sha256sums="fd0b12148a24acfd8bf28a0322e4116061e64e271253e077999e4ec531a74966 unicorn-4.6.3.gem
+87a565f79a3f4b0544880af67c66e28fa0afdca9576191e725853da1159ec1f1 redmine.conf.rb.sample
+6fc8d9b2dfbb1cf7113b6e7fb49991a675e20705410a47ceb7a95af2ae557f29 unicorn.initd
+8b6c5aff19eb8234192f8df79f5c8c7a2325f8f26a90af97271bf126269dc93c unicorn.confd"
+sha512sums="a3a2a45751a4226d97cb3948587de89fa30fedae6000b6d272171495919432b8298614ca97ff176df136304e19e7e3eba903d5554a0211fa520ad8123f137611 unicorn-4.6.3.gem
+11abdc40c406e88c71feeb1bd6282534552f782398b694907e6afb266361e30091f4e9645e3ae9cc14bae68a4909cb087bbf0f6c13c3e26b41518565e942492d redmine.conf.rb.sample
+b7d510fa9043d4023e8ad3590b4e019aaf8f072aaa39205736d5205defffd4d7e3b714e3e41180cd5ac36cef59795b73755edaf151eb5f886f910915f8a5c668 unicorn.initd
+40931b0f41f8f19ed2bfee726c6abdf40e9ca03940ca6fa4db0c468b59409b99506dbad47316dec528ae7173b6bd3856ba80be1f45fa3995ed18efefed1c4ce1 unicorn.confd"