diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2020-11-09 06:14:29 +0000 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-11-10 16:29:46 +0100 |
commit | 5b99a2ab95d2ec829366eb3a92c3469fe23b6e40 (patch) | |
tree | 4450c017fd548b1ee244d5faf1ab0053a5d8a5d5 /app-admin/graylog | |
parent | app-emulation/xen: add security patches, drop vulnerable (diff) | |
download | gentoo-5b99a2ab95d2ec829366eb3a92c3469fe23b6e40.tar.gz gentoo-5b99a2ab95d2ec829366eb3a92c3469fe23b6e40.tar.bz2 gentoo-5b99a2ab95d2ec829366eb3a92c3469fe23b6e40.zip |
app-admin/graylog: bump to 3.3.8
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'app-admin/graylog')
-rw-r--r-- | app-admin/graylog/Manifest | 1 | ||||
-rw-r--r-- | app-admin/graylog/files/graylog.initd | 3 | ||||
-rw-r--r-- | app-admin/graylog/graylog-3.3.8.ebuild | 83 |
3 files changed, 86 insertions, 1 deletions
diff --git a/app-admin/graylog/Manifest b/app-admin/graylog/Manifest index 2bf48f496f5b..2fe5bac40b2d 100644 --- a/app-admin/graylog/Manifest +++ b/app-admin/graylog/Manifest @@ -1 +1,2 @@ DIST graylog-3.3.3.tgz 129284019 BLAKE2B 35c8dec3becd0cd513e435fec38c296e40a0c330304effb40e40f656702cd791c68ca9c814baf45671d7494d16d4478f9a0b3e44812c4814bea8dc1213f06793 SHA512 6e7445d1bac5addfe4e09f22ba2425859b44720105ba61ec2d819d12a8d693789f717d6fc1bdacb0ef1fe2e4583c405689a60ddd250e4fa17d1d10e70020f75c +DIST graylog-3.3.8.tgz 129314297 BLAKE2B 21eaf45b396b11ad5c42efad790390b643505ac7ecc24332813784443ba3b5aeed911fae07beb270f598341d577469f9a5fdbe92101e64939e6646884b7f7fc8 SHA512 feda3dafc3af249e54e8240ea20a8fd4e96c80901b45842cf8ec4ee7a5b33646a391a19a23a06b0e5fb4bf29c0d1c8d7cb87f2ee169ef17ac5b38fbd00682ead diff --git a/app-admin/graylog/files/graylog.initd b/app-admin/graylog/files/graylog.initd index d17267e9df22..2dc7024e28dd 100644 --- a/app-admin/graylog/files/graylog.initd +++ b/app-admin/graylog/files/graylog.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 command="/usr/bin/java" @@ -7,6 +7,7 @@ command_args="${JAVA_OPTS} -jar ${GRAYLOG_INSTALL_DIR}/graylog.jar server -f ${G command_background="true" command_user="${GRAYLOG_USER}:${GRAYLOG_GROUP}" pidfile="/run/${RC_SVCNAME}.pid" +retry="30" output_log="${GRAYLOG_LOG_DIR}/graylog.stdout.log" error_log="${GRAYLOG_LOG_DIR}/graylog.stderr.log" diff --git a/app-admin/graylog/graylog-3.3.8.ebuild b/app-admin/graylog/graylog-3.3.8.ebuild new file mode 100644 index 000000000000..d9a5d3883577 --- /dev/null +++ b/app-admin/graylog/graylog-3.3.8.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Free and open source log management" +HOMEPAGE="https://www.graylog.org" +SRC_URI="https://downloads.graylog.org/releases/graylog/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +RESTRICT="strip" + +RDEPEND="!app-admin/graylog2 + acct-group/graylog + acct-user/graylog + >=virtual/jdk-1.8:*" + +DOCS=( + COPYING README.markdown UPGRADING.rst +) + +GRAYLOG_DATA_DIR="/var/lib/graylog" +GRAYLOG_INSTALL_DIR="/usr/share/graylog" +QA_PREBUILT="${GRAYLOG_INSTALL_DIR}/lib/sigar/libsigar*" + +src_prepare() { + default + + # 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" + + # gentoo specific paths + sed -i "s@\(node_id_file = \).*@\1${GRAYLOG_DATA_DIR}/node-id@g; \ + s@\(message_journal_dir = \).*@\1${GRAYLOG_DATA_DIR}/data/journal@g;" \ + graylog.conf.example || die +} + +src_install() { + default + + insinto /etc/graylog + doins graylog.conf.example + + insinto "${GRAYLOG_INSTALL_DIR}" + doins graylog.jar + doins -r lib plugin + + keepdir "${GRAYLOG_DATA_DIR}" + + newconfd "${FILESDIR}/graylog.confd" graylog + newinitd "${FILESDIR}/graylog.initd" graylog +} + +pkg_postinst() { + ewarn "Graylog does not depend on need.net any more (#439092)." + ewarn + ewarn "Please configure rc_need according to your binding address in:" + ewarn "/etc/conf.d/graylog" + ewarn + ewarn "Graylog requires Java >= 8" + ewarn "Elasticsearch 5.x or 6.x (does NOT work with 7.x)" + ewarn "and MongoDB 3.6, 4.0 or 4.2" +} |