summaryrefslogtreecommitdiff
path: root/app-admin/graylog2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/graylog2
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/graylog2')
-rw-r--r--app-admin/graylog2/Manifest12
-rw-r--r--app-admin/graylog2/files/confd7
-rw-r--r--app-admin/graylog2/files/confd-r19
-rw-r--r--app-admin/graylog2/files/initd54
-rw-r--r--app-admin/graylog2/files/initd-r155
-rw-r--r--app-admin/graylog2/graylog2-2.1.2.ebuild67
-rw-r--r--app-admin/graylog2/graylog2-2.2.2.ebuild87
-rw-r--r--app-admin/graylog2/graylog2-2.2.3.ebuild87
-rw-r--r--app-admin/graylog2/metadata.xml8
9 files changed, 386 insertions, 0 deletions
diff --git a/app-admin/graylog2/Manifest b/app-admin/graylog2/Manifest
new file mode 100644
index 000000000000..3ba73eb0d715
--- /dev/null
+++ b/app-admin/graylog2/Manifest
@@ -0,0 +1,12 @@
+AUX confd 391 SHA256 0dd88acff8e55bb4dbaaf89acd2d6d7b3fdb3b6002d310aef1447da3a4306526 SHA512 5adfb7b72488bd25e26fd7ddee90f50a244d2a90b3dff63fc9791fb213cf14da09e0ead75eeb33e540218b343564d7b56552414c090b517e4abdd8bc7cd58f68 WHIRLPOOL 727d1ad453143ce08587f57151886fa1ffe8bcb7cb2086c80a729b33220d846699511715fd1ed714da0858b2adeea71292626ff768993d8320f8aac36e7aadb4
+AUX confd-r1 521 SHA256 161c0126089094f4a9a61c0f174707f7831d61fab340180c7c11aa54bab2eb65 SHA512 a1fc50cbab0960cea36bf77b052284d52ec7bdd23e56d90fcb1712dcee608c4c0555557c4cfaa5fb0ce6165f0cf1a88888e705e9c64104af79a18be525ec9725 WHIRLPOOL 4e78e99e71dee56c616d216e0b59105fbb957a4eb002ccdf0b86e840a6815fbc9c7918deaed1110a8c66e293488f66773e787f5953e7451e9929eb0693f093aa
+AUX initd 1418 SHA256 feaa51d83c9671f3c1d36b5273ae16f34d183d4555ac8f7ba2a9fe2755c6312a SHA512 69017bc9679e710a100fa71f651d619c485954515883116287135a52c05335fb6f868eeda2bac4ea877ed8464a7cc2ac34df355189986aba172495aecc9a5379 WHIRLPOOL d0e9359f9fb8ad4b5bdd2ab26d3946d4d38d5d5dc7140077e3b7f674c9c2fec1a3ef5d8c4ebf8efae2d97fe03b80ad6e995ca8cca0642a269f0f91cf9acc5bd1
+AUX initd-r1 1580 SHA256 d1828acfa66c02fbb8393181dc979f7010e3aa4aa7ec6aaf5de5c39368ead7ba SHA512 871085b5b50ca473451c42a39181ba4a626475abfc7160f7308e6fae9fe78b6bcdef397c0f5a44d9949adcbaacdb0c50fe236b54e95e1602896f4339c71c3b10 WHIRLPOOL 58ccde7e6bfc08f4c7aae9c646e632780cee38c085ebdb603d4a7e6ba8580ce9838faac9529e9dae483f5285b523639a6aec5adca384aad01d11b8f7f11f28d1
+DIST graylog-2.1.2.tgz 94284738 SHA256 5d653467fb18fdd58b261598dc820f90d48e2018e7cd8d9f103003a0070d954b SHA512 df636143ff90b0aedcb6db78e20125c10da2428b6e474e925d6fc011fdc3a0b88414ec914981a71a0e08c4916cb5cd18a8eeda28e01d9edf3b3ae4a8fb0a90dc WHIRLPOOL 1ecdb53b0ea0ad55c76604417366f21e6e2c4fb76e1cd38b93d332e08976380096b340bee6120ed2a40949ac31620e37f4ac46f3794805d0313d74211b48c512
+DIST graylog-2.2.2.tgz 99956086 SHA256 46f419d422f6e5816b29333c8510524f1bbc910d6bf00136adb3899a985fceb4 SHA512 341548b5d48e3a2008a1264128a604320b566b8f0e8da4d2fca54a69e1412a69839d09698e13d97dd399652611a3e24dd54dc81f56bc4ca00278afbd61ba9c2c WHIRLPOOL aae06b70f4f12df0bb76bd6e23228d64ea19c4a6a619f5e7f4bde2fd52039959d2c949b74240ef2d229e51db25ff47465ae2786fe47e18eb0fb1fa76b8739e1f
+DIST graylog-2.2.3.tgz 99971278 SHA256 3de01e7cb8ebc02a7f06cec1c88eded3b717762447bf1b56bff8744f7f5ea80b SHA512 19ad14bdee733b4ceed526af7f446fc74a4ac5bc6a0b4784618edd84a84aa00378c203d4051a3232c17caaf47f3ffe684cb8b17ce88c8d98e7b29bc22c0058e8 WHIRLPOOL 60655b7f70cf7093114194239f1260d97887be344424a064b236fb152e17864110848b2143608c5908d95823fd7363cca5c73b6f2f1bffa790c269c4af9b05d5
+EBUILD graylog2-2.1.2.ebuild 1862 SHA256 d3fd4b2a16f514ba9821d6dbc79f93415610823aa8b4647586a08b15c8b0ea7d SHA512 43efdd7b105a59ce897beda8d49c4797ccee133929df87903a47c4d22faea1e5bec8ba2e80519ea5d635afdd2f8933fc35dda022078ddc2c251c6db43f45f157 WHIRLPOOL ea0afea0f887eb4e1ffc1a0d5be7f6c75b9377115a6bff17fdbc924a9370af714fa975f224f7b58e01ece5c5eebd9b79e679847dff2568ae5f8e439d70865303
+EBUILD graylog2-2.2.2.ebuild 2199 SHA256 cc33d5356ac4142125cbbd09a15e1864052500c90095bd42e887059b62db5d4f SHA512 d8fc5fbd3a09adb4dc0904e501103e9e6da18f1ab80a19908190a91cf271fcf997f73fbfdecd6a28acafa763643335c76c653a2759fde581025e1af5ff77255f WHIRLPOOL add6e47b5b7dd8ad8369611c94b9dc4e14703843532875280607b0733c2c632cefd2254359ad5884e451092f8559ce7bd09c3b09c667147ecc23f55d08e2557a
+EBUILD graylog2-2.2.3.ebuild 2206 SHA256 16ad6e6cd31706bad25084b5a4d6fcec39ecac070a10d3e0e965a876f26bf99c SHA512 a7e6ddf34c75c835cc85fc6b5b58aed0005f88b4e0488d35832930db11d57d7c7896ccf495e3b04dad9d9330f4c98da906916c0e0cdab96956b04f3b941a9016 WHIRLPOOL 91ae4edcfdb4a2ecd5ffa0563dfa3f67e5faa0eae8b7470f1c2c81551e487d739e5c85e5f3db081aa85e33203870b24e7ce6025653fcc5e4a06b830a84612d79
+MISC ChangeLog 815 SHA256 4a61e436efbadfd95b133e4edb8b0adfbea9385b5d7b6ed5b29b996bb1c284c9 SHA512 b2674d7e916ac259981da6ef9a3104fe968ef796f8839407859dbbaea4df06c11aae731bf1fad2a9530ba45a604df30b985621c2ee77f1093a17d783f64b3f94 WHIRLPOOL 952ccd1c70c737041b585329b71da555b68bbce5d52a5d20c5ce2b4f8811a2c434c73993965bcb9641a2c27667ed1597125d73d9648c9378c6c11788bf709279
+MISC metadata.xml 251 SHA256 f6ff468128d9aa804b47d9a184c761b4123b908d302eec0953226acd00fc80df SHA512 7ea734b9e52a4e36b11e004da4a8178aa529574adee2129ba57b1ce75fd5017431fdfffe7a4a536c798ae645497a44b07c748d77308325cf4d6af070ff167edd WHIRLPOOL 1610f6ab9cfa21736bbc4643fec692b621f8889a5888b4189847af4aa6f5719829cfaba363c480483fe7e8fb2c40d417e986964b52cb21d564940c4b51f8554d
diff --git a/app-admin/graylog2/files/confd b/app-admin/graylog2/files/confd
new file mode 100644
index 000000000000..58291368f353
--- /dev/null
+++ b/app-admin/graylog2/files/confd
@@ -0,0 +1,7 @@
+GRAYLOG_CONFIG_FILE="/etc/graylog2/graylog.conf"
+GRAYLOG_GROUP="graylog"
+GRAYLOG_LOG_DIR="/var/log/graylog2"
+GRAYLOG_USER="graylog"
+GRAYLOG_OPTIONS=""
+GRAYLOG_PID_FILE="/run/graylog2/graylog.pid"
+JAVA_OPTS="-Xms1g -Xmx1g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow"
diff --git a/app-admin/graylog2/files/confd-r1 b/app-admin/graylog2/files/confd-r1
new file mode 100644
index 000000000000..23b632ac4338
--- /dev/null
+++ b/app-admin/graylog2/files/confd-r1
@@ -0,0 +1,9 @@
+GRAYLOG_CONFIG_FILE="/etc/graylog2/graylog.conf"
+GRAYLOG_GROUP="graylog"
+GRAYLOG_LOG_DIR="/var/log/graylog2"
+GRAYLOG_INSTALL_DIR="/usr/share/graylog2"
+GRAYLOG_DATA_DIR="/var/lib/graylog2"
+GRAYLOG_USER="graylog"
+GRAYLOG_OPTIONS=""
+GRAYLOG_PID_FILE="/run/graylog2/graylog.pid"
+JAVA_OPTS="-Djava.library.path=$GRAYLOG_INSTALL_DIR/lib/sigar -Xms1g -Xmx1g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow"
diff --git a/app-admin/graylog2/files/initd b/app-admin/graylog2/files/initd
new file mode 100644
index 000000000000..20c2143e96c9
--- /dev/null
+++ b/app-admin/graylog2/files/initd
@@ -0,0 +1,54 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export JAVA_HOME=`java-config --jre-home`
+
+checkconfig() {
+ if [ ! -r "${GRAYLOG_CONFIG_FILE}" ]; then
+ eerror "GRAYLOG_CONFIG_FILE doesn't point to a readable config file"
+ fi
+}
+
+depend() {
+ need net
+}
+
+start() {
+ checkconfig || return 1
+
+ [ -e `dirname "$GRAYLOG_PID_FILE"` ] || \
+ install -d -o${GRAYLOG_USER} -g${GRAYLOG_GROUP} -m750 `dirname "$GRAYLOG_PID_FILE"`
+
+ [ -e "$GRAYLOG_LOG_DIR" ] || \
+ install -d -o${GRAYLOG_USER} -g${GRAYLOG_GROUP} -m750 "$GRAYLOG_LOG_DIR"
+
+ CLASSPATH="$(java-config -r)"
+ CLASSPATH="${CLASSPATH}:$(java-config -d --classpath sigar)"
+
+ ebegin "Starting Graylog"
+
+ start-stop-daemon \
+ --start \
+ --exec "${JAVA_HOME}/bin/java" \
+ --user ${GRAYLOG_USER} \
+ --group ${GRAYLOG_GROUP} \
+ --env CLASSPATH="${CLASSPATH}" \
+ --background \
+ --chdir /usr/share/graylog2 \
+ --stdout ${GRAYLOG_LOG_DIR}/graylog.stdout.log \
+ --stderr ${GRAYLOG_LOG_DIR}/graylog.stderr.log \
+ -- ${JAVA_OPTS} -Djava.library.path=`java-config --lib sigar` -classpath "${CLASSPATH}" -jar /usr/share/graylog2/graylog.jar server -f "${GRAYLOG_CONFIG_FILE}" -p "${GRAYLOG_PID_FILE}" ${GRAYLOG_OPTIONS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Graylog"
+
+ start-stop-daemon \
+ --stop \
+ --pidfile "${GRAYLOG_PID_FILE}"
+
+ eend $?
+}
diff --git a/app-admin/graylog2/files/initd-r1 b/app-admin/graylog2/files/initd-r1
new file mode 100644
index 000000000000..cc068808ebf3
--- /dev/null
+++ b/app-admin/graylog2/files/initd-r1
@@ -0,0 +1,55 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export JAVA_HOME=`java-config --jre-home`
+
+checkconfig() {
+ if [ ! -r "${GRAYLOG_CONFIG_FILE}" ]; then
+ eerror "GRAYLOG_CONFIG_FILE doesn't point to a readable config file"
+ fi
+}
+
+depend() {
+ need net
+}
+
+start() {
+ checkconfig || return 1
+
+ [ -e `dirname "$GRAYLOG_PID_FILE"` ] || \
+ install -d -o${GRAYLOG_USER} -g${GRAYLOG_GROUP} -m750 `dirname "$GRAYLOG_PID_FILE"`
+
+ [ -e "$GRAYLOG_LOG_DIR" ] || \
+ install -d -o${GRAYLOG_USER} -g${GRAYLOG_GROUP} -m750 "$GRAYLOG_LOG_DIR"
+
+ ebegin "Starting Graylog"
+
+ checkpath -d -o "${GRAYLOG_USER}:${GRAYLOG_GROUP}" -m750 "${GRAYLOG_DATA_DIR}"
+ checkpath -d -o "${GRAYLOG_USER}:${GRAYLOG_GROUP}" -m750 "${GRAYLOG_DATA_DIR}/data"
+ checkpath -d -o "${GRAYLOG_USER}:${GRAYLOG_GROUP}" -m750 "${GRAYLOG_DATA_DIR}/data/contentpacks"
+ checkpath -d -o "${GRAYLOG_USER}:${GRAYLOG_GROUP}" -m750 "${GRAYLOG_DATA_DIR}/data/journal"
+
+ start-stop-daemon \
+ --start \
+ --exec "${JAVA_HOME}/bin/java" \
+ --user ${GRAYLOG_USER} \
+ --group ${GRAYLOG_GROUP} \
+ --background \
+ --chdir ${GRAYLOG_INSTALL_DIR} \
+ --stdout ${GRAYLOG_LOG_DIR}/graylog.stdout.log \
+ --stderr ${GRAYLOG_LOG_DIR}/graylog.stderr.log \
+ -- ${JAVA_OPTS} -jar ${GRAYLOG_INSTALL_DIR}/graylog.jar server -f "${GRAYLOG_CONFIG_FILE}" -p "${GRAYLOG_PID_FILE}" ${GRAYLOG_OPTIONS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Graylog"
+
+ start-stop-daemon \
+ --stop \
+ --pidfile "${GRAYLOG_PID_FILE}"
+
+ eend $?
+}
diff --git a/app-admin/graylog2/graylog2-2.1.2.ebuild b/app-admin/graylog2/graylog2-2.1.2.ebuild
new file mode 100644
index 000000000000..d6c214a10d01
--- /dev/null
+++ b/app-admin/graylog2/graylog2-2.1.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user
+
+DESCRIPTION="Free and open source log management"
+HOMEPAGE="https://graylog.org"
+SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE=""
+
+MY_PN="graylog"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+QA_PREBUILT="/usr/share/graylog2/lib/sigar/libsigar*"
+RESTRICT="strip"
+
+DEPEND=""
+RDEPEND="virtual/jdk:1.8"
+
+INSTALL_DIR="/usr/share/graylog2"
+
+pkg_setup() {
+ enewgroup graylog
+ enewuser graylog -1 -1 -1 graylog
+}
+
+src_prepare() {
+ default
+ # graylogctl is replaced by our own initd
+ rm -r bin
+ # Stick to architecture of build host
+ if ! use amd64; then
+ rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries"
+ fi
+ if ! use ppc64; then
+ rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries"
+ fi
+ if ! use x86; then
+ rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries"
+ fi
+ # Currently unsupported platforms
+ # QA warning galore but testing/patches welcome
+ rm -r lib/sigar/libsigar-ia64-*.so || die "Failed in removing IA64 support libraries"
+ rm -r lib/sigar/libsigar-ppc-*.so || die "Failed in removing PPC support libraries"
+ rm -r lib/sigar/libsigar-*-freebsd-*.so || die "Failed in removing FreeBSD support libraries"
+ rm -r lib/sigar/libsigar-pa-*.sl || die "Failed in removing HPPA support libraries"
+ rm -r lib/sigar/libsigar-*-solaris.so || die "Failed in removing Solaris support libraries"
+}
+
+src_compile() {
+ einfo "Nothing to compile; upstream supplies JAR only"
+}
+
+src_install() {
+ insinto /etc/graylog2
+ doins graylog.conf.example
+ insinto "${INSTALL_DIR}"
+ doins *
+ newinitd "${FILESDIR}/initd" graylog2
+ newconfd "${FILESDIR}/confd" graylog2
+}
diff --git a/app-admin/graylog2/graylog2-2.2.2.ebuild b/app-admin/graylog2/graylog2-2.2.2.ebuild
new file mode 100644
index 000000000000..b61f58667285
--- /dev/null
+++ b/app-admin/graylog2/graylog2-2.2.2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user
+
+DESCRIPTION="Free and open source log management"
+HOMEPAGE="https://graylog.org"
+SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+MY_PN="graylog"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+INSTALL_DIR="/usr/share/graylog2"
+DATA_DIR="/var/lib/graylog2"
+
+QA_PREBUILT="${INSTALL_DIR}/lib/sigar/libsigar*"
+RESTRICT="strip"
+
+RDEPEND="virtual/jdk:1.8"
+
+pkg_setup() {
+ enewgroup graylog
+ enewuser graylog -1 -1 -1 graylog
+}
+
+src_prepare() {
+ default
+
+ # graylogctl is replaced by our own initd
+ rm -r bin
+
+ # Stick to architecture of build host
+ if ! use amd64; then
+ rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries"
+ fi
+ if ! use ppc64; then
+ rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries"
+ fi
+ if ! use x86; then
+ rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries"
+ fi
+ # Currently unsupported platforms
+ # QA warning galore but testing/patches welcome
+ rm lib/sigar/libsigar-*freebsd*so \
+ lib/sigar/libsigar-*solaris*so \
+ lib/sigar/libsigar-*hpux*.sl \
+ lib/sigar/libsigar-*macosx*.dylib \
+ lib/sigar/libsigar-ia64-*.so \
+ lib/sigar/libsigar-ppc-*.so \
+ lib/sigar/libsigar-s390x*.so \
+ lib/sigar/*winnt* || die "Failed in removing unsupported platform libraries"
+
+ # remove plugins
+ rm plugin/graylog-plugin-anonymous-usage-statistics-${PV}.jar || die
+
+ # gentoo specific paths
+ sed -i "s@\(node_id_file = \).*@\1${DATA_DIR}/node-id@g; \
+ s@\(message_journal_dir = \).*@\1${DATA_DIR}/data/journal@g; \
+ s@#\(content_packs_dir = \).*@\1/${DATA_DIR}/data/contentpacks@g" \
+ graylog.conf.example || die
+}
+
+src_compile() {
+ einfo "Nothing to compile; upstream supplies JAR only"
+}
+
+src_install() {
+ insinto /etc/graylog2
+ doins graylog.conf.example
+
+ insinto ${DATA_DIR}/data/contentpacks
+ doins data/contentpacks/grok-patterns.json
+
+ insinto "${INSTALL_DIR}"
+ doins *
+
+ doins -r lib plugin
+
+ newinitd "${FILESDIR}/initd-r1" graylog2
+ newconfd "${FILESDIR}/confd-r1" graylog2
+}
diff --git a/app-admin/graylog2/graylog2-2.2.3.ebuild b/app-admin/graylog2/graylog2-2.2.3.ebuild
new file mode 100644
index 000000000000..a7b8cd7ab679
--- /dev/null
+++ b/app-admin/graylog2/graylog2-2.2.3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user
+
+DESCRIPTION="Free and open source log management"
+HOMEPAGE="https://graylog.org"
+SRC_URI="https://packages.graylog2.org/releases/graylog/graylog-${PV}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+MY_PN="graylog"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+INSTALL_DIR="/usr/share/graylog2"
+DATA_DIR="/var/lib/graylog2"
+
+QA_PREBUILT="${INSTALL_DIR}/lib/sigar/libsigar*"
+RESTRICT="strip"
+
+RDEPEND="virtual/jdk:1.8"
+
+pkg_setup() {
+ enewgroup graylog
+ enewuser graylog -1 -1 -1 graylog
+}
+
+src_prepare() {
+ default
+
+ # graylogctl is replaced by our own initd
+ rm -r bin || die
+
+ # Stick to architecture of build host
+ if ! use amd64; then
+ rm -r lib/sigar/libsigar-amd64-*.so || die "Failed in removing AMD64 support libraries"
+ fi
+ if ! use ppc64; then
+ rm -r lib/sigar/libsigar-ppc64-*.so || die "Failed in removing PPC64 support libraries"
+ fi
+ if ! use x86; then
+ rm -r lib/sigar/libsigar-x86-*.so || die "Failed in removing X86 support libraries"
+ fi
+ # Currently unsupported platforms
+ # QA warning galore but testing/patches welcome
+ rm lib/sigar/libsigar-*freebsd*so \
+ lib/sigar/libsigar-*solaris*so \
+ lib/sigar/libsigar-*hpux*.sl \
+ lib/sigar/libsigar-*macosx*.dylib \
+ lib/sigar/libsigar-ia64-*.so \
+ lib/sigar/libsigar-ppc-*.so \
+ lib/sigar/libsigar-s390x*.so \
+ lib/sigar/*winnt* || die "Failed in removing unsupported platform libraries"
+
+ # remove plugins
+ rm plugin/graylog-plugin-anonymous-usage-statistics-${PV}.jar || die
+
+ # gentoo specific paths
+ sed -i "s@\(node_id_file = \).*@\1${DATA_DIR}/node-id@g; \
+ s@\(message_journal_dir = \).*@\1${DATA_DIR}/data/journal@g; \
+ s@#\(content_packs_dir = \).*@\1/${DATA_DIR}/data/contentpacks@g" \
+ graylog.conf.example || die
+}
+
+src_compile() {
+ einfo "Nothing to compile; upstream supplies JAR only"
+}
+
+src_install() {
+ insinto /etc/graylog2
+ doins graylog.conf.example
+
+ insinto ${DATA_DIR}/data/contentpacks
+ doins data/contentpacks/grok-patterns.json
+
+ insinto "${INSTALL_DIR}"
+ doins *
+
+ doins -r lib plugin
+
+ newinitd "${FILESDIR}/initd-r1" graylog2
+ newconfd "${FILESDIR}/confd-r1" graylog2
+}
diff --git a/app-admin/graylog2/metadata.xml b/app-admin/graylog2/metadata.xml
new file mode 100644
index 000000000000..5087760546f6
--- /dev/null
+++ b/app-admin/graylog2/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>