1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=graylog2-server
6 pkgdesc="Graylog2 is an open source syslog implementation that stores your logs in MongoDB"
8 url="http://graylog2.org/"
10 depends=(java-runtime mongodb)
16 backup=(etc/graylog2.conf etc/graylog2.d/rules/graylog2.drl etc/conf.d/graylog2)
18 https://github.com/downloads/Graylog2/$pkgname/$pkgname-$pkgver.tar.gz
19 https://github.com/Graylog2/graylog2-server/raw/aa3ab41671cea39545b499f03b2c454546e3f0de/misc/graylog2.drl
25 cd "$srcdir/$pkgname-$pkgver"
27 install -D -m0755 "$srcdir/graylog2.rc.d" "$pkgdir/etc/rc.d/graylog2"
28 install -D -m0755 "$srcdir/graylog2.conf.d" "$pkgdir/etc/conf.d/graylog2"
29 install -D -m0644 "$srcdir/graylog2.drl" "$pkgdir/etc/graylog2.d/rules/graylog2.drl"
30 install -D -m0644 graylog2-server.jar "$pkgdir/usr/lib/graylog2-server.jar"
32 sed -e 's|mongodb_host.*|mongodb_host = 127.0.0.1|' \
33 -e 's|mongodb_useauth.*|mongodb_useauth = false|' \
34 graylog2.conf.example > "$pkgdir/etc/graylog2.conf"
37 md5sums=('c04257c0617555b8fec1580fbfa9ba5a'
38 '6e67d9c7b2d8bf648d7a76740493fcb7'
39 'ccebd3eb840a3cdc1569630a84239297'
40 '89aeea373b25af3ebb38848c5771e10a')