updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / graylog2-server / PKGBUILD
blob64a71b1bcc5e0123c3d72a6aa2513fbccb205deb
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=graylog2-server
4 pkgver=0.9.6
5 pkgrel=1
6 pkgdesc="Graylog2 is an open source syslog implementation that stores your logs in MongoDB"
7 arch=(any)
8 url="http://graylog2.org/"
9 license=('GPL')
10 depends=(java-runtime mongodb)
11 optdepends=(
12         "zeromq"
13         "apache-activemq"
14         "rabbitmq"
16 backup=(etc/graylog2.conf etc/graylog2.d/rules/graylog2.drl etc/conf.d/graylog2)
17 source=(
18         https://github.com/downloads/Graylog2/$pkgname/$pkgname-$pkgver.tar.gz
19         https://github.com/Graylog2/graylog2-server/raw/aa3ab41671cea39545b499f03b2c454546e3f0de/misc/graylog2.drl
20         graylog2.rc.d
21         graylog2.conf.d
24 package() {
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')