summaryrefslogtreecommitdiffstats
path: root/main/ruby-unicorn/APKBUILD
blob: 21bf3586e4bb1c21dc229f25145046412e30acab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
_gemname=unicorn
pkgname=ruby-unicorn
pkgver=4.6.3
pkgrel=1
pkgdesc="Unicorn is an HTTP server for Rack applications"
url="http://unicorn.bogomips.org"
arch="all"
license="MIT"
depends="ruby ruby-kgio ruby-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"