diff options
author | 2019-09-20 17:39:09 +0200 | |
---|---|---|
committer | 2019-09-20 17:39:09 +0200 | |
commit | e34d95357a71af2b9a092291283877ef705dcdaa (patch) | |
tree | 90f962b32d7199273461c8576e1c0fe5c28d885d /app-admin | |
parent | app-admin/scylla-tools: version bump (diff) | |
download | ultrabug-e34d95357a71af2b9a092291283877ef705dcdaa.tar.gz ultrabug-e34d95357a71af2b9a092291283877ef705dcdaa.tar.bz2 ultrabug-e34d95357a71af2b9a092291283877ef705dcdaa.zip |
app-admin/scylla-jmx: version bump
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Manifest-Sign-Key: F30FAFEE3BD598228B24CB121A3A8C89C56D610B
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/scylla-jmx/Manifest | 28 | ||||
-rw-r--r-- | app-admin/scylla-jmx/scylla-jmx-3.0.10.ebuild | 95 |
2 files changed, 110 insertions, 13 deletions
diff --git a/app-admin/scylla-jmx/Manifest b/app-admin/scylla-jmx/Manifest index b5b4b32..73f76c5 100644 --- a/app-admin/scylla-jmx/Manifest +++ b/app-admin/scylla-jmx/Manifest @@ -3,9 +3,11 @@ Hash: SHA256 AUX scylla-jmx.confd 243 BLAKE2B a056f7c70df3ff6c903a182f352aa34ca9d23eed458b7c6f5a51c9f6656cf0f989c133e8e45b221991800fcc79fd1505b037410dde7d5dfffdf75e0ee6670090 SHA512 18b5f550c2e0616f4c0da123adfda3fb959bec5711b6be57df3e316613cfa154467353e65504b6b68852911f8faa21f1acccf3fa51970a132b639c1e6d1ea402 AUX scylla-jmx.initd 592 BLAKE2B e1492a3da5ab275fbe6f7f1f4f9beaa3129f037fa54523211a8628d479e196a2da711c41c8051416612d34322c3261e95c3370525e68c84eb80c98ac0949ab69 SHA512 8bf35201a2dd240b1e74d35c3153251f2c15878f2454a8ed05f006ad35679a85d08de413dc8ce8b53aaa2b8e367a806a76d56d63d9b691f4bac569b647764037 +DIST scylla-jmx-3.0.10.tar.gz 105855 BLAKE2B cca3e9d779fa128275f36f3d4f021214ad44e9cdfe681461d364044bf27d38d76e748f3a088a5c018d0950b1130e13686651d4fff4a1b5c5eb49cbc3eced62fd SHA512 8def856ce3b6d8dee7cacde65afe1420b5dd976f66c7c6b7f25853d7a8fb1adeba24ce79e70075c352fef11cf379a40ed2b6b36b5184a3c377a5fab95f475f61 DIST scylla-jmx-3.0.6.tar.gz 105826 BLAKE2B 5507a791a9a0c8d208640503e86689519facffad780853d7ffdc6b232552eabc8a13b3b1df126854c23a1ab707958910aaa5aa31ad9809752dc3de86fe4cbf69 SHA512 289b981faabf2d7221d17aee42db912bc67571d56d13548e88db9627e8cb79133ca9b69d90a2637d887fb1ae2f70b064f759a1156269ab6bf74f0d22b2a7fc59 DIST scylla-jmx-3.0.8.tar.gz 105833 BLAKE2B 276333b3ec9d2f72225d0f21c23fa50ddbb58bf00d84b8c1c0668566e5cf95aca97815e68edfdacc518f5da9669ceffeec83cd0759b19b3872c13e6a46b483db SHA512 ca801c6439dc4551bde58b0b624dea5ab8f99fab46e86f16f68508ed812956de8afd9a852c71b7ce82b914ce8c86b5627ffafee95795f89947f101a4ae045930 DIST scylla-jmx-3.0.9.tar.gz 105833 BLAKE2B 4925b5943bf1f27aecbd1a82e11305ee7dedb53c130a12de9984aad35861c562db3ab1cb50f14ac04455fc11b75b4096b5553e2cfd6323c58fd6dada3c1687cf SHA512 b1cde10153c0cd55a9c0a4c8b80d6bf2e9496ad6e85417dd7b1c702eaa95038091a5b0f40a769878b60281af26353c7db81500db7574602aefaa6fd3eedb23af +EBUILD scylla-jmx-3.0.10.ebuild 2300 BLAKE2B 3b8e24d44c56935434659fcab6549ff7a37a64ee52e0228b64aef00dfdc66d8e333b3f7b910698f4042f92019cca489e1e68f5323409ba4e4c7a8e0ae301aee0 SHA512 f78a41cd4ed1b08adbe406c8e58ea741b1731b263981ca20b36ddaaab0c8224b092042fe427770969ad404bc51cd68f997e63bcfda78bdfdf8f048b9ad1e117f EBUILD scylla-jmx-3.0.6.ebuild 2300 BLAKE2B 3b8e24d44c56935434659fcab6549ff7a37a64ee52e0228b64aef00dfdc66d8e333b3f7b910698f4042f92019cca489e1e68f5323409ba4e4c7a8e0ae301aee0 SHA512 f78a41cd4ed1b08adbe406c8e58ea741b1731b263981ca20b36ddaaab0c8224b092042fe427770969ad404bc51cd68f997e63bcfda78bdfdf8f048b9ad1e117f EBUILD scylla-jmx-3.0.8.ebuild 2300 BLAKE2B 3b8e24d44c56935434659fcab6549ff7a37a64ee52e0228b64aef00dfdc66d8e333b3f7b910698f4042f92019cca489e1e68f5323409ba4e4c7a8e0ae301aee0 SHA512 f78a41cd4ed1b08adbe406c8e58ea741b1731b263981ca20b36ddaaab0c8224b092042fe427770969ad404bc51cd68f997e63bcfda78bdfdf8f048b9ad1e117f EBUILD scylla-jmx-3.0.9.ebuild 2300 BLAKE2B 3b8e24d44c56935434659fcab6549ff7a37a64ee52e0228b64aef00dfdc66d8e333b3f7b910698f4042f92019cca489e1e68f5323409ba4e4c7a8e0ae301aee0 SHA512 f78a41cd4ed1b08adbe406c8e58ea741b1731b263981ca20b36ddaaab0c8224b092042fe427770969ad404bc51cd68f997e63bcfda78bdfdf8f048b9ad1e117f @@ -15,19 +17,19 @@ MISC metadata.xml 249 BLAKE2B 40afa233e18ae5678e52194be8b1235d8deda4810e55b33ea1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQKTBAEBCAB9FiEEGiPLJcoPPNcvDvnY9mwK1B9ohkIFAl1SY/FfFIAAAAAALgAo +iQKTBAEBCAB9FiEEGiPLJcoPPNcvDvnY9mwK1B9ohkIFAl2E8oBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDFB MjNDQjI1Q0EwRjNDRDcyRjBFRjlEOEY2NkMwQUQ0MUY2ODg2NDIACgkQ9mwK1B9o -hkLKkw//TjfjVYwYTdN9YSpy86cMgiqolImp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QRdEXhYIrFBh94O6ow8GwCIs/qa4/+9oq266d6C+hD+grur8CDPTYGnh+c +0RfqUIB/lfuBojwm/UF37OqQnlLhUdnL8Fgq2Go+BaETFkQlJeje6qY+ItYh7sHi ++0q8cPRl51Iv/N7/4vAcwPmq6Xh7G37GmhPgQhfgg7mNl0+nHsGVfiZv8RULcP3o +EjCsSx6nJGFTeGmuZFAGa+9pRWwYGWhCRkaA6hliZBlT++nr8c+Xth/aRbPAPThs +JFJgKmi0BKN8Y/rc2My9qH5Imq88mZKSqM3iJR7ZO4bySG4Y7MA= +=Nr+G -----END PGP SIGNATURE----- diff --git a/app-admin/scylla-jmx/scylla-jmx-3.0.10.ebuild b/app-admin/scylla-jmx/scylla-jmx-3.0.10.ebuild new file mode 100644 index 0000000..dee6268 --- /dev/null +++ b/app-admin/scylla-jmx/scylla-jmx-3.0.10.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/scylladb/scylla-jmx.git" + inherit git-r3 +else + MY_PV="${PV/_rc/.rc}" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://github.com/scylladb/${PN}/archive/scylla-${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/scylla-jmx-scylla-${MY_PV}" +fi + +PYTHON_COMPAT=( python2_7 ) + +inherit java-pkg-2 python-r1 systemd user + +DESCRIPTION="Scylla JMX" +HOMEPAGE="https://github.com/scylladb/scylla-jmx" + +LICENSE="Apache-2.0" +SLOT="0" + +CDEPEND="dev-java/maven-bin:3.3" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${CDEPEND} + ${PYTHON_DEPS} + >=virtual/jre-1.8" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.8 + dev-python/pystache[${PYTHON_USEDEP}]" + +RESTRICT="test" + +pkg_setup() { + enewgroup scylla + enewuser scylla -1 -1 /var/lib/${PN} scylla +} + +src_prepare() { + default + + # fix symlink runtime error on scylla-jmx script + # * scylla-jmx is not available for oracle-jdk-bin-1.8 on x86_64 + # * IMPORTANT: some Java tools are not available on some VMs on some architectures + sed -e 's@"$LOCATION_SCRIPTS"/symlinks/scylla-jmx@/usr/bin/java@g' -i scripts/scylla-jmx || die +} + +src_compile() { + mvn -B install || die +} + +src_install() { + default + + insinto /etc/default + doins dist/common/sysconfig/scylla-jmx + + insinto /usr/lib/scylla/jmx + doins target/scylla-jmx-1.0.jar + + # removed because of src_prepare fix + #dodir /usr/lib/scylla/jmx/symlinks + #dosym /usr/bin/java /usr/lib/scylla/jmx/symlinks/scylla-jmx + + exeinto /usr/lib/scylla/jmx + doexe scripts/scylla-jmx + + newinitd "${FILESDIR}/scylla-jmx.initd" ${PN} + newconfd "${FILESDIR}/scylla-jmx.confd" ${PN} + + local MUSTACHE_DIST="\"debian\": true" + pystache dist/common/systemd/scylla-jmx.service.mustache "{ $MUSTACHE_DIST }" > scylla-jmx.service + systemd_dounit scylla-jmx.service +} + +pkg_postinst() { + ping -c1 `hostname` > /dev/null 2>&1 + if [ $? -ne 0 ]; then + ewarn + ewarn "**************************************************************" + ewarn "* WARNING: You need to add hostname on /etc/hosts, otherwise *" + ewarn "* scylla-jmx will not able to start up. *" + ewarn "**************************************************************" + ewarn + fi +} |