diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2021-03-19 07:38:30 +0000 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-22 15:59:57 +0200 |
commit | dffc0182121d25979f94425be6daac9ee30e5da0 (patch) | |
tree | c0113079fd740784aa734f133997e9f95bd301da /app-misc/elasticsearch | |
parent | net-analyzer/gvmd: remove redundant S from src_prepare in 20.8.1 (diff) | |
download | gentoo-dffc0182121d25979f94425be6daac9ee30e5da0.tar.gz gentoo-dffc0182121d25979f94425be6daac9ee30e5da0.tar.bz2 gentoo-dffc0182121d25979f94425be6daac9ee30e5da0.zip |
app-misc/elasticsearch: bump to 6.8.14
Bug: https://bugs.gentoo.org/770148
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-misc/elasticsearch')
-rw-r--r-- | app-misc/elasticsearch/Manifest | 2 | ||||
-rw-r--r-- | app-misc/elasticsearch/elasticsearch-6.8.14.ebuild | 88 |
2 files changed, 90 insertions, 0 deletions
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest index ac779ce22271..ef578950ee19 100644 --- a/app-misc/elasticsearch/Manifest +++ b/app-misc/elasticsearch/Manifest @@ -1,9 +1,11 @@ DIST elasticsearch-6.8.13.tar.gz 149094514 BLAKE2B 85ec07c35077acaaafc8096ca5fad2c84617e30d545be36f0b5a8ea7e6344b17a87c6def42d1eab4635bf8dd4d08e632becf153f2c581f0e9d46fd0fe8de55a9 SHA512 8d76b8690a770b16b3dabbbd7f6a06a343b9e6437de8d250562dd005c860255783b8f015d5e3a9fed337aa24c4e256ed3eca549c6ecb0f9a6a8d6856586879d5 +DIST elasticsearch-6.8.14.tar.gz 149098495 BLAKE2B f1ccfcd9647a3584594a9db78f92488bc6bd5fe403c9b2cdff9001b87168136817084ce28eb8f14c6e54dd75b88118cf0eb6993e5502e74ecf826938f4c2ff57 SHA512 d7ca05707b9e3d8de19aaebc7811891a82897b2407f3de27ac95b2aad0d6669217c741e14bf768c3ea963977e3fa2ecc2f6d297aeafe985db52f6eb6780912b7 DIST elasticsearch-7.10.2-no-jdk-linux-x86_64.tar.gz 164380146 BLAKE2B 16797ed48c4cb6f91ed891014f275ad86a4852579232df1827413389fc9e505327412729f70783750252190a34b0e0d552ec0b5f25f3d0a811724191eccc6568 SHA512 bd3def00af04670ad04556c911ef8c68b639e1c3b621f36a8973d9700f95873d10bc706a4e3a98f892ac59c1b761d56035a236068d6958af772874e428940dc4 DIST elasticsearch-7.8.1-no-jdk-linux-x86_64.tar.gz 161598020 BLAKE2B 7950d9570760683a939c961c0babdf66a57adfc49d541d75716ce1dc379f211f60edceae06855de0f4bfe50c9a6b1ca0296aa58fe324a28b009fb8cfe5c2a5d7 SHA512 1fd0dc28cc12f4cafe8499ca2894a00f0aef506429a3cd5fa4c9ec006e4dd281099bd0f41f1e0ff9d67ef25d5d1cf3be7f6c43c1758ef3464ee4b650fb560842 DIST elasticsearch-7.9.2-no-jdk-linux-x86_64.tar.gz 162795379 BLAKE2B 398815340c93db8bd00766e776b0cb0d2fe6a8cc64f706dc319385cf07714abc42ceade9d3bcdfa115189de604ebc1ba3a54ac9662ee3b1ffc0989206f30f738 SHA512 19bf983f5517338ee8a9e70df67cb8f14df19bab386c20a38118756e9d4a23baba38b94020a0dd6d3f7f4483190747386af99dd3e18e931ff6bd84df55b1ce41 DIST elasticsearch-7.9.3-no-jdk-linux-x86_64.tar.gz 162808745 BLAKE2B e6a12ec3cc3bec0bdf8dd10680dd86214bf619b1abfdfeb8524b0b0f50a0f1faaf03b13f06ab62055f80c7987dd04b0dd9f2beba16dd59a5d346fc6cceb51acd SHA512 fea21591edc790b9d5c48151619921085d1b0e5dad1f8c43efbd44a58babeb8bfad52f4329f1f34c71d47618e24d7320c0e591f8eb65d15c2b9c3e1492d91680 DIST elasticsearch-oss-6.8.13.tar.gz 68238766 BLAKE2B 3237641a0b4a36b36cbb48ffb13afa41555247d848ad4c561063418bab68832eb563974febd78a7391b6b5700ee54d0875661f3a283fa460175f842fc8734723 SHA512 e06b3486585e67f1e34e4268834b6625de6c4dcc380b15551306f42b02b5b2a0997fa2c26e82d965e6040cbf2367f399d4802e881fc649972382c895fa925573 +DIST elasticsearch-oss-6.8.14.tar.gz 68236681 BLAKE2B 09c6c23517b880ee1afb1c3472d4518172927c226386c7d0f2f5b9312e7de236bd6fa7d527b949e3cace759af6a1fdfe7d72f1ccf8e2c6e15919c4c8c989ee9e SHA512 c0372969ec9e5f7aff551bc0aa13684fdaccd5a553e8ee896979488ab2f13181642222ab4eca4dc799181bce1405200b5aea4866c830483ce1e484fa6a714998 DIST elasticsearch-oss-7.10.2-no-jdk-linux-x86_64.tar.gz 76383466 BLAKE2B e99c04b0d10ef5755986515c7127ebde00b58e0eba69b6a05e12bd0bffee70266bbb023680584bfe0f321d5a3cf79af89cce3a5191923ad721a9f6039ab82743 SHA512 7b63237996569ccdc7c9d9e7cc097fcb23865396eddac30e5f02543484220d2fc70a7285b430877e5e76a5d8716d9682de9fc40d5e57a08f331e82011fc59756 DIST elasticsearch-oss-7.8.1-no-jdk-linux-x86_64.tar.gz 75134201 BLAKE2B a3c88ad5f94a5cebefc1a5a3a913a62bc6c8751a78c179a05667f47da71c41b480edf8d7f962ad34aa8ab0eac8168d7b8cd57f33068c17ae7e0a8d5414fbc924 SHA512 f0caa06c1172b25d8f9cb9ddced72185aaaabb1b6d7f31fe1ba67172346236651ca3bc560e7ef206b4bf9521f228d46ee98df2e41b129253215135b583086ccc DIST elasticsearch-oss-7.9.2-no-jdk-linux-x86_64.tar.gz 75602317 BLAKE2B f81b785d3f9666a0f863d7423d7dc42b3b35b1a17cc0101fb61870d22ad35a50a56ae1d2abf7ace882f548aa92f2bb6cf05749d556e68fdbf1545cf6059d187d SHA512 282f6a273e8e8f1b1062f310b4f4826a827e2dc507b7689c073bb28e53ecbeadc9a6f1cba01006eafb28d6fdebc77d7eb672e38a554deef2ee8f6652f34131ba diff --git a/app-misc/elasticsearch/elasticsearch-6.8.14.ebuild b/app-misc/elasticsearch/elasticsearch-6.8.14.ebuild new file mode 100644 index 000000000000..6b347e7957c4 --- /dev/null +++ b/app-misc/elasticsearch/elasticsearch-6.8.14.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd tmpfiles + +DESCRIPTION="Open Source, Distributed, RESTful, Search Engine" +HOMEPAGE="https://www.elastic.co/products/elasticsearch" +SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz ) + !x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )" +LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="x-pack" + +RDEPEND="acct-group/elasticsearch + acct-user/elasticsearch + virtual/jre:1.8" + +QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" + +src_prepare() { + default + + rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die + rmdir logs || die + + if use x-pack; then + rm bin/x-pack/*.bat || die + rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die + fi +} + +src_install() { + keepdir /etc/${PN} + keepdir /etc/${PN}/scripts + + insinto /etc/${PN} + doins -r config/. + rm -r config || die + + fowners root:${PN} /etc/${PN} + fperms 2750 /etc/${PN} + + insinto /usr/share/${PN} + doins -r . + + exeinto /usr/share/${PN}/bin + doexe "${FILESDIR}/elasticsearch-systemd-pre-exec" + + chmod +x "${ED}"/usr/share/${PN}/bin/* || die + + if use x-pack; then + chmod +x "${ED}"/usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die + fi + + keepdir /var/{lib,log}/${PN} + fowners ${PN}:${PN} /var/{lib,log}/${PN} + fperms 0750 /var/{lib,log}/${PN} + dodir /usr/share/${PN}/plugins + + insinto /etc/sysctl.d + newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf + + newconfd "${FILESDIR}/${PN}.conf.3" ${PN} + newinitd "${FILESDIR}/${PN}.init.6" ${PN} + + systemd_install_serviced "${FILESDIR}/${PN}.service.conf" + newtmpfiles "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf + systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service +} + +pkg_postinst() { + elog + 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 + ewarn "Please make sure you have proper permissions on /etc/${PN}" + ewarn "prior to keystore generation or you may experience startup fails." + ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}" + ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore" +} |