blob: 14b69f9832146bee7820667e71b409068b767608 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
# Contributor: Daniel Nagy <danielnagy at gmx de>
# Contributor: kusakata <shohei atmark kusakata period com>
_gemname=fluentd
pkgname=$_gemname
pkgver=1.14.5
pkgrel=1
pkgdesc='Data collector designed to scale and simplify log management'
arch=('any')
url='https://www.fluentd.org'
license=('Apache')
_deps=(
'bundler'
'msgpack'
'yajl-ruby'
'cool.io'
'serverengine'
'http_parser.rb'
'sigdump'
'tzinfo'
'tzinfo-data'
'strptime'
'webrick'
)
depends=('ruby' "${_deps[@]/#/ruby-}")
optdepends=(
'jemalloc: for a more efficient malloc implementation'
'ruby-oj: for a faster json parser'
)
options=(!emptydirs)
source=(
"https://rubygems.org/downloads/$_gemname-$pkgver.gem"
'systemd.service'
'tmpfiles.conf'
'sysusers.conf'
)
install="$pkgname.install"
noextract=("$_gemname-$pkgver.gem")
backup=('etc/fluent/fluentd.conf')
sha512sums=('2deea632f498d43f97f174905e9222fe49b58405ab2ef8804e2fc9b3ab93d72896d8dbb0874ed7cc8495e6e6e72c083743bd898296c80473f817e5829c63356c'
'01de8becfbd191063e162edcdb623281d6edf140bac6bb4c01aab976f887cb30184484e8196a9942a8623a418e1f49e2d059ac25a943ee9182eeab0e243630f6'
'084f2716b1d65a49d2126a6fdb8016c7e92eb58a2c7c934236dbfdff65c5643d69f0e6bc71f0cdcb6c2edf8bc071c2f0f31da3c70f6c12220eaf69cb70221e6b'
'af264f901a23ae4b611c57779222c004a348cb7efbe7a2922ce01cef8bc047e42c394309e4746d3b669105d04fbacd057e68487e214c6929328e9cc2a9439980')
b2sums=('ed3a991dd7e26c8cd3513501669f65cf68ea610d83a37e5cd974a6d3a62ff17bd82ef36f95eafe47caa4e34dd269b7e3b525909b2fbf2aff6bafbf6fbaffe66f'
'593511fb52e2d934e89bbdae7ac7687b29165a6d20a48bab223b91b2010c82811da0a79f9c51ee857b48f2fca06677ba0f9db43bb8990df723620fa3471045a9'
'8957872f805a274a56ae9e63896033a5fe175bd4d71704e62aff18524b95bf2a611bb3a4bff3c93b6d977f209e415a7d38d806341e144919022226ab1f53247d'
'78cf6da081b7f370bfe6b362e5f545cefcb770cc42eafd713de5befd8489c543a99e60112b09dc47b7867fdac8be91291cab68fc102f97834f248ce879782d6c')
package() {
# systemd integration
install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
local _gemdir="$(ruby -e'puts Gem.default_dir')"
gem install \
--ignore-dependencies \
--no-user-install \
--no-document \
--install-dir "$pkgdir/$_gemdir" \
--bindir "$pkgdir/usr/bin" \
"$_gemname-$pkgver.gem"
# delete unnecessary files/folders
rm -vrf "$pkgdir/$_gemdir/cache"
cd "$pkgdir/$_gemdir/gems/$_gemname-$pkgver"
rm -vrf test \
.deepsource.toml \
.drone.yml \
.travis.yml \
.gitlab-ci.yml \
.gitignore \
.github \
appveyor.yml
# move documentation
cd "$pkgdir/$_gemdir/gems/$_gemname-$pkgver"
install -vdm755 "$pkgdir/usr/share/doc/$pkgname"
mv -vt "$pkgdir/usr/share/doc/$pkgname" \
docs/SECURITY_AUDIT.pdf *.md example
# configuration
install -vDm644 fluent.conf "$pkgdir/etc/fluent/fluentd.conf"
}
|