From 0485fd7e57de60b61c04825f986bb3400bcf7116 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 14 Feb 2024 17:36:29 +0000 Subject: gentoo auto-resync : 14:02:2024 - 17:36:28 --- app-misc/elasticsearch/Manifest | 6 +- app-misc/elasticsearch/elasticsearch-8.11.1.ebuild | 102 --------------------- app-misc/elasticsearch/elasticsearch-8.12.1.ebuild | 102 +++++++++++++++++++++ app-misc/elasticsearch/metadata.xml | 4 +- 4 files changed, 107 insertions(+), 107 deletions(-) delete mode 100644 app-misc/elasticsearch/elasticsearch-8.11.1.ebuild create mode 100644 app-misc/elasticsearch/elasticsearch-8.12.1.ebuild (limited to 'app-misc/elasticsearch') diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index f80d541bdb26..d110c1d495a9 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -9,9 +9,9 @@ AUX elasticsearch.service.conf 235 BLAKE2B 23ada111be21dff12323edbe981883cb1ed27 AUX elasticsearch.sysctl.d 24 BLAKE2B 4012fbdbc98a8b28df11aed33cb82c113790c44721eae1d69e19c595bfbf329618b9cb67be9528f1994c546233cffd31b20eee39edc142bc86f7a7cf5e08903e SHA512 9f3d8238edff6704bea06b6535ee8915f4a3c9bdc8389d9d4943bcfa49161b61f9a1ca49dbcc415580438f4396fbc3d58eef301554f9426287606a755ada715c AUX elasticsearch.tmpfiles.d 56 BLAKE2B 0c28c612fadfdd86321df797527399fa5073a7350de95ec2b32dfbe51cbf52fe5dcf68ebd4e3fba6cccba1cf252a16dee3b701c4c6692121745c41665cf3c972 SHA512 5cc722abcaae68afffde96e38b2c9572faf898178d3c291c945fe49fbf977e319322b99fb6fb5bf49cfb04e86f071dde0db621849288f712a56571b13af9a11a DIST elasticsearch-7.17.16-no-jdk-linux-x86_64.tar.gz 168795535 BLAKE2B 642ae6f07db953e7fa783dcd63c6dcebab61e85ea600bede09e9596bf9dee2d71c43e5c28b80bd4c091d792ed3a95d10cc75ffb1074ad4b3cfceb081ed25027f SHA512 3755373f5068a08e4619b4e922bc2d3d97d41791dbf5aa84564574fc84abee9c567b16095cf0e11d48910627e3c183ff1193bf2d5ade59891bea2b3f994aa7df -DIST elasticsearch-8.11.1-linux-x86_64.tar.gz 630398135 BLAKE2B 5118f995f3b53242898770ea2a0a8b2c3c23fa3a117453d505685903b7e00e44f081d7454f4198baa2e36f265e9c565cf3c41ffc04d2ffd214ac30dc6398ff5b SHA512 3d11f96a158e12d0a376867355f2ee1bd76b00a8b5e1aff97cac026631892544ccabeb8f2422e0347f8222b85784a98d1a893615547981f47403116baf2070ef DIST elasticsearch-8.11.3-linux-x86_64.tar.gz 630500349 BLAKE2B ab10c0db6a9df6352a33844c7dbee9f45bc93257904a5d0a0966352d4755f867fafad6858e7765ca88070806b553c46a7df5206078a66121a568921bdbe0d801 SHA512 63c724acbb756ebe8ad2c9d965a2828e1a5e08d215652ba8c876218a2beb1702c204e9199cf362514bcd3230bcb133e0449bb4da3473aac5008d35fa7a86c832 +DIST elasticsearch-8.12.1-linux-x86_64.tar.gz 621183584 BLAKE2B e168cf9549a22c2c8b049638f7039b5f43f6384da0a10627fbe0671a0a5a99f8a4e40f7c914d820d94dd42b2d328f3e20425eca3363478526d5faf07f9c5d782 SHA512 dcaea1ddb499724be40da936f6b7309e66458f0ac2852c63109cc8bd8fb6c88dbea0d8c9ce451c2fb0441a25fc137f5dc2894b7bea0242e0067bf29ffad48f54 EBUILD elasticsearch-7.17.16.ebuild 2374 BLAKE2B b8e8a2cfc8eb77cfa591ed73795bd923f12addbb101e2df852ee10fbe2ef1b3e74280e76fd13e03117b5dcecfce91b22b897839d014a22044b1a456413e6e878 SHA512 4f5fc0ada22ffad450a778bbbf248721f2fb52b8b9eaaa1cf44da897e65ee110a7eb4ea3cde3b625c9921c96a85729f0bc9994231a0df023f0e29b1b9f48eb74 -EBUILD elasticsearch-8.11.1.ebuild 3322 BLAKE2B 492164f422e2191ab812e604f0b2fd4631c75762438e58eceec379c4ac6a4211babe99c794fe93be009fe2abd5b8313ffce0337cf7eec48faa7a9ff4c8fb80aa SHA512 bb19bc22d523c3fb9e39f38a6239dd09fdfc4be3c3294867aa73a3ddd1edc71273df2dd2458a3919448fc108e1657820300ec9c8b1329d60fa4f60c9e4112795 EBUILD elasticsearch-8.11.3.ebuild 3322 BLAKE2B 492164f422e2191ab812e604f0b2fd4631c75762438e58eceec379c4ac6a4211babe99c794fe93be009fe2abd5b8313ffce0337cf7eec48faa7a9ff4c8fb80aa SHA512 bb19bc22d523c3fb9e39f38a6239dd09fdfc4be3c3294867aa73a3ddd1edc71273df2dd2458a3919448fc108e1657820300ec9c8b1329d60fa4f60c9e4112795 -MISC metadata.xml 524 BLAKE2B 01fd6cd3b19c1e78ebad3d66fdfd58a5172c8e840799de41973dfb07afbad5cd5f574e7b1edff25bb64a828d2fb51169b741a453c53c9cd3c29347b0f9ab4b80 SHA512 5ef257de69e2a3bb06bc9a852957d8767ac9147579947b6a4eaf68a6a314cb1eb49e611a729f01a3b89e3271de377d3ab25276831b9a5d755a8bca7390fd6223 +EBUILD elasticsearch-8.12.1.ebuild 3322 BLAKE2B 884f8e8f916a62e7c2692d5edbbd78b4b6534168b05bfc1fc1f85375b7226a96d45a34c8da010c53f9998d170dae9731de688e02172559a739a8c8bb54c2d0e3 SHA512 430cac5adcbd6830232b25d3d17238be0af7fe5d183525cee27dcc74aed2e1c1e054b1229b973884f85779f6386b91068ca7b730f114d7e8fd150c96a427eb56 +MISC metadata.xml 502 BLAKE2B d82165cdd8bbb6628c6e32ab0ff46d78561593b900267c8b39313266a148da06e999a6e28f4268232684f0b9e36f7c42f56be5efb9fd6520baea383d19e82c99 SHA512 612d2c4f19965c79d2b8d9cd0c2feb66436e6d2090759dcbacd61bcdc18c058f0ede17a7b283483e5dc91510134ddc2ee8d345fab3cb474e9b6b7a715e739b07 diff --git a/app-misc/elasticsearch/elasticsearch-8.11.1.ebuild b/app-misc/elasticsearch/elasticsearch-8.11.1.ebuild deleted file mode 100644 index bee839a3a00d..000000000000 --- a/app-misc/elasticsearch/elasticsearch-8.11.1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit systemd tmpfiles - -DESCRIPTION="Free and Open, Distributed, RESTful Search Engine" -HOMEPAGE="https://www.elastic.co/elasticsearch/" -SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-linux-x86_64.tar.gz" - -LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain" -SLOT="0/8" -KEYWORDS="~amd64" - -DEPEND="acct-group/elasticsearch - acct-user/elasticsearch" -RDEPEND="acct-group/elasticsearch - acct-user/elasticsearch - sys-libs/zlib - virtual/jre:17" - -QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" -QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" - -PATCHES=( - "${FILESDIR}/${PN}-env.patch" -) - -src_prepare() { - default - - rm -rf jdk || die - sed -i -e "s:logs/:${EPREFIX}/var/log/${PN}/:g" config/jvm.options || die "Unable to set Elasticsearch log location" - # elasticsearch-env sets the envvar for the config location if not specified elsewhere; - # certain utilities try and source this. Although we patch ES_JAVA_HOME for Gentoo slightly earlier, - # it's easier to respect EPREFIX for the config location using sed. - sed -i "s:ES_PATH_CONF=\"\$ES_HOME\"/config:ES_PATH_CONF=\"${EPREFIX}/etc/${PN}\":" bin/elasticsearch-env \ - || die "Unable to set Elasticsearch config directory" - rm LICENSE.txt NOTICE.txt || die - rmdir logs || die -} - -src_install() { - keepdir /etc/${PN} - keepdir /etc/${PN}/scripts - - insinto /etc/${PN} - doins -r config/. - rm -r config || die - - fowners -R root:${PN} /etc/${PN} - fperms -R 2750 /etc/${PN} - - insinto /usr/share/${PN} - doins -r . - - keepdir /usr/share/${PN}/plugins - - exeinto /usr/share/${PN}/bin - doexe "${FILESDIR}"/elasticsearch-systemd-pre-exec - - fperms -R +x /usr/share/${PN}/bin - fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin - - keepdir /var/{lib,log}/${PN} - fowners ${PN}:${PN} /var/{lib,log}/${PN} - fperms 0750 /var/{lib,log}/${PN} - - insinto /etc/sysctl.d - newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf - - newconfd "${FILESDIR}/${PN}.conf.4" ${PN} - newinitd "${FILESDIR}/${PN}.init.8" ${PN} - - systemd_install_serviced "${FILESDIR}/${PN}.service.conf" - systemd_newunit "${FILESDIR}"/${PN}.service.4 ${PN}.service - - newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf -} - -pkg_postinst() { - # Elasticsearch will choke on our keep file and dodir will not preserve the empty dir - local KEEPFILE - KEEPFILE=$(find "${EROOT}/usr/share/${PN}/plugins/" -type f -name '.keep*') - rm "${KEEPFILE}" || die - tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf - if ! systemd_is_booted ; then - elog "You may create multiple instances of ${PN} by" - elog "symlinking the init script:" - elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" - elog - elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" - elog "from /etc/${PN} into the configuration directory of the instance:" - elog "/etc/${PN}/instance" - elog - fi - ewarn "Please make sure you have proper permissions on /etc/${PN}" - ewarn "prior to keystore generation or you may experience startup failures." - ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" - ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" -} diff --git a/app-misc/elasticsearch/elasticsearch-8.12.1.ebuild b/app-misc/elasticsearch/elasticsearch-8.12.1.ebuild new file mode 100644 index 000000000000..8498fcbccc2a --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-8.12.1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd tmpfiles + +DESCRIPTION="Free and Open, Distributed, RESTful Search Engine" +HOMEPAGE="https://www.elastic.co/elasticsearch/" +SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-linux-x86_64.tar.gz" + +LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain" +SLOT="0/8" +KEYWORDS="~amd64" + +DEPEND="acct-group/elasticsearch + acct-user/elasticsearch" +RDEPEND="acct-group/elasticsearch + acct-user/elasticsearch + sys-libs/zlib + virtual/jre:17" + +QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" +QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" + +PATCHES=( + "${FILESDIR}/${PN}-env.patch" +) + +src_prepare() { + default + + rm -rf jdk || die + sed -i -e "s:logs/:${EPREFIX}/var/log/${PN}/:g" config/jvm.options || die "Unable to set Elasticsearch log location" + # elasticsearch-env sets the envvar for the config location if not specified elsewhere; + # certain utilities try and source this. Although we patch ES_JAVA_HOME for Gentoo slightly earlier, + # it's easier to respect EPREFIX for the config location using sed. + sed -i "s:ES_PATH_CONF=\"\$ES_HOME\"/config:ES_PATH_CONF=\"${EPREFIX}/etc/${PN}\":" bin/elasticsearch-env \ + || die "Unable to set Elasticsearch config directory" + rm LICENSE.txt NOTICE.txt || die + rmdir logs || die +} + +src_install() { + keepdir /etc/${PN} + keepdir /etc/${PN}/scripts + + insinto /etc/${PN} + doins -r config/. + rm -r config || die + + fowners -R root:${PN} /etc/${PN} + fperms -R 2750 /etc/${PN} + + insinto /usr/share/${PN} + doins -r . + + keepdir /usr/share/${PN}/plugins + + exeinto /usr/share/${PN}/bin + doexe "${FILESDIR}"/elasticsearch-systemd-pre-exec + + fperms -R +x /usr/share/${PN}/bin + fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin + + keepdir /var/{lib,log}/${PN} + fowners ${PN}:${PN} /var/{lib,log}/${PN} + fperms 0750 /var/{lib,log}/${PN} + + insinto /etc/sysctl.d + newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf + + newconfd "${FILESDIR}/${PN}.conf.4" ${PN} + newinitd "${FILESDIR}/${PN}.init.8" ${PN} + + systemd_install_serviced "${FILESDIR}/${PN}.service.conf" + systemd_newunit "${FILESDIR}"/${PN}.service.4 ${PN}.service + + newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf +} + +pkg_postinst() { + # Elasticsearch will choke on our keep file and dodir will not preserve the empty dir + local KEEPFILE + KEEPFILE=$(find "${EROOT}/usr/share/${PN}/plugins/" -type f -name '.keep*') + rm "${KEEPFILE}" || die + tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf + if ! systemd_is_booted ; then + elog "You may create multiple instances of ${PN} by" + elog "symlinking the init script:" + elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance" + elog + elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts" + elog "from /etc/${PN} into the configuration directory of the instance:" + elog "/etc/${PN}/instance" + elog + fi + ewarn "Please make sure you have proper permissions on /etc/${PN}" + ewarn "prior to keystore generation or you may experience startup failures." + ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" + ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" +} diff --git a/app-misc/elasticsearch/metadata.xml b/app-misc/elasticsearch/metadata.xml index d22a53b6412b..cbd660b825ba 100644 --- a/app-misc/elasticsearch/metadata.xml +++ b/app-misc/elasticsearch/metadata.xml @@ -1,8 +1,8 @@ - - Matt.Jolly@footclan.ninja + + kangie@gentoo.org Matt Jolly -- cgit v1.2.3