aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-unicorn/APKBUILD
blob: 6068cb35b37e223f7cce3ce35d372bf9a30949a3 (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
57
58
59
60
61
62
63
64
65
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
_gemname=unicorn
pkgname=ruby-unicorn
pkgver=4.8.3
pkgrel=2
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

	cd "$pkgdir"
	for i in usr/lib/ruby/gems/*/bin/*; do
		if [ -e "$i" ]; then
			mkdir -p "$pkgdir"/usr/bin
			ln -s /$i "$pkgdir"/usr/bin/
		fi
	done

        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="d1f58658c7ad4e46c4f319cc715fb710  unicorn-4.8.3.gem
416e6d6c3e5f9f191d1e8c3975b0d4f5  redmine.conf.rb.sample
f32a54abc3df5273620bd493f314c3ee  unicorn.initd
0745d4e1605ff961c83773613c68347d  unicorn.confd"
sha256sums="44b74e46fc8cd67510ecc7fac31d4c8503955066781542b36f1d8a3ee316efce  unicorn-4.8.3.gem
87a565f79a3f4b0544880af67c66e28fa0afdca9576191e725853da1159ec1f1  redmine.conf.rb.sample
41cc2f5235d15e2bf1676a35464013630aa0518773e1de21519fc1eceda54eee  unicorn.initd
8b6c5aff19eb8234192f8df79f5c8c7a2325f8f26a90af97271bf126269dc93c  unicorn.confd"
sha512sums="6c8a3c9331d380ebe6e9765a873a4ec37e91dc5e743af5f3d6814ffc19dabb64945994463bb64b7dc43e9a78160fa6f1e5b6c9e1f41b3a54089793f801c44e73  unicorn-4.8.3.gem
11abdc40c406e88c71feeb1bd6282534552f782398b694907e6afb266361e30091f4e9645e3ae9cc14bae68a4909cb087bbf0f6c13c3e26b41518565e942492d  redmine.conf.rb.sample
eddf9b47c56c5962e7fe832f06ceecf3c4320ac00b39f8b06846bf542d5aaf9c78cded5a6e33675197593463d0192d4d61a7e14dea938b7227458c8c57d15a28  unicorn.initd
40931b0f41f8f19ed2bfee726c6abdf40e9ca03940ca6fa4db0c468b59409b99506dbad47316dec528ae7173b6bd3856ba80be1f45fa3995ed18efefed1c4ce1  unicorn.confd"