From 4053d98f0efd79087e757a28f7f93d188ea6999d Mon Sep 17 00:00:00 2001 From: serg-sg Date: Sun, 14 Aug 2022 18:27:46 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BA=D0=B5=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app-admin/graylog/Manifest | 1 + app-admin/graylog/files/graylog.confd | 12 +++ app-admin/graylog/files/graylog.initd | 31 +++++++ app-admin/graylog/graylog-4.2.12.ebuild | 60 ++++++++++++ app-misc/elasticsearch/Manifest | 1 + .../elasticsearch/elasticsearch-7.17.1.ebuild | 91 +++++++++++++++++++ .../files/elasticsearch-env.patch | 24 +++++ .../files/elasticsearch-systemd-pre-exec | 12 +++ .../elasticsearch/files/elasticsearch.conf.4 | 62 +++++++++++++ .../elasticsearch/files/elasticsearch.init.8 | 70 ++++++++++++++ .../files/elasticsearch.service.3 | 51 +++++++++++ .../files/elasticsearch.service.4 | 67 ++++++++++++++ .../files/elasticsearch.service.conf | 6 ++ .../files/elasticsearch.sysctl.d | 1 + .../files/elasticsearch.tmpfiles.d | 1 + app-office/r7-office/Manifest | 1 + app-office/r7-office/r7-office-7.1.1.ebuild | 90 ++++++++++++++++++ ....49.ebuild => trueconf-8.1.3.49-r1.ebuild} | 12 --- www-client/yandex-browser-stable/Manifest | 3 +- ...> yandex-browser-stable-22.7.3.811.ebuild} | 0 20 files changed, 582 insertions(+), 14 deletions(-) create mode 100644 app-admin/graylog/Manifest create mode 100644 app-admin/graylog/files/graylog.confd create mode 100644 app-admin/graylog/files/graylog.initd create mode 100644 app-admin/graylog/graylog-4.2.12.ebuild create mode 100644 app-misc/elasticsearch/Manifest create mode 100644 app-misc/elasticsearch/elasticsearch-7.17.1.ebuild create mode 100644 app-misc/elasticsearch/files/elasticsearch-env.patch create mode 100644 app-misc/elasticsearch/files/elasticsearch-systemd-pre-exec create mode 100644 app-misc/elasticsearch/files/elasticsearch.conf.4 create mode 100644 app-misc/elasticsearch/files/elasticsearch.init.8 create mode 100644 app-misc/elasticsearch/files/elasticsearch.service.3 create mode 100644 app-misc/elasticsearch/files/elasticsearch.service.4 create mode 100644 app-misc/elasticsearch/files/elasticsearch.service.conf create mode 100644 app-misc/elasticsearch/files/elasticsearch.sysctl.d create mode 100644 app-misc/elasticsearch/files/elasticsearch.tmpfiles.d create mode 100644 app-office/r7-office/Manifest create mode 100644 app-office/r7-office/r7-office-7.1.1.ebuild rename net-im/trueconf/{trueconf-8.1.3.49.ebuild => trueconf-8.1.3.49-r1.ebuild} (97%) rename www-client/yandex-browser-stable/{yandex-browser-stable-22.5.3.673.ebuild => yandex-browser-stable-22.7.3.811.ebuild} (100%) diff --git a/app-admin/graylog/Manifest b/app-admin/graylog/Manifest new file mode 100644 index 0000000..e703418 --- /dev/null +++ b/app-admin/graylog/Manifest @@ -0,0 +1 @@ +DIST graylog-4.2.12.tgz 197342874 BLAKE2B 8d0e4dc26d216382731283a5f81da703515b08c73c64d322adf6d3e079dfb5485ee73034ef5727355120413053006195ea0bf749b7b83b04beb1d8e20755222a SHA512 ce5020bdf90a1aa911635476bc36287c3f0ef18c95fc26f0230fee78534cf80400455aa4a86869ced577d8c43dc55ac43632b75f7cec5ca0d865c33de19d659c diff --git a/app-admin/graylog/files/graylog.confd b/app-admin/graylog/files/graylog.confd new file mode 100644 index 0000000..f9c2230 --- /dev/null +++ b/app-admin/graylog/files/graylog.confd @@ -0,0 +1,12 @@ +GRAYLOG_CONFIG_FILE="/etc/graylog/graylog.conf" +GRAYLOG_DATA_DIR="/var/lib/graylog" +GRAYLOG_GROUP="graylog" +GRAYLOG_INSTALL_DIR="/usr/share/graylog" +GRAYLOG_LOG_DIR="/var/log/graylog" +GRAYLOG_OPTIONS="" +GRAYLOG_USER="graylog" + +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:-OmitStackTraceInFastThrow" + +# Please adjust according to your bind address +rc_need="net.lo" diff --git a/app-admin/graylog/files/graylog.initd b/app-admin/graylog/files/graylog.initd new file mode 100644 index 0000000..ffdb96d --- /dev/null +++ b/app-admin/graylog/files/graylog.initd @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/java" +command_args="${JAVA_OPTS} -Djava.net.preferIPv4Stack=true -jar ${GRAYLOG_INSTALL_DIR}/graylog.jar server -f ${GRAYLOG_CONFIG_FILE} --no-pid-file ${GRAYLOG_OPTIONS}" +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" +directory="${GRAYLOG_INSTALL_DIR}" +required_files="${GRAYLOG_CONFIG_FILE}" + +depend() { + use dns +} + +start_pre() { + local d + for d in \ + "${GRAYLOG_DATA_DIR}" \ + "${GRAYLOG_DATA_DIR}/data" \ + "${GRAYLOG_DATA_DIR}/data/journal" \ + "${GRAYLOG_LOG_DIR}"; do + + checkpath -d -o "${GRAYLOG_USER}":"${GRAYLOG_GROUP}" -m750 "${d}" + done +} diff --git a/app-admin/graylog/graylog-4.2.12.ebuild b/app-admin/graylog/graylog-4.2.12.ebuild new file mode 100644 index 0000000..447a7c6 --- /dev/null +++ b/app-admin/graylog/graylog-4.2.12.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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="acct-group/graylog + acct-user/graylog + >=virtual/jdk-1.8:*" + +DOCS=( + 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 + + # 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 plugin + + keepdir "${GRAYLOG_DATA_DIR}" + + newconfd "${FILESDIR}/graylog.confd" graylog + newinitd "${FILESDIR}/graylog.initd" graylog +} + +pkg_postinst() { + elog "Please visit the website for product changes:" + elog "https://docs.graylog.org/docs/changelog" + elog + 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" +} diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest new file mode 100644 index 0000000..9fd3778 --- /dev/null +++ b/app-misc/elasticsearch/Manifest @@ -0,0 +1 @@ +DIST elasticsearch-7.17.1-no-jdk-linux-x86_64.tar.gz 167347718 BLAKE2B 8fd17260d0bc37a8f4a95371ed47bf2797df4eaaa226179270aced4c9fbff9bfe484ca66605a31773921d18cb2a3c91d25435555f31688ed426c4ccce8ac62e1 SHA512 3f572eed0d0a9140f843dcc07911c32a10bb76c4e2c2a4c904ba3279e0401c58fe0f7c7776a7347fec3acd5dbebf3c9f1888f59e782c3a46c76f038e82d53f7c diff --git a/app-misc/elasticsearch/elasticsearch-7.17.1.ebuild b/app-misc/elasticsearch/elasticsearch-7.17.1.ebuild new file mode 100644 index 0000000..b04c7cb --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-7.17.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd tmpfiles + +DESCRIPTION="Free and Open, Distributed, RESTful Search Engine" +HOMEPAGE="https://www.elastic.co/elasticsearch/" +SRC_URI=" + https://git.calculate-linux.org/serg-sg/sources/raw/branch/master/app-misc/${PN}/${P}-no-jdk-linux-x86_64.tar.gz + https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz +" + + +LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="acct-group/elasticsearch + acct-user/elasticsearch + sys-libs/zlib + /version="1.0" encoding="utf-8"?>/' ${R7}/desktopeditors/mimetypes/*.xml + cp -r ${R7}/desktopeditors/mimetypes/*.xml usr/share/mime/application + + # Исправляем ссылки на иконки + sed -i -E -e 's/^Icon='${PN}'/Icon=\/opt\/'${PN}'\/mediaviewer\/ivapp.ico/' usr/share/applications/${PN}-imageviewer.desktop + sed -i -E -e 's/^Icon='${PN}'/Icon=\/opt\/'${PN}'\/mediaviewer\/mvapp.ico/' usr/share/applications/${PN}-videoplayer.desktop + + default +} + +src_install() { + mv * "${D}" || die + + for icon in "${D}/${R7}/desktopeditors/asc-de-"*.png; do + size="${icon##*/asc-de-}" + size=${size%.png} + dodir "/usr/share/icons/hicolor/${size}x${size}/apps" + newicon -s ${size} "$icon" ${PN}.png + done + +} + +pkg_postinst() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} diff --git a/net-im/trueconf/trueconf-8.1.3.49.ebuild b/net-im/trueconf/trueconf-8.1.3.49-r1.ebuild similarity index 97% rename from net-im/trueconf/trueconf-8.1.3.49.ebuild rename to net-im/trueconf/trueconf-8.1.3.49-r1.ebuild index 7435053..d102f40 100644 --- a/net-im/trueconf/trueconf-8.1.3.49.ebuild +++ b/net-im/trueconf/trueconf-8.1.3.49-r1.ebuild @@ -109,12 +109,6 @@ src_install() { pkg_postinst() { - if use debug; then - set -o xtrace - else - set -e - fi - # Сделаем символьную ссылку на trueconf для быстрого запуска с консоли ln -s -f "/${TRUECONF}/trueconf" "/usr/bin/${PN}" @@ -136,12 +130,6 @@ pkg_postinst() { } pkg_postrm() { - if use debug; then - set -o xtrace - else - set -e - fi - binpid=$(ps axco pid,command | awk '$2 == "TrueConf" {print $1; }') if [ -n "$binpid" ]; then for process in "$binpid"; do diff --git a/www-client/yandex-browser-stable/Manifest b/www-client/yandex-browser-stable/Manifest index 045a988..9db8efb 100644 --- a/www-client/yandex-browser-stable/Manifest +++ b/www-client/yandex-browser-stable/Manifest @@ -1,2 +1 @@ -DIST yandex-browser-stable-22.5.3.673.deb 108182892 BLAKE2B f3dba6d4c2a36838792445a422892f40487c5ed0a72c102bdde2c4afd85d1535395ee850e1a6fb3c4c9ca8c1cfc419d6f28c87926771ff70772cd8bc69ba0e9a SHA512 2b04309e34e17177dd65b86ee6ebe8031d8ee71c9849c8d6164c58ba491d36d21d61cf83f55d45c4b04480877efeebdc75c2206295265081b23e2ccaaa72f7b9 -EBUILD yandex-browser-stable-22.5.3.673.ebuild 4022 BLAKE2B ab27d4986ac8a09b745e8fe548f812e3b8506817455fb2d7e5baa43ae002e10f6322b8305c80b724bd68cec4d4027cff8ee03770a3bc5ebf3a57e8f5d1b22c59 SHA512 65a99e61c3ddc2c491daa7ad519e9ed09929623dc45afc7ef51bcaafdb7dd618b7604b498b552dbf0137e266790fac40bb7884b3bb12214fc3edf176fad87144 +DIST yandex-browser-stable-22.7.3.811.deb 110077376 BLAKE2B 49dfa5644e808ec4eee90cd8111935d857a52b3ff97e66db931ffa4bc5788c2bf1c5614bf566532d7f3c0015d6bf5c4e3789f88b387dafe1863501d5f9c650d8 SHA512 31ed495beb79fc9a0ccc5179431e4ba82eb980d7501429b68c59ea600b69f6eecc5503cee37fbc1847ae1a47caa9947b248b45a2959d04b400af56b2372e1fdc diff --git a/www-client/yandex-browser-stable/yandex-browser-stable-22.5.3.673.ebuild b/www-client/yandex-browser-stable/yandex-browser-stable-22.7.3.811.ebuild similarity index 100% rename from www-client/yandex-browser-stable/yandex-browser-stable-22.5.3.673.ebuild rename to www-client/yandex-browser-stable/yandex-browser-stable-22.7.3.811.ebuild