blob: eb1867b685dcf76ec06808f2a691b059be920755 (
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.8.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-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="d1f58658c7ad4e46c4f319cc715fb710 unicorn-4.8.3.gem
416e6d6c3e5f9f191d1e8c3975b0d4f5 redmine.conf.rb.sample
3b788ff54077428658e7044fb54c8364 unicorn.initd
0745d4e1605ff961c83773613c68347d unicorn.confd"
sha256sums="44b74e46fc8cd67510ecc7fac31d4c8503955066781542b36f1d8a3ee316efce unicorn-4.8.3.gem
87a565f79a3f4b0544880af67c66e28fa0afdca9576191e725853da1159ec1f1 redmine.conf.rb.sample
6fc8d9b2dfbb1cf7113b6e7fb49991a675e20705410a47ceb7a95af2ae557f29 unicorn.initd
8b6c5aff19eb8234192f8df79f5c8c7a2325f8f26a90af97271bf126269dc93c unicorn.confd"
sha512sums="6c8a3c9331d380ebe6e9765a873a4ec37e91dc5e743af5f3d6814ffc19dabb64945994463bb64b7dc43e9a78160fa6f1e5b6c9e1f41b3a54089793f801c44e73 unicorn-4.8.3.gem
11abdc40c406e88c71feeb1bd6282534552f782398b694907e6afb266361e30091f4e9645e3ae9cc14bae68a4909cb087bbf0f6c13c3e26b41518565e942492d redmine.conf.rb.sample
b7d510fa9043d4023e8ad3590b4e019aaf8f072aaa39205736d5205defffd4d7e3b714e3e41180cd5ac36cef59795b73755edaf151eb5f886f910915f8a5c668 unicorn.initd
40931b0f41f8f19ed2bfee726c6abdf40e9ca03940ca6fa4db0c468b59409b99506dbad47316dec528ae7173b6bd3856ba80be1f45fa3995ed18efefed1c4ce1 unicorn.confd"
|