blob: 65210ce6b0cd77620ac719d494205df1a6a5bd9e (
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
|
# Maintainer: Klaus Tachtler <klaus@tachtler.net>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Spider.007 <aur@spider007.net>
pkgname=graylog
pkgver=6.1.2
pkgrel=1
pkgdesc='Free and open source log management platform'
arch=('any')
url="https://github.com/graylog2/graylog2-server"
license=('custom:SSPL')
depends=('java-runtime>=17')
optdepends=('mongodb>=5' 'opensearch')
changelog=UPGRADING.md
backup=('etc/graylog/server/server.conf')
install=graylog.install
source=(
"$pkgname-$pkgver.tar.gz::https://packages.graylog2.org/releases/$pkgname/$pkgname-${pkgver/_/-}.tgz"
graylog-tmpfiles.conf
graylog.service)
sha256sums=('f78070a238b89424f95dd30494b2317f82f58e18aae0d612bcb77a575bb08472'
'4d3c0bb83c7a02a5a902670b060d045068f5201728194a4473b2c2ba99bbd43d'
'42340980c59327d40354863da7431c4f92b45a19cea2cdccf2f2ae26e0adc38c')
package() {
cd "$pkgname-$pkgver"
install -Dvm644 "$pkgname.jar" "$pkgdir/usr/lib/$pkgname/server.jar"
install -Dvm644 plugin/*.jar -t "$pkgdir/usr/lib/$pkgname/plugin/"
install -Dvm644 "$srcdir/$pkgname-tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/$pkgname-server.conf"
install -Dvm644 "$pkgname.conf.example" "$pkgdir/etc/$pkgname/server/server.conf"
install -Dvm644 README.markdown "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dvm644 "$srcdir/$pkgname.service" -t "$pkgdir/usr/lib/systemd/system/"
# make absolute just in case
sed -i \
-e 's~^\(plugin_dir =\) plugin$~\1 /usr/lib/graylog/plugin~g' \
-e 's~^\(message_journal_dir =\) data/journal$~\1 /var/lib/graylog/data/journal~g' \
-e 's~^\(content_packs_dir =\) data/contentpacks$~\1 /usr/lib/graylog/data/contentpacks~g' \
"$pkgdir/etc/$pkgname/server/server.conf"
}
|